OSDN Git Service
(root)
/
opentween
/
open-tween.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d78a474
)
Task.Resultを使用しない (xUnit1031)
author
Kimura Youichi
<kim.upsilon@bucyou.net>
Wed, 6 Dec 2023 18:19:03 +0000
(
03:19
+0900)
committer
Kimura Youichi
<kim.upsilon@bucyou.net>
Wed, 6 Dec 2023 18:36:03 +0000
(
03:36
+0900)
https://xunit.net/xunit.analyzers/rules/xUnit1031
OpenTween.Tests/AsyncTimerTest.cs
patch
|
blob
|
history
diff --git
a/OpenTween.Tests/AsyncTimerTest.cs
b/OpenTween.Tests/AsyncTimerTest.cs
index
c3f1a78
..
d897fe1
100644
(file)
--- a/
OpenTween.Tests/AsyncTimerTest.cs
+++ b/
OpenTween.Tests/AsyncTimerTest.cs
@@
-86,7
+86,7
@@
namespace OpenTween
var timeout = Task.Delay(1000);
Assert.NotEqual(timeout, await Task.WhenAny(tcs.Task, timeout));
- Assert.IsType<ApplicationException>(
tcs.Task.Result
);
+ Assert.IsType<ApplicationException>(
await tcs.Task
);
}
finally
{