예제 #1
0
        public void Constructor_ExpectedValues()
        {
            // Call
            var factory = new TestBalancedFieldLengthCalculationModuleFactory();

            // Assert
            Assert.That(factory, Is.InstanceOf <IBalancedFieldLengthCalculationModuleFactory>());
            Assert.That(factory.TestModule, Is.Not.Null);
        }
예제 #2
0
        public void CreateModule_Always_ReturnsExpectedType()
        {
            // Setup
            var factory = new TestBalancedFieldLengthCalculationModuleFactory();

            // Call
            IBalancedFieldLengthCalculationModule calculationModule = factory.CreateModule();

            // Assert
            Assert.That(calculationModule, Is.TypeOf <TestBalancedFieldLengthCalculationModule>());
            Assert.That(calculationModule, Is.SameAs(factory.TestModule));
        }