From 023e29ab75f1f413f918346edaddafdf8b1df5ee Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Wed, 13 May 2020 23:34:33 -0400 Subject: implement some stuff --- IrcStates/Tests/Channel.cs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'IrcStates/Tests/Channel.cs') 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 @@ -100,6 +100,30 @@ namespace IrcStates.Tests channel.Users); } + [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() { -- cgit 1.4.1