コード例 #1
0
ファイル: MouseJumpTestBase.cs プロジェクト: heroyct/CodeIQ
        protected Table GetTestTable3()
        {
            Table table = new Table(2, 3);

            table.AddCheesse(new Cell(0, 0));
            table.AddCheesse(new Cell(1, 2));
            return(table);
        }
コード例 #2
0
ファイル: MouseJumpTestBase.cs プロジェクト: heroyct/CodeIQ
        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);
        }
コード例 #3
0
ファイル: TableTest.cs プロジェクト: heroyct/CodeIQ
        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());
        }
コード例 #4
0
ファイル: MouseJumpTestBase.cs プロジェクト: heroyct/CodeIQ
        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);
        }
コード例 #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);
        }