1 implementation of XmlNamespaces
Microsoft.CodeAnalysis (1)
Compilation\IImportScope.cs (1)
149
public ImmutableArray<ImportedXmlNamespace>
XmlNamespaces
{ get; }
64 references to XmlNamespaces
Microsoft.CodeAnalysis (1)
Compilation\IImportScope.cs (1)
15
/// or <see cref="
XmlNamespaces
"/> the location is found through <see
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
InteractiveSessionTests.cs (1)
1187
Assert.Empty(scope.
XmlNamespaces
);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (19)
Compilation\GetImportScopesTests.cs (19)
59
Assert.Empty(scopes.Single().
XmlNamespaces
);
75
Assert.Empty(scopes.Single().
XmlNamespaces
);
106
Assert.Empty(scopes.Single().
XmlNamespaces
);
134
Assert.Empty(scopes.Single().
XmlNamespaces
);
153
Assert.Empty(scopes.Single().
XmlNamespaces
);
248
Assert.Empty(scopes.Single().
XmlNamespaces
);
264
Assert.Empty(scopes.Single().
XmlNamespaces
);
295
Assert.Empty(scopes.Single().
XmlNamespaces
);
323
Assert.Empty(scopes.Single().
XmlNamespaces
);
342
Assert.Empty(scopes.Single().
XmlNamespaces
);
422
Assert.Empty(scopes.Single().
XmlNamespaces
);
441
Assert.Empty(scopes.Single().
XmlNamespaces
);
463
Assert.Empty(scopes.Single().
XmlNamespaces
);
484
Assert.Empty(scopes.Single().
XmlNamespaces
);
520
Assert.Empty(scopes.Single().
XmlNamespaces
);
542
Assert.Empty(scopes.Single().
XmlNamespaces
);
620
Assert.Empty(scopes.Single().
XmlNamespaces
);
656
Assert.Empty(scopes.Single().
XmlNamespaces
);
694
Assert.Empty(scopes.Single().
XmlNamespaces
);
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (43)
Compilation\GetImportScopesTests.vb (43)
78
Assert.Empty(scopes.Single().
XmlNamespaces
)
95
Assert.Empty(scopes.Single().
XmlNamespaces
)
131
Assert.Empty(scopes.Single().
XmlNamespaces
)
157
Assert.Empty(scopes.Single().
XmlNamespaces
)
180
Assert.Empty(scopes.Single().
XmlNamespaces
)
205
Assert.Empty(scopes.Single().
XmlNamespaces
)
225
Assert.Empty(scopes.Single().
XmlNamespaces
)
242
Assert.Empty(scopes.Single().
XmlNamespaces
)
262
Assert.Empty(scopes.Single().
XmlNamespaces
)
283
Assert.Empty(scopes.Single().
XmlNamespaces
)
307
Assert.Empty(scopes.Single().
XmlNamespaces
)
331
Assert.Empty(scopes.Single().
XmlNamespaces
)
348
Assert.Single(scopes.Single().
XmlNamespaces
)
349
Assert.Equal("http://roslyn", scopes.Single().
XmlNamespaces
.Single().XmlNamespace)
350
Assert.True(TypeOf scopes.Single().
XmlNamespaces
.Single().DeclaringSyntaxReference.GetSyntax() Is XmlNamespaceImportsClauseSyntax)
351
Assert.Equal("<xmlns:r1=""http://roslyn"">", scopes.Single().
XmlNamespaces
.Single().DeclaringSyntaxReference.GetSyntax().ToString())
366
Assert.Single(scopes.Single().
XmlNamespaces
)
367
Assert.Equal("http://roslyn", scopes.Single().
XmlNamespaces
.Single().XmlNamespace)
368
Assert.True(TypeOf scopes.Single().
XmlNamespaces
.Single().DeclaringSyntaxReference.GetSyntax() Is XmlNamespaceImportsClauseSyntax)
369
Assert.Equal("<xmlns:r1=""http://roslyn"">", scopes.Single().
XmlNamespaces
.Single().DeclaringSyntaxReference.GetSyntax().ToString())
388
Assert.Single(scopes.Single().
XmlNamespaces
)
389
Assert.Equal("http://roslyn", scopes.Single().
XmlNamespaces
.Single().XmlNamespace)
390
Assert.True(TypeOf scopes.Single().
XmlNamespaces
.Single().DeclaringSyntaxReference.GetSyntax() Is XmlNamespaceImportsClauseSyntax)
391
Assert.Equal("<xmlns:r1=""http://roslyn"">", scopes.Single().
XmlNamespaces
.Single().DeclaringSyntaxReference.GetSyntax().ToString())
407
Assert.Equal(2, scopes.Single().
XmlNamespaces
.Length)
409
Assert.True(scopes.Single().
XmlNamespaces
.Any(Function(x) x.XmlNamespace = "http://roslyn"))
410
Assert.True(TypeOf scopes.Single().
XmlNamespaces
.First().DeclaringSyntaxReference.GetSyntax() Is XmlNamespaceImportsClauseSyntax)
411
Assert.True(scopes.Single().
XmlNamespaces
.Any(Function(x) x.DeclaringSyntaxReference.GetSyntax().ToString() = "<xmlns:r1=""http://roslyn"">"))
413
Assert.True(scopes.Single().
XmlNamespaces
.Any(Function(X) X.XmlNamespace = "http://roslyn2"))
414
Assert.True(TypeOf scopes.Single().
XmlNamespaces
.Last().DeclaringSyntaxReference.GetSyntax() Is XmlNamespaceImportsClauseSyntax)
415
Assert.True(scopes.Single().
XmlNamespaces
.Any(Function(x) x.DeclaringSyntaxReference.GetSyntax().ToString() = "<xmlns:r2=""http://roslyn2"">"))
439
Assert.Single(scopes.Single().
XmlNamespaces
)
440
Assert.Equal("http://roslyn", scopes.Single().
XmlNamespaces
.Single().XmlNamespace)
441
Assert.True(TypeOf scopes.Single().
XmlNamespaces
.Single().DeclaringSyntaxReference.GetSyntax() Is XmlNamespaceImportsClauseSyntax)
442
Assert.Equal("<xmlns:r1=""http://roslyn"">", scopes.Single().
XmlNamespaces
.Single().DeclaringSyntaxReference.GetSyntax().ToString())
463
Assert.Single(scopes.Single().
XmlNamespaces
)
464
Assert.Equal("http://roslyn", scopes.Single().
XmlNamespaces
.Single().XmlNamespace)
465
Assert.True(TypeOf scopes.Single().
XmlNamespaces
.Single().DeclaringSyntaxReference.GetSyntax() Is XmlNamespaceImportsClauseSyntax)
466
Assert.Equal("<xmlns:r1=""http://roslyn"">", scopes.Single().
XmlNamespaces
.Single().DeclaringSyntaxReference.GetSyntax().ToString())
489
Assert.Single(scopes.Single().
XmlNamespaces
)
490
Assert.Equal("http://roslyn", scopes.Single().
XmlNamespaces
.Single().XmlNamespace)
491
Assert.True(TypeOf scopes.Single().
XmlNamespaces
.Single().DeclaringSyntaxReference.GetSyntax() Is XmlNamespaceImportsClauseSyntax)
492
Assert.Equal("<xmlns:r1=""http://roslyn"">", scopes.Single().
XmlNamespaces
.Single().DeclaringSyntaxReference.GetSyntax().ToString())