@@ -29,8 +29,8 @@ public async Task NotAGitRepositoryShownWhenNoRepository()
2929
3030 await Initialize ( target ) ;
3131
32- Assert . IsAssignableFrom < INotAGitRepositoryViewModel > ( target . Content ) ;
33- }
32+ Assert . That ( target . Content , Is . InstanceOf < INotAGitRepositoryViewModel > ( ) ) ;
33+ }
3434
3535 [ Test ]
3636 public async Task NotAGitHubRepositoryShownWhenRepositoryCloneUrlIsNull ( )
@@ -41,8 +41,8 @@ public async Task NotAGitHubRepositoryShownWhenRepositoryCloneUrlIsNull()
4141
4242 await Initialize ( target ) ;
4343
44- Assert . IsAssignableFrom < INotAGitHubRepositoryViewModel > ( target . Content ) ;
45- }
44+ Assert . That ( target . Content , Is . InstanceOf < INotAGitHubRepositoryViewModel > ( ) ) ;
45+ }
4646
4747 [ Test ]
4848 public async Task NotAGitHubRepositoryShownWhenRepositoryIsNotAGitHubInstance ( )
@@ -52,8 +52,8 @@ public async Task NotAGitHubRepositoryShownWhenRepositoryIsNotAGitHubInstance()
5252
5353 await Initialize ( target ) ;
5454
55- Assert . IsAssignableFrom < INotAGitHubRepositoryViewModel > ( target . Content ) ;
56- }
55+ Assert . That ( target . Content , Is . InstanceOf < INotAGitHubRepositoryViewModel > ( ) ) ;
56+ }
5757
5858 [ Test ]
5959 public async Task NotAGitHubRepositoryShownWhenRepositoryIsADeletedGitHubRepo ( )
@@ -63,8 +63,8 @@ public async Task NotAGitHubRepositoryShownWhenRepositoryIsADeletedGitHubRepo()
6363
6464 await Initialize ( target ) ;
6565
66- Assert . IsAssignableFrom < INotAGitHubRepositoryViewModel > ( target . Content ) ;
67- }
66+ Assert . That ( target . Content , Is . InstanceOf < INotAGitHubRepositoryViewModel > ( ) ) ;
67+ }
6868
6969 [ Test ]
7070 public async Task LoggedOutShownWhenNotLoggedInToGitHub ( )
@@ -75,8 +75,8 @@ public async Task LoggedOutShownWhenNotLoggedInToGitHub()
7575
7676 await Initialize ( target ) ;
7777
78- Assert . IsAssignableFrom < ILoggedOutViewModel > ( target . Content ) ;
79- }
78+ Assert . That ( target . Content , Is . InstanceOf < ILoggedOutViewModel > ( ) ) ;
79+ }
8080
8181 [ Test ]
8282 public async Task LoggedOutShownWhenNotLoggedInToEnterprise ( )
@@ -87,8 +87,8 @@ public async Task LoggedOutShownWhenNotLoggedInToEnterprise()
8787
8888 await Initialize ( target ) ;
8989
90- Assert . IsAssignableFrom < ILoggedOutViewModel > ( target . Content ) ;
91- }
90+ Assert . That ( target . Content , Is . InstanceOf < ILoggedOutViewModel > ( ) ) ;
91+ }
9292
9393 [ Test ]
9494 public async Task NavigatorShownWhenRepositoryIsAGitHubRepo ( )
@@ -99,8 +99,8 @@ public async Task NavigatorShownWhenRepositoryIsAGitHubRepo()
9999
100100 await Initialize ( target ) ;
101101
102- Assert . IsAssignableFrom < INavigationViewModel > ( target . Content ) ;
103- }
102+ Assert . That ( target . Content , Is . InstanceOf < INavigationViewModel > ( ) ) ;
103+ }
104104
105105 [ Test ]
106106 public async Task NavigatorShownWhenRepositoryIsAnEnterpriseRepo ( )
@@ -111,8 +111,8 @@ public async Task NavigatorShownWhenRepositoryIsAnEnterpriseRepo()
111111
112112 await Initialize ( target ) ;
113113
114- Assert . IsAssignableFrom < INavigationViewModel > ( target . Content ) ;
115- }
114+ Assert . That ( target . Content , Is . InstanceOf < INavigationViewModel > ( ) ) ;
115+ }
116116
117117 [ Test ]
118118 public async Task NavigatorShownWhenUserLogsIn ( )
@@ -123,12 +123,12 @@ public async Task NavigatorShownWhenUserLogsIn()
123123
124124 await Initialize ( target ) ;
125125
126- Assert . IsAssignableFrom < ILoggedOutViewModel > ( target . Content ) ;
126+ Assert . That ( target . Content , Is . InstanceOf < ILoggedOutViewModel > ( ) ) ;
127127
128- AddConnection ( cm , "https://github.com" ) ;
128+ AddConnection ( cm , "https://github.com" ) ;
129129
130- Assert . IsAssignableFrom < INavigationViewModel > ( target . Content ) ;
131- }
130+ Assert . That ( target . Content , Is . InstanceOf < INavigationViewModel > ( ) ) ;
131+ }
132132 }
133133
134134 public class TheShowPullRequestsMethod
@@ -144,9 +144,9 @@ public async Task HasNoEffectWhenUserLoggedOut()
144144 teServiceHolder : te ) ;
145145
146146 await Initialize ( target ) ;
147- Assert . IsAssignableFrom < ILoggedOutViewModel > ( target . Content ) ;
147+ Assert . That ( target . Content , Is . InstanceOf < ILoggedOutViewModel > ( ) ) ;
148148
149- await target . ShowPullRequests ( ) ;
149+ await target . ShowPullRequests ( ) ;
150150
151151 viewModelFactory . DidNotReceive ( ) . CreateViewModel < IPullRequestListViewModel > ( ) ;
152152 }
@@ -164,9 +164,9 @@ public async Task HasNoEffectWhenAlreadyCurrentPage()
164164
165165 await Initialize ( target ) ;
166166 Assert . That ( nav , Is . SameAs ( target . Content ) ) ;
167- Assert . IsAssignableFrom < IPullRequestListViewModel > ( nav . Content ) ;
167+ Assert . That ( nav . Content , Is . InstanceOf < IPullRequestListViewModel > ( ) ) ;
168168
169- await target . ShowPullRequests ( ) ;
169+ await target . ShowPullRequests ( ) ;
170170
171171 Assert . That ( 1 , Is . EqualTo ( nav . History . Count ) ) ;
172172 }
0 commit comments