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)); }
public void AddColor2() { ColorSet colorSet = new ColorSet(4); ColorSet cs2 = colorSet.AddColor(0); ColorSet cs3 = cs2.AddColor(3); ColorSet final = new ColorSet(1 + 4 + 8); Assert.True(colorSet != final); Assert.True(cs2 != final); Assert.True(cs3 == final); }