public void SutHasCorrectContents()
        {
            // Fixture setup
            var expectedBuilderTypes = new[]
            {
                typeof(StringGenerator),
                typeof(ConstrainedStringGenerator),
                typeof(StringSeedRelay),
                typeof(RandomNumericSequenceGenerator),
                typeof(RandomCharSequenceGenerator),
                typeof(UriGenerator),
                typeof(UriSchemeGenerator),
                typeof(RangedNumberGenerator),
                typeof(RegularExpressionGenerator),
                typeof(RandomDateTimeSequenceGenerator),
                typeof(BooleanSwitch),
                typeof(GuidGenerator),
                typeof(TypeGenerator),
                typeof(DelegateGenerator),
                typeof(TaskGenerator),
                typeof(IntPtrGuard),
                typeof(MailAddressGenerator),
                typeof(EmailAddressLocalPartGenerator),
                typeof(DomainNameGenerator)
            };
            // Exercise system
            var sut = new DefaultPrimitiveBuilders();

            // Verify outcome
            Assert.True(expectedBuilderTypes.SequenceEqual(sut.Select(b => b.GetType())));
            // Teardown
        }
 public void SutHasCorrectContents()
 {
     // Fixture setup
     var expectedBuilderTypes = new[]
         {
             typeof(StringGenerator),
             typeof(ConstrainedStringGenerator),
             typeof(StringSeedRelay),
             typeof(NumericSequenceGenerator),
             typeof(CharSequenceGenerator),
             typeof(UriGenerator),
             typeof(UriSchemeGenerator),
             typeof(RangedNumberGenerator),
             typeof(RegularExpressionGenerator),
             typeof(StrictlyMonotonicallyIncreasingDateTimeGenerator),
             typeof(BooleanSwitch),
             typeof(GuidGenerator),
             typeof(TypeGenerator),
             typeof(DelegateGenerator),
             typeof(IntPtrGuard)
         };
     // Exercise system
     var sut = new DefaultPrimitiveBuilders();
     // Verify outcome
     Assert.True(expectedBuilderTypes.SequenceEqual(sut.Select(b => b.GetType())));
     // Teardown
 }
        public void SutHasCorrectContents()
        {
            // Arrange
            var expectedBuilderTypes = new[]
            {
                typeof(StringGenerator),
                typeof(ConstrainedStringGenerator),
                typeof(StringSeedRelay),
                typeof(RandomNumericSequenceGenerator),
                typeof(RandomCharSequenceGenerator),
                typeof(UriGenerator),
                typeof(UriSchemeGenerator),
                typeof(RandomRangedNumberGenerator),
                typeof(RegularExpressionGenerator),
                typeof(RandomDateTimeSequenceGenerator),
                typeof(BooleanSwitch),
                typeof(GuidGenerator),
                typeof(TypeGenerator),
                typeof(DelegateGenerator),
                typeof(TaskGenerator),
                typeof(IntPtrGuard),
#if SYSTEM_NET_MAIL
                typeof(MailAddressGenerator),
#endif
                typeof(EmailAddressLocalPartGenerator),
                typeof(DomainNameGenerator)
            };
            // Act
            var sut = new DefaultPrimitiveBuilders();

            // Assert
            Assert.True(expectedBuilderTypes.SequenceEqual(sut.Select(b => b.GetType())));
        }
 public void NonGenericEnumeratorMatchesGenericEnumerator()
 {
     // Fixture setup
     var sut = new DefaultPrimitiveBuilders();
     // Exercise system
     IEnumerable result = sut;
     // Verify outcome
     Assert.True(sut.Select(b => b.GetType()).SequenceEqual(result.Cast<object>().Select(o => o.GetType())));
     // Teardown
 }
        public void NonGenericEnumeratorMatchesGenericEnumerator()
        {
            // Arrange
            var sut = new DefaultPrimitiveBuilders();
            // Act
            IEnumerable result = sut;

            // Assert
            Assert.True(sut.Select(b => b.GetType()).SequenceEqual(result.Cast <object>().Select(o => o.GetType())));
        }
        public void NonGenericEnumeratorMatchesGenericEnumerator()
        {
            // Fixture setup
            var sut = new DefaultPrimitiveBuilders();
            // Exercise system
            IEnumerable result = sut;

            // Verify outcome
            Assert.True(sut.Select(b => b.GetType()).SequenceEqual(result.Cast <object>().Select(o => o.GetType())));
            // Teardown
        }