示例#1
0
        public void TestConfigureScaleModelPLC()
        {
            PLC = ConfigManager.ConfigurePLC("/sP");
            ScaleModelPLC testPlc = new ScaleModelPLC();

            Assert.AreEqual(testPlc.GetType(), PLC.GetType());
        }
示例#2
0
        public void TestConfigureVirtualPLC()
        {
            PLC = ConfigManager.ConfigurePLC("/Vp");
            //VRPLC testPlc = new VRPLC();

            // will need to be uncommented when the VR constructor is fixed
            Assert.AreEqual(typeof(VRPLC), PLC.GetType());
        }
示例#3
0
        public void TestConfigureTestPLC()
        {
            PLC = ConfigManager.ConfigurePLC("/tP");
            TestPLC testPlc = new TestPLC();

            Assert.AreEqual(testPlc.GetType(), PLC.GetType());

            PLC = ConfigManager.ConfigurePLC("s$a");

            Assert.AreEqual(testPlc.GetType(), PLC.GetType());
        }