Exemple #1
0
        public void ShouldNotValidateStringEmpty()
        {
            string brackets = "";

            bool result = BalancedBrackets.IsBalancedBrackets(brackets);

            Assert.IsFalse(result);
        }
Exemple #2
0
        public void ShouldNotValidateNotBrackets()
        {
            string brackets = "ABC123";

            bool result = BalancedBrackets.IsBalancedBrackets(brackets);

            Assert.IsFalse(result);
        }
Exemple #3
0
        public void ShouldValidateString2()
        {
            string brackets = "[{()}](){}";

            bool result = BalancedBrackets.IsBalancedBrackets(brackets);

            Assert.IsTrue(result);
        }