ModelBuilder.UnitTests.DefaultBuildStrategyCompilerTests.ValueGeneratorsIncludesAllAvailableValueGeneratorsExceptMailinatorTest C# (CSharp) Method

ValueGeneratorsIncludesAllAvailableValueGeneratorsExceptMailinatorTest() private method

        public void ValueGeneratorsIncludesAllAvailableValueGeneratorsExceptMailinatorTest()
        {
            var types = from x in typeof(DefaultBuildStrategyCompiler).Assembly.GetTypes()
                where
                    typeof(IValueGenerator).IsAssignableFrom(x) && x.IsAbstract == false && x.IsInterface == false &&
                    x != typeof(MailinatorEmailValueGenerator)
                select x;

            var target = new DefaultBuildStrategyCompiler();

            foreach (var type in types)
            {
                target.ValueGenerators.Should().Contain(x => x.GetType() == type);
            }
        }
    }