public void TestNotificationDataResponse() { AutoGen.NotificationDataResponse dr = new GCheckout.AutoGen.NotificationDataResponse(); dr.continuetoken = "ct"; dr.hasmorenotifications = true; dr.hasmorenotificationsSpecified = true; dr.notifications = new GCheckout.AutoGen.NotificationDataResponseNotifications(); dr.serialnumber = "12345"; string message = EncodeHelper.Utf8BytesToString(EncodeHelper.Serialize(dr)); NotificationDataResponse hr = new NotificationDataResponse(message); Assert.AreEqual(hr.IsGood, true); Assert.AreEqual(hr.SerialNumber, "12345"); }