Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/Newtonsoft.Json.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Newtonsoft.Json.Tests/PerformanceTests.cs')
-rw-r--r--Src/Newtonsoft.Json.Tests/PerformanceTests.cs17
1 files changed, 16 insertions, 1 deletions
diff --git a/Src/Newtonsoft.Json.Tests/PerformanceTests.cs b/Src/Newtonsoft.Json.Tests/PerformanceTests.cs
index 57c9e8e..7d3b8bd 100644
--- a/Src/Newtonsoft.Json.Tests/PerformanceTests.cs
+++ b/Src/Newtonsoft.Json.Tests/PerformanceTests.cs
@@ -704,6 +704,21 @@ namespace Newtonsoft.Json.Tests
}
[Test]
+ public void RecursiveLoop()
+ {
+ JArray a1 = new JArray();
+ JArray a2 = new JArray();
+ JArray a3 = new JArray();
+ JArray a4 = new JArray();
+
+ a1.Add(a2);
+ a2.Add(a3);
+ a3.Add(a4);
+
+
+ }
+
+ [Test]
public void NestedJToken()
{
Stopwatch sw;
@@ -716,7 +731,7 @@ namespace Newtonsoft.Json.Tests
for (int j = 0; j < i; j++)
{
JArray temp = new JArray();
- ija.AddAndSkipParentCheck(temp);
+ ija.Add(temp);
ija = temp;
}
ija.Add(1);