[gbrainy/difficulty: 3/3] Fixes UT




commit 6b1c8ca1627ec4d7bde9aa7d1082870a77e36771
Author: Jordi Mas <jmas softcatala org>
Date:   Sun Sep 4 11:17:37 2022 +0200

    Fixes UT

 tests/Core/GameSessionPlayListTest.cs | 13 -------------
 tests/Core/GameXmlFactoryTest.cs      |  1 -
 tests/test_games.xml                  |  2 --
 3 files changed, 16 deletions(-)
---
diff --git a/tests/Core/GameSessionPlayListTest.cs b/tests/Core/GameSessionPlayListTest.cs
index 3066ea7e..bbcfb4d6 100644
--- a/tests/Core/GameSessionPlayListTest.cs
+++ b/tests/Core/GameSessionPlayListTest.cs
@@ -94,18 +94,5 @@ namespace gbrainy.Test.Core
                        }
                }
 
-               [Test]
-               public void Difficulty ()
-               {
-                       Game game;
-                       GameSessionPlayList play_list = new GameSessionPlayList (manager);
-
-                       play_list.Difficulty = GameDifficulty.Easy;
-                       for (int i = 0; i < play_list.PlayList.Length; i++)
-                       {
-                               game = play_list.GetPuzzle ();
-                               Assert.AreEqual (GameDifficulty.Easy, game.Difficulty);
-                       }
-               }
        }
 }
diff --git a/tests/Core/GameXmlFactoryTest.cs b/tests/Core/GameXmlFactoryTest.cs
index b03ee341..b59639a7 100644
--- a/tests/Core/GameXmlFactoryTest.cs
+++ b/tests/Core/GameXmlFactoryTest.cs
@@ -48,7 +48,6 @@ namespace gbrainy.Test.Core
                        Assert.AreEqual ("Clock Rotation", definition.Name);
                        Assert.AreEqual (0, definition.Variants.Count);
                        Assert.AreEqual (GameTypes.LogicPuzzle, definition.Type);
-                       Assert.AreEqual (GameDifficulty.Medium | GameDifficulty.Master, 
definition.Difficulty);
                        Assert.AreEqual ("Rationale text", definition.Rationale.String);
                        Assert.AreEqual ("How many degrees rotates the minute hand of a clock?", 
definition.Question.String);
                        Assert.AreEqual ("How many degrees rotates the minute hand of a clocks?", 
definition.Question.PluralString);
diff --git a/tests/test_games.xml b/tests/test_games.xml
index c87ea5b0..b31411a1 100644
--- a/tests/test_games.xml
+++ b/tests/test_games.xml
@@ -2,7 +2,6 @@
        <game>
                <_name>Clock Rotation</_name>
                <type>Logic</type>
-               <difficulty>Medium | Master</difficulty>
                <variables>
                        int num = (1 + random.Next (5)) * 10;
                        int rslt = (2 * 360) + (num * 6);
@@ -18,7 +17,6 @@
        <game>
                <_name>Age</_name>
                <type>Logic</type>
-               <difficulty>All</difficulty>
                <svg file = "father_son.svg" x = "0.2" y = "0.25" width = "0.6" height = "0.4"/>
                <variant>
                        <variables>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]