public void DuplicateDeltaLinkInTopLevelFeedShouldThrow() { const string payload = @" <feed xmlns=""http://www.w3.org/2005/Atom"" xmlns:d=""http://docs.oasis-open.org/odata/ns/data"" xmlns:m=""http://docs.oasis-open.org/odata/ns/metadata""> <m:count>14</m:count> <m:annotation term=""custom.namespace.FeedName"" target=""something"" string=""MyFeed"" /> <id>urn:myFeed</id> <title/> <updated>2013-01-04T21:32:48Z</updated> <author> <name/> </author> <link rel=""http://docs.oasis-open.org/odata/ns/delta"" href=""http://host/deltaLink1"" /> <link rel=""http://docs.oasis-open.org/odata/ns/delta"" href=""http://host/deltaLink2"" /> </feed> "; Action testSubject = () => this.ReadFeedPayload(payload, reader => { }); testSubject.ShouldThrow <ODataException>().WithMessage(ODataErrorStrings.ODataAtomEntryAndFeedDeserializer_MultipleLinksInFeed("http://docs.oasis-open.org/odata/ns/delta")); }