Fixed around 140 wrong namings and other refactorings which were marked as warnings

This commit is contained in:
Kwoth
2022-01-08 11:51:41 +01:00
parent a6330119e8
commit 2ce3262d59
109 changed files with 698 additions and 760 deletions

View File

@@ -40,7 +40,7 @@ namespace NadekoBot.Tests
}
private static string[] GetCommandMethodNames()
=> typeof(NadekoBot.Bot).Assembly
=> typeof(Bot).Assembly
.GetExportedTypes()
.Where(type => type.IsClass && !type.IsAbstract)
.Where(type => typeof(NadekoModule).IsAssignableFrom(type) // if its a top level module

View File

@@ -1,5 +1,3 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using NadekoBot.Extensions;
@@ -14,9 +12,7 @@ namespace NadekoBot.Tests
[SetUp]
public void Setup()
{
_grouper = new GreetGrouper<int>();
}
=> _grouper = new GreetGrouper<int>();
[Test]
public void CreateTest()

View File

@@ -115,7 +115,7 @@ namespace NadekoBot.Tests
[Test]
public void ContainsTest()
{
var subCol = new ShopEntry[]
var subCol = new[]
{
new ShopEntry() { Id = 111 },
new ShopEntry() { Id = 222 },

View File

@@ -1,5 +1,4 @@
using System.Linq;
using NadekoBot.Common;
using NadekoBot.Common;
using NUnit.Framework;
namespace NadekoBot.Tests

View File

@@ -9,10 +9,8 @@ namespace NadekoBot.Tests
{
[SetUp]
public void Setup()
{
Console.OutputEncoding = Encoding.UTF8;
}
=> Console.OutputEncoding = Encoding.UTF8;
[Test]
public void Utf8CodepointsToEmoji()
{