public void TestMethod1() { // arrange string yaml = @"--- - sequence item 1 - sequence item 2"; // act var docs = Yaml.Parse(yaml); // assert Assert.AreEqual("", docs); }
static YDocument ParseTest() { string yaml = @"--- x: - a - b y: f: [g,h] i: jk"; var docs = Yaml.Parse(yaml); var doc = docs.First(); Console.WriteLine("Key 1: {0}", doc["x"][0]); Console.WriteLine("Key 2: {0}", doc["y"]["f"][0]); Console.WriteLine(docs); return(doc); }