18 references to IsAccessible
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\AccessibilityTests.cs (4)
43s_testModel.IsAccessible(s_testPosition, null)); 50s_testModel.IsAccessible(-1, s_testSymbol)); 53s_testModel.IsAccessible(s_testModel.SyntaxTree.GetCompilationUnitRoot().FullSpan.End + 1, s_testSymbol)); 60s_testModel.IsAccessible(s_testPosition, s_testSymbol));
Semantics\SemanticErrorTests.cs (2)
3345Assert.False(model.IsAccessible(callPosition, typeArgSymbol), "Protected inner class is inaccessible"); 3349Assert.False(model.IsAccessible(callPosition, typeArgSymbol), "Type should be inaccessible since type argument is inaccessible");
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (12)
Compilation\SemanticModelAPITests.cs (12)
4382Assert.True(semanticModel.IsAccessible(positionInN, fieldX)); 4383Assert.False(semanticModel.IsAccessible(positionInN, fieldY)); 4384Assert.False(semanticModel.IsAccessible(positionInN, fieldZ)); 4385Assert.True(semanticModel.IsAccessible(positionInB, fieldX)); 4386Assert.True(semanticModel.IsAccessible(positionInB, fieldY)); 4387Assert.True(semanticModel.IsAccessible(positionInB, fieldZ)); 4388Assert.True(semanticModel.IsAccessible(positionInBGoo, fieldX)); 4389Assert.True(semanticModel.IsAccessible(positionInBGoo, fieldY)); 4390Assert.True(semanticModel.IsAccessible(positionInBGoo, fieldZ)); 4391Assert.True(semanticModel.IsAccessible(positionInCGoo, fieldX)); 4392Assert.False(semanticModel.IsAccessible(positionInCGoo, fieldY)); 4393Assert.False(semanticModel.IsAccessible(positionInCGoo, fieldZ));