public void TestSingleChannelCreation() { const string channelName = "channel"; IChannel <string> channel = StringChannel.GetChannel(channelName); Assert.AreEqual(channelName, channel.ChannelName); }
public void ReusableChannelCreationTest() { const string channelName = "channel"; IChannel <string> channelA = StringChannel.GetChannel(channelName); IChannel <string> channelB = StringChannel.GetChannel(channelName); Assert.AreEqual(channelA, channelB); }
public void SetChannel(string channelName) { if (Channel != null) { Channel.Parsed -= ChannelOnParsed; } Channel = StringChannel.GetChannel(channelName); Channel.Parsed += ChannelOnParsed; }
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); }
public void SetChannel(string channelName) { Channel = StringChannel.GetChannel(channelName); }