public void AbsoluteUriTest() { AtomBaseLink target = CreateAtomBaseLink(); // TODO: Initialize to an appropriate value AtomUri actual = new AtomUri(target.AbsoluteUri); Assert.AreEqual(target.Uri, actual); }
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); }
///////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// /// <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); }
public void ShouldBePersistedTest() { AtomBaseLink target = CreateAtomBaseLink(); // TODO: Initialize to an appropriate value Assert.IsTrue(target.ShouldBePersisted()); }