Пример #1
0
        public void HasColor2()
        {
            ColorSet colorSet = new ColorSet(5);

            Assert.True(colorSet.HasColor(0));
            Assert.True(!colorSet.HasColor(1));
            Assert.True(colorSet.HasColor(2));
            Assert.True(!colorSet.HasColor(3));
        }
Пример #2
0
        public void AddColor()
        {
            ColorSet colorSet = new ColorSet(6);

            Assert.True(!colorSet.HasColor(0));

            ColorSet newColorSet = colorSet.AddColor(0);

            Assert.True(newColorSet.HasColor(0));
            Assert.True(!colorSet.HasColor(0));
        }
Пример #3
0
        public void Basic()
        {
            ColorSet colorSet = new ColorSet();

            Assert.True(colorSet.IsEmpty);
            Assert.True(!colorSet.HasColor(0));
        }