Skip to content

Commit 05b529f

Browse files
committed
Adding timing
1 parent 97e933e commit 05b529f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Test/UnitTests/TestDataLayer/TestEnsureClean.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ public void TestEnsureDeletedThenCreateDatabase1Ok()
3838

3939
//ATTEMPT
4040
logToOptions.ShowLog = true;
41-
context.Database.EnsureClean();
41+
using (new TimeThings(_output, "Time to create a database"))
42+
context.Database.EnsureClean();
4243
logToOptions.ShowLog = false;
4344

4445
//VERIFY
@@ -85,7 +86,8 @@ public void TestWipeDataDatabase1Ok()
8586
context.Dependents.Count().ShouldEqual(1);
8687

8788
//ATTEMPT
88-
context.Database.EnsureClean();
89+
using (new TimeThings(_output, "Time to clean a SQL database"))
90+
context.Database.EnsureClean();
8991

9092
//VERIFY
9193
context.TopClasses.Count().ShouldEqual(0);

0 commit comments

Comments
 (0)