public static void FromString() { RawMessagePrefix prefix = new RawMessagePrefix("[email protected]"); Assert.AreEqual("aaa", prefix.Nick); Assert.AreEqual("b", prefix.UserName); Assert.AreEqual("c.d", prefix.Host); Assert.AreEqual(false, prefix.IsIdentified); }
public static new void ToString() { RawMessagePrefix prefix = new RawMessagePrefix(); prefix.Nick = "aaa"; prefix.UserName = "******"; prefix.Host = "c.d"; prefix.IsIdentified = false; Assert.AreEqual("[email protected]", prefix.ToString()); }
public ChannelUser GetUserFromPrefix(RawMessagePrefix prefix) { var user = this[prefix.Nick]; // TODO Assign parts. return user; }