public void BelongsToRspResponse_Error() { var responseXml = File.ReadAllText(@"TestData\BelongsToRsp\BelongsToRspResponseReply3.xml"); var response = new BelongsToRspResponse(responseXml); Assert.AreEqual("XCP", response.Protocol); Assert.AreEqual("REPLY", response.Action); Assert.AreEqual("DOMAIN", response.Object); Assert.AreEqual("An error occurred", response.ResponseText); Assert.False(response.IsSuccess); Assert.AreEqual(500, response.ResponseCode); Assert.False(response.belongs_to_rsp); Assert.IsNull(response.domain_expdate); }
public void BelongsToRspResponse_DoesNotBelong() { var responseXml = File.ReadAllText(@"TestData\BelongsToRsp\BelongsToRspResponseReply2.xml"); var response = new BelongsToRspResponse(responseXml); Assert.AreEqual("XCP", response.Protocol); Assert.AreEqual("REPLY", response.Action); Assert.AreEqual("DOMAIN", response.Object); Assert.AreEqual("Query successful", response.ResponseText); Assert.True(response.IsSuccess); Assert.AreEqual(200, response.ResponseCode); Assert.False(response.belongs_to_rsp); Assert.IsNull(response.domain_expdate); }