public void SearchStringResultSearchBackTest() { WordSearchLibrary.Search.SearchBack searchBack = new WordSearchLibrary.Search.SearchBack(6, 6); string result = searchBack.SearchStringResult(3, "IT", "XBTIAF" + "NHJTXX"); Assert.AreEqual("IT: (3,0),(2,0)", result); }
public void CheckSearchLimitsSearchBackTest() { WordSearchLibrary.Search.SearchBack searchBack = new WordSearchLibrary.Search.SearchBack(6, 6); bool result = searchBack.CheckSearchLimits(3, "IT", "XBTIAF" + "NHJTXX"); Assert.AreEqual(true, result); }
public void CalculateCorrdinatesSearchBackTest() { WordSearchLibrary.Search.SearchBack searchBack = new WordSearchLibrary.Search.SearchBack(6, 6); searchBack.ColunmPosition = 3; searchBack.RowPosition = 0; string result = searchBack.CalculateCorrdinates(3, 2); Assert.AreEqual("(3,0),(2,0)", result); }