public void ReadProperty_String_Name_Subproperty_Value()
{
vCardStandardReader reader =
new vCardStandardReader();
vCardProperty property =
reader.ReadProperty("NAME;SUB:VALUE");
Assert.AreEqual(
"NAME",
property.Name,
"The Name is incorrect.");
Assert.AreEqual(
1,
property.Subproperties.Count,
"The Subproperties collection has an incorrect number of items.");
Assert.AreEqual(
"SUB",
property.Subproperties[0].Name,
"The Subproperty value is incorrect.");
Assert.AreEqual(
"VALUE",
property.Value,
"The parsed value is incorrect.");
}