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
Copy file name to clipboardExpand all lines: src/ReactiveUI.Tests/Routing/Mocks/TestScreen.cs
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,9 @@ public class TestScreen : ReactiveObject, IScreen
18
18
publicRoutingState?Router
19
19
{
20
20
#pragma warning disable CS8766// Nullability of reference types in return type doesn't match implicitly implemented member (possibly because of nullability attributes).
21
+
#pragma warning disable CS8613// Nullability of reference types in return type doesn't match implicitly implemented member.
21
22
get=>_router;
23
+
#pragma warning restore CS8613// Nullability of reference types in return type doesn't match implicitly implemented member.
22
24
#pragma warning restore CS8766// Nullability of reference types in return type doesn't match implicitly implemented member (possibly because of nullability attributes).
fixture.WhenAnyObservable(x =>x.Command1, x =>x.Command1).Subscribe();
30
31
fixture.WhenAnyObservable(x =>x.Command1, x =>x.Command1, x =>x.Command1).Subscribe();
@@ -48,6 +49,7 @@ public void NullObservablesDoNotCauseExceptions()
48
49
fixture.WhenAnyObservable(x =>x.Command1, x =>x.Command1, x =>x.Command1, x =>x.Command1, x =>x.Command1, x =>x.Command1, x =>x.Command1, x =>x.Command1, x =>x.Command1,(zero,one,two,three,four,five,six,seven,eight)=>Unit.Default).Subscribe();
49
50
fixture.WhenAnyObservable(x =>x.Command1, x =>x.Command1, x =>x.Command1, x =>x.Command1, x =>x.Command1, x =>x.Command1, x =>x.Command1, x =>x.Command1, x =>x.Command1, x =>x.Command1,(zero,one,two,three,four,five,six,seven,eight,nine)=>Unit.Default).Subscribe();
50
51
fixture.WhenAnyObservable(x =>x.Command1, x =>x.Command1, x =>x.Command1, x =>x.Command1, x =>x.Command1, x =>x.Command1, x =>x.Command1, x =>x.Command1, x =>x.Command1, x =>x.Command1, x =>x.Command1,(zero,one,two,three,four,five,six,seven,eight,nine,ten)=>Unit.Default).Subscribe();
52
+
#pragma warning restore CS8603// Possible null reference return.
51
53
}
52
54
53
55
[Fact]
@@ -56,7 +58,9 @@ public async Task WhenAnyObservableSmokeTestCombining()
56
58
varfixture=newTestWhenAnyObsViewModel();
57
59
58
60
varlist=newList<string>();
61
+
#pragma warning disable CS8603// Possible null reference return.
59
62
fixture.WhenAnyObservable(x =>x.Command3, x =>x.Command1,(s,i)=>s+" : "+i).ObserveOn(ImmediateScheduler.Instance).Subscribe(list.Add);
63
+
#pragma warning restore CS8603// Possible null reference return.
60
64
61
65
Assert.Equal(0,list.Count);
62
66
@@ -86,7 +90,9 @@ public async Task WhenAnyObservableSmokeTestMerging()
86
90
varfixture=newTestWhenAnyObsViewModel();
87
91
88
92
varlist=newList<int>();
93
+
#pragma warning disable CS8603// Possible null reference return.
89
94
fixture.WhenAnyObservable(x =>x.Command1, x =>x.Command2).ObserveOn(ImmediateScheduler.Instance).Subscribe(list.Add);
95
+
#pragma warning restore CS8603// Possible null reference return.
90
96
91
97
Assert.Equal(0,list.Count);
92
98
@@ -113,7 +119,9 @@ public async Task WhenAnyObservableSmokeTestMerging()
0 commit comments