Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Fix netfx test for CategoryAttribute #21041

Merged
merged 1 commit into from
Jun 14, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,8 @@ public static IEnumerable<object[]> Ctor_Category_TestData()
{
yield return new object[] { "", false };
yield return new object[] { "test category", false };
yield return new object[] { CategoryAttribute.Default.Category, true };

// IsDefaultAttribute is case-sensitive, but the value of Default.Name may be localized to lower case.
string lower = CategoryAttribute.Default.Category.ToLower();
if (lower != CategoryAttribute.Default.Category)
{
yield return new object[] { lower, false };
}
yield return new object[] { "Misc", true };
yield return new object[] { "misc", false };
}

[Theory]
Expand Down