Beispiel #1
0
 public static void VerifyRuntimeWarning(ProtoCore.RuntimeCore runtimeCore, ProtoCore.Runtime.WarningID id)
 {
     Assert.IsTrue(runtimeCore.RuntimeStatus.Warnings.Any(w => w.ID == id), mErrorMessage);
 }
Beispiel #2
0
 public static void VerifyRuntimeWarning(ProtoCore.Runtime.WarningID id)
 {
     VerifyRuntimeWarning(testRuntimeCore, id);
 }
Beispiel #3
0
 public static void LogWarning(this Interpreter dsi, ProtoCore.Runtime.WarningID id, string msg, string fileName = null, int line = -1, int col = -1)
 {
     ProtoCore.RuntimeCore runtimeCore = dsi.runtime.RuntimeCore;
     runtimeCore.RuntimeStatus.LogWarning(id, msg, fileName, line, col);
 }
Beispiel #4
0
 /// <summary>
 /// Executes the code and verifies that the specified runtime warning appears at least once
 /// </summary>
 /// <param name="code"></param>
 public void RunAndVerifyRuntimeWarning(string code, ProtoCore.Runtime.WarningID warningID)
 {
     RunScriptSource(code);
     Assert.IsTrue(testRuntimeCore.RuntimeStatus.Warnings.Any(w => w.ID == warningID));
 }
Beispiel #5
0
 public static void LogWarning(this Core core, ProtoCore.Runtime.WarningID id, string msg, string fileName = null, int line = -1, int col = -1)
 {
     core.RuntimeStatus.LogWarning(id, msg, fileName, line, col);
 }