Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }