public void ThenShouldSetGatwayToWhatComesAfterExclamationPointButBeforeFirstSpace() //TODO: this is wrong, but I'm not dealing with it just yet { // Arrange var inputLine = ":[email protected] PRIVMSG ##wsb :test"; //Act var ircMessage = IrcMessage.ParseInput(inputLine); //Assert Assert.That(ircMessage.Gateway, Is.EqualTo("[email protected]")); }
public void ThenShouldSetSenderToWhatComesAfterColonButBeforeExclamationPoint() { // Arrange var inputLine = ":[email protected] PRIVMSG ##wsb :test"; //Act var ircMessage = IrcMessage.ParseInput(inputLine); //Assert Assert.That(ircMessage.Sender, Is.EqualTo("hss")); }
public void ThenShouldSetTargetToWhatComesAfterSecondSpaceButBeforeSpaceColon() { // Arrange var inputLine = ":[email protected] PRIVMSG ##wsb :test"; //Act var ircMessage = IrcMessage.ParseInput(inputLine); //Assert Assert.That(ircMessage.Target, Is.EqualTo("##wsb")); }
public void ThenShouldSetMessageToWhatComesAfterSpaceColonGivenMessageExists() { // Arrange var inputLine = ":[email protected] PRIVMSG ##wsb :test"; //Act var ircMessage = IrcMessage.ParseInput(inputLine); //Assert Assert.That(ircMessage.Message, Is.EqualTo("test")); }