public void ReturnFAILWhenSentALongStringWithoutBalancedBrackets() { string input = "[[[]]][]"; string expected = "FAIL"; var initialize = new BalancedBracket(); string result = initialize.RunBalancedBracket(input); Assert.AreEqual(expected, result); }
public void ReturnFAILWhenSentAnUnbalancedBracket() { string input = "]["; string expected = "FAIL"; var initialize = new BalancedBracket(); string result = initialize.RunBalancedBracket(input); Assert.AreEqual(expected, result); }
public void ReturnOKWhenSentAStringWithEvenLength() { string input = "[[]]"; string expected = "OK"; var initialize = new BalancedBracket(); string result = initialize.RunBalancedBracket(input); Assert.AreEqual(expected, result); }
public void ReturnEmptyString() { string input = ""; string expected = ""; var initialize = new BalancedBracket(); string result = initialize.RunBalancedBracket(input); Assert.AreEqual(expected, result); }