Beispiel #1
0
        public void CanParseText()
        {
            var content = string.Join(Environment.NewLine, new[]
            {
                "- hello",
                "- there"
            });

            var yaml = new Yaml();
            var parsed = yaml.ParseText(content);

            Assert.That(parsed[0].ToString(), Is.EqualTo("hello"));
            Assert.That(parsed[1].ToString(), Is.EqualTo("there"));
        }