Ejemplo n.º 1
0
 public void YamlParserShouldParseCorrectly()
 {
     using (var stream = new MemoryStream(Encoding.UTF8.GetBytes(Document)))
     {
         SourceNode result = new YamlSourceParser().Parse(stream);
         SourceNodeEqualityAsserter.AssertNode(ExpectedResult, result);
     }
 }
Ejemplo n.º 2
0
        public void ShouldBeFlattenCorrectly()
        {
            var input    = Input();
            var expected = Expected();

            SourceNode result = new Flattener(input).Do();

            SourceNodeEqualityAsserter.AssertNode(expected, result);
        }