Skip to content

Commit

Permalink
added comment explaining 0 max depth
Browse files Browse the repository at this point in the history
  • Loading branch information
alanisaac committed Mar 3, 2020
1 parent 9c0af54 commit 70835c4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static void WriteCyclicFailDefault()
[InlineData(2, 3)]
[InlineData(10, 11)]
[InlineData(70, 71)]
[InlineData(10, 0)]
[InlineData(10, 0)] // 0 (or default) max depth is treated as 64
public static void WriteCyclic(int objectHierarchyDepth, int maxDepth)
{
var rootObj = new TestClassWithCycle("root");
Expand All @@ -43,7 +43,7 @@ public static void WriteCyclic(int objectHierarchyDepth, int maxDepth)
[InlineData(2, 2, 1)]
[InlineData(10, 10, 9)]
[InlineData(70, 70, 69)]
[InlineData(70, 0, 63)]
[InlineData(70, 0, 63)] // 0 (or default) max depth is treated as 64
public static void WriteCyclicFail(int objectHierarchyDepth, int maxDepth, int expectedPathDepth)
{
var rootObj = new TestClassWithCycle("root");
Expand Down

0 comments on commit 70835c4

Please sign in to comment.