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>()); }
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>()); }