Esempio n. 1
0
        // return eina_error
        public static void eina_error_return()
        {
            var obj = new Dummy.TestObject();

            Eina.Error expected = 42;
            obj.SetErrorRet(expected);
            Eina.Error error = obj.ReturnsError();

            Test.AssertEquals(expected, error);

            expected = 0;
            obj.SetErrorRet(expected);
            error = obj.ReturnsError();

            Test.AssertEquals(expected, error);
        }