public void Parse_ValidHostMask_ReturnsInstance() { string hostMask = "[email protected]"; IrcHostMask parsedHostMask = IrcHostMask.Parse(hostMask); Assert.IsNotNull(parsedHostMask); }
public void Parse_InvalidHostMask_ReturnsNull() { string hostMask = "*****@*****.**"; IrcHostMask parsedHostMask = IrcHostMask.Parse(hostMask); Assert.IsNull(parsedHostMask); }
public void Update_Always_PropertiesChanged() { var client = TestHelper.GetTestIrcClient(); var user = new IrcUser(client, "test_nick", "test_ident", "test_host"); var hostMask = IrcHostMask.Parse("updated_test_nick!update_test_ident@updated_test_host"); user.Update(hostMask); Assert.True(user.NickName == hostMask.NickName); Assert.True(user.Ident == hostMask.Ident); Assert.True(user.Host == hostMask.Host); }