Remove analyzer project & resolve some build warnings (#2905)

* yeet analyzer & analyzer test

* fix test warning

* yeet analyzer from the workflow

* resolve more warnings

* forgot to push
This commit is contained in:
Mihail Gribkov
2024-04-14 00:01:07 +03:00
committed by GitHub
parent 678a080756
commit 7aab36606b
17 changed files with 17 additions and 1083 deletions

View File

@@ -1,5 +1,6 @@
using Discord.Commands;
using System;
using System.Threading.Tasks;
using Xunit;
namespace Discord
@@ -38,10 +39,10 @@ namespace Discord
[InlineData("-2m1s", true)] // tests format "-%m'm'%s's'"
[InlineData("-2m", true)] // tests format "-%m'm'"
[InlineData("-1s", true)] // tests format "-%s's'"
public void TestTimeSpanParse(string input, bool isNegative)
public async Task TestTimeSpanParse(string input, bool isNegative)
{
var reader = new TimeSpanTypeReader();
var result = reader.ReadAsync(null, input, null).Result;
var result = await reader.ReadAsync(null, input, null);
Assert.True(result.IsSuccess);
var actual = (TimeSpan)result.BestMatch;