示例#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());
        }