public void CreateWithCultureInfoRequestTypeReturnsInvariantCulture()
        {
            var sut = new InvariantCultureGenerator();
            var actual = sut.Create(typeof(CultureInfo), new DelegatingSpecimenContext());

            Assert.Equal(CultureInfo.InvariantCulture, actual);
        }
        public void CreateWithNullContextDoesNotThrow()
        {
#pragma warning disable 618
            var sut = new InvariantCultureGenerator();
#pragma warning restore 618
            sut.Create(new object(), null);
        }
        public void CreateWithNonCultureInfoTypeWillReturnNoSpecimen()
        {
            var sut = new InvariantCultureGenerator();
            var actual = sut.Create(typeof(object), new DelegatingSpecimenContext());

            Assert.Equal(new NoSpecimen(), actual);
        }
        public void SutIsSpecimenBuilder()
        {
#pragma warning disable 618
            var sut = new InvariantCultureGenerator();
#pragma warning restore 618
            Assert.IsAssignableFrom<ISpecimenBuilder>(sut);
        }
        public void CreateWithNullRequestWillReturnNoSpecimen()
        {
            var sut = new InvariantCultureGenerator();

            var actual = sut.Create(null, new DelegatingSpecimenContext());

            Assert.Equal(new NoSpecimen(), actual);
        }
        public void CreateWithNonTypeRequestWillReturnNoSpecimen()
        {
#pragma warning disable 618
            var sut = new InvariantCultureGenerator();
#pragma warning restore 618
            var actual = sut.Create(new object(), new DelegatingSpecimenContext());

            Assert.Equal(new NoSpecimen(), actual);
        }
 public void CreateWithNullContextDoesNotThrow()
 {
     var sut = new InvariantCultureGenerator();
     sut.Create(new object(), null);
 }
 public void SutIsSpecimenBuilder()
 {
     var sut = new InvariantCultureGenerator();
     Assert.IsAssignableFrom<ISpecimenBuilder>(sut);
 }