public void ShouldReturnAByteArrayFromGeneratedFileZip() { // Arrange IDictionary <string, byte[]> filesToZip = new Dictionary <string, byte[]> { { "br.png", File.ReadAllBytes($@"{ Environment.CurrentDirectory }\Images\br.png") }, { "minas_gerais.png", File.ReadAllBytes($@"{ Environment.CurrentDirectory }\Images\minas_gerais.png") } }; // Act byte[] zippedFileByteArray = ZipFileFromByteArrayList.Create(filesToZip); // Assert Assert.True(zippedFileByteArray.Length > 0); }
public void ShouldThrowExceptionForInvalidParameter(IDictionary <string, byte[]> files) { Assert.Throws <ArgumentException>(() => ZipFileFromByteArrayList.Create(files)); }