about summary refs log tree commit diff
path: root/IrcStates/Tests/Channel.cs
diff options
context:
space:
mode:
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"));