示例#1
0
 public static void VerifyRuntimeWarning(ProtoCore.RuntimeCore runtimeCore, ProtoCore.Runtime.WarningID id)
 {
     Assert.IsTrue(runtimeCore.RuntimeStatus.Warnings.Any(w => w.ID == id), mErrorMessage);
 }
示例#2
0
 public static void VerifyRuntimeWarning(ProtoCore.Runtime.WarningID id)
 {
     VerifyRuntimeWarning(testRuntimeCore, id);
 }
示例#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);
 }
示例#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));
 }
示例#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);
 }