diff options
author | Ben Harris <ben@tilde.team> | 2020-04-28 00:35:52 -0400 |
---|---|---|
committer | Ben Harris <ben@tilde.team> | 2020-04-28 00:35:52 -0400 |
commit | 80afa2c0aec37b7f98cc22615417c36672e695da (patch) | |
tree | 63ca3e309a5daa5093e54bdfdb493115c7a3d942 /IrcTokens/Tests/Tokenization.cs | |
parent | 933a4f85604e21445c9bac8272d64cf3e6f65e00 (diff) |
tidy up, work on stateful
Diffstat (limited to 'IrcTokens/Tests/Tokenization.cs')
-rw-r--r-- | IrcTokens/Tests/Tokenization.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/IrcTokens/Tests/Tokenization.cs b/IrcTokens/Tests/Tokenization.cs index c4970ed..7e2139d 100644 --- a/IrcTokens/Tests/Tokenization.cs +++ b/IrcTokens/Tests/Tokenization.cs @@ -1,5 +1,5 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System.Collections.Generic; +using System.Collections.Generic; +using Microsoft.VisualStudio.TestTools.UnitTesting; namespace IrcTokens.Tests { @@ -87,14 +87,14 @@ namespace IrcTokens.Tests public void TestParamsTrailing() { var line = new Line("PRIVMSG #channel :hello world"); - CollectionAssert.AreEqual(new List<string> { "#channel", "hello world" }, line.Params); + CollectionAssert.AreEqual(new List<string> {"#channel", "hello world"}, line.Params); } [TestMethod] public void TestParamsOnlyTrailing() { var line = new Line("PRIVMSG :hello world"); - CollectionAssert.AreEqual(new List<string> { "hello world" }, line.Params); + CollectionAssert.AreEqual(new List<string> {"hello world"}, line.Params); } [TestMethod] @@ -109,10 +109,10 @@ namespace IrcTokens.Tests public void TestAllTokens() { var line = new Line("@id=123 :nick!user@host PRIVMSG #channel :hello world"); - CollectionAssert.AreEqual(new Dictionary<string, string> { { "id", "123" } }, line.Tags); + CollectionAssert.AreEqual(new Dictionary<string, string> {{"id", "123"}}, line.Tags); Assert.AreEqual("nick!user@host", line.Source); Assert.AreEqual("PRIVMSG", line.Command); - CollectionAssert.AreEqual(new List<string> { "#channel", "hello world" }, line.Params); + CollectionAssert.AreEqual(new List<string> {"#channel", "hello world"}, line.Params); } } } |