122 references to TestMethodFromType
Microsoft.CodeAnalysis.NetAnalyzers.UnitTests (122)
Microsoft.CodeQuality.Analyzers\Maintainability\AvoidLengthCalculationWhenSlicingToEndTests.cs (122)
30[|x.{{TestMethodFromType(type)}}(5, x.Length - 5)|]; 41x.{{TestMethodFromType(type)}}(5); 62[|x.{{TestMethodFromType(type)}}(6, x.Length - 1 - 2 - 3)|]; 73x.{{TestMethodFromType(type)}}(6); 96[|x.{{TestMethodFromType(type)}}(Constant, x.Length - Constant)|]; 109x.{{TestMethodFromType(type)}}(Constant); 132[|x.{{TestMethodFromType(type)}}(Field, x.Length - Field)|]; 145x.{{TestMethodFromType(type)}}(Field); 168[|x.{{TestMethodFromType(type)}}(this.Field, x.Length - this.Field)|]; 181x.{{TestMethodFromType(type)}}(this.Field); 203[|x.{{TestMethodFromType(type)}}(local, x.Length - local)|]; 215x.{{TestMethodFromType(type)}}(local); 236[|x.{{TestMethodFromType(type)}}(parameter, x.Length - parameter)|]; 247x.{{TestMethodFromType(type)}}(parameter); 270[|x.{{TestMethodFromType(type)}}(AutoProperty, x.Length - AutoProperty)|]; 283x.{{TestMethodFromType(type)}}(AutoProperty); 306[|x.{{TestMethodFromType(type)}}(this.AutoProperty, x.Length - this.AutoProperty)|]; 319x.{{TestMethodFromType(type)}}(this.AutoProperty); 347x.{{TestMethodFromType(type)}}(Property, x.Length - Property); 373x.{{TestMethodFromType(type)}}(Method(), x.Length - Method()); 394[|x.{{TestMethodFromType(type)}}(+5, x.Length + -5)|]; 405x.{{TestMethodFromType(type)}}(+5); 426x.{{TestMethodFromType(type)}}(~1, x.Length - ~1); 452[|x.{{TestMethodFromType(type)}}(local1, x.Length - local1)|]; 453[|x.{{TestMethodFromType(type)}}(local1 + local2, x.Length - local1 - local2)|]; 454[|x.{{TestMethodFromType(type)}}(local1 + local2, x.Length - (local1 + local2))|]; 455[|x.{{TestMethodFromType(type)}}(Field, x.Length - Field)|]; 456[|x.{{TestMethodFromType(type)}}(Field + 5, x.Length - Field - 5)|]; 457[|x.{{TestMethodFromType(type)}}(Field + 5, x.Length - (Field + 5))|]; 473x.{{TestMethodFromType(type)}}(local1); 474x.{{TestMethodFromType(type)}}(local1 + local2); 475x.{{TestMethodFromType(type)}}(local1 + local2); 476x.{{TestMethodFromType(type)}}(Field); 477x.{{TestMethodFromType(type)}}(Field + 5); 478x.{{TestMethodFromType(type)}}(Field + 5); 499x.{{TestMethodFromType(type)}}(1 * 2, x.Length - 2); 500x.{{TestMethodFromType(type)}}(6 / 3, x.Length - 2); 501x.{{TestMethodFromType(type)}}(5 % 3, x.Length - 2); 502x.{{TestMethodFromType(type)}}(1 << 1, x.Length - 2); 503x.{{TestMethodFromType(type)}}(4 >> 1, x.Length - 2); 504x.{{TestMethodFromType(type)}}(2 & 2, x.Length - 2); 505x.{{TestMethodFromType(type)}}(2 | 0, x.Length - 2); 506x.{{TestMethodFromType(type)}}(2 ^ 0, x.Length - 2); 527x.{{TestMethodFromType(type)}}(0, x.Length - 5); 551x.{{TestMethodFromType(type)}}(Constant1, x.Length - Constant2); 575x.{{TestMethodFromType(type)}}(Field1, x.Length - Field2); 598x.{{TestMethodFromType(type)}}(Local1, x.Length - Local2); 619x.{{TestMethodFromType(type)}}(parameter1, x.Length - parameter2); 643x.{{TestMethodFromType(type)}}(AutoProperty1, x.Length - AutoProperty2); 664x.{{TestMethodFromType(type)}}(5, x.Length - System.Environment.NewLine.Length - 5); 685[|x.{{TestMethodFromType(type)}}(0, x.Length)|]; 696x.{{TestMethodFromType(type)}}(0); 717[|x.{{TestMethodFromType(type)}}(((1 + 2)) + 3, x.Length - 1 - 2 - 3)|]; 728x.{{TestMethodFromType(type)}}(((1 + 2)) + 3); 751[|x.{{TestMethodFromType(type)}}(1 + 2 - (3 + (4 - +5 - 6 + -7) + 8) - 9, x.Length - 1 - 2 + 3 + 4 - 5 - 6 - 7 + 8 + 9)|]; 764x.{{TestMethodFromType(type)}}(1 + 2 - (3 + (4 - +5 - 6 + -7) + 8) - 9); 784[|x.{{TestMethodFromType(type)}}(start: 1, length: x.Length - 1)|]; 795x.{{TestMethodFromType(type)}}(start: 1); 815[|x.{{TestMethodFromType(type)}}(length: x.Length - 1, start: 1)|]; 826x.{{TestMethodFromType(type)}}(start: 1); 847[|x.{{TestMethodFromType(type)}}(1, x.Length - 1)|]; 859x.{{TestMethodFromType(type)}}(1); 902[|x.{{TestMethodFromType(type)}}(5, x.Length - 5)|] 911x.{{TestMethodFromType(type)}}(5) 928[|x.{{TestMethodFromType(type)}}(6, x.Length - 1 - 2 - 3)|] 937x.{{TestMethodFromType(type)}}(6) 956[|x.{{TestMethodFromType(type)}}(Constant, x.Length - Constant)|] 967x.{{TestMethodFromType(type)}}(Constant) 986[|x.{{TestMethodFromType(type)}}(Field, x.Length - Field)|] 997x.{{TestMethodFromType(type)}}(Field) 1016[|x.{{TestMethodFromType(type)}}(Me.Field, x.Length - Me.Field)|] 1027x.{{TestMethodFromType(type)}}(Me.Field) 1045[|x.{{TestMethodFromType(type)}}(local, x.Length - local)|] 1055x.{{TestMethodFromType(type)}}(local) 1072[|x.{{TestMethodFromType(type)}}(parameter, x.Length - parameter)|] 1081x.{{TestMethodFromType(type)}}(parameter) 1100[|x.{{TestMethodFromType(type)}}(AutoProperty, x.Length - AutoProperty)|] 1111x.{{TestMethodFromType(type)}}(AutoProperty) 1130[|x.{{TestMethodFromType(type)}}(Me.AutoProperty, x.Length - Me.AutoProperty)|] 1141x.{{TestMethodFromType(type)}}(Me.AutoProperty) 1166x.{{TestMethodFromType(type)}}(Prop, x.Length - Prop) 1189x.{{TestMethodFromType(type)}}(Method(), x.Length - Method()) 1206[|x.{{TestMethodFromType(type)}}(+5, x.Length + -5)|] 1215x.{{TestMethodFromType(type)}}(+5) 1237[|x.{{TestMethodFromType(type)}}(local1, x.Length - local1)|] 1238[|x.{{TestMethodFromType(type)}}(local1 + local2, x.Length - local1 - local2)|] 1239[|x.{{TestMethodFromType(type)}}(local1 + local2, x.Length - (local1 + local2))|] 1240[|x.{{TestMethodFromType(type)}}(Field, x.Length - Field)|] 1241[|x.{{TestMethodFromType(type)}}(Field + 5, x.Length - Field - 5)|] 1242[|x.{{TestMethodFromType(type)}}(Field + 5, x.Length - (Field + 5))|] 1256x.{{TestMethodFromType(type)}}(local1) 1257x.{{TestMethodFromType(type)}}(local1 + local2) 1258x.{{TestMethodFromType(type)}}(local1 + local2) 1259x.{{TestMethodFromType(type)}}(Field) 1260x.{{TestMethodFromType(type)}}(Field + 5) 1261x.{{TestMethodFromType(type)}}(Field + 5) 1278x.{{TestMethodFromType(type)}}(1 * 2, x.Length - 2) 1279x.{{TestMethodFromType(type)}}(6 / 3, x.Length - 2) 1280x.{{TestMethodFromType(type)}}(6 \ 3, x.Length - 2) 1281x.{{TestMethodFromType(type)}}(5 Mod 3, x.Length - 2) 1282x.{{TestMethodFromType(type)}}(2 ^ 1, x.Length - 2) 1283x.{{TestMethodFromType(type)}}(1 << 1, x.Length - 2) 1284x.{{TestMethodFromType(type)}}(4 >> 1, x.Length - 2) 1285x.{{TestMethodFromType(type)}}(2 And 2, x.Length - 2) 1286x.{{TestMethodFromType(type)}}(2 Or 0, x.Length - 2) 1287x.{{TestMethodFromType(type)}}(2 Xor 0, x.Length - 2) 1288x.{{TestMethodFromType(type)}}(2 Like 0, x.Length - 2) 1305x.{{TestMethodFromType(type)}}(0, x.Length - 5) 1325x.{{TestMethodFromType(type)}}(Constant1, x.Length - Constant2) 1345x.{{TestMethodFromType(type)}}(Field1, x.Length - Field2) 1365x.{{TestMethodFromType(type)}}(local1, x.Length - local2) 1382x.{{TestMethodFromType(type)}}(parameter1, x.Length - parameter2) 1402x.{{TestMethodFromType(type)}}(AutoProperty1, x.Length - AutoProperty2) 1419x.{{TestMethodFromType(type)}}(5, x.Length - System.Environment.NewLine.Length - 5) 1436[|x.{{TestMethodFromType(type)}}(0, x.Length)|] 1445x.{{TestMethodFromType(type)}}(0) 1462[|x.{{TestMethodFromType(type)}}(((1 + 2)) + 3, x.Length - 1 - 2 - 3)|] 1471x.{{TestMethodFromType(type)}}(((1 + 2)) + 3) 1488[|x.{{TestMethodFromType(type)}}(1 + 2 - (3 + (4 - +5 - 6 + -7) + 8) - 9, x.Length - 1 - 2 + 3 + 4 - 5 - 6 - 7 + 8 + 9)|] 1497x.{{TestMethodFromType(type)}}(1 + 2 - (3 + (4 - +5 - 6 + -7) + 8) - 9) 1563[|x.{{TestMethodFromType(type)}}(1, x.Length - 1)|] 1573x.{{TestMethodFromType(type)}}(1)