예제 #1
0
        public void TestAnyCast()
        {
            double arg = 2.0;
            Variant v1 = new Variant(arg);
            Variant v2 = v1.AnyCast();

            Assert.AreEqual(Variant.EnumType.Any, v2.Type);
            Assert.AreEqual("2", v2.As<string>());
        }
예제 #2
0
        public void TestAnyCast()
        {
            double  arg = 2.0;
            Variant v1  = new Variant(arg);
            Variant v2  = v1.AnyCast();

            Assert.AreEqual(Variant.EnumType.Any, v2.Type);
            Assert.AreEqual("2", v2.As <string>());
        }