示例#1
0
        private void CompareUserProperty(UserProperty a, UserProperty b)
        {
            if (a == null || b == null)
            {
                Assert.IsTrue(a == null ? (b == null) : (b != null));
                return;
            }

            Assert.AreEqual(a.ValueType, b.ValueType);
            Assert.AreEqual(a.Name, b.Name);
            Assert.AreEqual(a.GetValue(), b.GetValue());
        }
示例#2
0
 public VariantUserProperty(UserProperty userProperty)
 {
     Name  = userProperty.Name;
     Value = userProperty.GetValue();
 }