This class saves the standard, used by a server, the associated IrcShark.Chatting.Irc.IrcClient is connected to.
Inheritance: IIrcObject
        public void Constructor()
        {
            IrcStandardDefinition standard = new IrcStandardDefinition(client);
            char[] tempChar = standard.ChannelPrefixes;

            Assert.AreEqual("rfc1459", standard.Version);

            Assert.AreEqual(2, tempChar.Length);
            Assert.AreEqual('#', tempChar[0]);
            Assert.AreEqual('&', tempChar[1]);
            tempChar = standard.UserPrefixes;
            Assert.AreEqual(2, tempChar.Length);
            Assert.AreEqual('@', tempChar[0]);
            Assert.AreEqual('+', tempChar[1]);
        }
 public void Client()
 {
     IrcStandardDefinition standard = new IrcStandardDefinition(client);
     Assert.IsInstanceOf(typeof(IIrcObject), standard);
     Assert.AreSame(client, standard.Client);
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the IrcClient class without any address to connect to.
 /// </summary>
 public IrcClient()
 {
     client = new TcpClient();
     currentNickname = "Default";
     username = "******";
     usedStandard = new IrcStandardDefinition(this);
 }