コード例 #1
0
        internal static void StackEquals(ContextStack <byte[]> stack1, ContextStack <byte[]> stack2)
        {
            var hash1 = stack1.Select(o => Hashes.Hash256(o)).ToArray();
            var hash2 = stack2.Select(o => Hashes.Hash256(o)).ToArray();

            AssertEx.CollectionEquals(hash1, hash2);
        }
コード例 #2
0
 public IResultWriter BeginContext(string context, Globals.ResultWriterDestination dest)
 {
     if (CurrentContext != null)
     {
         ContextStack.Push(CurrentContext);
     }
     CurrentContextName    = context.Replace(".", "_");
     CurrentContextName   += String.Join("_", ContextStack.Select(x => x.Name));
     CurrentContext        = new ResultContext(context);
     TableIsCreated        = false;
     ContextColumnIsQuoted = new Dictionary <string, bool>();
     //stdOut.WriteLine(string.Concat(Enumerable.Repeat(Delimiter, IndentationLevel)) + context);
     return(this);
 }
コード例 #3
0
 internal static void StackEquals(ContextStack <byte[]> stack1, ContextStack <byte[]> stack2)
 {
     uint256[] hash1 = stack1.Select(o => Hashes.Hash256(o)).ToArray();
     uint256[] hash2 = stack2.Select(o => Hashes.Hash256(o)).ToArray();
     CollectionEquals(hash1, hash2);
 }