File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ public void CanCahceDynamicLinq()
3434 using ( var log = new SqlLogSpy ( ) )
3535 {
3636 users . ToList ( ) ;
37- Assert . IsNullOrEmpty ( log . GetWholeLog ( ) ) ;
37+ Assert . That ( log . GetWholeLog ( ) , Is . Null . Or . Empty ) ;
3838 }
3939 }
4040 }
Original file line number Diff line number Diff line change @@ -31,16 +31,16 @@ private string FetchConnectionStringFromConfiguration()
3131 string connectionString ;
3232 if ( cfg . Properties . TryGetValue ( Environment . ConnectionString , out connectionString ) )
3333 {
34- Assert . IsNotNullOrEmpty ( connectionString ) ;
34+ Assert . That ( connectionString , Is . Not . Null . Or . Empty ) ;
3535 return connectionString ;
3636 }
3737 string connectionStringName ;
3838 if ( cfg . Properties . TryGetValue ( Environment . ConnectionStringName , out connectionStringName ) )
3939 {
4040 var connectionStringSettings = ConfigurationManager . ConnectionStrings [ connectionStringName ] ;
41- Assert . IsNotNull ( connectionStringSettings ) ;
41+ Assert . That ( connectionStringSettings , Is . Not . Null ) ;
4242 connectionString = connectionStringSettings . ConnectionString ;
43- Assert . IsNotNullOrEmpty ( connectionString ) ;
43+ Assert . That ( connectionString , Is . Not . Null . Or . Empty ) ;
4444 return connectionString ;
4545 }
4646 else
You can’t perform that action at this time.
0 commit comments