Browse Source

Add assertion for the collection test

pull/1123/head
Joe4evr 7 years ago
parent
commit
8779a5b76d
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      test/Discord.Net.Tests/Tests.TypeReaders.cs

+ 4
- 0
test/Discord.Net.Tests/Tests.TypeReaders.cs View File

@@ -101,6 +101,10 @@ namespace Discord

var result = await param.ParseAsync(null, "manyints: \"1, 2, 3, 4, 5, 6, 7\"");
Assert.True(result.IsSuccess);

var m = result.BestMatch as ArgumentType;
Assert.NotNull(m);
Assert.Equal(expected: new int[] { 1, 2, 3, 4, 5, 6, 7 }, actual: m.ManyInts);
}
}



Loading…
Cancel
Save