public void WhenPushingMultipleBracesCountIsIncreased()
 {
     var stack = new UnifiedBraceStacker();
       stack.Push(new CharPos('{', 0));
       stack.Push(new CharPos('(', 0));
       Assert.Equal(2, stack.Count('{'));
 }
 public void WhenPushingMultipleBracesDepthIsIncreased()
 {
     var stack = new UnifiedBraceStacker();
       stack.Push(new CharPos('{', 0));
       stack.Push(new CharPos('(', 0));
       Assert.Equal(1, stack.Pop('{').Depth);
       Assert.Equal(0, stack.Pop('{').Depth);
 }
 public void WhenPopGetsSameBracePushed()
 {
     var stack = new UnifiedBraceStacker();
       stack.Push(new CharPos('{', 0));
       var item = stack.Pop('{');
       Assert.Equal('{', item.Brace);
 }