コード例 #1
0
        public void WithNonOptimizableParams()
        {
            NoNonOptimizableParameters check = new NoNonOptimizableParameters();
            var warnings = check.GetWarnings(InitSnippetPositive, "");

            Assert.AreEqual(0, warnings.Length);
        }
コード例 #2
0
        public void FixNonOptimizableParams()
        {
            NoNonOptimizableParameters check = new NoNonOptimizableParameters();
            var newCode = check.Fix(InitSnippetNigative, "");

            Assert.AreEqual(0, check.GetWarnings(newCode, "").Length);
        }