File tree Expand file tree Collapse file tree 2 files changed +1
-17
lines changed
src/ICSharpCode.SharpZipLib/Zip
test/ICSharpCode.SharpZipLib.Tests/Zip Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -724,17 +724,13 @@ public long Crc
724724 /// <summary>
725725 /// Gets/Sets the compression method.
726726 /// </summary>
727- /// <remarks>Throws exception when set if the method is not valid as per <see cref="IsCompressionMethodSupported()"/></remarks>
728- /// <exception cref="NotSupportedException"/>
729727 /// <returns>
730728 /// The compression method for this entry
731729 /// </returns>
732730 public CompressionMethod CompressionMethod
733731 {
734732 get => method ;
735- set => method = ! IsCompressionMethodSupported ( value )
736- ? throw new NotSupportedException ( "Compression method not supported" )
737- : value ;
733+ set => method = value ;
738734 }
739735
740736 /// <summary>
Original file line number Diff line number Diff line change @@ -133,18 +133,6 @@ private string DescribeAttributes(FieldAttributes attributes)
133133 return att ;
134134 }
135135
136- [ Test ]
137- [ Category ( "Zip" ) ]
138- //[ExpectedException(typeof(NotSupportedException))]
139- public void UnsupportedCompressionMethod ( )
140- {
141- var ze = new ZipEntry ( "HumblePie" ) ;
142- //ze.CompressionMethod = CompressionMethod.BZip2;
143-
144- Assert . That ( ( ) => ze . CompressionMethod = CompressionMethod . Deflate64 ,
145- Throws . TypeOf < NotSupportedException > ( ) ) ;
146- }
147-
148136 /// <summary>
149137 /// Invalid passwords should be detected early if possible, seekable stream
150138 /// Note: Have a 1/255 chance of failing due to CRC collision (hence retried once)
You can’t perform that action at this time.
0 commit comments