Fix analyzer warnings with tests

Use (actual, expected) format for Assert.Equal, fixes analyzer warnings
This commit is contained in:
FiniteReality
2018-05-28 17:14:18 +01:00
parent b0042606b6
commit 415e2f7739
4 changed files with 63 additions and 62 deletions

View File

@@ -169,7 +169,7 @@ namespace Discord
private async Task CheckChannelCategories(RestCategoryChannel[] categories, RestGuildChannel[] allChannels)
{
// 2 categories
Assert.Equal(categories.Length, 2);
Assert.Equal(2, categories.Length);
var cat1 = categories.Where(x => x.Name == "cat1").FirstOrDefault();
var cat2 = categories.Where(x => x.Name == "cat2").FirstOrDefault();
@@ -202,7 +202,7 @@ namespace Discord
Assert.NotNull(voice1);
Assert.NotNull(voice3);
Assert.Equal(voice1.CategoryId, cat2.Id);
var voice1Cat = await voice1.GetCategoryAsync();
Assert.Equal(voice1Cat.Id, cat2.Id);