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(); }
public void Should_return_true_when_string_does_not_contain_any_parenthesis() { ParenthesisString parenthesisString = new ParenthesisString("a"); Check.That(parenthesisString.IsValid()).IsTrue(); }
public void Should_return_false_when_string_contains_only_closing_parenthesis() { ParenthesisString parenthesisString = new ParenthesisString(")"); Check.That(parenthesisString.IsValid()).IsFalse(); }