public void CreateWithNullContainerDoesNotThrow() { // Fixture setup var sut = new SingleSequenceGenerator(); // Exercise system var dummyRequest = new object(); sut.Create(dummyRequest, null); // Verify outcome (no exception indicates success) // Teardown }
public void CreateWithNullRequestWillReturnCorrectResult() { // Fixture setup var sut = new SingleSequenceGenerator(); // Exercise system var dummyContainer = new DelegatingSpecimenContext(); var result = sut.Create(null, dummyContainer); // Verify outcome Assert.Equal(new NoSpecimen(), result); // Teardown }
public void CreateWithNonSingleRequestWillReturnCorrectResult() { // Fixture setup var nonSingleRequest = new object(); var sut = new SingleSequenceGenerator(); // Exercise system var dummyContainer = new DelegatingSpecimenContext(); var result = sut.Create(nonSingleRequest, dummyContainer); // Verify outcome #pragma warning disable 618 var expectedResult = new NoSpecimen(nonSingleRequest); #pragma warning restore 618 Assert.Equal(expectedResult, result); // Teardown }