Beispiel #1
0
        public void IsSingle()
        {
            ColorSet colorSet = new ColorSet(2);

            Assert.True(colorSet.IsSingle());
            Assert.True(colorSet.GetSingleColor() == 1);
        }
Beispiel #2
0
        public void IsSingle2()
        {
            ColorSet colorSet = new ColorSet(5);

            Assert.True(!colorSet.IsSingle());

            ColorSet cs2 = colorSet.RemoveColor(2);

            Assert.True(cs2.IsSingle());
            Assert.True(cs2.GetSingleColor() == 0);
        }