Add note about test generation depth
authorLayomi Akinrinade <laakinri@microsoft.com>
Sat, 14 Dec 2019 00:25:35 +0000 (16:25 -0800)
committerLayomi Akinrinade <laakinri@microsoft.com>
Sat, 14 Dec 2019 00:25:35 +0000 (16:25 -0800)
src/libraries/System.Text.Json/tests/Serialization/DictionaryTests.cs

index cbd3b6e..dfdeb5c 100644 (file)
@@ -997,6 +997,9 @@ namespace System.Text.Json.Serialization.Tests
             };
             baseDictionaryTypes.AddRange(nonGenericDictTypes);
 
+            // This method has exponential behavior which this depth value significantly impacts.
+            // Don't change this value without checking how many test cases are generated and
+            // how long the tests run for.
             int maxTestDepth = 4;
 
             HashSet<(Type, string)> tests = new HashSet<(Type, string)>();