public void SutIsTransmissionBuilders() { // Fixture setup // Exercise system var sut = new DefaultEngineParts(); // Verify outcome Assert.IsAssignableFrom<DefaultRelays>(sut); // Teardown }
public void InitializedWithDefaultConstructorSutHasCorrectContents() { // Fixture setup var expectedBuilders = new DefaultPrimitiveBuilders() .Concat(new DefaultRelays()) .Select(b => b.GetType()); // Exercise system var sut = new DefaultEngineParts(); // Verify outcome Assert.True(expectedBuilders.SequenceEqual(sut.Select(b => b.GetType()))); // Teardown }
public void InitializedWithBuildersArraySutHasCorrectContents() { // Fixture setup var primitiveBuilders = Enumerable.Range(1, 3).Select(i => new DelegatingSpecimenBuilder()).ToArray(); var expectedBuilders = primitiveBuilders .Concat(new DefaultRelays()) .Select(b => b.GetType()); // Exercise system var sut = new DefaultEngineParts(primitiveBuilders); // Verify outcome Assert.True(expectedBuilders.SequenceEqual(sut.Select(b => b.GetType()))); // Teardown }