Exemple #1
0
        public void TestParseMissingDelimiter()
        {
            PivotLink link = PivotLink.ParseValue("alpha bravo");

            AssertEqual("alpha bravo", link.Title);
            AssertNull(link.Url);
        }
Exemple #2
0
        public void TestParseMissingTitle()
        {
            PivotLink link = PivotLink.ParseValue("||bravo");

            AssertNull(link.Title);
            AssertEqual("bravo", link.Url);
        }
Exemple #3
0
        public void TestParseMissingUrl()
        {
            PivotLink link = PivotLink.ParseValue("alpha||");

            AssertEqual("alpha", link.Title);
            AssertNull(link.Url);
        }
Exemple #4
0
        public void TestParseCorrectValue()
        {
            PivotLink link = PivotLink.ParseValue("alpha||bravo");

            AssertEqual("alpha", link.Title);
            AssertEqual("bravo", link.Url);
        }