コード例 #1
0
        private void SetupSquares()
        {
            this.Squares.Clear();
            for (int i = 0; i < 25; i++)
            {
                BingoSquare square = new BingoSquare(DEFAULT_TEXT, i);

                if (i == CENTER_SQUARE)
                {
                    square.Buzzword    = "BINGO";
                    square.IsConfirmed = true;
                }

                this.Squares.Add(square);
            }
        }
コード例 #2
0
ファイル: BingoCard.cs プロジェクト: spzenk/sfdocsamples
        private void SetupSquares()
        {
            this.Squares.Clear();
            for (int i = 0; i < 25; i++)
            {
                BingoSquare square = new BingoSquare(DEFAULT_TEXT, i);

                if (i == CENTER_SQUARE)
                {
                    square.Buzzword = "BINGO";
                    square.IsConfirmed = true;
                }

                this.Squares.Add(square);
            }
        }
コード例 #3
0
 public SquareCheckedEventArgs(BingoSquare square, bool?state)
 {
     this.Square    = square;
     this.IsChecked = state;
 }
コード例 #4
0
 public void MyTestCleanup()
 {
     target = null;
 }
コード例 #5
0
 public void MyTestInitialize()
 {
     target = new BingoSquare(buzzword,squarePosition);
 }
コード例 #6
0
        public void CheckSquareCommand_Execute_Toggles_BingoSquare_IsCheckedProperty()
        {
            BingoSquare square = new BingoSquare("Test",0);
            bool? checkedState = square.IsChecked;

            target.CheckSquareCommand.Execute(square);

            Assert.AreEqual<bool?>(!checkedState, square.IsChecked);
        }
コード例 #7
0
 public SquareCheckedEventArgs(BingoSquare square, bool? state)
 {
     this.Square = square;
     this.IsChecked = state;
 }