public void TestNode_2_3() { var sut = new ExampleModelLoader().LoadModel(); Assert.AreEqual(5, sut.RootNode.GetChildNodes()[0].GetChildNodes()[1].Value); Assert.AreEqual(5, sut.RootNode.GetChildNodes()[1].GetChildNodes()[0].Value); }
public void ExampleTest() { var loader = new ExampleModelLoader(); var model = loader.LoadModel(); var max = ModelLogic.GetMaxSum(model, (n, c) => n.Value % 2 != c.Value % 2, out string path); Assert.AreEqual(16, max); Assert.AreEqual("1 -> 8 -> 5 -> 2", path); }
public void TestNode_1_1() { var sut = new ExampleModelLoader().LoadModel(); Assert.AreEqual(1, sut.RootNode.Value); }