Пример #1
0
        public void ShouldFacttoryRetunrNullForUnknowType()
        {
            var sut = new CalculatorsFactory();

            var calculator = sut.GetInstance("invalid");

            Assert.IsNull(calculator);
        }
 public CalculatorsFactoryTests(CalculatorsFactoryFixture calculatorsFactoryFixture)
 {
     _calculatorsFactory = calculatorsFactoryFixture.CalculatorsFactory;
 }
 public CalculatorsFactoryFixture()
 {
     CalculatorsFactory = new CalculatorsFactory();
 }