-Tests
-Documentation
This commit is contained in:
@@ -48,6 +48,19 @@ namespace Newtonsoft.Json.Tests
|
||||
[TestFixture]
|
||||
public class JsonTextReaderTest : TestFixtureBase
|
||||
{
|
||||
[Test]
|
||||
public void ReadSingleQuoteInsideDoubleQuoteString()
|
||||
{
|
||||
string json = @"{""NameOfStore"":""Forest's Bakery And Cafe""}";
|
||||
|
||||
JsonTextReader jsonTextReader = new JsonTextReader(new StringReader(json));
|
||||
jsonTextReader.Read();
|
||||
jsonTextReader.Read();
|
||||
jsonTextReader.Read();
|
||||
|
||||
Assert.AreEqual(@"Forest's Bakery And Cafe", jsonTextReader.Value);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ReadMultilineString()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user