Example #1
0
        private void initializeRow(Color aColor, int aMaxCount, int aStep)
        {
            var row = new LightRow();

            row.CreateRow(aColor, aMaxCount, aStep);
            rows.Add(row);
        }
Example #2
0
        public void TestLightRowRemainder()
        {
            var row = new LightRow();

            row.CreateRow(Color.Yellow, 24, 5);
            int remainder;

            row.SetLights(17, out remainder);
            var str = row.GetRowOfLightsString();

            Assert.AreEqual(remainder, 2);
        }