MoveColumn() public méthode

public MoveColumn ( int ncol, int value ) : void
ncol int
value int
Résultat void
Exemple #1
0
        public void ValidColumnMoveAfterMove()
        {
            Pattern pattern = new Pattern(2, 2);

            pattern.SetRow(0, "1 2");
            pattern.SetRow(1, "4 3");

            pattern.MoveColumn(1, 4);

            Assert.IsTrue(pattern.IsValidColumnMove(0, 4));
            Assert.IsFalse(pattern.IsValidColumnMove(0, 1));
            Assert.IsFalse(pattern.IsValidColumnMove(0, 0));

            Assert.IsFalse(pattern.IsValidColumnMove(1, 3));
            Assert.IsFalse(pattern.IsValidColumnMove(1, 2));
            Assert.IsFalse(pattern.IsValidColumnMove(1, 1));
        }