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
public record Test(IEnumerable<string> Moons) { }
[Fact]
public void Testy()
{
var t1 = new Test(new[] { "Aie" });
var t2 = new Test(new[] { "Aie" });
var result = t1.Equals(t2);
Assert.True(result); // Fails
}
[Fact]
public void Testy2()
{
var col = new[] { "Aie" };
var t1 = new Test(col);
var t2 = new Test(col);
var result = t1.Equals(t2);
Assert.True(result); // Succeeds
}
using, IDisposableAsync, blocks
pattern matching:
is (not) null
The text was updated successfully, but these errors were encountered: