Ejemplo n.º 1
0
        /// <summary>
        ///     Asserts that two vCard notes are identical.
        /// </summary>
        public static void Equals(vCardNote n1, vCardNote n2)
        {
            Assert.AreEqual(
                n1.Language,
                n2.Language,
                "vCardNote.Language differs.");

            Assert.AreEqual(
                n1.Text,
                n2.Text,
                "vCardNote.Text differs.");

            Assert.AreEqual(
                n1.ToString(),
                n2.ToString(),
                "vCardNote.ToString differs.");
        }
Ejemplo n.º 2
0
        /// <summary>
        ///     Reads the NOTE property.
        /// </summary>
        private void ReadInto_NOTE(vCard card, vCardProperty property)
        {

            if (property.Value != null)
            {

                vCardNote note = new vCardNote();

                note.Language = property.Subproperties.GetValue("language");
                note.Text = property.Value.ToString();

                if (!string.IsNullOrEmpty(note.Text))
                {
                    card.Notes.Add(note);
                }

            }

        }