@ -4,6 +4,7 @@
using System ;
using System.CommandLine ;
using System.Linq ;
using Tye.Serialization ;
using YamlDotNet.RepresentationModel ;
@ -96,7 +97,13 @@ namespace Test.Infrastructure
if ( node . Children . Count < otherNode . Children . Count )
{
throw new TyeYamlException ( $"Extra children in actual yaml mapping, Expected: ({node.Start.Line}, {node.Start.Column}). Actual: ({otherNode.Start.Line}, {otherNode.Start.Column})." ) ;
throw new TyeYamlException (
$ @ "Extra children in actual yaml mapping:
Expected : ( { node . Start . Line } , { node . Start . Column } )
{ string . Join ( Environment . NewLine , node . Children . Select ( kvp = > $" " + kvp . Key . ToString ( ) + ": ..." ) ) }
Actual : ( { otherNode . Start . Line } , { otherNode . Start . Column } )
{ string . Join ( Environment . NewLine , otherNode . Children . Select ( kvp = > $" " + kvp . Key . ToString ( ) + ": ..." ) ) } ");
}
}