12 references to LoadFromFile
Microsoft.CodeAnalysis.UnitTests (12)
MetadataReferences\AssemblyIdentityComparerTests.cs (1)
31
using (var fusionPolicy = policyPath != null ? FusionAssemblyPortabilityPolicy.
LoadFromFile
(policyPath) : null)
MetadataReferences\AssemblyPortabilityPolicyTests.cs (11)
30
using (var policy = FusionAssemblyPortabilityPolicy.
LoadFromFile
(appConfigPath))
80
Assert.Throws<COMException>(() => FusionAssemblyPortabilityPolicy.
LoadFromFile
(appConfig.Path));
89
Assert.Throws<COMException>(() => FusionAssemblyPortabilityPolicy.
LoadFromFile
(appConfig.Path));
105
Assert.Throws<COMException>(() => FusionAssemblyPortabilityPolicy.
LoadFromFile
(appConfig.Path));
389
var policy = FusionAssemblyPortabilityPolicy.
LoadFromFile
(appConfig.Path);
402
var policy1 = FusionAssemblyPortabilityPolicy.
LoadFromFile
(appConfig.Path);
403
var policy2 = FusionAssemblyPortabilityPolicy.
LoadFromFile
(appConfig.Path);
408
policy2 = FusionAssemblyPortabilityPolicy.
LoadFromFile
(appConfig.Path);
413
policy2 = FusionAssemblyPortabilityPolicy.
LoadFromFile
(appConfig.Path);
427
policy2 = FusionAssemblyPortabilityPolicy.
LoadFromFile
(appConfig.Path);
432
policy2 = FusionAssemblyPortabilityPolicy.
LoadFromFile
(appConfig2.Path);