public void CreateWithNullContextDoesNotThrow()
 {
     // Fixture setup
     var sut = new UriSchemeGenerator();
     var dummyRequest = new object();
     // Exercise system and verify outcome
     Assert.DoesNotThrow(() => sut.Create(dummyRequest, null));
     // Teardown
 }
 public void SutIsSpecimenBuilder()
 {
     // Fixture setup
     // Exercise system
     var sut = new UriSchemeGenerator();
     // Verify outcome
     Assert.IsAssignableFrom<ISpecimenBuilder>(sut);
     // Teardown
 }
 public void CreateWithNullRequestReturnsCorrectResult()
 {
     // Fixture setup
     var sut = new UriSchemeGenerator();
     // Exercise system
     var dummyContext = new DelegatingSpecimenContext();
     var result = sut.Create(null, dummyContext);
     // Verify outcome
     Assert.Equal(new NoSpecimen(), result);
     // Teardown
 }
 public void CreateWithUriSchemeRequestReturnsCorrectResult()
 {
     // Fixture setup
     var sut = new UriSchemeGenerator();
     var request = typeof(UriScheme);
     // Exercise system
     var dummyContext = new DelegatingSpecimenContext();
     var result = sut.Create(request, dummyContext);
     // Verify outcome
     var expectedResult = new UriScheme();
     Assert.Equal(expectedResult, result);
     // Teardown
 }
        public void CreateWithNonUriSchemeRequestReturnsCorrectResult()
        {
            // Fixture setup
            var sut = new UriSchemeGenerator();
            var dummyRequest = new object();
            // Exercise system
            var dummyContext = new DelegatingSpecimenContext();
            var result = sut.Create(dummyRequest, dummyContext);
            // Verify outcome
#pragma warning disable 618
            var expectedResult = new NoSpecimen(dummyRequest);
#pragma warning restore 618
            Assert.Equal(expectedResult, result);
            // Teardown
        }