Closed yinyue200 closed 6 years ago
In this code, the static Test
constructor is never called, so Test.DefaultComparer
is null
.
You have to force the Test
constructor to be called, e.g., by creating a Test
instance:
[Fact]
public void Test1()
{
var _ = new Test();
Test a = null;
Assert.True(a == null);
}
this code failed with