From d3c19a0987e1e9e4dcf09fb4c412898e70fde178 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Tue, 23 Apr 2024 18:17:27 -0400 Subject: [PATCH] rename test folders --- IRCRobots/ConnectionParams.cs | 1 - IRCSharp.Tests/IRCSharp.Tests.csproj | 2 +- IRCSharp.Tests/{State => States}/Cap.cs | 2 +- IRCSharp.Tests/{State => States}/Casemap.cs | 2 +- IRCSharp.Tests/{State => States}/Channel.cs | 2 +- IRCSharp.Tests/{State => States}/Emit.cs | 2 +- IRCSharp.Tests/{State => States}/ISupport.cs | 2 +- IRCSharp.Tests/{State => States}/Mode.cs | 2 +- IRCSharp.Tests/{State => States}/Motd.cs | 2 +- IRCSharp.Tests/{State => States}/Sasl.cs | 2 +- IRCSharp.Tests/{State => States}/User.cs | 2 +- IRCSharp.Tests/{State => States}/Who.cs | 2 +- IRCSharp.Tests/{Tokenization => Tokens}/Data/JoinModel.cs | 2 +- .../{Tokenization => Tokens}/Data/SplitModel.cs | 2 +- .../{Tokenization => Tokens}/Data/msg-join.yaml | 0 .../{Tokenization => Tokens}/Data/msg-split.yaml | 0 IRCSharp.Tests/{Tokenization => Tokens}/Format.cs | 2 +- IRCSharp.Tests/{Tokenization => Tokens}/Hostmask.cs | 2 +- IRCSharp.Tests/{Tokenization => Tokens}/Parser.cs | 8 ++++---- .../{Tokenization => Tokens}/StatefulDecoder.cs | 2 +- .../{Tokenization => Tokens}/StatefulEncoder.cs | 2 +- IRCSharp.Tests/{Tokenization => Tokens}/Tokenization.cs | 2 +- 22 files changed, 22 insertions(+), 23 deletions(-) rename IRCSharp.Tests/{State => States}/Cap.cs (99%) rename IRCSharp.Tests/{State => States}/Casemap.cs (98%) rename IRCSharp.Tests/{State => States}/Channel.cs (99%) rename IRCSharp.Tests/{State => States}/Emit.cs (98%) rename IRCSharp.Tests/{State => States}/ISupport.cs (99%) rename IRCSharp.Tests/{State => States}/Mode.cs (99%) rename IRCSharp.Tests/{State => States}/Motd.cs (92%) rename IRCSharp.Tests/{State => States}/Sasl.cs (95%) rename IRCSharp.Tests/{State => States}/User.cs (99%) rename IRCSharp.Tests/{State => States}/Who.cs (98%) rename IRCSharp.Tests/{Tokenization => Tokens}/Data/JoinModel.cs (92%) rename IRCSharp.Tests/{Tokenization => Tokens}/Data/SplitModel.cs (80%) rename IRCSharp.Tests/{Tokenization => Tokens}/Data/msg-join.yaml (100%) rename IRCSharp.Tests/{Tokenization => Tokens}/Data/msg-split.yaml (100%) rename IRCSharp.Tests/{Tokenization => Tokens}/Format.cs (98%) rename IRCSharp.Tests/{Tokenization => Tokens}/Hostmask.cs (97%) rename IRCSharp.Tests/{Tokenization => Tokens}/Parser.cs (84%) rename IRCSharp.Tests/{Tokenization => Tokens}/StatefulDecoder.cs (98%) rename IRCSharp.Tests/{Tokenization => Tokens}/StatefulEncoder.cs (98%) rename IRCSharp.Tests/{Tokenization => Tokens}/Tokenization.cs (98%) diff --git a/IRCRobots/ConnectionParams.cs b/IRCRobots/ConnectionParams.cs index ba1dc39..da5a6a5 100644 --- a/IRCRobots/ConnectionParams.cs +++ b/IRCRobots/ConnectionParams.cs @@ -1,6 +1,5 @@ using System.Collections.Generic; -#nullable enable namespace IRCRobots { public class ConnectionParams diff --git a/IRCSharp.Tests/IRCSharp.Tests.csproj b/IRCSharp.Tests/IRCSharp.Tests.csproj index d46685a..7c3d2a4 100644 --- a/IRCSharp.Tests/IRCSharp.Tests.csproj +++ b/IRCSharp.Tests/IRCSharp.Tests.csproj @@ -23,7 +23,7 @@ - + PreserveNewest diff --git a/IRCSharp.Tests/State/Cap.cs b/IRCSharp.Tests/States/Cap.cs similarity index 99% rename from IRCSharp.Tests/State/Cap.cs rename to IRCSharp.Tests/States/Cap.cs index bbe2f0f..df236ab 100644 --- a/IRCSharp.Tests/State/Cap.cs +++ b/IRCSharp.Tests/States/Cap.cs @@ -1,4 +1,4 @@ -namespace IRCSharp.Tests.State; +namespace IRCSharp.Tests.States; [TestClass] public class Cap diff --git a/IRCSharp.Tests/State/Casemap.cs b/IRCSharp.Tests/States/Casemap.cs similarity index 98% rename from IRCSharp.Tests/State/Casemap.cs rename to IRCSharp.Tests/States/Casemap.cs index 9a514b8..ea78c75 100644 --- a/IRCSharp.Tests/State/Casemap.cs +++ b/IRCSharp.Tests/States/Casemap.cs @@ -1,6 +1,6 @@ // ReSharper disable IdentifierTypo // ReSharper disable StringLiteralTypo -namespace IRCSharp.Tests.State; +namespace IRCSharp.Tests.States; [TestClass] public class Casemap diff --git a/IRCSharp.Tests/State/Channel.cs b/IRCSharp.Tests/States/Channel.cs similarity index 99% rename from IRCSharp.Tests/State/Channel.cs rename to IRCSharp.Tests/States/Channel.cs index 5a29e0b..ff14f01 100644 --- a/IRCSharp.Tests/State/Channel.cs +++ b/IRCSharp.Tests/States/Channel.cs @@ -1,4 +1,4 @@ -namespace IRCSharp.Tests.State; +namespace IRCSharp.Tests.States; [TestClass] public class Channel diff --git a/IRCSharp.Tests/State/Emit.cs b/IRCSharp.Tests/States/Emit.cs similarity index 98% rename from IRCSharp.Tests/State/Emit.cs rename to IRCSharp.Tests/States/Emit.cs index 71af1af..01923e4 100644 --- a/IRCSharp.Tests/State/Emit.cs +++ b/IRCSharp.Tests/States/Emit.cs @@ -1,4 +1,4 @@ -namespace IRCSharp.Tests.State; +namespace IRCSharp.Tests.States; [TestClass] public class Emit diff --git a/IRCSharp.Tests/State/ISupport.cs b/IRCSharp.Tests/States/ISupport.cs similarity index 99% rename from IRCSharp.Tests/State/ISupport.cs rename to IRCSharp.Tests/States/ISupport.cs index 716a8a6..2eb63e1 100644 --- a/IRCSharp.Tests/State/ISupport.cs +++ b/IRCSharp.Tests/States/ISupport.cs @@ -1,6 +1,6 @@ // ReSharper disable InconsistentNaming // ReSharper disable StringLiteralTypo -namespace IRCSharp.Tests.State; +namespace IRCSharp.Tests.States; [TestClass] public class ISupport diff --git a/IRCSharp.Tests/State/Mode.cs b/IRCSharp.Tests/States/Mode.cs similarity index 99% rename from IRCSharp.Tests/State/Mode.cs rename to IRCSharp.Tests/States/Mode.cs index be52e2d..e5a000d 100644 --- a/IRCSharp.Tests/State/Mode.cs +++ b/IRCSharp.Tests/States/Mode.cs @@ -1,5 +1,5 @@ // ReSharper disable StringLiteralTypo -namespace IRCSharp.Tests.State; +namespace IRCSharp.Tests.States; [TestClass] public class Mode diff --git a/IRCSharp.Tests/State/Motd.cs b/IRCSharp.Tests/States/Motd.cs similarity index 92% rename from IRCSharp.Tests/State/Motd.cs rename to IRCSharp.Tests/States/Motd.cs index 17237cc..ecf43b3 100644 --- a/IRCSharp.Tests/State/Motd.cs +++ b/IRCSharp.Tests/States/Motd.cs @@ -1,4 +1,4 @@ -namespace IRCSharp.Tests.State; +namespace IRCSharp.Tests.States; [TestClass] public class Motd diff --git a/IRCSharp.Tests/State/Sasl.cs b/IRCSharp.Tests/States/Sasl.cs similarity index 95% rename from IRCSharp.Tests/State/Sasl.cs rename to IRCSharp.Tests/States/Sasl.cs index 24128b4..e453cab 100644 --- a/IRCSharp.Tests/State/Sasl.cs +++ b/IRCSharp.Tests/States/Sasl.cs @@ -1,4 +1,4 @@ -namespace IRCSharp.Tests.State; +namespace IRCSharp.Tests.States; [TestClass] public class Sasl diff --git a/IRCSharp.Tests/State/User.cs b/IRCSharp.Tests/States/User.cs similarity index 99% rename from IRCSharp.Tests/State/User.cs rename to IRCSharp.Tests/States/User.cs index c19f402..ea249a3 100644 --- a/IRCSharp.Tests/State/User.cs +++ b/IRCSharp.Tests/States/User.cs @@ -1,4 +1,4 @@ -namespace IRCSharp.Tests.State; +namespace IRCSharp.Tests.States; [TestClass] public class User diff --git a/IRCSharp.Tests/State/Who.cs b/IRCSharp.Tests/States/Who.cs similarity index 98% rename from IRCSharp.Tests/State/Who.cs rename to IRCSharp.Tests/States/Who.cs index 9ba7318..01d8694 100644 --- a/IRCSharp.Tests/State/Who.cs +++ b/IRCSharp.Tests/States/Who.cs @@ -1,5 +1,5 @@ // ReSharper disable StringLiteralTypo -namespace IRCSharp.Tests.State; +namespace IRCSharp.Tests.States; [TestClass] public class Who diff --git a/IRCSharp.Tests/Tokenization/Data/JoinModel.cs b/IRCSharp.Tests/Tokens/Data/JoinModel.cs similarity index 92% rename from IRCSharp.Tests/Tokenization/Data/JoinModel.cs rename to IRCSharp.Tests/Tokens/Data/JoinModel.cs index e3cebdd..3572233 100644 --- a/IRCSharp.Tests/Tokenization/Data/JoinModel.cs +++ b/IRCSharp.Tests/Tokens/Data/JoinModel.cs @@ -1,6 +1,6 @@ using YamlDotNet.Serialization; -namespace IRCSharp.Tests.Tokenization.Data; +namespace IRCSharp.Tests.Tokens.Data; public class JoinModel { diff --git a/IRCSharp.Tests/Tokenization/Data/SplitModel.cs b/IRCSharp.Tests/Tokens/Data/SplitModel.cs similarity index 80% rename from IRCSharp.Tests/Tokenization/Data/SplitModel.cs rename to IRCSharp.Tests/Tokens/Data/SplitModel.cs index cee9f14..37576ab 100644 --- a/IRCSharp.Tests/Tokenization/Data/SplitModel.cs +++ b/IRCSharp.Tests/Tokens/Data/SplitModel.cs @@ -1,4 +1,4 @@ -namespace IRCSharp.Tests.Tokenization.Data; +namespace IRCSharp.Tests.Tokens.Data; public class SplitModel { diff --git a/IRCSharp.Tests/Tokenization/Data/msg-join.yaml b/IRCSharp.Tests/Tokens/Data/msg-join.yaml similarity index 100% rename from IRCSharp.Tests/Tokenization/Data/msg-join.yaml rename to IRCSharp.Tests/Tokens/Data/msg-join.yaml diff --git a/IRCSharp.Tests/Tokenization/Data/msg-split.yaml b/IRCSharp.Tests/Tokens/Data/msg-split.yaml similarity index 100% rename from IRCSharp.Tests/Tokenization/Data/msg-split.yaml rename to IRCSharp.Tests/Tokens/Data/msg-split.yaml diff --git a/IRCSharp.Tests/Tokenization/Format.cs b/IRCSharp.Tests/Tokens/Format.cs similarity index 98% rename from IRCSharp.Tests/Tokenization/Format.cs rename to IRCSharp.Tests/Tokens/Format.cs index d4a1e23..46688a8 100644 --- a/IRCSharp.Tests/Tokenization/Format.cs +++ b/IRCSharp.Tests/Tokens/Format.cs @@ -1,5 +1,5 @@ // ReSharper disable StringLiteralTypo -namespace IRCSharp.Tests.Tokenization; +namespace IRCSharp.Tests.Tokens; [TestClass] public class Format diff --git a/IRCSharp.Tests/Tokenization/Hostmask.cs b/IRCSharp.Tests/Tokens/Hostmask.cs similarity index 97% rename from IRCSharp.Tests/Tokenization/Hostmask.cs rename to IRCSharp.Tests/Tokens/Hostmask.cs index 4d15134..eb6a62c 100644 --- a/IRCSharp.Tests/Tokenization/Hostmask.cs +++ b/IRCSharp.Tests/Tokens/Hostmask.cs @@ -1,4 +1,4 @@ -namespace IRCSharp.Tests.Tokenization; +namespace IRCSharp.Tests.Tokens; [TestClass] public class Hostmask diff --git a/IRCSharp.Tests/Tokenization/Parser.cs b/IRCSharp.Tests/Tokens/Parser.cs similarity index 84% rename from IRCSharp.Tests/Tokenization/Parser.cs rename to IRCSharp.Tests/Tokens/Parser.cs index 6a114a9..96258a9 100644 --- a/IRCSharp.Tests/Tokenization/Parser.cs +++ b/IRCSharp.Tests/Tokens/Parser.cs @@ -1,9 +1,9 @@ using System.Globalization; -using IRCSharp.Tests.Tokenization.Data; +using IRCSharp.Tests.Tokens.Data; using YamlDotNet.Serialization; using YamlDotNet.Serialization.NamingConventions; -namespace IRCSharp.Tests.Tokenization; +namespace IRCSharp.Tests.Tokens; [TestClass] public class Parser @@ -20,7 +20,7 @@ public class Parser [TestMethod] public void Split() { - foreach (var test in LoadYaml("Tokenization/Data/msg-split.yaml").Tests) + foreach (var test in LoadYaml("Tokens/Data/msg-split.yaml").Tests) { var tokens = new Line(test.Input); var atoms = test.Atoms; @@ -37,7 +37,7 @@ public class Parser [TestMethod] public void Join() { - foreach (var test in LoadYaml("Tokenization/Data/msg-join.yaml").Tests) + foreach (var test in LoadYaml("Tokens/Data/msg-join.yaml").Tests) { var atoms = test.Atoms; var line = new Line diff --git a/IRCSharp.Tests/Tokenization/StatefulDecoder.cs b/IRCSharp.Tests/Tokens/StatefulDecoder.cs similarity index 98% rename from IRCSharp.Tests/Tokenization/StatefulDecoder.cs rename to IRCSharp.Tests/Tokens/StatefulDecoder.cs index 8caa443..676d96b 100644 --- a/IRCSharp.Tests/Tokenization/StatefulDecoder.cs +++ b/IRCSharp.Tests/Tokens/StatefulDecoder.cs @@ -1,4 +1,4 @@ -namespace IRCSharp.Tests.Tokenization; +namespace IRCSharp.Tests.Tokens; [TestClass] public class StatefulDecoder diff --git a/IRCSharp.Tests/Tokenization/StatefulEncoder.cs b/IRCSharp.Tests/Tokens/StatefulEncoder.cs similarity index 98% rename from IRCSharp.Tests/Tokenization/StatefulEncoder.cs rename to IRCSharp.Tests/Tokens/StatefulEncoder.cs index 7e4b7ec..95bcebf 100644 --- a/IRCSharp.Tests/Tokenization/StatefulEncoder.cs +++ b/IRCSharp.Tests/Tokens/StatefulEncoder.cs @@ -1,4 +1,4 @@ -namespace IRCSharp.Tests.Tokenization; +namespace IRCSharp.Tests.Tokens; [TestClass] public class StatefulEncoder diff --git a/IRCSharp.Tests/Tokenization/Tokenization.cs b/IRCSharp.Tests/Tokens/Tokenization.cs similarity index 98% rename from IRCSharp.Tests/Tokenization/Tokenization.cs rename to IRCSharp.Tests/Tokens/Tokenization.cs index 1880b48..886a4a9 100644 --- a/IRCSharp.Tests/Tokenization/Tokenization.cs +++ b/IRCSharp.Tests/Tokens/Tokenization.cs @@ -1,4 +1,4 @@ -namespace IRCSharp.Tests.Tokenization; +namespace IRCSharp.Tests.Tokens; [TestClass] public class Tokenization