2020-03-30 17:25:29 +11:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Diagnostics;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
|
using Umbraco.Tests.Integration.Testing;
|
|
|
|
|
|
|
|
|
|
|
|
// this class has NO NAMESPACE
|
|
|
|
|
|
// it applies to the whole assembly
|
|
|
|
|
|
|
|
|
|
|
|
[SetUpFixture]
|
|
|
|
|
|
// ReSharper disable once CheckNamespace
|
|
|
|
|
|
public class TestsSetup
|
|
|
|
|
|
{
|
|
|
|
|
|
private Stopwatch _stopwatch;
|
|
|
|
|
|
|
|
|
|
|
|
[OneTimeSetUp]
|
|
|
|
|
|
public void SetUp()
|
|
|
|
|
|
{
|
|
|
|
|
|
_stopwatch = Stopwatch.StartNew();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[OneTimeTearDown]
|
|
|
|
|
|
public void TearDown()
|
|
|
|
|
|
{
|
|
|
|
|
|
LocalDbTestDatabase.KillLocalDb();
|
2020-11-30 12:14:53 +00:00
|
|
|
|
SqlDeveloperTestDatabase.Instance?.Finish();
|
2020-03-30 17:25:29 +11:00
|
|
|
|
Console.WriteLine("TOTAL TESTS DURATION: {0}", _stopwatch.Elapsed);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|