Exemple #1
0
        protected Table GetTestTable3()
        {
            Table table = new Table(2, 3);

            table.AddCheesse(new Cell(0, 0));
            table.AddCheesse(new Cell(1, 2));
            return(table);
        }
Exemple #2
0
        protected Table GetTestTable4()
        {
            Table table = new Table(3, 4);

            table.AddCheesse(new Cell(2, 0));
            table.AddCheesse(new Cell(1, 1));
            table.AddCheesse(new Cell(2, 2));
            table.AddCheesse(new Cell(1, 3));
            return(table);
        }
Exemple #3
0
        public void TestAddCheesse()
        {
            Table tt = new Table(3, 3);

            Assert.AreEqual(false, tt.AddCheesse(new Cell(-1, 0)));
            Assert.AreEqual(0, tt.CheeseCells.Count());
            Assert.AreEqual(true, tt.AddCheesse(new Cell(1, 0)));
            Assert.AreEqual(true, tt.AddCheesse(new Cell(2, 0)));
            Assert.AreEqual(2, tt.CheeseCells.Count());
            Assert.AreEqual(false, tt.AddCheesse(new Cell(1, 0)));
            Assert.AreEqual(2, tt.CheeseCells.Count());
        }
Exemple #4
0
        protected Table GetTestTable1()
        {
            Table table = new Table(5, 5);

            table.AddCheesse(new Cell(2, 0));
            table.AddCheesse(new Cell(2, 1));
            table.AddCheesse(new Cell(4, 1));
            table.AddCheesse(new Cell(0, 2));
            table.AddCheesse(new Cell(1, 2));
            table.AddCheesse(new Cell(3, 3));
            table.AddCheesse(new Cell(0, 4));
            table.AddCheesse(new Cell(1, 4));
            return(table);
        }
Exemple #5
0
        private static Table GetJumpTable()
        {
            Table table = new Table(5, 5);

            table.AddCheesse(new Cell(2, 0));
            table.AddCheesse(new Cell(2, 1));
            table.AddCheesse(new Cell(4, 1));
            table.AddCheesse(new Cell(0, 2));
            table.AddCheesse(new Cell(1, 2));
            table.AddCheesse(new Cell(3, 3));
            table.AddCheesse(new Cell(0, 4));
            table.AddCheesse(new Cell(1, 4));
            return(table);
        }