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

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

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

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

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