Beispiel #1
0
        public void IsDiagonal_True()
        {
            RedBull testRedBull = new RedBull();

            Assert.AreEqual(true, testRedBull.CheckDiagonal("E", "F", 4, 5));
            Assert.AreEqual(false, testRedBull.CheckDiagonal("E", "F", 4, 6));
        }
Beispiel #2
0
        public void IsColumnLegit_InputIsLegit_True()
        {
            RedBull testRedBull = new RedBull();

            Assert.AreEqual(true, testRedBull.IsColumnLegit(1));
            Assert.AreEqual(false, testRedBull.IsColumnLegit(10));
            Assert.AreEqual(false, testRedBull.IsColumnLegit(123));
        }
Beispiel #3
0
        public void IsRowLegit_InputIsLegit_True()
        {
            RedBull testRedBull = new RedBull();

            Assert.AreEqual(true, testRedBull.IsRowLegit("A"));
            Assert.AreEqual(true, testRedBull.IsRowLegit("a"));
            Assert.AreEqual(false, testRedBull.IsRowLegit("5"));
        }