18 lines
523 B
C#
18 lines
523 B
C#
namespace IRCSharp.Tests.States;
|
|
|
|
[TestClass]
|
|
public class Motd
|
|
{
|
|
[TestMethod]
|
|
public void MessageOfTheDay()
|
|
{
|
|
var server = new Server("test");
|
|
server.Parse(new("001 nickname"));
|
|
server.Parse(new("375 * :start of motd"));
|
|
server.Parse(new("372 * :first line of motd"));
|
|
server.Parse(new("372 * :second line of motd"));
|
|
|
|
CollectionAssert.AreEqual(new List<string> {"start of motd", "first line of motd", "second line of motd"},
|
|
server.Motd);
|
|
}
|
|
} |