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

            handle.SetParamInt(Out123.Params.FLAGS, 1);
            Assert.AreEqual(Out123.Errors.OK, handle.LastErrorCode());
        }
예제 #2
0
        public void TestGetParamIntOK()
        {
            Out123 handle = new Out123();

            handle.SetParamInt(Out123.Params.FLAGS, 2);
            long result = handle.GetParamInt(Out123.Params.FLAGS);

            Assert.AreEqual(2, result);
        }
예제 #3
0
        public void TestCopyParamFromOK()
        {
            Out123 handle = new Out123();

            handle.SetParamInt(Out123.Params.FLAGS, 0);
            Out123 other = new Out123();

            other.SetParamInt(Out123.Params.FLAGS, 1);
            handle.CopyParamFrom(other);
            Assert.AreEqual(1, handle.GetParamInt(Out123.Params.FLAGS));
        }