You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Delete test testing a weird delegate implementation detail (dotnet#102647)
Apparently on CoreCLR delegates pointing to different static methods on the same type have the same HashCode. It doesn't sound like something that should be enshrined in tests. Putting this out in a separate PR to potentially get more eyes on this.
Copy file name to clipboardExpand all lines: src/tests/CoreMangLib/system/delegate/delegate/delegategethashcode1.cs
-67Lines changed: 0 additions & 67 deletions
Original file line number
Diff line number
Diff line change
@@ -43,8 +43,6 @@ public bool RunTests()
43
43
retVal=PosTest1()&&retVal;
44
44
retVal=PosTest2()&&retVal;
45
45
retVal=PosTest3()&&retVal;
46
-
retVal=PosTest4()&&retVal;
47
-
retVal=PosTest6()&&retVal;
48
46
retVal=PosTest7()&&retVal;
49
47
retVal=PosTest8()&&retVal;
50
48
returnretVal;
@@ -150,71 +148,6 @@ public bool PosTest3()
150
148
// Returns true if the expected result is right
151
149
// Returns false if the expected result is wrong
152
150
// the same delegate object is booldelegate
153
-
publicboolPosTest4()
154
-
{
155
-
boolretVal=true;
156
-
157
-
TestLibrary.TestFramework.BeginScenario("PosTest4: Use the same type's different static method to create two delegate which delegate object is the same,their hashcode is equal ");
TestLibrary.TestFramework.BeginScenario("PosTest6: Use the different type's same static method to create two delegate ,which delegate object is the same,their hashcode is equal");
0 commit comments