Exemplo n.º 1
0
        public void TestStage_StageReady_ToLoaded()
        {
            StageOwner o = new TestStageOwner("TestStation");

            Assert.IsTrue(o.CurStage.Name == "Idle");
            o.OnEvent(new Event("EquipmentOk"));
            o.OnEvent(new Event("AddDut", null /*DUT*/));
            Assert.IsTrue(o.CurStage.Name == "Loaded");
        }
Exemplo n.º 2
0
        public void TestStage_StageLoaded_ToTesting()
        {
            StageOwner o = new TestStageOwner("TestStation");

            Assert.IsTrue(o.CurStage.Name == "Idle");
            o.OnEvent(new Event("EquipmentOk"));
            o.OnEvent(new Event("AddDut", null /*DUT*/));
            o.OnEvent(new Event("StartTest"));
            Assert.IsTrue(o.CurStage.Name == "Testing");
        }
Exemplo n.º 3
0
        public void TestStage_StageReady_ToIdle()
        {
            StageOwner o = new TestStageOwner("TestStation");

            Assert.IsTrue(o.CurStage.Name == "Idle");
            o.OnEvent(new Event("EquipmentOk"));

            o.OnEvent(new Event("EquipmentFail"));
            Assert.IsTrue(o.CurStage.Name == "Idle");
        }
Exemplo n.º 4
0
        public void TestStage_StageTestFail_ToReady()
        {
            StageOwner o = new TestStageOwner("TestStation");

            Assert.IsTrue(o.CurStage.Name == "Idle");
            o.OnEvent(new Event("EquipmentOk"));
            o.OnEvent(new Event("AddDut", null /*DUT*/));
            o.OnEvent(new Event("StartTest"));
            o.OnEvent(new Event("TestFail"));
            o.OnEvent(new Event("RemoveDut"));
            Assert.IsTrue(o.CurStage.Name == "Ready");
        }