public async Task Test_UserCustomListsReorderPostResponseObjectJsonReader_ReadObject_From_Json_String_Empty() { var traktJsonReader = new UserCustomListsReorderPostResponseObjectJsonReader(); var traktUserCustomListsReorderPostResponse = await traktJsonReader.ReadObjectAsync(string.Empty); traktUserCustomListsReorderPostResponse.Should().BeNull(); }
public void Test_UserCustomListsReorderPostResponseObjectJsonReader_ReadObject_From_Stream_Null() { var traktJsonReader = new UserCustomListsReorderPostResponseObjectJsonReader(); Func <Task <ITraktUserCustomListsReorderPostResponse> > traktUserCustomListsReorderPostResponse = () => traktJsonReader.ReadObjectAsync(default(Stream)); traktUserCustomListsReorderPostResponse.Should().Throw <ArgumentNullException>(); }
public async Task Test_UserCustomListsReorderPostResponseObjectJsonReader_ReadObject_From_Json_String_Not_Valid_3() { var traktJsonReader = new UserCustomListsReorderPostResponseObjectJsonReader(); var traktUserCustomListsReorderPostResponse = await traktJsonReader.ReadObjectAsync(JSON_NOT_VALID_3); traktUserCustomListsReorderPostResponse.Should().NotBeNull(); traktUserCustomListsReorderPostResponse.Updated.Should().BeNull(); traktUserCustomListsReorderPostResponse.SkippedIds.Should().BeNull(); }
public async Task Test_UserCustomListsReorderPostResponseObjectJsonReader_ReadObject_From_Json_String_Incomplete_2() { var traktJsonReader = new UserCustomListsReorderPostResponseObjectJsonReader(); var traktUserCustomListsReorderPostResponse = await traktJsonReader.ReadObjectAsync(JSON_INCOMPLETE_2); traktUserCustomListsReorderPostResponse.Should().NotBeNull(); traktUserCustomListsReorderPostResponse.Updated.Should().Be(6); traktUserCustomListsReorderPostResponse.SkippedIds.Should().BeNull(); }
public async Task Test_UserCustomListsReorderPostResponseObjectJsonReader_ReadObject_From_Stream_Empty() { var traktJsonReader = new UserCustomListsReorderPostResponseObjectJsonReader(); using (var stream = string.Empty.ToStream()) { var traktUserCustomListsReorderPostResponse = await traktJsonReader.ReadObjectAsync(stream); traktUserCustomListsReorderPostResponse.Should().BeNull(); } }
public async Task Test_UserCustomListsReorderPostResponseObjectJsonReader_ReadObject_From_JsonReader_Empty() { var traktJsonReader = new UserCustomListsReorderPostResponseObjectJsonReader(); using (var reader = new StringReader(string.Empty)) using (var jsonReader = new JsonTextReader(reader)) { var traktUserCustomListsReorderPostResponse = await traktJsonReader.ReadObjectAsync(jsonReader); traktUserCustomListsReorderPostResponse.Should().BeNull(); } }
public async Task Test_UserCustomListsReorderPostResponseObjectJsonReader_ReadObject_From_Json_String_Not_Valid_1() { var traktJsonReader = new UserCustomListsReorderPostResponseObjectJsonReader(); var traktUserCustomListsReorderPostResponse = await traktJsonReader.ReadObjectAsync(JSON_NOT_VALID_1); traktUserCustomListsReorderPostResponse.Should().NotBeNull(); traktUserCustomListsReorderPostResponse.Updated.Should().BeNull(); traktUserCustomListsReorderPostResponse.SkippedIds.Should().NotBeNull().And.HaveCount(1); traktUserCustomListsReorderPostResponse.SkippedIds.Should().BeEquivalentTo(new List <uint> { 2 }); }
public async Task Test_UserCustomListsReorderPostResponseObjectJsonReader_ReadObject_From_Stream_Not_Valid_2() { var traktJsonReader = new UserCustomListsReorderPostResponseObjectJsonReader(); using (var stream = JSON_NOT_VALID_2.ToStream()) { var traktUserCustomListsReorderPostResponse = await traktJsonReader.ReadObjectAsync(stream); traktUserCustomListsReorderPostResponse.Should().NotBeNull(); traktUserCustomListsReorderPostResponse.Updated.Should().Be(6); traktUserCustomListsReorderPostResponse.SkippedIds.Should().BeNull(); } }
public async Task Test_TraktUserCustomListsReorderPostResponse_From_Json() { var jsonReader = new UserCustomListsReorderPostResponseObjectJsonReader(); var userCustomListsReorderPostResponse = await jsonReader.ReadObjectAsync(JSON) as TraktUserCustomListsReorderPostResponse; userCustomListsReorderPostResponse.Should().NotBeNull(); userCustomListsReorderPostResponse.Updated.Should().Be(6); userCustomListsReorderPostResponse.SkippedIds.Should().NotBeNull().And.HaveCount(1); userCustomListsReorderPostResponse.SkippedIds.Should().BeEquivalentTo(new List <uint> { 2 }); }
public async Task Test_UserCustomListsReorderPostResponseObjectJsonReader_ReadObject_From_JsonReader_Not_Valid_2() { var traktJsonReader = new UserCustomListsReorderPostResponseObjectJsonReader(); using (var reader = new StringReader(JSON_NOT_VALID_2)) using (var jsonReader = new JsonTextReader(reader)) { var traktUserCustomListsReorderPostResponse = await traktJsonReader.ReadObjectAsync(jsonReader); traktUserCustomListsReorderPostResponse.Should().NotBeNull(); traktUserCustomListsReorderPostResponse.Updated.Should().Be(6); traktUserCustomListsReorderPostResponse.SkippedIds.Should().BeNull(); } }
public async Task Test_UserCustomListsReorderPostResponseObjectJsonReader_ReadObject_From_JsonReader_Incomplete_1() { var traktJsonReader = new UserCustomListsReorderPostResponseObjectJsonReader(); using (var reader = new StringReader(JSON_INCOMPLETE_1)) using (var jsonReader = new JsonTextReader(reader)) { var traktUserCustomListsReorderPostResponse = await traktJsonReader.ReadObjectAsync(jsonReader); traktUserCustomListsReorderPostResponse.Should().NotBeNull(); traktUserCustomListsReorderPostResponse.Updated.Should().BeNull(); traktUserCustomListsReorderPostResponse.SkippedIds.Should().NotBeNull().And.HaveCount(1); traktUserCustomListsReorderPostResponse.SkippedIds.Should().BeEquivalentTo(new List<uint> { 2 }); } }
public async Task Test_UserCustomListsReorderPostResponseObjectJsonReader_ReadObject_From_Stream_Complete() { var traktJsonReader = new UserCustomListsReorderPostResponseObjectJsonReader(); using (var stream = JSON_COMPLETE.ToStream()) { var traktUserCustomListsReorderPostResponse = await traktJsonReader.ReadObjectAsync(stream); traktUserCustomListsReorderPostResponse.Should().NotBeNull(); traktUserCustomListsReorderPostResponse.Updated.Should().Be(6); traktUserCustomListsReorderPostResponse.SkippedIds.Should().NotBeNull().And.HaveCount(1); traktUserCustomListsReorderPostResponse.SkippedIds.Should().BeEquivalentTo(new List <uint> { 2 }); } }
public async Task Test_UserCustomListsReorderPostResponseObjectJsonReader_ReadObject_From_JsonReader_Null() { var traktJsonReader = new UserCustomListsReorderPostResponseObjectJsonReader(); Func <Task <ITraktUserCustomListsReorderPostResponse> > traktUserCustomListsReorderPostResponse = () => traktJsonReader.ReadObjectAsync(default(JsonTextReader)); await traktUserCustomListsReorderPostResponse.Should().ThrowAsync <ArgumentNullException>(); }