public void ToString_IncludesRawStatusCodeAndMessage() { var statusCode = "NONEXISTENT_STATUS_CODE"; var messageText = "message"; var message = new StatusMessage(statusCode, messageText); var toString = message.ToString(); toString.ShouldBe($"[{statusCode}] {messageText}"); }
public void To_string() { StatusMessage statusMessage = new StatusMessage(); _ = statusMessage.ToString(); }
public void StatusMessage_ToString_IsCorrect() { var message = new StatusMessage(MessageSeverity.Error, "Whattaheck?"); Assert.Equal("Error: Whattaheck?", message.ToString()); }
public override string ToString() { var sb = new StringBuilder("BuddyProfile("); bool __first = true; if (BuddyId != null && __isset.buddyId) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("BuddyId: "); BuddyId.ToString(sb); } if (Mid != null && __isset.mid) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Mid: "); Mid.ToString(sb); } if (SearchId != null && __isset.searchId) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("SearchId: "); SearchId.ToString(sb); } if (DisplayName != null && __isset.displayName) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("DisplayName: "); DisplayName.ToString(sb); } if (StatusMessage != null && __isset.statusMessage) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("StatusMessage: "); StatusMessage.ToString(sb); } if (__isset.contactCount) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("ContactCount: "); ContactCount.ToString(sb); } sb.Append(")"); return(sb.ToString()); }
public override string ToString() { var sb = new StringBuilder("BuddySearchResult("); bool __first = true; if (Mid != null && __isset.mid) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Mid: "); Mid.ToString(sb); } if (DisplayName != null && __isset.displayName) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("DisplayName: "); DisplayName.ToString(sb); } if (PictureStatus != null && __isset.pictureStatus) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("PictureStatus: "); PictureStatus.ToString(sb); } if (PicturePath != null && __isset.picturePath) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("PicturePath: "); PicturePath.ToString(sb); } if (StatusMessage != null && __isset.statusMessage) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("StatusMessage: "); StatusMessage.ToString(sb); } if (__isset.businessAccount) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("BusinessAccount: "); BusinessAccount.ToString(sb); } sb.Append(")"); return(sb.ToString()); }
public override string ToString() { var sb = new StringBuilder("Contact("); bool __first = true; if (Mid != null && __isset.mid) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Mid: "); Mid.ToString(sb); } if (__isset.createdTime) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("CreatedTime: "); CreatedTime.ToString(sb); } if (__isset.type) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Type: "); Type.ToString(sb); } if (__isset.status) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Status: "); Status.ToString(sb); } if (__isset.relation) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Relation: "); Relation.ToString(sb); } if (DisplayName != null && __isset.displayName) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("DisplayName: "); DisplayName.ToString(sb); } if (PhoneticName != null && __isset.phoneticName) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("PhoneticName: "); PhoneticName.ToString(sb); } if (PictureStatus != null && __isset.pictureStatus) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("PictureStatus: "); PictureStatus.ToString(sb); } if (ThumbnailUrl != null && __isset.thumbnailUrl) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("ThumbnailUrl: "); ThumbnailUrl.ToString(sb); } if (StatusMessage != null && __isset.statusMessage) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("StatusMessage: "); StatusMessage.ToString(sb); } if (DisplayNameOverridden != null && __isset.displayNameOverridden) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("DisplayNameOverridden: "); DisplayNameOverridden.ToString(sb); } if (__isset.favoriteTime) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("FavoriteTime: "); FavoriteTime.ToString(sb); } if (__isset.capableVoiceCall) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("CapableVoiceCall: "); CapableVoiceCall.ToString(sb); } if (__isset.capableVideoCall) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("CapableVideoCall: "); CapableVideoCall.ToString(sb); } if (__isset.capableMyhome) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("CapableMyhome: "); CapableMyhome.ToString(sb); } if (__isset.capableBuddy) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("CapableBuddy: "); CapableBuddy.ToString(sb); } if (__isset.attributes) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Attributes: "); Attributes.ToString(sb); } if (__isset.settings) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Settings: "); Settings.ToString(sb); } if (PicturePath != null && __isset.picturePath) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("PicturePath: "); PicturePath.ToString(sb); } if (RecommendParams != null && __isset.recommendParams) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("RecommendParams: "); RecommendParams.ToString(sb); } if (__isset.friendRequestStatus) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("FriendRequestStatus: "); FriendRequestStatus.ToString(sb); } if (MusicProfile != null && __isset.musicProfile) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("MusicProfile: "); MusicProfile.ToString(sb); } if (VideoProfile != null && __isset.videoProfile) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("VideoProfile: "); VideoProfile.ToString(sb); } sb.Append(")"); return(sb.ToString()); }
public override string ToString() { var sb = new StringBuilder("Profile("); bool __first = true; if (Mid != null && __isset.mid) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Mid: "); Mid.ToString(sb); } if (Userid != null && __isset.userid) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Userid: "); Userid.ToString(sb); } if (Phone != null && __isset.phone) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Phone: "); Phone.ToString(sb); } if (Email != null && __isset.email) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Email: "); Email.ToString(sb); } if (RegionCode != null && __isset.regionCode) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("RegionCode: "); RegionCode.ToString(sb); } if (DisplayName != null && __isset.displayName) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("DisplayName: "); DisplayName.ToString(sb); } if (PhoneticName != null && __isset.phoneticName) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("PhoneticName: "); PhoneticName.ToString(sb); } if (PictureStatus != null && __isset.pictureStatus) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("PictureStatus: "); PictureStatus.ToString(sb); } if (ThumbnailUrl != null && __isset.thumbnailUrl) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("ThumbnailUrl: "); ThumbnailUrl.ToString(sb); } if (StatusMessage != null && __isset.statusMessage) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("StatusMessage: "); StatusMessage.ToString(sb); } if (__isset.allowSearchByUserid) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("AllowSearchByUserid: "); AllowSearchByUserid.ToString(sb); } if (__isset.allowSearchByEmail) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("AllowSearchByEmail: "); AllowSearchByEmail.ToString(sb); } if (PicturePath != null && __isset.picturePath) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("PicturePath: "); PicturePath.ToString(sb); } if (MusicProfile != null && __isset.musicProfile) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("MusicProfile: "); MusicProfile.ToString(sb); } if (VideoProfile != null && __isset.videoProfile) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("VideoProfile: "); VideoProfile.ToString(sb); } sb.Append(")"); return(sb.ToString()); }