This commit is contained in:
Dries Van Schuylenbergh
2023-04-08 11:31:24 +02:00
parent 8670fcc4ce
commit f5615bbef3
2 changed files with 9 additions and 1 deletions

View File

@@ -107,6 +107,14 @@ public class PersistentDataTests
Assert.IsFalse(pdc.Load(false));
}
[Test]
public void Test_PersistentDataController_Load_NewerVersion()
{
string content = $"{{\"version\":{PersistentDataController.VERSION + 1},\"users\":[],\"currentUser\":-1,\"currentMinigame\":0,\"currentCourse\":0,\"currentTheme\":0}}";
File.WriteAllText(PATH, content);
Assert.IsFalse(pdc.Load(false));
}
[Test]
public void Test_PersistentDataController_Load_New()
{