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); } }
public SquareCheckedEventArgs(BingoSquare square, bool?state) { this.Square = square; this.IsChecked = state; }
public void MyTestCleanup() { target = null; }
public void MyTestInitialize() { target = new BingoSquare(buzzword,squarePosition); }
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); }
public SquareCheckedEventArgs(BingoSquare square, bool? state) { this.Square = square; this.IsChecked = state; }