21 references to FlagsEnum
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (21)
DefaultHtmlGeneratorTest.cs (21)
850{ nameof(Model.FlagsEnum), FlagsEnum.All, new [] { "-1", "All" } },
851{ nameof(Model.FlagsEnum), FlagsEnum.FortyTwo, new [] { "42", "FortyTwo" } },
852{ nameof(Model.FlagsEnum), FlagsEnum.None, new [] { "0", "None" } },
853{ nameof(Model.FlagsEnum), FlagsEnum.Two, new [] { "2", "Two" } },
854{ nameof(Model.FlagsEnum), string.Empty, new [] { string.Empty } },
855{ nameof(Model.FlagsEnum), "All", new [] { "-1", "All" } },
856{ nameof(Model.FlagsEnum), "FortyTwo", new [] { "42", "FortyTwo" } },
857{ nameof(Model.FlagsEnum), "None", new [] { "0", "None" } },
858{ nameof(Model.FlagsEnum), "Two", new [] { "2", "Two" } },
859{ nameof(Model.FlagsEnum), "Two, Four", new [] { "Two, Four", "6" } },
860{ nameof(Model.FlagsEnum), "garbage", new [] { "garbage" } },
861{ nameof(Model.FlagsEnum), "0", new [] { "0", "None" } },
862{ nameof(Model.FlagsEnum), " 43", new [] { " 43", "43" } },
863{ nameof(Model.FlagsEnum), "-5 ", new [] { "-5 ", "-5" } },
864{ nameof(Model.FlagsEnum), 0, new [] { "0", "None" } },
865{ nameof(Model.FlagsEnum), 1, new [] { "1", "One" } },
866{ nameof(Model.FlagsEnum), 43, new [] { "43" } },
867{ nameof(Model.FlagsEnum), -5, new [] { "-5" } },
868{ nameof(Model.FlagsEnum), int.MaxValue, new [] { "2147483647" } },
869{ nameof(Model.FlagsEnum), (uint)int.MaxValue + 1, new [] { "2147483648" } },
870{ nameof(Model.FlagsEnum), uint.MaxValue, new [] { "4294967295" } }, // converted to string & used