-
-
Notifications
You must be signed in to change notification settings - Fork 108
Closed
Description
One CS8620 wanring from here #3394 was fixed in 0.72 but the second one is still there at 'Assert.That(value)'
[Test]
[MethodDataSource(nameof(Data))]
public async Task Test(object? value, object? expected)
{
await Assert.That(value).IsEqualTo(expected);
}also an additional CS8619 appeared in this test at 'MethodToTest(data!)':
[Test]
[MethodDataSource(nameof(Data))]
public async Task Test(object? data)
{
await Assert.That(() => MethodToTest(data!)).Throws<ArgumentException>();
Task<object> MethodToTest(object value)
{
if (value is null)
throw new ArgumentNullException(nameof(value));
return Task.FromResult(new object());
}
}Metadata
Metadata
Assignees
Labels
No labels