Skip to content

Commit f38bd78

Browse files
committed
Merge branch 'master' of https://github.com/rsdn/CodeJam
2 parents 31f00c8 + 99eb539 commit f38bd78

File tree

5 files changed

+7
-140
lines changed

5 files changed

+7
-140
lines changed

Main/src/CodeJam.Main.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@
110110
<Compile Include="Collections\EnumerableExtensions.Page.cs" />
111111
<Compile Include="Collections\EnumerableExtensions.Slice.cs" />
112112
<Compile Include="Collections\NamespaceDoc.cs" />
113-
<Compile Include="Collections\PublicMemberEqualityComparer.cs" />
114113
<Compile Include="Collections\QueryableExtensions.ApplyOrder.cs" />
115114
<Compile Include="Collections\QueryableExtensions.cs" />
116115
<Compile Include="EnumHelper.cs" />

Main/src/Collections/PublicMemberEqualityComparer.cs

Lines changed: 0 additions & 40 deletions
This file was deleted.

Main/tests/CodeJam.Main-Tests.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
<Compile Include="Collections\MinMaxByTests.cs" />
6060
<Compile Include="Collections\ArrayExtensionsTest.cs" />
6161
<Compile Include="Collections\ComparerBuilderTests.cs" />
62-
<Compile Include="Collections\PublicMemberEqualityComparerTests.cs" />
6362
<Compile Include="Collections\QueryableExtensionsTests.ApplyOrder.cs" />
6463
<Compile Include="Collections\DictionaryExtensionsTest.cs" />
6564
<Compile Include="Collections\MinMaxByTests.generated.cs">

Main/tests/Collections/ComparerBuilderTests.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public void GetHashCodeTest()
3232
[Test]
3333
public void EqualsTest()
3434
{
35-
var eq = new PublicMemberEqualityComparer<TestClass>();
35+
var eq = ComparerBuilder<TestClass>.GetEqualityComparer();
3636

3737
Assert.That(eq.Equals(new TestClass(), new TestClass()), Is.True);
3838
Assert.That(eq.Equals(null, null), Is.True);
@@ -85,7 +85,8 @@ public void DistinctTest()
8585
null,
8686
new TestClass { Field1 = 2, Prop2 = "1" },
8787
new TestClass { Field1 = 2, Prop2 = "2" },
88-
new TestClass { Field1 = 2, Prop2 = "2" }
88+
new TestClass { Field1 = 2, Prop2 = "2" },
89+
null,
8990
};
9091

9192
Assert.That(arr.Distinct(eq).Count(), Is.EqualTo(5));
@@ -102,7 +103,8 @@ public void DistinctByMember1Test()
102103
null,
103104
new TestClass { Field1 = 2, Prop2 = "1" },
104105
new TestClass { Field1 = 2, Prop2 = "2" },
105-
new TestClass { Field1 = 2, Prop2 = "2" }
106+
new TestClass { Field1 = 2, Prop2 = "2" },
107+
null,
106108
};
107109

108110
Assert.That(arr.Distinct(eq).Count(), Is.EqualTo(3));
@@ -119,7 +121,8 @@ public void DistinctByMember2Test()
119121
null,
120122
new TestClass { Field1 = 2, Prop2 = "1" },
121123
new TestClass { Field1 = 2, Prop2 = "2" },
122-
new TestClass { Field1 = 2, Prop2 = "2" }
124+
new TestClass { Field1 = 2, Prop2 = "2" },
125+
null,
123126
};
124127

125128
Assert.That(arr.Distinct(eq).Count(), Is.EqualTo(5));

Main/tests/Collections/PublicMemberEqualityComparerTests.cs

Lines changed: 0 additions & 94 deletions
This file was deleted.

0 commit comments

Comments
 (0)