public void TestParseMissingDelimiter() { PivotLink link = PivotLink.ParseValue("alpha bravo"); AssertEqual("alpha bravo", link.Title); AssertNull(link.Url); }
public void TestParseMissingTitle() { PivotLink link = PivotLink.ParseValue("||bravo"); AssertNull(link.Title); AssertEqual("bravo", link.Url); }
public void TestParseMissingUrl() { PivotLink link = PivotLink.ParseValue("alpha||"); AssertEqual("alpha", link.Title); AssertNull(link.Url); }
public void TestParseCorrectValue() { PivotLink link = PivotLink.ParseValue("alpha||bravo"); AssertEqual("alpha", link.Title); AssertEqual("bravo", link.Url); }