Skip to content

Commit

Permalink
GH-55: Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikfroehling committed Apr 23, 2019
1 parent 50227ba commit 901d38d
Show file tree
Hide file tree
Showing 8 changed files with 119 additions and 313 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public async Task Test_SharingArrayJsonReader_ReadArray_From_Json_String_Incompl
sharings[0].Slack.Should().BeTrue();

sharings[1].Should().NotBeNull();
sharings[1].Twitter.Should().BeTrue();
sharings[1].Twitter.Should().BeNull();
sharings[1].Google.Should().BeTrue();
sharings[1].Tumblr.Should().BeTrue();
sharings[1].Medium.Should().BeTrue();
Expand All @@ -78,7 +78,7 @@ public async Task Test_SharingArrayJsonReader_ReadArray_From_Json_String_Incompl
ITraktSharing[] sharings = traktSharings.ToArray();

sharings[0].Should().NotBeNull();
sharings[0].Twitter.Should().BeTrue();
sharings[0].Twitter.Should().BeNull();
sharings[0].Google.Should().BeTrue();
sharings[0].Tumblr.Should().BeTrue();
sharings[0].Medium.Should().BeTrue();
Expand Down Expand Up @@ -109,7 +109,7 @@ public async Task Test_SharingArrayJsonReader_ReadArray_From_Json_String_Not_Val
sharings[0].Slack.Should().BeTrue();

sharings[1].Should().NotBeNull();
sharings[1].Twitter.Should().BeTrue();
sharings[1].Twitter.Should().BeNull();
sharings[1].Google.Should().BeTrue();
sharings[1].Tumblr.Should().BeTrue();
sharings[1].Medium.Should().BeTrue();
Expand All @@ -126,7 +126,7 @@ public async Task Test_SharingArrayJsonReader_ReadArray_From_Json_String_Not_Val
ITraktSharing[] sharings = traktSharings.ToArray();

sharings[0].Should().NotBeNull();
sharings[0].Twitter.Should().BeTrue();
sharings[0].Twitter.Should().BeNull();
sharings[0].Google.Should().BeTrue();
sharings[0].Tumblr.Should().BeTrue();
sharings[0].Medium.Should().BeTrue();
Expand All @@ -150,14 +150,14 @@ public async Task Test_SharingArrayJsonReader_ReadArray_From_Json_String_Not_Val
ITraktSharing[] sharings = traktSharings.ToArray();

sharings[0].Should().NotBeNull();
sharings[0].Twitter.Should().BeTrue();
sharings[0].Twitter.Should().BeNull();
sharings[0].Google.Should().BeTrue();
sharings[0].Tumblr.Should().BeTrue();
sharings[0].Medium.Should().BeTrue();
sharings[0].Slack.Should().BeTrue();

sharings[1].Should().NotBeNull();
sharings[1].Twitter.Should().BeTrue();
sharings[1].Twitter.Should().BeNull();
sharings[1].Google.Should().BeTrue();
sharings[1].Tumblr.Should().BeTrue();
sharings[1].Medium.Should().BeTrue();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public async Task Test_SharingArrayJsonReader_ReadArray_From_JsonReader_Incomple
sharings[0].Slack.Should().BeTrue();

sharings[1].Should().NotBeNull();
sharings[1].Twitter.Should().BeTrue();
sharings[1].Twitter.Should().BeNull();
sharings[1].Google.Should().BeTrue();
sharings[1].Tumblr.Should().BeTrue();
sharings[1].Medium.Should().BeTrue();
Expand All @@ -99,7 +99,7 @@ public async Task Test_SharingArrayJsonReader_ReadArray_From_JsonReader_Incomple
ITraktSharing[] sharings = traktSharings.ToArray();

sharings[0].Should().NotBeNull();
sharings[0].Twitter.Should().BeTrue();
sharings[0].Twitter.Should().BeNull();
sharings[0].Google.Should().BeTrue();
sharings[0].Tumblr.Should().BeTrue();
sharings[0].Medium.Should().BeTrue();
Expand Down Expand Up @@ -135,7 +135,7 @@ public async Task Test_SharingArrayJsonReader_ReadArray_From_JsonReader_Not_Vali
sharings[0].Slack.Should().BeTrue();

sharings[1].Should().NotBeNull();
sharings[1].Twitter.Should().BeTrue();
sharings[1].Twitter.Should().BeNull();
sharings[1].Google.Should().BeTrue();
sharings[1].Tumblr.Should().BeTrue();
sharings[1].Medium.Should().BeTrue();
Expand All @@ -157,7 +157,7 @@ public async Task Test_SharingArrayJsonReader_ReadArray_From_JsonReader_Not_Vali
ITraktSharing[] sharings = traktSharings.ToArray();

sharings[0].Should().NotBeNull();
sharings[0].Twitter.Should().BeTrue();
sharings[0].Twitter.Should().BeNull();
sharings[0].Google.Should().BeTrue();
sharings[0].Tumblr.Should().BeTrue();
sharings[0].Medium.Should().BeTrue();
Expand Down Expand Up @@ -186,14 +186,14 @@ public async Task Test_SharingArrayJsonReader_ReadArray_From_JsonReader_Not_Vali
ITraktSharing[] sharings = traktSharings.ToArray();

sharings[0].Should().NotBeNull();
sharings[0].Twitter.Should().BeTrue();
sharings[0].Twitter.Should().BeNull();
sharings[0].Google.Should().BeTrue();
sharings[0].Tumblr.Should().BeTrue();
sharings[0].Medium.Should().BeTrue();
sharings[0].Slack.Should().BeTrue();

sharings[1].Should().NotBeNull();
sharings[1].Twitter.Should().BeTrue();
sharings[1].Twitter.Should().BeNull();
sharings[1].Google.Should().BeTrue();
sharings[1].Tumblr.Should().BeTrue();
sharings[1].Medium.Should().BeTrue();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public async Task Test_SharingArrayJsonReader_ReadArray_From_Stream_Incomplete_1
sharings[0].Slack.Should().BeTrue();

sharings[1].Should().NotBeNull();
sharings[1].Twitter.Should().BeTrue();
sharings[1].Twitter.Should().BeNull();
sharings[1].Google.Should().BeTrue();
sharings[1].Tumblr.Should().BeTrue();
sharings[1].Medium.Should().BeTrue();
Expand All @@ -95,7 +95,7 @@ public async Task Test_SharingArrayJsonReader_ReadArray_From_Stream_Incomplete_2
ITraktSharing[] sharings = traktSharings.ToArray();

sharings[0].Should().NotBeNull();
sharings[0].Twitter.Should().BeTrue();
sharings[0].Twitter.Should().BeNull();
sharings[0].Google.Should().BeTrue();
sharings[0].Tumblr.Should().BeTrue();
sharings[0].Medium.Should().BeTrue();
Expand Down Expand Up @@ -130,7 +130,7 @@ public async Task Test_SharingArrayJsonReader_ReadArray_From_Stream_Not_Valid_1(
sharings[0].Slack.Should().BeTrue();

sharings[1].Should().NotBeNull();
sharings[1].Twitter.Should().BeTrue();
sharings[1].Twitter.Should().BeNull();
sharings[1].Google.Should().BeTrue();
sharings[1].Tumblr.Should().BeTrue();
sharings[1].Medium.Should().BeTrue();
Expand All @@ -151,7 +151,7 @@ public async Task Test_SharingArrayJsonReader_ReadArray_From_Stream_Not_Valid_2(
ITraktSharing[] sharings = traktSharings.ToArray();

sharings[0].Should().NotBeNull();
sharings[0].Twitter.Should().BeTrue();
sharings[0].Twitter.Should().BeNull();
sharings[0].Google.Should().BeTrue();
sharings[0].Tumblr.Should().BeTrue();
sharings[0].Medium.Should().BeTrue();
Expand Down Expand Up @@ -179,14 +179,14 @@ public async Task Test_SharingArrayJsonReader_ReadArray_From_Stream_Not_Valid_3(
ITraktSharing[] sharings = traktSharings.ToArray();

sharings[0].Should().NotBeNull();
sharings[0].Twitter.Should().BeTrue();
sharings[0].Twitter.Should().BeNull();
sharings[0].Google.Should().BeTrue();
sharings[0].Tumblr.Should().BeTrue();
sharings[0].Medium.Should().BeTrue();
sharings[0].Slack.Should().BeTrue();

sharings[1].Should().NotBeNull();
sharings[1].Twitter.Should().BeTrue();
sharings[1].Twitter.Should().BeNull();
sharings[1].Google.Should().BeTrue();
sharings[1].Tumblr.Should().BeTrue();
sharings[1].Medium.Should().BeTrue();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ public partial class SharingArrayJsonReader_Tests
""slack"": true
},
{
""twitter"": true,
""google"": true,
""tumblr"": true,
""medium"": true,
Expand All @@ -43,7 +42,6 @@ public partial class SharingArrayJsonReader_Tests
private const string JSON_INCOMPLETE_2 =
@"[
{
""twitter"": true,
""google"": true,
""tumblr"": true,
""medium"": true,
Expand All @@ -68,7 +66,7 @@ public partial class SharingArrayJsonReader_Tests
""slack"": true
},
{
""twitter"": true,
""tw"": true,
""google"": true,
""tumblr"": true,
""medium"": true,
Expand All @@ -79,7 +77,7 @@ public partial class SharingArrayJsonReader_Tests
private const string JSON_NOT_VALID_2 =
@"[
{
""twitter"": true,
""tw"": true,
""google"": true,
""tumblr"": true,
""medium"": true,
Expand All @@ -97,14 +95,14 @@ public partial class SharingArrayJsonReader_Tests
private const string JSON_NOT_VALID_3 =
@"[
{
""twitter"": true,
""tw"": true,
""google"": true,
""tumblr"": true,
""medium"": true,
""slack"": true
},
{
""twitter"": true,
""tw"": true,
""google"": true,
""tumblr"": true,
""medium"": true,
Expand Down
Loading

0 comments on commit 901d38d

Please sign in to comment.