Add test CanCreateSqlitedb

This commit is contained in:
nicolas.dorier 2020-01-19 22:10:05 +09:00
parent 1ceb5cb576
commit 7e073fb7e1
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -2887,6 +2887,18 @@ noninventoryitem:
return name;
}
[Fact(Timeout = TestTimeout)]
[Trait("Fast", "Fast")]
public async Task CanCreateSqlitedb()
{
if (File.Exists("temp.db"))
File.Delete("temp.db");
// This test sqlite can migrate
var builder = new DbContextOptionsBuilder<ApplicationDbContext>();
builder.UseSqlite("Data Source=temp.db");
await new ApplicationDbContext(builder.Options).Database.MigrateAsync();
}
[Fact(Timeout = TestTimeout)]
[Trait("Fast", "Fast")]
public void CheckRatesProvider()