static public void CheckTree(this ZoneTable @this, ISqlCallContext ctx, int zoneId, string tree) { string dump = @this.DumpTree(ctx, zoneId).TrimEnd(); tree = tree.Trim().NormalizeEOL().Replace(" ", string.Empty); dump.Should().Be(tree); }
static public bool CheckTree(this ZoneTable @this, ISqlCallContext ctx, int zoneId, string tree) { string dump = @this.DumpTree(ctx, zoneId); tree = tree.NormalizeEOL().Replace(" ", string.Empty); return(dump == tree); }