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