public void CreateWithNonTypeRequestWillReturnNoSpecimen()
        {
            // Arrange
            var sut = new Utf8EncodingGenerator();

            // Act
            var result = sut.Create(new object(), new DelegatingSpecimenContext());
            // Assert
            Assert.Equal(new NoSpecimen(), result);
        }
        public void CreateWithEncodingRequestWillReturnUtf8Encoding()
        {
            // Arrange
            var sut = new Utf8EncodingGenerator();

            // Act
            var result = sut.Create(typeof(Encoding), new DelegatingSpecimenContext());

            // Assert
            Assert.Equal(Encoding.UTF8, result);
        }
        public void CreateWithNullRequestWillReturnNoSpecimen()
        {
            // Arrange
            #pragma warning disable 618
            var sut = new Utf8EncodingGenerator();
            #pragma warning restore 618

            // Act
            var result = sut.Create(null, new DelegatingSpecimenContext());

            // Assert
            Assert.Equal(new NoSpecimen(), result);
        }