public void TestReadNonExistentCoupleRelationship() { var person = tree.AddPerson(TestBacking.GetCreateMalePerson()); cleanup.Add(person); var relationship = TestBacking.GetCreateInvalidRelationship(); var state = person.ReadRelationship(relationship); Assert.Throws <GedcomxApplicationException>(() => state.IfSuccessful()); Assert.AreEqual(HttpStatusCode.NotFound, state.Response.StatusCode); }