public void BuildFileSplitInfoTest(string testCase, string[] arguments, FileSplitInfo expectedResult, Exception expectedException) { try { var argumentParser = new ArgumentParser() { Arguments = arguments }; var actual = argumentParser.BuildFileSplitInfo(); Assert.NotNull(testCase); Assert.Equal(expectedResult.FilePath, actual.FilePath); Assert.Equal(expectedResult.NumberOfChunks, actual.NumberOfChunks); Assert.Equal(expectedResult.ChunkSize, actual.ChunkSize); } catch (Exception ex) { Assert.Equal(expectedException.GetType().FullName, ex.GetType().FullName); Assert.Equal(expectedException.Message, ex.Message); } }