public void ParseInputTest() { var rootNode = Problem8.ParseInput(TestInput); Assert.AreEqual(2, rootNode.Children.Count); Assert.AreEqual(3, rootNode.Metadata.Count); }
public void FindValueTest() { var rootNode = Problem8.ParseInput(TestInput); Assert.AreEqual(66, Problem8.FindValue(rootNode)); }
public void FindMetadataSumTest() { var rootNode = Problem8.ParseInput(TestInput); Assert.AreEqual(138, Problem8.FindMetadataSum(rootNode)); }