Esempio n. 1
0
 public void TestWithoutBrackets()
 {
     Assert.AreEqual(true, StackUsing.CheckBKT("alksdlasdl"));
 }
Esempio n. 2
0
 public void TestEmptyString()
 {
     Assert.AreEqual(true, StackUsing.CheckBKT(""));
 }
Esempio n. 3
0
 public void TestFailWrongBrackets()
 {
     Assert.AreEqual(false, StackUsing.CheckBKT("))()"));
 }
Esempio n. 4
0
 public void TestStackWordsInsideManyBrackets()
 {
     Assert.AreEqual(true, StackUsing.CheckBKT("{array[5] arr = new array(10)}"));
 }
Esempio n. 5
0
 public void TestStackUseWordInsideBrackets()
 {
     Assert.AreEqual(true, StackUsing.CheckBKT("(да-да, я )"));
 }
Esempio n. 6
0
 public void TestStackUseManyBrackets()
 {
     // expected | what needs test
     Assert.AreEqual(true, StackUsing.CheckBKT("([{}])()[]<[()]>"));
 }