Пример #1
0
        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);
        }
Пример #2
0
        public void TimeConversionDetect()
        {
            ConvertTimeTZServer check = new ConvertTimeTZServer();
            var warnings = check.GetWarnings(timeConversionSnippet, "");

            Assert.AreEqual(1, warnings.Length);
        }