diff options
author | Ben Harris <ben@tilde.team> | 2020-05-16 22:08:40 -0400 |
---|---|---|
committer | Ben Harris <ben@tilde.team> | 2020-05-16 22:08:40 -0400 |
commit | a1e1922e62419de75d2909dfae1ee7caa9ed487f (patch) | |
tree | 9198d3edbe1363df38fc03e30e4d247be9dd8e60 /IRCTokens/Tests/Format.cs | |
parent | a03daca3d4f52af4fecbb263526a0d61d17776fd (diff) |
Add xmldocs, and handle null bytes
Diffstat (limited to 'IRCTokens/Tests/Format.cs')
-rw-r--r-- | IRCTokens/Tests/Format.cs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/IRCTokens/Tests/Format.cs b/IRCTokens/Tests/Format.cs index 8319069..7224f97 100644 --- a/IRCTokens/Tests/Format.cs +++ b/IRCTokens/Tests/Format.cs @@ -8,7 +8,7 @@ namespace IRCTokens.Tests public class Format { [TestMethod] - public void TestTags() + public void Tags() { var line = new Line("PRIVMSG", "#channel", "hello") { @@ -19,7 +19,7 @@ namespace IRCTokens.Tests } [TestMethod] - public void TestMissingTag() + public void MissingTag() { var line = new Line("PRIVMSG", "#channel", "hello").Format(); @@ -27,7 +27,7 @@ namespace IRCTokens.Tests } [TestMethod] - public void TestNullTag() + public void NullTag() { var line = new Line("PRIVMSG", "#channel", "hello") {Tags = new Dictionary<string, string> {{"a", null}}} .Format(); @@ -36,7 +36,7 @@ namespace IRCTokens.Tests } [TestMethod] - public void TestEmptyTag() + public void EmptyTag() { var line = new Line("PRIVMSG", "#channel", "hello") {Tags = new Dictionary<string, string> {{"a", ""}}} .Format(); @@ -45,7 +45,7 @@ namespace IRCTokens.Tests } [TestMethod] - public void TestSource() + public void Source() { var line = new Line("PRIVMSG", "#channel", "hello") {Source = "nick!user@host"}.Format(); @@ -53,21 +53,21 @@ namespace IRCTokens.Tests } [TestMethod] - public void TestCommandLowercase() + public void CommandLowercase() { var line = new Line {Command = "privmsg"}.Format(); Assert.AreEqual("privmsg", line); } [TestMethod] - public void TestCommandUppercase() + public void CommandUppercase() { var line = new Line {Command = "PRIVMSG"}.Format(); Assert.AreEqual("PRIVMSG", line); } [TestMethod] - public void TestTrailingSpace() + public void TrailingSpace() { var line = new Line("PRIVMSG", "#channel", "hello world").Format(); @@ -75,7 +75,7 @@ namespace IRCTokens.Tests } [TestMethod] - public void TestTrailingNoSpace() + public void TrailingNoSpace() { var line = new Line("PRIVMSG", "#channel", "helloworld").Format(); @@ -83,7 +83,7 @@ namespace IRCTokens.Tests } [TestMethod] - public void TestTrailingDoubleColon() + public void TrailingDoubleColon() { var line = new Line("PRIVMSG", "#channel", ":helloworld").Format(); @@ -91,13 +91,13 @@ namespace IRCTokens.Tests } [TestMethod] - public void TestInvalidNonLastSpace() + public void InvalidNonLastSpace() { Assert.ThrowsException<ArgumentException>(() => { new Line("USER", "user", "0 *", "real name").Format(); }); } [TestMethod] - public void TestInvalidNonLastColon() + public void InvalidNonLastColon() { Assert.ThrowsException<ArgumentException>(() => { new Line("PRIVMSG", ":#channel", "hello").Format(); }); } |