public void CluesTwo7() { string[] forTest = { "26", "26", "1", "3", "4", "5" }; var test = SkyScrapersAll.SetHighestNextToAdjacentClueTwoLogic(ref forTest, 6); Assert.AreEqual(false, test); }
public void CluesTwoOK() { string[] forTest = { "1245", "124", "1245", "3", "6", "1245" }; var answer = SkyScrapersAll.SetHighestNextToAdjacentClueTwoLogic(ref forTest, 6); Assert.AreEqual(false, answer); }
public void CluesTwo5() { string[] forTest = { "1234", "1234", "1", "2" }; SkyScrapersAll.SetHighestNextToAdjacentClueTwoLogic(ref forTest, 4); string[] expected = { "1234", "4", "1", "2" }; Assert.AreEqual(expected, forTest); }
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); }