Implement DatabaseTests and SlotTests

This commit is contained in:
jvyden 2021-10-19 22:19:37 -04:00
commit bbeb7d980e
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
3 changed files with 71 additions and 2 deletions

View file

@ -0,0 +1,15 @@
using System;
using System.Threading.Tasks;
namespace ProjectLighthouse.Tests {
public class DatabaseTests : LighthouseTest {
[DatabaseFact]
public async Task CanCreateUserTwice() {
await using Database database = new();
int rand = new Random().Next();
await database.CreateUser("createUserTwiceTest" + rand);
await database.CreateUser("createUserTwiceTest" + rand);
}
}
}