about summary refs log tree commit diff
path: root/IrcStates/Tests/Channel.cs
diff options
context:
space:
mode:
authorBen Harris <ben@tilde.team>2020-05-13 23:34:33 -0400
committerBen Harris <ben@tilde.team>2020-05-13 23:34:33 -0400
commit023e29ab75f1f413f918346edaddafdf8b1df5ee (patch)
tree9e8c6956c0c0ecac9639b1c727fe94cb253d71f7 /IrcStates/Tests/Channel.cs
parentb93174070a0964f254781686ed2390855127ad7a (diff)
implement some stuff
Diffstat (limited to 'IrcStates/Tests/Channel.cs')
-rw-r--r--IrcStates/Tests/Channel.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/IrcStates/Tests/Channel.cs b/IrcStates/Tests/Channel.cs
index d793920..fea4ddb 100644
--- a/IrcStates/Tests/Channel.cs
+++ b/IrcStates/Tests/Channel.cs
@@ -101,6 +101,30 @@ namespace IrcStates.Tests
         }
 
         [TestMethod]
+        public void QuitSelf()
+        {
+            _server.Parse(new Line("QUIT :i'm outta here"));
+            Assert.IsFalse(_server.Users.Any());
+            Assert.IsFalse(_server.Channels.Any());
+        }
+
+        [TestMethod]
+        public void QuitSelfWithSource()
+        {
+            _server.Parse(new Line(":nickname QUIT :i'm outta here"));
+            Assert.IsFalse(_server.Users.Any());
+            Assert.IsFalse(_server.Channels.Any());
+        }
+
+        [TestMethod]
+        public void QuitOther()
+        {
+            _server.Parse(new Line(":other JOIN #chan"));
+            _server.Parse(new Line(":other QUIT :see ya"));
+            Assert.IsFalse(_server.Users.ContainsKey("other"));
+        }
+
+        [TestMethod]
         public void TopicText()
         {
             _server.Parse(new Line("332 * #chan :test"));