tests/Kingdom.OrTools.Sat.Parameters.Tests/OrToolsSatParametersEnumerationsTests.cs
/// <summary>
/// The Code Generated <paramref name="enumType"/> are all Greater Than or Equal
/// To Zero, there is Exactly One Zero Value, and are All Distinct.
/// </summary>
/// <param name="enumType"></param>
The Code Generated  are all Greater Than or Equal
To Zero, there is Exactly One Zero Value, and are All Distinct.
The Code Generated are all Greater Than or Equal To Zero there is Exactly One Zero Value and are All Distinct .
[Theory, MemberData(nameof(EnumTypeTestCases))]
        public void Enum_Has_Values(Type enumType)
        {
            const long zed = 0L;
            var longValues = enumType.GetEnumValues<long>().ToArray();
            longValues.AssertTrue(x => x.All(y => y >= zed));
            longValues.AssertTrue(x => x.Count(y => y == zed) == 1);
            longValues.AssertTrue(x => x.Distinct().Count() == x.Length);
        }
[ Theory , MemberData ( nameof ( EnumTypeTestCases ) ) ] public void Enum_Has_Values ( Type enumType ) { const long zed = 0L ; var longValues = enumType . GetEnumValues < long > ( ) . ToArray ( ) ; longValues . AssertTrue ( x => x . All ( y => y >= zed ) ) ; longValues . AssertTrue ( x => x . Count ( y => y == zed ) == 1 ) ; longValues . AssertTrue ( x => x . Distinct ( ) . Count ( ) == x . Length ) ; }
The Code Generated  are all Greater Than or Equal
To Zero, there is Exactly One Zero Value, and are All Distinct.
The Code Generated are all Greater Than or Equal To Zero there is Exactly One Zero Value and are All Distinct .
enumType
Type
None