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/Hostmask.cs | |
parent | a03daca3d4f52af4fecbb263526a0d61d17776fd (diff) |
Add xmldocs, and handle null bytes
Diffstat (limited to 'IRCTokens/Tests/Hostmask.cs')
-rw-r--r-- | IRCTokens/Tests/Hostmask.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/IRCTokens/Tests/Hostmask.cs b/IRCTokens/Tests/Hostmask.cs index 2446013..17c5ad7 100644 --- a/IRCTokens/Tests/Hostmask.cs +++ b/IRCTokens/Tests/Hostmask.cs @@ -6,7 +6,7 @@ namespace IRCTokens.Tests public class Hostmask { [TestMethod] - public void TestHostmask() + public void FullHostmask() { var hostmask = new IRCTokens.Hostmask("nick!user@host"); Assert.AreEqual("nick", hostmask.NickName); @@ -15,7 +15,7 @@ namespace IRCTokens.Tests } [TestMethod] - public void TestNoHostName() + public void NoHostName() { var hostmask = new IRCTokens.Hostmask("nick!user"); Assert.AreEqual("nick", hostmask.NickName); @@ -24,7 +24,7 @@ namespace IRCTokens.Tests } [TestMethod] - public void TestNoUserName() + public void NoUserName() { var hostmask = new IRCTokens.Hostmask("nick@host"); Assert.AreEqual("nick", hostmask.NickName); @@ -33,7 +33,7 @@ namespace IRCTokens.Tests } [TestMethod] - public void TestOnlyNickName() + public void OnlyNickName() { var hostmask = new IRCTokens.Hostmask("nick"); Assert.AreEqual("nick", hostmask.NickName); @@ -42,7 +42,7 @@ namespace IRCTokens.Tests } [TestMethod] - public void TestHostmaskFromLine() + public void HostmaskFromLine() { var line = new Line(":nick!user@host PRIVMSG #channel hello"); var hostmask = new IRCTokens.Hostmask("nick!user@host"); @@ -53,7 +53,7 @@ namespace IRCTokens.Tests } [TestMethod] - public void TestEmptyHostmaskFromLine() + public void EmptyHostmaskFromLine() { var line = new Line("PRIVMSG #channel hello"); Assert.IsNull(line.Hostmask.HostName); |