Example #1
0
        public void Clear_Sets_All_Squares_IsChecked_False()
        {
            Random rnd = new Random();

            target.Squares[rnd.Next(24)].IsChecked = true;
            target.Clear();
            int checkedSquares = (from square in target.Squares where (bool)square.IsChecked select square).Count();

            Assert.IsTrue(checkedSquares == 0);
        }