From 8779a5b76d32eacfb9b2bf660e80b48197d912f0 Mon Sep 17 00:00:00 2001 From: Joe4evr Date: Sun, 19 Aug 2018 19:15:24 +0200 Subject: [PATCH] Add assertion for the collection test --- test/Discord.Net.Tests/Tests.TypeReaders.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/Discord.Net.Tests/Tests.TypeReaders.cs b/test/Discord.Net.Tests/Tests.TypeReaders.cs index 3d1325c59..91514bfae 100644 --- a/test/Discord.Net.Tests/Tests.TypeReaders.cs +++ b/test/Discord.Net.Tests/Tests.TypeReaders.cs @@ -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); } }