public void IdenticalSinglePropertyDocuments() { var originalDocument = @" lorem: ipsum "; var changedDocument = @" lorem: ipsum "; var result = new MappingNodeComparer().Compare(new Path(), (YamlMappingNode)Parser.Parse(originalDocument), (YamlMappingNode)Parser.Parse(changedDocument)); Assert.Empty(result); }
public void DetectChangedScalarNode() { var originalDocument = @" lorem: ipsum "; var changedDocument = @" lorem: dolor "; var result = new MappingNodeComparer().Compare(new Path(), (YamlMappingNode)Parser.Parse(originalDocument), (YamlMappingNode)Parser.Parse(changedDocument)); Assert.Single(result); Assert.Equal(new[] { "lorem" }, result.Single().Path.Segments); }