Ejemplo n.º 1
0
        public void CluesTwo7()
        {
            string[] forTest = { "26", "26", "1", "3", "4", "5" };
            var      test    = SkyScrapersAll.SetHighestNextToAdjacentClueTwoLogic(ref forTest, 6);

            Assert.AreEqual(false, test);
        }
Ejemplo n.º 2
0
        public void CluesTwoOK()
        {
            string[] forTest = { "1245", "124", "1245", "3", "6", "1245" };
            var      answer  = SkyScrapersAll.SetHighestNextToAdjacentClueTwoLogic(ref forTest, 6);

            Assert.AreEqual(false, answer);
        }
Ejemplo n.º 3
0
 public void CluesTwo5()
 {
     string[] forTest = { "1234", "1234", "1", "2" };
     SkyScrapersAll.SetHighestNextToAdjacentClueTwoLogic(ref forTest, 4);
     string[] expected = { "1234", "4", "1", "2" };
     Assert.AreEqual(expected, forTest);
 }
Ejemplo n.º 4
0
 public void CluesTwo1()
 {
     // todo if max is not set and
     // todo if first to edge is set
     // todo and rest set is in order then first not set set max
     string[] forTest  = { "1234", "1234", "1234", "1" };
     string[] expected = { "1234", "1234", "4", "1" };
     SkyScrapersAll.SetHighestNextToAdjacentClueTwoLogic(ref forTest, 4);
     Assert.AreEqual(expected, forTest);
 }