Beispiel #1
0
 public void WrongOrderBracketsReturnsFalse()
 {
     Assert.IsFalse(BalancedBrackets.HasBalancedBrackets("Launch]Code["));
 }
Beispiel #2
0
 public void StringInsideAndAfterBrackets()
 {
     Assert.IsTrue(BalancedBrackets.HasBalancedBrackets("[Launch]Code"));
 }
Beispiel #3
0
 public void StringAfterBrackets()
 {
     Assert.IsTrue(BalancedBrackets.HasBalancedBrackets("[]LaunchCode"));
 }
Beispiel #4
0
 public void DuplicateBracketsWithNoMatches()
 {
     Assert.IsFalse(BalancedBrackets.HasBalancedBrackets("[LaunchCode["));
 }
Beispiel #5
0
 public void HotMess()
 {
     Assert.IsFalse(BalancedBrackets.HasBalancedBrackets("][Laun]chCode[["));
 }
Beispiel #6
0
 public void MultipleBrackets()
 {
     Assert.IsTrue(BalancedBrackets.HasBalancedBrackets("[Launch[Code]]"));
 }
Beispiel #7
0
 public void SingleEndingBracket()
 {
     Assert.IsFalse(BalancedBrackets.HasBalancedBrackets("LaunchCode]"));
 }
 public void OneBracketReturnsFalse()
 {
     Assert.IsFalse(BalancedBrackets.HasBalancedBrackets("["));
 }
 public void IsNotNull()
 {
     Assert.IsNotNull(BalancedBrackets.HasBalancedBrackets("Test"));
 }
 public void MissingBracketReturnsFalse()
 {
     Assert.IsFalse(BalancedBrackets.HasBalancedBrackets("Test]"));
 }
 public void isNotBalancedReturnsFalse()
 {
     Assert.IsFalse(BalancedBrackets.HasBalancedBrackets("Launch]Code["));
 }
 public void NoBracketsReturnsTrue()
 {
     Assert.IsTrue(BalancedBrackets.HasBalancedBrackets("Test Message"));
 }
Beispiel #13
0
 public void ReverseBracketsReturnsFalse()
 {
     Assert.IsFalse(BalancedBrackets.HasBalancedBrackets("]["));
 }
Beispiel #14
0
 public void MismatchReturnsFalse()
 {
     Assert.IsFalse(BalancedBrackets.HasBalancedBrackets("[launch[]"));
 }
Beispiel #15
0
 public void NoBracketsReturnsTrue()
 {
     Assert.IsTrue(BalancedBrackets.HasBalancedBrackets("LaunchCode"));
 }
 public void OnlyBracketsButBackwardsReturnsFalse()
 {
     Assert.IsFalse(BalancedBrackets.HasBalancedBrackets("]["));
 }
Beispiel #17
0
 public void EmptyString()
 {
     Assert.IsTrue(BalancedBrackets.HasBalancedBrackets(""));
 }
 public void WordOutsideOfBracketsReturnsTrue()
 {
     Assert.IsTrue(BalancedBrackets.HasBalancedBrackets("Launch[Code]"));
 }
Beispiel #19
0
 public void SingleBeginningBracket()
 {
     Assert.IsFalse(BalancedBrackets.HasBalancedBrackets("[LaunchCode"));
 }
 public void NoWordInBracketsReturnsTrue()
 {
     Assert.IsTrue(BalancedBrackets.HasBalancedBrackets("[]Test"));
 }
Beispiel #21
0
 public void IncorrectBracketPair()
 {
     Assert.IsFalse(BalancedBrackets.HasBalancedBrackets("]LaunchCode["));
 }
 public void MisNest()
 {
     Assert.IsFalse(BalancedBrackets.HasBalancedBrackets("[[Tes[]t]"));
 }
Beispiel #23
0
 public void OnlyOneBracket()
 {
     Assert.IsFalse(BalancedBrackets.HasBalancedBrackets("["));
 }
Beispiel #24
0
 public void OnlyBracketsReturnsTrue()
 {
     Assert.IsTrue(BalancedBrackets.HasBalancedBrackets("[]"));
 }
Beispiel #25
0
 public void StringInBracketsReturnsTrue()
 {
     Assert.IsTrue(BalancedBrackets.HasBalancedBrackets("[LaunchCode]"));
 }
Beispiel #26
0
 public void OutsideBracketsReturnsTrue()
 {
     Assert.IsTrue(BalancedBrackets.HasBalancedBrackets("[LaunchCode]"));
 }
Beispiel #27
0
 public void StringInsideAndBeforeBrackets()
 {
     Assert.IsTrue(BalancedBrackets.HasBalancedBrackets("Launch[Code]"));
 }
Beispiel #28
0
 public void InsideBracket()
 {
     Assert.IsTrue(BalancedBrackets.HasBalancedBrackets("Launch[Code]"));
 }
Beispiel #29
0
 public void StringBeforeBrackets()
 {
     Assert.IsTrue(BalancedBrackets.HasBalancedBrackets("LaunchCode[]"));
 }
Beispiel #30
0
 public void InitTest()
 {
     Assert.AreEqual(true, BalancedBrackets.HasBalancedBrackets(""));
 }