diff --git a/CodeCompletion/Testing.cs b/CodeCompletion/Testing.cs index 144b7f666..114491b69 100644 --- a/CodeCompletion/Testing.cs +++ b/CodeCompletion/Testing.cs @@ -292,15 +292,16 @@ namespace CodeCompletion else System.Diagnostics.Debug.Assert(cond); #else + throw new Exception(cond + " " + message); /*if (message != null) System.Diagnostics.Trace.Assert(cond, message); else System.Diagnostics.Trace.Assert(cond);*/ #endif - + } - - /*private static void TestVBNETExpressionExtract() + + /*private static void TestVBNETExpressionExtract() { string s; int off=0; @@ -334,8 +335,8 @@ namespace CodeCompletion s = parser.LanguageInformation.FindExpression(off,test_str,line,col,out keyw); assert(s.Trim(' ','\n','\t')=="(abc)"); }*/ - - private static void TestExpressionExtract() + + private static void TestExpressionExtract() { string s; int off=0; diff --git a/VisualPlugins/CompilerController/CompilerInformation.cs b/VisualPlugins/CompilerController/CompilerInformation.cs index 5679c88e2..91de03eba 100644 --- a/VisualPlugins/CompilerController/CompilerInformation.cs +++ b/VisualPlugins/CompilerController/CompilerInformation.cs @@ -235,8 +235,8 @@ namespace VisualPascalABCPlugins { CodeCompletion.CodeCompletionTester.Test(); - CodeCompletion.CodeCompletionTester.TestIntellisense(Path.Combine(@"c:\Work\Miks\_PABCNETGitHub\pascalabcnet\TestSuite", "intellisense_tests")); - CodeCompletion.CodeCompletionTester.TestRename(@"c:\Work\Miks\_PABCNETGitHub\pascalabcnet\TestSuite\refactoring_tests\rename_tests"); + CodeCompletion.CodeCompletionTester.TestIntellisense(Path.Combine(Path.Combine(Environment.CurrentDirectory, ".." + Path.DirectorySeparatorChar + "TestSuite"), "intellisense_tests")); + CodeCompletion.CodeCompletionTester.TestRename(Path.Combine(Path.Combine(Environment.CurrentDirectory, ".." + Path.DirectorySeparatorChar + "TestSuite"), Path.Combine("refactoring_tests","rename_tests"))); MessageBox.Show("Done"); }