Microsoft.CodeQuality.Analyzers\Maintainability\AvoidDeadConditionalCode_ValueContentAnalysis.cs (69)
101GetCSharpResultAt(9, 17, "param3 == 3", "true"));
137GetCSharpResultAt(9, 17, "param == 1", "true"));
174GetCSharpResultAt(7, 13, @"param == """"", "true"),
176GetCSharpResultAt(11, 13, @""""" != param", "false"));
216GetCSharpResultAt(7, 13, @"param == 0", "true"),
218GetCSharpResultAt(11, 13, @"0 != param", "false"));
264GetCSharpResultAt(10, 18, "param == str", "true"),
266GetCSharpResultAt(16, 17, "param != str", "false"));
309GetCSharpResultAt(7, 28, "param == str", "true"),
311GetCSharpResultAt(11, 28, "param != str", "false"));
357GetCSharpResultAt(10, 18, "param == str", "false"),
359GetCSharpResultAt(16, 17, "param != str", "true"));
408GetCSharpResultAt(10, 18, "param == str", "false"),
410GetCSharpResultAt(16, 17, "param != str", "true"));
550GetCSharpResultAt(10, 17, "param == str", "true"),
552GetCSharpResultAt(13, 17, "param != str", "false"));
612GetCSharpResultAt(10, 17, "param == str", "true"),
614GetCSharpResultAt(13, 17, "param != str", "false"));
675GetCSharpResultAt(20, 13, "param == str", "true"),
677GetCSharpResultAt(23, 13, "param != str", "false"));
827GetCSharpResultAt(10, 17, "param == str", "true"),
829GetCSharpResultAt(13, 17, "param != str", "false"),
831GetCSharpResultAt(27, 13, "str == param2", "true"),
833GetCSharpResultAt(30, 13, "str != param2", "false"),
835GetCSharpResultAt(35, 13, "str == param", "true"),
837GetCSharpResultAt(38, 13, "str != param", "false"));
888GetCSharpResultAt(10, 17, "param == str", "true"),
890GetCSharpResultAt(13, 17, "param != str", "false"),
892GetCSharpResultAt(27, 13, "str == param2", "true"),
894GetCSharpResultAt(30, 13, "str != param2", "false"),
896GetCSharpResultAt(35, 13, "str == param", "true"),
898GetCSharpResultAt(38, 13, "str != param", "false"));
1032GetCSharpResultAt(21, 17, "testKind != Kind.Kind2", "false"));
1058GetCSharpResultAt(7, 46, "param == param2", "true"),
1060GetCSharpResultAt(12, 29, "param2 != str", "false"));
1103GetCSharpResultAt(7, 46, "param == param2", "true"),
1105GetCSharpResultAt(12, 29, "param2 != str", "false"));
1423GetCSharpResultAt(11, 58, "param != strConst", "false"),
1425GetCSharpResultAt(16, 58, "param == strConst", "true"));
1515GetCSharpResultAt(8, 56, "param == str", "true"));
1555GetCSharpResultAt(15, 40, "s1 == s3", "true"));
1576GetCSharpResultAt(10, 46, "s1 == s3", "true"));
1598GetCSharpResultAt(10, 48, "s1 == s3", "true"),
1600GetCSharpResultAt(11, 56, "s4 == s6", "true"));
1648GetCSharpResultAt(15, 13, "c1 is 5", "true"),
1650GetCSharpResultAt(24, 13, "c2 is 5", "false"),
1652GetCSharpResultAt(33, 13, "c3 is 5", "true"));
1873GetCSharpResultAt(7, 13, "(int)o == i", "true"),
1875GetCSharpResultAt(12, 13, "(int)o2 == i", "true"),
1877GetCSharpResultAt(17, 13, "(int)o3 == i", "true"));
1959GetCSharpResultAt(7, 13, "(int)o == i", "true"));
2114GetCSharpResultAt(30, 13, "a2 == a", "true"),
2116GetCSharpResultAt(42, 13, "a2 == null", "false"),
2118GetCSharpResultAt(54, 13, "a == a2", "true"),
2120GetCSharpResultAt(54, 24, "x == 0", "true"),
2122GetCSharpResultAt(54, 34, "y == 1", "true"),
2124GetCSharpResultAt(66, 13, "null == a2", "false"),
2202GetCSharpResultAt(16, 13, "x.Item1.Item1 == a", "true"),
2204GetCSharpResultAt(16, 35, "x.Item1.a == a", "true"),
2206GetCSharpResultAt(16, 53, "x.Item2 == 1", "true"),
2208GetCSharpResultAt(26, 13, "x.a == a", "true"),
2210GetCSharpResultAt(26, 25, "x.Item2 == a2", "true"),
2212GetCSharpResultAt(49, 13, "arg.a == a", "false"),
2214GetCSharpResultAt(49, 27, "arg.Item2 == a2", "false"),
2794GetCSharpResultAt(39, 17, "t.A.IntProperty == 1", "true"));
2835GetCSharpResultAt(14, 20, "t != null", "true")
2887GetCSharpResultAt(22, 26, "t != null", "true"),
2889GetCSharpResultAt(25, 26, "t == null", "true")
2991GetCSharpResultAt(10, 20, "(int)t == 10", "true")