public void Constructor_ExpectedValues() { // Call var factory = new TestBalancedFieldLengthCalculationModuleFactory(); // Assert Assert.That(factory, Is.InstanceOf <IBalancedFieldLengthCalculationModuleFactory>()); Assert.That(factory.TestModule, Is.Not.Null); }
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)); }