コード例 #1
0
        public void AbsoluteUriTest()
        {
            AtomBaseLink target = CreateAtomBaseLink(); // TODO: Initialize to an appropriate value
            AtomUri      actual = new AtomUri(target.AbsoluteUri);

            Assert.AreEqual(target.Uri, actual);
        }
コード例 #2
0
        public void UriTest()
        {
            AtomBaseLink target   = CreateAtomBaseLink();
            AtomUri      expected = new AtomUri("http://www.test.com/");
            AtomUri      actual;

            target.Uri = expected;
            actual     = target.Uri;
            Assert.AreEqual(expected, actual);
        }
コード例 #3
0
        /////////////////////////////////////////////////////////////////////////////

        //////////////////////////////////////////////////////////////////////
        /// <summary>compares 2 IDs</summary>
        /// <param name="theOne">the One </param>
        /// <param name="theOther">the Other</param>
        /// <returns>true if identical </returns>
        //////////////////////////////////////////////////////////////////////
        public static bool IsBaseLinkIdentical(AtomBaseLink theOne, AtomBaseLink theOther)
        {
            if (theOne == null && theOther == null)
            {
                return(true);
            }

            if (!ObjectModelHelper.IsBaseIdentical(theOne, theOther))
            {
                return(false);
            }
            if (AtomUri.Compare(theOne.Uri, theOther.Uri) != 0)
            {
                return(false);
            }

            return(true);
        }
コード例 #4
0
        public void ShouldBePersistedTest()
        {
            AtomBaseLink target = CreateAtomBaseLink(); // TODO: Initialize to an appropriate value

            Assert.IsTrue(target.ShouldBePersisted());
        }