Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
SMAH1 committed Feb 11, 2021
1 parent e37ab36 commit d78e685
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions TestSMAH1.Core/EnumInfoBaseTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,13 @@ public void TestGetFields()
{
var res = SMAH1.EnumInfoBase<TestEnum>.GetFields();

List<TestEnum> shouldList = new List<TestEnum>();
shouldList.Add(TestEnum.First);
shouldList.Add(TestEnum.Third);
shouldList.Add(TestEnum.Fourth);
shouldList.Add(TestEnum.Second);
List<TestEnum> shouldList = new List<TestEnum>
{
TestEnum.First,
TestEnum.Third,
TestEnum.Fourth,
TestEnum.Second
};

Assert.True(res.Count == shouldList.Count);
Assert.True(shouldList.All(shouldItem => res.Any(item => item == shouldItem)));
Expand Down

0 comments on commit d78e685

Please sign in to comment.