22 references to HashAlgorithm
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (11)
Attributes\AttributeTests_Assembly.cs (11)
602Assert.Equal(AssemblyHashAlgorithm.Sha1, assembly.HashAlgorithm); 633Assert.Equal(AssemblyHashAlgorithm.None, assembly.HashAlgorithm); 663Assert.Equal(AssemblyHashAlgorithm.MD5, assembly.HashAlgorithm); 693Assert.Equal(AssemblyHashAlgorithm.Sha1, assembly.HashAlgorithm); 721Assert.Equal(System.Configuration.Assemblies.AssemblyHashAlgorithm.SHA256, (System.Configuration.Assemblies.AssemblyHashAlgorithm)assembly.HashAlgorithm); 750Assert.Equal(System.Configuration.Assemblies.AssemblyHashAlgorithm.SHA384, (System.Configuration.Assemblies.AssemblyHashAlgorithm)assembly.HashAlgorithm); 783Assert.Equal(System.Configuration.Assemblies.AssemblyHashAlgorithm.SHA512, (System.Configuration.Assemblies.AssemblyHashAlgorithm)assembly.HashAlgorithm); 823Assert.Equal(AssemblyHashAlgorithm.MD5, assembly.HashAlgorithm); 873VerifyAssemblyTable(comp, r => { Assert.Equal(AssemblyHashAlgorithm.MD5, r.HashAlgorithm); }); 877VerifyAssemblyTable(comp, r => { Assert.Equal(AssemblyHashAlgorithm.None, r.HashAlgorithm); }); 881VerifyAssemblyTable(comp, r => { Assert.Equal(12345, (int)r.HashAlgorithm); });
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (8)
Attributes\AssemblyAttributes.vb (8)
792Assert.Equal(AssemblyHashAlgorithm.Sha1, assembly.HashAlgorithm) 823Assert.Equal(AssemblyHashAlgorithm.None, assembly.HashAlgorithm) 854Assert.Equal(AssemblyHashAlgorithm.MD5, assembly.HashAlgorithm) 885Assert.Equal(AssemblyHashAlgorithm.Sha1, assembly.HashAlgorithm) 915Assert.Equal(System.Configuration.Assemblies.AssemblyHashAlgorithm.SHA256, CType(assembly.HashAlgorithm, System.Configuration.Assemblies.AssemblyHashAlgorithm)) 946Assert.Equal(System.Configuration.Assemblies.AssemblyHashAlgorithm.SHA384, CType(assembly.HashAlgorithm, System.Configuration.Assemblies.AssemblyHashAlgorithm)) 980Assert.Equal(System.Configuration.Assemblies.AssemblyHashAlgorithm.SHA512, CType(assembly.HashAlgorithm, System.Configuration.Assemblies.AssemblyHashAlgorithm)) 1024Assert.Equal(AssemblyHashAlgorithm.MD5, assembly.HashAlgorithm)
System.Reflection.Metadata (2)
System\Reflection\Metadata\TypeSystem\AssemblyDefinition.netstandard.cs (1)
18return _reader.GetAssemblyName(Name, Version, Culture, PublicKey, HashAlgorithm, flags);
System\Reflection\Metadata\TypeSystem\AssemblyFile.cs (1)
52/// Hash value of the file content calculated using <see cref="AssemblyDefinition.HashAlgorithm"/>.
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Assemblies\Ecma\EcmaAssembly.GetName.cs (1)
42data.HashAlgorithm = ad.HashAlgorithm.ToConfigurationAssemblyHashAlgorithm();