Annotations + Removal of unneeded lines

This commit is contained in:
Jelle De Geest
2023-05-16 11:09:41 +00:00
committed by Jerome Coudron
parent 8c69ec3cc6
commit 785e56b883
46 changed files with 161 additions and 218 deletions

View File

@@ -1,6 +1,7 @@
using NUnit.Framework;
using System.Collections;
using System.IO;
using System.Linq;
using UnityEditor;
using UnityEngine;
using UnityEngine.TestTools;
@@ -17,7 +18,7 @@ public class SpellingBeeControllerTests
public IEnumerator SetupFunction()
{
string path = $"{Application.persistentDataPath}/wesign_unit_test.json";
string oneUser = $"{{\"version\":1027,\"users\":[{{\"entries\":[],\"username\":\"TEST\",\"avatarIndex\":0,\"playtime\":0.0,\"minigames\":[],\"courses\":[]}}],\"currentUser\":0,\"currentMinigame\":0,\"currentCourse\":0,\"currentTheme\":0}}";
string oneUser = $"{{\"version\":1537,\"users\":[{{\"entries\":[],\"username\":\"TEST\",\"avatarIndex\":0,\"playtime\":0.0,\"minigames\":[],\"courses\":[]}}],\"currentUser\":0,\"currentMinigame\":0,\"currentCourse\":0,\"currentTheme\":0}}";
File.WriteAllText(path, oneUser);
PersistentDataController.GetInstance().Load();
@@ -106,7 +107,7 @@ public class SpellingBeeControllerTests
public IEnumerator CheckGoToNextWord()
{
SpellingBeeController spellingBeeController = GameObject.FindObjectOfType<SpellingBeeController>();
string word = spellingBeeController.SkipToEnd();
var letters = spellingBeeController.SkipToEnd().ToList().Where((c) => c != ' ');
spellingBeeController.PredictSign(spellingBeeController.GetSign());
@@ -118,7 +119,7 @@ public class SpellingBeeControllerTests
Assert.IsFalse(spellingBeeController.bonusTimeText.activeSelf);
for (int i = 1; i < word.Length; i++)
foreach (var _ in letters)
{
spellingBeeController.NextLetter(false);
}