Skip to content

Commit

Permalink
NH-3900 - Replace Assert.IsNullOrEmpty and Assert.IsNotNullOrEmpty to…
Browse files Browse the repository at this point in the history
… fluent syntax as it will be removed in NUnit 3.6.0
  • Loading branch information
hazzik committed Feb 11, 2017
1 parent 4452b84 commit adcd0c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/NHibernate.Test/Linq/DynamicQueryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void CanCahceDynamicLinq()
using (var log = new SqlLogSpy())
{
users.ToList();
Assert.IsNullOrEmpty(log.GetWholeLog());
Assert.That(log.GetWholeLog(), Is.Null.Or.Empty);
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/NHibernate.Test/NHSpecificTest/NH2420/Fixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ private string FetchConnectionStringFromConfiguration()
string connectionString;
if (cfg.Properties.TryGetValue(Environment.ConnectionString, out connectionString))
{
Assert.IsNotNullOrEmpty(connectionString);
Assert.That(connectionString, Is.Not.Null.Or.Empty);
return connectionString;
}
string connectionStringName;
if (cfg.Properties.TryGetValue(Environment.ConnectionStringName, out connectionStringName))
{
var connectionStringSettings = ConfigurationManager.ConnectionStrings[connectionStringName];
Assert.IsNotNull(connectionStringSettings);
Assert.That(connectionStringSettings, Is.Not.Null);
connectionString = connectionStringSettings.ConnectionString;
Assert.IsNotNullOrEmpty(connectionString);
Assert.That(connectionString, Is.Not.Null.Or.Empty);
return connectionString;
}
else
Expand Down

0 comments on commit adcd0c9

Please sign in to comment.