Exemplo n.º 1
0
        public void Fix()
        {
            OldExitFunction check = new OldExitFunction();
            var             code  = check.Fix(oldExitFunction, "");

            Assert.AreEqual(true, code.Contains("function exit(BuySell, use_net)"));
        }
Exemplo n.º 2
0
        public void DetectNomilized()
        {
            OldExitFunction check    = new OldExitFunction();
            var             warnings = check.GetWarnings(normilizedOldExitFunction, "");

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