-Fixed JsonReader.ReadAsDateTimeOffset error message

This commit is contained in:
JamesNK
2012-02-09 11:18:37 +00:00
parent 06d92a8963
commit 3bebf5c765
3 changed files with 3 additions and 3 deletions
@@ -133,7 +133,7 @@ namespace Newtonsoft.Json.Tests.Linq
}
[Test]
[ExpectedException(typeof(JsonReaderException), ExpectedMessage = "Error reading date. Expected bytes but got Boolean. Line 1, position 14.")]
[ExpectedException(typeof(JsonReaderException), ExpectedMessage = "Error reading date. Expected date but got Boolean. Line 1, position 14.")]
public void ReadAsDateTimeOffsetBoolean()
{
string json = @"{""Offset"":true}";
+1 -1
View File
@@ -336,7 +336,7 @@ namespace Newtonsoft.Json.Bson
if (ReaderIsSerializerInArray())
return null;
throw CreateReaderException(this, "Error reading date. Expected bytes but got {0}.".FormatWith(CultureInfo.InvariantCulture, TokenType));
throw CreateReaderException(this, "Error reading date. Expected date but got {0}.".FormatWith(CultureInfo.InvariantCulture, TokenType));
}
#endif
+1 -1
View File
@@ -198,7 +198,7 @@ namespace Newtonsoft.Json.Linq
if (ReaderIsSerializerInArray())
return null;
throw CreateReaderException(this, "Error reading date. Expected bytes but got {0}.".FormatWith(CultureInfo.InvariantCulture, TokenType));
throw CreateReaderException(this, "Error reading date. Expected date but got {0}.".FormatWith(CultureInfo.InvariantCulture, TokenType));
}
#endif