Ejemplo n.º 1
0
        public void Should_return_true_when_string_contains_only_opening_and_closing_parenthesis_in_the_right_order()
        {
            ParenthesisString parenthesisString = new ParenthesisString("()");

            Check.That(parenthesisString.IsValid()).IsTrue();
        }
Ejemplo n.º 2
0
        public void Should_return_true_when_string_does_not_contain_any_parenthesis()
        {
            ParenthesisString parenthesisString = new ParenthesisString("a");

            Check.That(parenthesisString.IsValid()).IsTrue();
        }
Ejemplo n.º 3
0
        public void Should_return_false_when_string_contains_only_closing_parenthesis()
        {
            ParenthesisString parenthesisString = new ParenthesisString(")");

            Check.That(parenthesisString.IsValid()).IsFalse();
        }