示例#1
0
        public void IntegerTest(bool callGC)
        {
            // Instantiate Foo
            Foo.Foo obj = new Foo.Foo();

            if (callGC)
            {
                GC.Collect();
            }

            obj.SetInt(42);
            Assert.Equal(42, obj.GetInt());
        }
示例#2
0
        public void Integer64Test(bool callGC)
        {
            // Instantiate Foo
            Foo.Foo obj = new Foo.Foo();

            if (callGC)
            {
                GC.Collect();
            }

            long a = 2147483647;

            obj.SetInt64(a);
            Assert.Equal(a, obj.GetInt64());

            long b = 2147483648;

            obj.SetInt64(b);
            Assert.Equal(b, obj.GetInt64());
        }