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