public void CanParseFile() { var yaml = new Yaml(); var parsed = yaml.ParseFile(@"Resources\Sample.yaml"); Assert.That(parsed[0].ToString(), Is.EqualTo("hello")); Assert.That(parsed[1].ToString(), Is.EqualTo("there")); }
public void CanParseMoreComplexFile() { var yaml = new Yaml(); var parsed = yaml.ParseFile(@"Resources\NestedSample.yaml"); ValidatePersonYaml(parsed[0] as YamlMapping, "James", "23", new[] { "01234 432123", "01234 455674" }); ValidatePersonYaml(parsed[1] as YamlMapping, "Sara", "23", new[] { "03323 412314", "03432 885443" }); }