Skip to content

Commit

Permalink
GH-125: Add tests for new properties in basic json objects
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikfroehling committed May 31, 2020
1 parent 6ddd46a commit e2a46fb
Show file tree
Hide file tree
Showing 14 changed files with 1,086 additions and 92 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public async Task Test_CastAndCrewArrayJsonReader_ReadArray_From_Json_String_Com

castMemberItems[0].Should().NotBeNull();
castMemberItems[0].Character.Should().Be("Joe Brody");
castMemberItems[0].Characters.Should().NotBeNull().And.HaveCount(1).And.Contain("Joe Brody");
castMemberItems[0].Person.Should().NotBeNull();
castMemberItems[0].Person.Name.Should().Be("Bryan Cranston");
castMemberItems[0].Person.Ids.Should().NotBeNull();
Expand All @@ -47,6 +48,7 @@ public async Task Test_CastAndCrewArrayJsonReader_ReadArray_From_Json_String_Com

castMemberItems[0].Should().NotBeNull();
castMemberItems[0].Character.Should().Be("Joe Brody");
castMemberItems[0].Characters.Should().NotBeNull().And.HaveCount(1).And.Contain("Joe Brody");
castMemberItems[0].Person.Should().NotBeNull();
castMemberItems[0].Person.Name.Should().Be("Bryan Cranston");
castMemberItems[0].Person.Ids.Should().NotBeNull();
Expand All @@ -71,6 +73,7 @@ public async Task Test_CastAndCrewArrayJsonReader_ReadArray_From_Json_String_Inc

castMemberItems[0].Should().NotBeNull();
castMemberItems[0].Character.Should().Be("Joe Brody");
castMemberItems[0].Characters.Should().NotBeNull().And.HaveCount(1).And.Contain("Joe Brody");
castMemberItems[0].Person.Should().NotBeNull();
castMemberItems[0].Person.Name.Should().Be("Bryan Cranston");
castMemberItems[0].Person.Ids.Should().NotBeNull();
Expand All @@ -86,6 +89,7 @@ public async Task Test_CastAndCrewArrayJsonReader_ReadArray_From_Json_String_Inc

castMemberItems[0].Should().NotBeNull();
castMemberItems[0].Character.Should().Be("Joe Brody");
castMemberItems[0].Characters.Should().NotBeNull().And.HaveCount(1).And.Contain("Joe Brody");
castMemberItems[0].Person.Should().BeNull();

items[1].Crew.Should().BeNull();
Expand All @@ -103,6 +107,7 @@ public async Task Test_CastAndCrewArrayJsonReader_ReadArray_From_Json_String_Inc

castMemberItems[0].Should().NotBeNull();
castMemberItems[0].Character.Should().Be("Joe Brody");
castMemberItems[0].Characters.Should().NotBeNull().And.HaveCount(1).And.Contain("Joe Brody");
castMemberItems[0].Person.Should().BeNull();

items[0].Crew.Should().BeNull();
Expand All @@ -111,6 +116,7 @@ public async Task Test_CastAndCrewArrayJsonReader_ReadArray_From_Json_String_Inc

castMemberItems[0].Should().NotBeNull();
castMemberItems[0].Character.Should().Be("Joe Brody");
castMemberItems[0].Characters.Should().NotBeNull().And.HaveCount(1).And.Contain("Joe Brody");
castMemberItems[0].Person.Should().NotBeNull();
castMemberItems[0].Person.Name.Should().Be("Bryan Cranston");
castMemberItems[0].Person.Ids.Should().NotBeNull();
Expand Down Expand Up @@ -139,6 +145,7 @@ public async Task Test_CastAndCrewArrayJsonReader_ReadArray_From_Json_String_Not

castMemberItems[0].Should().NotBeNull();
castMemberItems[0].Character.Should().Be("Joe Brody");
castMemberItems[0].Characters.Should().NotBeNull().And.HaveCount(1).And.Contain("Joe Brody");
castMemberItems[0].Person.Should().NotBeNull();
castMemberItems[0].Person.Name.Should().Be("Bryan Cranston");
castMemberItems[0].Person.Ids.Should().NotBeNull();
Expand All @@ -163,6 +170,7 @@ public async Task Test_CastAndCrewArrayJsonReader_ReadArray_From_Json_String_Not

castMemberItems[0].Should().NotBeNull();
castMemberItems[0].Character.Should().Be("Joe Brody");
castMemberItems[0].Characters.Should().NotBeNull().And.HaveCount(1).And.Contain("Joe Brody");
castMemberItems[0].Person.Should().NotBeNull();
castMemberItems[0].Person.Name.Should().Be("Bryan Cranston");
castMemberItems[0].Person.Ids.Should().NotBeNull();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public async Task Test_CastAndCrewArrayJsonReader_ReadArray_From_JsonReader_Comp

castMemberItems[0].Should().NotBeNull();
castMemberItems[0].Character.Should().Be("Joe Brody");
castMemberItems[0].Characters.Should().NotBeNull().And.HaveCount(1).And.Contain("Joe Brody");
castMemberItems[0].Person.Should().NotBeNull();
castMemberItems[0].Person.Name.Should().Be("Bryan Cranston");
castMemberItems[0].Person.Ids.Should().NotBeNull();
Expand All @@ -58,6 +59,7 @@ public async Task Test_CastAndCrewArrayJsonReader_ReadArray_From_JsonReader_Comp

castMemberItems[0].Should().NotBeNull();
castMemberItems[0].Character.Should().Be("Joe Brody");
castMemberItems[0].Characters.Should().NotBeNull().And.HaveCount(1).And.Contain("Joe Brody");
castMemberItems[0].Person.Should().NotBeNull();
castMemberItems[0].Person.Name.Should().Be("Bryan Cranston");
castMemberItems[0].Person.Ids.Should().NotBeNull();
Expand Down Expand Up @@ -87,6 +89,7 @@ public async Task Test_CastAndCrewArrayJsonReader_ReadArray_From_JsonReader_Inco

castMemberItems[0].Should().NotBeNull();
castMemberItems[0].Character.Should().Be("Joe Brody");
castMemberItems[0].Characters.Should().NotBeNull().And.HaveCount(1).And.Contain("Joe Brody");
castMemberItems[0].Person.Should().NotBeNull();
castMemberItems[0].Person.Name.Should().Be("Bryan Cranston");
castMemberItems[0].Person.Ids.Should().NotBeNull();
Expand All @@ -102,6 +105,7 @@ public async Task Test_CastAndCrewArrayJsonReader_ReadArray_From_JsonReader_Inco

castMemberItems[0].Should().NotBeNull();
castMemberItems[0].Character.Should().Be("Joe Brody");
castMemberItems[0].Characters.Should().NotBeNull().And.HaveCount(1).And.Contain("Joe Brody");
castMemberItems[0].Person.Should().BeNull();

items[1].Crew.Should().BeNull();
Expand All @@ -124,6 +128,7 @@ public async Task Test_CastAndCrewArrayJsonReader_ReadArray_From_JsonReader_Inco

castMemberItems[0].Should().NotBeNull();
castMemberItems[0].Character.Should().Be("Joe Brody");
castMemberItems[0].Characters.Should().NotBeNull().And.HaveCount(1).And.Contain("Joe Brody");
castMemberItems[0].Person.Should().BeNull();

items[0].Crew.Should().BeNull();
Expand All @@ -132,6 +137,7 @@ public async Task Test_CastAndCrewArrayJsonReader_ReadArray_From_JsonReader_Inco

castMemberItems[0].Should().NotBeNull();
castMemberItems[0].Character.Should().Be("Joe Brody");
castMemberItems[0].Characters.Should().NotBeNull().And.HaveCount(1).And.Contain("Joe Brody");
castMemberItems[0].Person.Should().NotBeNull();
castMemberItems[0].Person.Name.Should().Be("Bryan Cranston");
castMemberItems[0].Person.Ids.Should().NotBeNull();
Expand Down Expand Up @@ -165,6 +171,7 @@ public async Task Test_CastAndCrewArrayJsonReader_ReadArray_From_JsonReader_Not_

castMemberItems[0].Should().NotBeNull();
castMemberItems[0].Character.Should().Be("Joe Brody");
castMemberItems[0].Characters.Should().NotBeNull().And.HaveCount(1).And.Contain("Joe Brody");
castMemberItems[0].Person.Should().NotBeNull();
castMemberItems[0].Person.Name.Should().Be("Bryan Cranston");
castMemberItems[0].Person.Ids.Should().NotBeNull();
Expand Down Expand Up @@ -194,6 +201,7 @@ public async Task Test_CastAndCrewArrayJsonReader_ReadArray_From_JsonReader_Not_

castMemberItems[0].Should().NotBeNull();
castMemberItems[0].Character.Should().Be("Joe Brody");
castMemberItems[0].Characters.Should().NotBeNull().And.HaveCount(1).And.Contain("Joe Brody");
castMemberItems[0].Person.Should().NotBeNull();
castMemberItems[0].Person.Name.Should().Be("Bryan Cranston");
castMemberItems[0].Person.Ids.Should().NotBeNull();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public async Task Test_CastAndCrewArrayJsonReader_ReadArray_From_Stream_Complete

castMemberItems[0].Should().NotBeNull();
castMemberItems[0].Character.Should().Be("Joe Brody");
castMemberItems[0].Characters.Should().NotBeNull().And.HaveCount(1).And.Contain("Joe Brody");
castMemberItems[0].Person.Should().NotBeNull();
castMemberItems[0].Person.Name.Should().Be("Bryan Cranston");
castMemberItems[0].Person.Ids.Should().NotBeNull();
Expand All @@ -56,6 +57,7 @@ public async Task Test_CastAndCrewArrayJsonReader_ReadArray_From_Stream_Complete

castMemberItems[0].Should().NotBeNull();
castMemberItems[0].Character.Should().Be("Joe Brody");
castMemberItems[0].Characters.Should().NotBeNull().And.HaveCount(1).And.Contain("Joe Brody");
castMemberItems[0].Person.Should().NotBeNull();
castMemberItems[0].Person.Name.Should().Be("Bryan Cranston");
castMemberItems[0].Person.Ids.Should().NotBeNull();
Expand Down Expand Up @@ -84,6 +86,7 @@ public async Task Test_CastAndCrewArrayJsonReader_ReadArray_From_Stream_Incomple

castMemberItems[0].Should().NotBeNull();
castMemberItems[0].Character.Should().Be("Joe Brody");
castMemberItems[0].Characters.Should().NotBeNull().And.HaveCount(1).And.Contain("Joe Brody");
castMemberItems[0].Person.Should().NotBeNull();
castMemberItems[0].Person.Name.Should().Be("Bryan Cranston");
castMemberItems[0].Person.Ids.Should().NotBeNull();
Expand All @@ -99,6 +102,7 @@ public async Task Test_CastAndCrewArrayJsonReader_ReadArray_From_Stream_Incomple

castMemberItems[0].Should().NotBeNull();
castMemberItems[0].Character.Should().Be("Joe Brody");
castMemberItems[0].Characters.Should().NotBeNull().And.HaveCount(1).And.Contain("Joe Brody");
castMemberItems[0].Person.Should().BeNull();

items[1].Crew.Should().BeNull();
Expand All @@ -120,6 +124,7 @@ public async Task Test_CastAndCrewArrayJsonReader_ReadArray_From_Stream_Incomple

castMemberItems[0].Should().NotBeNull();
castMemberItems[0].Character.Should().Be("Joe Brody");
castMemberItems[0].Characters.Should().NotBeNull().And.HaveCount(1).And.Contain("Joe Brody");
castMemberItems[0].Person.Should().BeNull();

items[0].Crew.Should().BeNull();
Expand All @@ -128,6 +133,7 @@ public async Task Test_CastAndCrewArrayJsonReader_ReadArray_From_Stream_Incomple

castMemberItems[0].Should().NotBeNull();
castMemberItems[0].Character.Should().Be("Joe Brody");
castMemberItems[0].Characters.Should().NotBeNull().And.HaveCount(1).And.Contain("Joe Brody");
castMemberItems[0].Person.Should().NotBeNull();
castMemberItems[0].Person.Name.Should().Be("Bryan Cranston");
castMemberItems[0].Person.Ids.Should().NotBeNull();
Expand Down Expand Up @@ -160,6 +166,7 @@ public async Task Test_CastAndCrewArrayJsonReader_ReadArray_From_Stream_Not_Vali

castMemberItems[0].Should().NotBeNull();
castMemberItems[0].Character.Should().Be("Joe Brody");
castMemberItems[0].Characters.Should().NotBeNull().And.HaveCount(1).And.Contain("Joe Brody");
castMemberItems[0].Person.Should().NotBeNull();
castMemberItems[0].Person.Name.Should().Be("Bryan Cranston");
castMemberItems[0].Person.Ids.Should().NotBeNull();
Expand Down Expand Up @@ -188,6 +195,7 @@ public async Task Test_CastAndCrewArrayJsonReader_ReadArray_From_Stream_Not_Vali

castMemberItems[0].Should().NotBeNull();
castMemberItems[0].Character.Should().Be("Joe Brody");
castMemberItems[0].Characters.Should().NotBeNull().And.HaveCount(1).And.Contain("Joe Brody");
castMemberItems[0].Person.Should().NotBeNull();
castMemberItems[0].Person.Name.Should().Be("Bryan Cranston");
castMemberItems[0].Person.Ids.Should().NotBeNull();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ public partial class CastAndCrewArrayJsonReader_Tests
""cast"": [
{
""character"": ""Joe Brody"",
""characters"": [
""Joe Brody""
],
""person"": {
""name"": ""Bryan Cranston"",
""ids"": {
Expand All @@ -27,6 +30,9 @@ public partial class CastAndCrewArrayJsonReader_Tests
""cast"": [
{
""character"": ""Joe Brody"",
""characters"": [
""Joe Brody""
],
""person"": {
""name"": ""Bryan Cranston"",
""ids"": {
Expand All @@ -48,6 +54,9 @@ public partial class CastAndCrewArrayJsonReader_Tests
""cast"": [
{
""character"": ""Joe Brody"",
""characters"": [
""Joe Brody""
],
""person"": {
""name"": ""Bryan Cranston"",
""ids"": {
Expand All @@ -64,7 +73,10 @@ public partial class CastAndCrewArrayJsonReader_Tests
{
""cast"": [
{
""character"": ""Joe Brody""
""character"": ""Joe Brody"",
""characters"": [
""Joe Brody""
]
}
]
}
Expand All @@ -75,14 +87,20 @@ public partial class CastAndCrewArrayJsonReader_Tests
{
""cast"": [
{
""character"": ""Joe Brody""
""character"": ""Joe Brody"",
""characters"": [
""Joe Brody""
]
}
]
},
{
""cast"": [
{
""character"": ""Joe Brody"",
""characters"": [
""Joe Brody""
],
""person"": {
""name"": ""Bryan Cranston"",
""ids"": {
Expand All @@ -104,6 +122,9 @@ public partial class CastAndCrewArrayJsonReader_Tests
""ca"": [
{
""character"": ""Joe Brody"",
""characters"": [
""Joe Brody""
],
""person"": {
""name"": ""Bryan Cranston"",
""ids"": {
Expand All @@ -121,6 +142,9 @@ public partial class CastAndCrewArrayJsonReader_Tests
""cast"": [
{
""character"": ""Joe Brody"",
""characters"": [
""Joe Brody""
],
""person"": {
""name"": ""Bryan Cranston"",
""ids"": {
Expand All @@ -142,6 +166,9 @@ public partial class CastAndCrewArrayJsonReader_Tests
""cast"": [
{
""character"": ""Joe Brody"",
""characters"": [
""Joe Brody""
],
""person"": {
""name"": ""Bryan Cranston"",
""ids"": {
Expand All @@ -159,6 +186,9 @@ public partial class CastAndCrewArrayJsonReader_Tests
""ca"": [
{
""character"": ""Joe Brody"",
""characters"": [
""Joe Brody""
],
""person"": {
""name"": ""Bryan Cranston"",
""ids"": {
Expand All @@ -180,6 +210,9 @@ public partial class CastAndCrewArrayJsonReader_Tests
""ca"": [
{
""character"": ""Joe Brody"",
""characters"": [
""Joe Brody""
],
""person"": {
""name"": ""Bryan Cranston"",
""ids"": {
Expand All @@ -197,6 +230,9 @@ public partial class CastAndCrewArrayJsonReader_Tests
""ca"": [
{
""character"": ""Joe Brody"",
""characters"": [
""Joe Brody""
],
""person"": {
""name"": ""Bryan Cranston"",
""ids"": {
Expand Down
Loading

0 comments on commit e2a46fb

Please sign in to comment.