示例#1
0
        public void SetParameter()
        {
            var property = new Property<string>("TEST", "Test string");

            Assert.AreEqual(0, property.Parameters.Count);

            property.SetParameter("ISTEST", true);

            Assert.AreEqual(1, property.Parameters.Count);
            Assert.AreEqual(true.ToString(), property.GetParameter("ISTEST"));
        }
示例#2
0
 public void GetUnSetParameter()
 {
     var property = new Property<string>("TEST", "Test string");
     Assert.AreEqual(string.Empty, property.GetParameter("ISTEST"));
 }