public void Common_Test() { // Arrange var solution = new ValidParenthesesSolution(); //act var result = solution.IsValid("[](){}"); //Assert Assert.True(result); }
public void Nested_Brackets_Should_Return_True() { // Arrange var solution = new ValidParenthesesSolution(); //act var result = solution.IsValid("{()}"); //Assert Assert.True(result); }
public void Invalid_Open_Close_Brackets_Should_Return_False() { // Arrange var solution = new ValidParenthesesSolution(); //act var result = solution.IsValid("{(})"); //Assert Assert.False(result); }
public void One_Closed_Bracket_Should_Return_False() { // Arrange var solution = new ValidParenthesesSolution(); //act var result = solution.IsValid("]"); //Assert Assert.False(result); }
public void One_Symbol_Should_Return_False() { // Arrange var solution = new ValidParenthesesSolution(); //act var result = solution.IsValid("{"); //Assert Assert.False(result); }
public void Empty_String_Should_Return_True() { // Arrange var solution = new ValidParenthesesSolution(); //act var result = solution.IsValid(""); //Assert Assert.True(result); }