StringBuilder Test9() { StringBuilder s = new StringBuilder(); s.Append("\n - SemiExpression class extends the interface ITokCollection shown in requirement 3."); s.Append("\n - This Interface have one function that is getSemi()"); s.Append("\n - SemiExpression class implements this function and for now returns one Semi-Expression"); s.Append("\n - This function can be found on line 89 of file :-"); string p = "../.."; string pr = Directory.GetParent(p).ToString(); s.Append("\n - " + pr + "\\SemiExpress\\Semi_Exp.cs"); s.Append("\n - This function Implements as follows"); s.Append(Demo_semi.Test_inter(pr + "\\Toker\\testSemi.txt")); s.Append("\n - Another SemiExpression from different file."); s.Append(Demo_semi.Test_inter(pr + "\\Toker\\Test.txt")); return(s); }
StringBuilder Test6(string p) { StringBuilder s = new StringBuilder(); string pr = Directory.GetParent(p).ToString(); string prr = Directory.GetParent(p).ToString(); s.Append("\n - Test File for requirement 6 is :-").Append("\n - " + pr + "\\Toker\\testSemi.txt"); s.Append("\n - The file has been divided as semiexpression."); s.Append("\n - according to all the rules described in requirement 7,8"); s.Append("\n - This uses a semiex() function which extractes token unitll endcondition() is met."); s.Append("\n - This function can be found in file").Append("\n - " + prr + "\\SemiExpress\\Semi_Exp.cs"); s.Append("\n - On line No. 33."); s.Append("\n - ").Append('-', 100); s.Append("\n - SemiExpression").Append(' ', 47).Append("| Conditions"); s.Append("\n - ").Append('-', 100); s.Append(Demo_semi.Test_semi(pr + "\\Toker\\testSemi.txt")); return(s); }