コード例 #1
0
        public void DoReturnsCorrectResult()
        {
            // Arrange
            var sut = new NullComposer <object>();
            // Act
            var result = sut.Do(x => { });

            // Assert
            Assert.Same(sut, result);
        }
コード例 #2
0
        public void DoReturnsCorrectResult()
        {
            // Fixture setup
            var sut = new NullComposer <object>();
            // Exercise system
            var result = sut.Do(x => { });

            // Verify outcome
            Assert.Same(sut, result);
            // Teardown
        }
コード例 #3
0
 public void DoReturnsCorrectResult()
 {
     // Fixture setup
     var sut = new NullComposer<object>();
     // Exercise system
     var result = sut.Do(x => { });
     // Verify outcome
     Assert.Same(sut, result);
     // Teardown
 }