public void ShouldThrow_WhenChunkResultsAreNull() { // arrange var chunkResultMerger = new ChunkResultMerger(); // act & assert Assert.Throws <ArgumentNullException>(() => chunkResultMerger.Merge(chunkResults: null)); }
public void ShouldMerge(string input, string strExpected) { // arrange var chunkResults = input.ToChunkResultArray(); var expected = strExpected.ToDictionary(); var chunkResultMerger = new ChunkResultMerger(); // act var actual = chunkResultMerger.Merge(chunkResults); // assert Assert.Equal(expected, actual); }