public void WhenPushingMultipleBracesCountIsIncreased() { var stack = new UnifiedBraceStacker(); stack.Push(new CharPos('{', 0)); stack.Push(new CharPos('(', 0)); Assert.Equal(2, stack.Count('{')); }
public void WhenEmptyCountIsZero() { var stack = new UnifiedBraceStacker(); Assert.Equal(0, stack.Count('{')); }