public void GetAllGames_Test() { string filename = Path.GetTempFileName(); IGameDatabase database = new GameDatabase(filename); var fakeGameInfo = new Mock<IGameInfo>(); fakeGameInfo.SetupGet(game => game.Name).Returns("TestGame"); fakeGameInfo.SetupGet(game => game.UUID).Returns("TESTGAME"); fakeGameInfo.SetupGet(game => game.PlatformID).Returns("TESTPLATFORM"); database.AddGame(fakeGameInfo.Object); Assert.NotEmpty(database.GetAllGames()); this.DisposeSqlite(); File.Delete(filename); }