34 references to None
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (34)
SymbolKey\SymbolKeyCompilationsTests.cs (18)
136
Assert.Equal(definition, ResolveSymbol(definition, comp, SymbolKeyComparison.
None
));
137
Assert.Equal(implementation, ResolveSymbol(implementation, comp, SymbolKeyComparison.
None
));
163
Assert.Equal(definition, ResolveSymbol(definition, comp, SymbolKeyComparison.
None
));
164
Assert.Equal(implementation, ResolveSymbol(implementation, comp, SymbolKeyComparison.
None
));
191
Assert.Equal(definition, ResolveSymbol(definition, comp, SymbolKeyComparison.
None
));
192
Assert.Equal(implementation, ResolveSymbol(implementation, comp, SymbolKeyComparison.
None
));
232
AssertSymbolKeysEqual(indexer1, indexer2, SymbolKeyComparison.
None
, expectEqual: false);
234
Assert.Equal(indexer1, ResolveSymbol(indexer1, compilation, SymbolKeyComparison.
None
));
235
Assert.Equal(indexer2, ResolveSymbol(indexer2, compilation, SymbolKeyComparison.
None
));
552
ResolveAndVerifySymbol(newSymbols.First(), originalSymbols.First(), comp1, SymbolKeyComparison.
None
);
553
ResolveAndVerifySymbol(newSymbols.Last(), originalSymbols.Last(), comp1, SymbolKeyComparison.
None
);
581
Assert.Null(ResolveSymbol(typeSym02, comp1, SymbolKeyComparison.
None
));
626
AssertSymbolKeysEqual(assembly2, assembly1, SymbolKeyComparison.
None
, expectEqual: false);
627
Assert.Null(ResolveSymbol(assembly2, compilation1, SymbolKeyComparison.
None
));
640
AssertSymbolKeysEqual(module1, module2, SymbolKeyComparison.
None
, expectEqual: false);
641
Assert.Null(ResolveSymbol(module1, compilation2, SymbolKeyComparison.
None
));
670
AssertSymbolKeysEqual(sym1, sym2, SymbolKeyComparison.
None
, expectEqual: true);
671
var resolved = ResolveSymbol(sym2, comp1, SymbolKeyComparison.
None
);
SymbolKey\SymbolKeyMetadataVsSourceTests.cs (14)
88
ResolveAndVerifySymbol(member03, originalSymbols[0], comp1, SymbolKeyComparison.
None
);
89
ResolveAndVerifySymbol(member01, originalSymbols[1], comp1, SymbolKeyComparison.
None
);
90
ResolveAndVerifySymbol(member05, originalSymbols[2], comp1, SymbolKeyComparison.
None
);
91
ResolveAndVerifySymbol(member02, originalSymbols[3], comp1, SymbolKeyComparison.
None
);
92
ResolveAndVerifySymbol(member04, originalSymbols[4], comp1, SymbolKeyComparison.
None
);
164
ResolveAndVerifySymbol(list[0], originalSymbols[4], model, comp1, SymbolKeyComparison.
None
);
167
ResolveAndVerifySymbol(list[1], originalSymbols[5], model, comp1, SymbolKeyComparison.
None
);
170
ResolveAndVerifySymbol(list[2], originalSymbols[6], model, comp1, SymbolKeyComparison.
None
);
173
ResolveAndVerifySymbol(list[4], originalSymbols[7], model, comp1, SymbolKeyComparison.
None
);
176
ResolveAndVerifySymbol(list[3], originalSymbols[2], model, comp1, SymbolKeyComparison.
None
);
179
ResolveAndVerifySymbol(list[5], originalSymbols[1], model, comp1, SymbolKeyComparison.
None
);
268
ResolveAndVerifySymbol(localType, mtsym20_1, comp20, SymbolKeyComparison.
None
);
272
ResolveAndVerifySymbol(localType, mtsym20_2, comp20, SymbolKeyComparison.
None
);
276
ResolveAndVerifySymbol(localType, mtsym20_3, comp20, SymbolKeyComparison.
None
);
SymbolKey\SymbolKeyTestBase.cs (2)
60
internal static void ResolveAndVerifySymbol(ExpressionSyntax node, ISymbol sourceSymbol, SemanticModel model, CSharpCompilation sourceComp, SymbolKeyComparison comparison = SymbolKeyComparison.
None
)
66
internal static void ResolveAndVerifySymbol(ISymbol symbol1, ISymbol symbol2, Compilation compilation2, SymbolKeyComparison comparison = SymbolKeyComparison.
None
)