Ejemplo n.º 1
0
        public void GomEpsPing_eps_not_initiallized_Test()
        {
            GomEPS        gom    = new GomEPS();
            Output <Byte> output = new Output <Byte>();

            Assert.AreEqual(Constants.E_NOT_INITIALIZED, gom.GomEpsPing(0, 1, output));
        }
Ejemplo n.º 2
0
        public void GomEpsPing_eps_no_error_Test()
        {
            GomEPS gom = new GomEPS();

            gom.GomEpsInitialize(add, 1);
            Output <Byte> output = new Output <Byte>();

            Assert.AreEqual(Constants.E_NO_SS_ERR, gom.GomEpsPing(0, 1, output));
        }
Ejemplo n.º 3
0
        public void GomEpsPing_eps_not_an_index_Test()
        {
            GomEPS gom = new GomEPS();

            gom.GomEpsInitialize(add, 1);
            Output <Byte> output = new Output <Byte>();

            Assert.AreEqual(Constants.E_INDEX_ERROR, gom.GomEpsPing(1, 1, output));
        }
Ejemplo n.º 4
0
        public void GomEpsPing_eps_right_ping_Test()
        {
            GomEPS gom = new GomEPS();

            gom.GomEpsInitialize(add, 1);
            Output <Byte> output = new Output <Byte>();

            gom.GomEpsPing(0, 1, output);
            Assert.AreEqual(1, output.output);
        }