Exemplo n.º 1
0
 public Task PropertyEqualsZero_Fixed()
 => VerifyAsync(
     methodName: null,
     testSource: SourceProvider.GetCodeWithExpression(
         SourceProvider.GetEqualsTargetPropertyInvocationCode(0, SourceProvider.MemberName)),
     fixedSource: SourceProvider.GetCodeWithExpression(
         SourceProvider.GetFixedIsEmptyPropertyCode(negate: false)),
     extensionsSource: null);
Exemplo n.º 2
0
 public Task NonZeroEqualsCount_WithoutPredicate_FixedAsync()
 => VerifyAsync(
     methodName: SourceProvider.MemberName,
     testSource: SourceProvider.GetCodeWithExpression(
         SourceProvider.GetEqualsTargetExpressionInvocationCode(1, withPredicate: false, "Count"),
         SourceProvider.ExtensionsNamespace),
     fixedSource: SourceProvider.GetCodeWithExpression(
         SourceProvider.GetEqualsTargetPropertyInvocationCode(1, SourceProvider.MemberName),
         SourceProvider.ExtensionsNamespace),
     extensionsSource: null,
     line: 10, column: 30);