Пример #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 TestGetParamFloatOK()
        {
            Out123 handle = new Out123();

            handle.SetParamFloat(Out123.Params.GAIN, 5.0);
            double result = handle.GetParamFloat(Out123.Params.GAIN);

            Assert.AreEqual(5, result);
        }
Пример #3
0
        public void TestGetParamFloatOK()
        {
            Out123 handle = new Out123();

            handle.SetParamFloat(Out123.Params.GAIN, 5.0);
            double result = handle.GetParamFloat(Out123.Params.GAIN);

            Assert.AreEqual(5, result);
            //Test should work. Strange behavior just with the double value. Maybe Bug in Out123?!?!
        }