public void TimeConversionFix() { ConvertTimeTZServer check = new ConvertTimeTZServer(); var fixedCode = check.Fix(timeConversionSnippet, ""); Assert.AreEqual("now = core.host:execute(\"convertTime\", core.TZ_EST, ToTime, now);", fixedCode); }
public void TimeConversionDetect() { ConvertTimeTZServer check = new ConvertTimeTZServer(); var warnings = check.GetWarnings(timeConversionSnippet, ""); Assert.AreEqual(1, warnings.Length); }