Fixed todo in test that is now possible after update of nunit

This commit is contained in:
Bjarke Berg
2021-08-04 12:51:05 +02:00
parent 8ad456a6d0
commit bcb8c0e286

View File

@@ -18,6 +18,7 @@ namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence
{
[TestFixture]
[UmbracoTest]
[Platform("Win")]
public class DatabaseBuilderTests : UmbracoIntegrationTest
{
private IDbProviderFactoryCreator DbProviderFactoryCreator => GetRequiredService<IDbProviderFactoryCreator>();
@@ -32,11 +33,6 @@ namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence
[Test]
public void CreateDatabase()
{
if (!TestEnvironment.IsWindows)
{
return; //TODO replace with [Platform("Win")] when we update to NUnit 3.13 + .NET 5
}
var path = TestContext.CurrentContext.TestDirectory.Split("bin")[0];
AppDomain.CurrentDomain.SetData("DataDirectory", path);
const string dbFile = "DatabaseContextTests.sdf";