-Fix exception message spelling mistake

This commit is contained in:
JamesNK
2010-04-10 00:41:36 +00:00
parent f7cc6abfd9
commit 1b6fe85808
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -257,7 +257,7 @@ now brown cow?", '"', true);
}
[Test]
[ExpectedException(typeof(JsonReaderException), ExpectedMessage = "After parsing a value an unexpected character was encoutered: t. Line 1, position 20.")]
[ExpectedException(typeof(JsonReaderException), ExpectedMessage = "After parsing a value an unexpected character was encountered: t. Line 1, position 20.")]
public void TestInvalidStrings()
{
string orig = @"this is a string ""that has quotes"" ";
+1 -1
View File
@@ -58,7 +58,7 @@ namespace Newtonsoft.Json.Bson
foreach (BsonToken c in value)
{
_writer.Write((sbyte)c.Type);
WriteString(index.ToString(CultureInfo.InvariantCulture), Encoding.GetByteCount(index.ToString(CultureInfo.InvariantCulture)), null);
WriteString(index.ToString(CultureInfo.InvariantCulture), MathUtils.IntLength(index), null);
WriteTokenInternal(c);
index++;
}
+1 -1
View File
@@ -409,7 +409,7 @@ namespace Newtonsoft.Json
}
else
{
throw CreateJsonReaderException("After parsing a value an unexpected character was encoutered: {0}. Line {1}, position {2}.", currentChar, _currentLineNumber, _currentLinePosition);
throw CreateJsonReaderException("After parsing a value an unexpected character was encountered: {0}. Line {1}, position {2}.", currentChar, _currentLineNumber, _currentLinePosition);
}
break;
}