예제 #1
0
        public void TestSetParamFloatOK()
        {
            Out123 handle = new Out123();

            handle.SetParamFloat(Out123.Params.FLAGS, 1.0d);
            Assert.AreEqual(Out123.Errors.OK, handle.LastErrorCode());
        }
예제 #2
0
        public void TestSetParamStringOK()
        {
            Out123 handle = new Out123();

            handle.SetParamString(Out123.Params.BINDIR, "myDir");
            Assert.AreEqual(Out123.Errors.OK, handle.LastErrorCode());
        }
예제 #3
0
        public void TestLastErrorCodeOK()
        {
            Out123 handle = new Out123();

            Out123.Errors result = handle.LastErrorCode();
            Assert.AreEqual(Out123.Errors.OK, result);
        }
예제 #4
0
        public void TestSetBufferOK()
        {
            Out123 handle = new Out123();

            handle.SetBufferSize(10);
            Assert.AreEqual(Out123.Errors.OK, handle.LastErrorCode());
        }
예제 #5
0
        public void TestDriverInfoOK()
        {
            Out123 handle = new Out123();

            handle.DriverInfo();
            Assert.AreEqual(Out123.Errors.OK, handle.LastErrorCode());
        }
예제 #6
0
        public void TestNDrainSomeBytesOK()
        {
            Out123 handle = new Out123();

            handle.Drain(10);
            Assert.AreEqual(Out123.Errors.OK, handle.LastErrorCode());
        }
예제 #7
0
        public void TestStopOK()
        {
            Out123 handle = new Out123();

            handle.Stop();
            Assert.AreEqual(Out123.Errors.OK, handle.LastErrorCode());
        }
예제 #8
0
        public void TestContinueOK()
        {
            Out123 handle = new Out123();

            handle.Continue();
            Assert.AreEqual(Out123.Errors.OK, handle.LastErrorCode());
        }
예제 #9
0
        public void TestCloseHandleNotOpenedOK()
        {
            Out123 handle = new Out123();

            handle.Close();
            Assert.AreEqual(Out123.Errors.OK, handle.LastErrorCode());
        }