Exemple #1
0
        public void TestSingleChannelCreation()
        {
            const string      channelName = "channel";
            IChannel <string> channel     = StringChannel.GetChannel(channelName);

            Assert.AreEqual(channelName, channel.ChannelName);
        }
Exemple #2
0
        public void ReusableChannelCreationTest()
        {
            const string      channelName = "channel";
            IChannel <string> channelA    = StringChannel.GetChannel(channelName);
            IChannel <string> channelB    = StringChannel.GetChannel(channelName);

            Assert.AreEqual(channelA, channelB);
        }
Exemple #3
0
 public void SetChannel(string channelName)
 {
     if (Channel != null)
     {
         Channel.Parsed -= ChannelOnParsed;
     }
     Channel         = StringChannel.GetChannel(channelName);
     Channel.Parsed += ChannelOnParsed;
 }
Exemple #4
0
        public void MultipleChannelCreationTest()
        {
            const string channelName  = "channel";
            const string channel2Name = "channels";

            IChannel <string> channel1 = StringChannel.GetChannel(channelName);
            IChannel <string> channel2 = StringChannel.GetChannel(channel2Name);

            Assert.AreEqual(channelName, channel1.ChannelName);
            Assert.AreEqual(channel2Name, channel2.ChannelName);
        }
Exemple #5
0
 public void SetChannel(string channelName)
 {
     Channel = StringChannel.GetChannel(channelName);
 }