Annotations + Removal of unneeded lines
This commit is contained in:
committed by
Jerome Coudron
parent
8c69ec3cc6
commit
785e56b883
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user