Microformats testsuite

hCard 1 - single occurrence test

This page was design to test that values of a hcard which are meant to have only a single occurrence are parsed correctly. The IsEqualToISODate method uses date normalisation and compare methods.

From: hCard test suite 1.0

Author: Glenn Jones

Tests:

Test Result Comment
vcard[0].fn IsEqualTo("John Doe") The fn (formatted name) is a singular value
vcard[0].n HasProperty(true) The n (name) is a singular value
vcard[0].bday IsEqualToISODate("2000-01-01T00:00:00-0800") The bday (birthday) is a singular value
vcard[0].class IsEqualTo("Public") The class is a singular value
vcard[0].geo HasProperty(true) The geo is a singular value
vcard[0].rev IsEqualToISODate("2008-01-01T13:45:00") The rev is a singular value
vcard[0].role IsEqualTo("Designer") The role is a singular value
vcard[0].sort-string IsEqualTo("John") The sort-string is a singular value
vcard[0].tz IsEqualTo("-05:00") The tz is a singular value
vcard[0].uid IsEqualTo("com.johndoe/profiles/johndoe") The uid is a singular value

History:

John Doe
Birthday: January 1st, 2000
Role: Designer
Location: Brighton
Time zone: Eastern Standard Time
Profile details:
Profile id: com.johndoe/profiles/johndoe
Details are: Public
Last updated: January 1st, 2008 - 13:45

Some rights reserved