public void QuestionInputFromFileTest() { PyramidFromFileService pyramidService = new PyramidFromFileService(); MyDictionary theWay = new MyDictionary(); try { theWay = pyramidService.FindWayInFile(@".\Question.txt"); } catch (Exception ex) { Assert.Fail(ex.Message); } Assert.IsTrue(theWay.GetPath() == "215, 192, 269, 836, 805, 728, 433, 528, 863, 632, 931, 778, 413, 310, 253"); }
public void SimpleInputFromFileTest() { PyramidFromFileService pyramidService = new PyramidFromFileService(); MyDictionary theWay = new MyDictionary(); try { theWay = pyramidService.FindWayInFile(@".\SimpleInput.txt"); } catch (Exception ex) { Assert.Fail(ex.Message); } Assert.IsTrue(theWay.GetPath() == "1, 8, 5, 2"); }