Skip to content

Commit

Permalink
Merge pull request #4138 from aviv86/RavenDB-8809-v3.5
Browse files Browse the repository at this point in the history
RavenDB-8809-v3.5
  • Loading branch information
ayende committed Oct 30, 2017
2 parents a466af7 + ddcfb2b commit d5712ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Raven.Tests/Json/JsonCodeGeneratorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -569,15 +569,15 @@ public void JsonCodeGenerator_WithRecursive1Level()
Assert.NotNull(clazz);

var first = classTypes["RecursiveClass"].Single() as JsonCodeGenerator.ClassType;
Assert.NotNull(clazz);
Assert.NotNull(first);

Assert.Equal("string", clazz.Properties["Name"].Name);
Assert.False(clazz.Properties["Name"].IsArray);
Assert.True(clazz.Properties["Name"].IsPrimitive);

Assert.Equal("string", first.Properties["Name"].Name);
Assert.False(clazz.Properties["Name"].IsArray);
Assert.True(clazz.Properties["Name"].IsPrimitive);
Assert.False(first.Properties["Name"].IsArray);
Assert.True(first.Properties["Name"].IsPrimitive);

Assert.Equal("RecursiveClass", clazz.Properties["Recursive"].Name);
Assert.False(clazz.Properties["Recursive"].IsArray);
Expand Down

0 comments on commit d5712ab

Please sign in to comment.