12 references to LambdaComparer
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
SourceGeneration\GeneratorDriverTests.cs (3)
1503.WithComparer(new LambdaComparer<string>((_, _) => throw e)); 1952var compilationSource = ctx.CompilationProvider.WithComparer(new LambdaComparer<Compilation>((c1, c2) => true, 0)); 1990.WithComparer(new LambdaComparer<(Compilation, ImmutableArray<AdditionalText>)>((c1, c2) => c1.Item1 == c2.Item1, 0))
SourceGeneration\StateTableTests.cs (2)
238Assert.True(builder.TryModifyEntry(5, new LambdaComparer<int>((i, j) => true), TimeSpan.Zero, default, EntryState.Modified)); // ((3, EntryState.Cached)) 920.WithComparer(new LambdaComparer<int>((a, b) => false));
SourceGeneration\SyntaxAwareGeneratorTests.cs (7)
1516source = source.WithComparer(new LambdaComparer<string>((a, b) => true)).WithTrackingName("Fields"); 1577source = source.WithComparer(new LambdaComparer<string>((a, b) => false)); 1578source = source.WithComparer(new LambdaComparer<string>((a, b) => false)); 1579source = source.WithComparer(new LambdaComparer<string>((a, b) => false)); 1580source = source.WithComparer(new LambdaComparer<string>((a, b) => false)); 1634var comparerSource = source.WithComparer(new LambdaComparer<string>((a, b) => true)); 1797var comparerSource = source.WithComparer(new LambdaComparer<string>((a, b) => false));