Implemented interface member:
12 references to GetHashCode
Microsoft.Build.Engine.UnitTests (12)
Collections\MSBuildNameIgnoreCaseComparer_Tests.cs (12)
56Assert.Equal(MSBuildNameIgnoreCaseComparer.Default.GetHashCode("foo"), comparer.GetHashCode(s, 2, 3));
161Assert.True(0 == MSBuildNameIgnoreCaseComparer.Default.GetHashCode((string)null));
163MSBuildNameIgnoreCaseComparer.Default.GetHashCode(""); // doesn't throw
164Assert.Equal(MSBuildNameIgnoreCaseComparer.Default.GetHashCode("aBc"), MSBuildNameIgnoreCaseComparer.Default.GetHashCode("AbC"));
175comparer.GetHashCode(""); // does not crash
177Assert.True(0 == comparer.GetHashCode((string)null));
178Assert.Equal(comparer.GetHashCode("aBc"), comparer.GetHashCode("AbC"));
179Assert.Equal(comparer.GetHashCode("xyz", 0, 1), comparer.GetHashCode("x"));
190Assert.Equal(comparer.GetHashCode("xyz", 1, 2), comparer.GetHashCode("YZ"));
201Assert.Equal(comparer.GetHashCode("abcd", 0, 3), comparer.GetHashCode("abc"));