Exemple #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"));
        }
Exemple #2
0
 public void GetEnumParameter()
 {
     var property = new Property<string>("TEST", "Test string");
     property.SetParameter("ENCODING", EncodingType.BASE64);
     Assert.AreEqual(EncodingType.BASE64, property.GetEnumParameter<EncodingType>("ENCODING"));
 }