public void ThisByIndex() { string channelName = "test"; var channel = new Channel(_image, ChannelType.Red, channelName); _image.AddChannel(channel, 0); var channels = _image.Channels; var found = channels[0]; Assert.IsNotNull(found); Assert.AreEqual(channel.Name, found.Name); }
public void AddChannel() { int before = _image.Channels.Count; var channel = new Channel(_image, "test", new RGB(0, 255, 0)); _image.AddChannel(channel); Assert.AreEqual(before + 1, _image.Channels.Count); }
public void ChannelConstructorOne() { int before = _image.Channels.Count; var channel = new Channel(_image, "test", _width, _height, 100, new RGB(0, 255, 0)); Assert.IsTrue(channel.IsChannel); _image.AddChannel(channel, 0); Assert.AreEqual(before + 1, _image.Channels.Count); }