2 overrides of GetLogicalNotText
Microsoft.CodeAnalysis.NetAnalyzers.UnitTests (2)
Microsoft.NetCore.Analyzers\Performance\DoNotUseCountWhenAnyCanBeUsedTests.Code.cs (2)
232
internal override object
GetLogicalNotText
(bool negate) => negate ? "!" : string.Empty;
379
internal override object
GetLogicalNotText
(bool negate) => negate ? "Not " : string.Empty;
2 references to GetLogicalNotText
Microsoft.CodeAnalysis.NetAnalyzers.UnitTests (2)
Microsoft.NetCore.Analyzers\Performance\DoNotUseCountWhenAnyCanBeUsedTests.Code.cs (2)
58
=> $@"{
GetLogicalNotText
(negate)}{GetTargetExpressionCode(withPredicate, "Any" + this.MethodSuffix)}";
61
=> $@"{
GetLogicalNotText
(negate)}{GetTargetPropertyCode("IsEmpty")}";