Exemplo n.º 1
0
 public void ComposeReturnsCorrectResult()
 {
     // Fixture setup
     var sut = new BehaviorRoot();
     // Exercise system
     var expected = new[]
     {
         new DelegatingSpecimenBuilder(),
         new DelegatingSpecimenBuilder(),
         new DelegatingSpecimenBuilder()
     };
     var actual = sut.Compose(expected);
     // Verify outcome
     var br = Assert.IsAssignableFrom<BehaviorRoot>(actual);
     Assert.True(expected.SequenceEqual(br));
     // Teardown
 }