public void CreateWithNullContextDoesNotThrow()
        {
#pragma warning disable 618
            var sut = new InvariantCultureGenerator();
#pragma warning restore 618
            sut.Create(new object(), null);
        }
Пример #2
0
        public void CreateWithCultureInfoRequestTypeReturnsInvariantCulture()
        {
            var sut    = new InvariantCultureGenerator();
            var actual = sut.Create(typeof(CultureInfo), new DelegatingSpecimenContext());

            Assert.Equal(CultureInfo.InvariantCulture, actual);
        }
Пример #3
0
        public void CreateWithNonCultureInfoTypeWillReturnNoSpecimen()
        {
            var sut    = new InvariantCultureGenerator();
            var actual = sut.Create(typeof(object), new DelegatingSpecimenContext());

            Assert.Equal(new NoSpecimen(), actual);
        }
Пример #4
0
        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);
        }
Пример #6
0
        public void CreateWithNullContextDoesNotThrow()
        {
            var sut = new InvariantCultureGenerator();

            sut.Create(new object(), null);
        }