From 21f1e95fb8e935134a969bc3d729964d8d2aadfa Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Thu, 14 May 2020 23:06:10 -0400 Subject: rename Irc to IRC --- IRCStates/Tests/Motd.cs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 IRCStates/Tests/Motd.cs (limited to 'IRCStates/Tests/Motd.cs') diff --git a/IRCStates/Tests/Motd.cs b/IRCStates/Tests/Motd.cs new file mode 100644 index 0000000..2d75982 --- /dev/null +++ b/IRCStates/Tests/Motd.cs @@ -0,0 +1,23 @@ +using System.Collections.Generic; +using IRCTokens; +using Microsoft.VisualStudio.TestTools.UnitTesting; + +namespace IRCStates.Tests +{ + [TestClass] + public class Motd + { + [TestMethod] + public void MessageOfTheDay() + { + var server = new Server("test"); + server.Parse(new Line("001 nickname")); + server.Parse(new Line("375 * :start of motd")); + server.Parse(new Line("372 * :first line of motd")); + server.Parse(new Line("372 * :second line of motd")); + + CollectionAssert.AreEqual(new List {"start of motd", "first line of motd", "second line of motd"}, + server.Motd); + } + } +} -- cgit 1.4.1