2 instantiations of AssemblyNameComparer
Microsoft.Build (2)
AssemblyNameComparer.cs (2)
21
internal static readonly IComparer Comparer = new
AssemblyNameComparer
(false);
26
internal static readonly IComparer ComparerConsiderRetargetable = new
AssemblyNameComparer
(true);
13 references to AssemblyNameComparer
Microsoft.Build (1)
AssemblyNameExtension.cs (1)
231
return new HashSet<AssemblyNameExtension>(
AssemblyNameComparer
.GenericComparerConsiderRetargetable);
Microsoft.Build.Engine.UnitTests (12)
AssemblyNameEx_Tests.cs (12)
623
Assert.True(
AssemblyNameComparer
.GenericComparer.Equals(a, b));
624
Assert.False(
AssemblyNameComparer
.GenericComparer.Equals(a, d));
626
Assert.False(
AssemblyNameComparer
.GenericComparerConsiderRetargetable.Equals(a, b));
627
Assert.True(
AssemblyNameComparer
.GenericComparerConsiderRetargetable.Equals(a, c));
628
Assert.False(
AssemblyNameComparer
.GenericComparerConsiderRetargetable.Equals(a, d));
631
Assert.Equal(0,
AssemblyNameComparer
.Comparer.Compare(a, b));
632
Assert.True(
AssemblyNameComparer
.Comparer.Compare(a, d) > 0);
633
Assert.True(
AssemblyNameComparer
.Comparer.Compare(a, e) < 0);
635
Assert.Equal(0,
AssemblyNameComparer
.ComparerConsiderRetargetable.Compare(a, c));
636
Assert.True(
AssemblyNameComparer
.ComparerConsiderRetargetable.Compare(a, b) > 0);
637
Assert.True(
AssemblyNameComparer
.ComparerConsiderRetargetable.Compare(a, d) > 0);
638
Assert.True(
AssemblyNameComparer
.ComparerConsiderRetargetable.Compare(a, e) < 0);