예제 #1
0
        public void ProcessorFactory_CreateProcessorNewWay_CreatesGoodProcessor()
        {
            Mock <IProcessor> mock = new Mock <IProcessor>();

            DependencyService.GetConfiguredContainer().RegisterInstance(mock.Object);

            var processor = processorFactory.CreateProcessorNewWay(typeof(IProcessor));

            Assert.IsTrue(processor == mock.Object);
        }