diff --git a/Octokit.Tests/Exceptions/ApiErrorTests.cs b/Octokit.Tests/Exceptions/ApiErrorTests.cs index f230503e..ebcd401c 100644 --- a/Octokit.Tests/Exceptions/ApiErrorTests.cs +++ b/Octokit.Tests/Exceptions/ApiErrorTests.cs @@ -44,8 +44,8 @@ namespace Octokit.Tests.Exceptions var apiError = serializer.Deserialize(json); var stringRepresentation = apiError.ToString(); Assert.Contains("Field: title", stringRepresentation); - Assert.Contains("Code: title", stringRepresentation); - Assert.Contains("Resource: title", stringRepresentation); + Assert.Contains("Code: missing_field", stringRepresentation); + Assert.Contains("Resource: Issue", stringRepresentation); } } }