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()
34
34
using ( var log = new SqlLogSpy ( ) )
35
35
{
36
36
users . ToList ( ) ;
37
- Assert . IsNullOrEmpty ( log . GetWholeLog ( ) ) ;
37
+ Assert . That ( log . GetWholeLog ( ) , Is . Null . Or . Empty ) ;
38
38
}
39
39
}
40
40
}
Original file line number Diff line number Diff line change @@ -31,16 +31,16 @@ private string FetchConnectionStringFromConfiguration()
31
31
string connectionString ;
32
32
if ( cfg . Properties . TryGetValue ( Environment . ConnectionString , out connectionString ) )
33
33
{
34
- Assert . IsNotNullOrEmpty ( connectionString ) ;
34
+ Assert . That ( connectionString , Is . Not . Null . Or . Empty ) ;
35
35
return connectionString ;
36
36
}
37
37
string connectionStringName ;
38
38
if ( cfg . Properties . TryGetValue ( Environment . ConnectionStringName , out connectionStringName ) )
39
39
{
40
40
var connectionStringSettings = ConfigurationManager . ConnectionStrings [ connectionStringName ] ;
41
- Assert . IsNotNull ( connectionStringSettings ) ;
41
+ Assert . That ( connectionStringSettings , Is . Not . Null ) ;
42
42
connectionString = connectionStringSettings . ConnectionString ;
43
- Assert . IsNotNullOrEmpty ( connectionString ) ;
43
+ Assert . That ( connectionString , Is . Not . Null . Or . Empty ) ;
44
44
return connectionString ;
45
45
}
46
46
else
You can’t perform that action at this time.
0 commit comments