Exemplo n.º 1
0
        public void CreateReturnsCorrectResult()
        {
            // Arrange
            var expectedSpecimen = new object();
            var sut = new FixedBuilder(expectedSpecimen);
            // Act
            var dummyRequest = new object();
            var dummyContext = new DelegatingSpecimenContext();
            var result       = sut.Create(dummyRequest, dummyContext);

            // Assert
            Assert.Equal(expectedSpecimen, result);
        }
Exemplo n.º 2
0
        public void CreateReturnsCorrectResult()
        {
            // Fixture setup
            var expectedSpecimen = new object();
            var sut = new FixedBuilder(expectedSpecimen);
            // Exercise system
            var dummyRequest = new object();
            var dummyContext = new DelegatingSpecimenContext();
            var result       = sut.Create(dummyRequest, dummyContext);

            // Verify outcome
            Assert.Equal(expectedSpecimen, result);
            // Teardown
        }