mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 09:48:26 -04:00
Fixed around 140 wrong namings and other refactorings which were marked as warnings
This commit is contained in:
@@ -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
|
||||
|
@@ -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()
|
||||
|
@@ -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 },
|
||||
|
@@ -1,5 +1,4 @@
|
||||
using System.Linq;
|
||||
using NadekoBot.Common;
|
||||
using NadekoBot.Common;
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace NadekoBot.Tests
|
||||
|
@@ -9,10 +9,8 @@ namespace NadekoBot.Tests
|
||||
{
|
||||
[SetUp]
|
||||
public void Setup()
|
||||
{
|
||||
Console.OutputEncoding = Encoding.UTF8;
|
||||
}
|
||||
|
||||
=> Console.OutputEncoding = Encoding.UTF8;
|
||||
|
||||
[Test]
|
||||
public void Utf8CodepointsToEmoji()
|
||||
{
|
||||
|
Reference in New Issue
Block a user