Example #1
0
        public static void IsValidPhase(PhaseDef phaseDef,
                                        string expectedSurgeryName,
                                        bool assertSize,
                                        params ZAssert.IsValidItem <StageAction>[] actionAssertions)
        {
            Assert.AreEqual(expectedSurgeryName, phaseDef.SurgerySceneName);

            ZAssert.IsValidItems(phaseDef.Actions, assertSize, actionAssertions);
        }
Example #2
0
        public void TestParsePhaseTest1()
        {
            var lines = File.ReadLines("PhaseTest1.txt").AsParserLines();

            var defs = mScriptParser.Deserialize <PhaseDef>(lines);

            PhaseDef firstDef = null;

            foreach (PhaseDef def in defs)
            {
                firstDef = def;
            }
            // PhaseDef phaseDef =
            //
            // SceneAssert.IsValidPhase(phaseDef,
            //     "chest_shirt_01",
            //     action =>
            // {
            //     SceneAssert.IsValidGunkInit(action, "WOUND_GLASS", 5);
            // });
        }
Example #3
0
 public static void IsValidPhase(PhaseDef phaseDef,
                                 string expectedSurgeryName,
                                 params ZAssert.IsValidItem <StageAction>[] actionAssertions)
 {
     IsValidPhase(phaseDef, expectedSurgeryName, true, actionAssertions);
 }