OSDN Git Service
(root)
/
opentween
/
open-tween.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
C# 8.0 のnull許容参照型を有効化
[opentween/open-tween.git]
/
OpenTween.Tests
/
TestUtils.cs
diff --git
a/OpenTween.Tests/TestUtils.cs
b/OpenTween.Tests/TestUtils.cs
index
f0eb41a
..
aef4bcd
100644
(file)
--- a/
OpenTween.Tests/TestUtils.cs
+++ b/
OpenTween.Tests/TestUtils.cs
@@
-57,7
+57,7
@@
namespace OpenTween
public static async Task NotRaisesAsync<T>(Action<EventHandler<T>> attach, Action<EventHandler<T>> detach, Func<Task> testCode)
where T : EventArgs
{
- T raisedEvent = null;
+ T
?
raisedEvent = null;
void handler(object s, T e)
=> raisedEvent = e;