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
724
724
/// <summary>
725
725
/// Gets/Sets the compression method.
726
726
/// </summary>
727
- /// <remarks>Throws exception when set if the method is not valid as per <see cref="IsCompressionMethodSupported()"/></remarks>
728
- /// <exception cref="NotSupportedException"/>
729
727
/// <returns>
730
728
/// The compression method for this entry
731
729
/// </returns>
732
730
public CompressionMethod CompressionMethod
733
731
{
734
732
get => method ;
735
- set => method = ! IsCompressionMethodSupported ( value )
736
- ? throw new NotSupportedException ( "Compression method not supported" )
737
- : value ;
733
+ set => method = value ;
738
734
}
739
735
740
736
/// <summary>
Original file line number Diff line number Diff line change @@ -133,18 +133,6 @@ private string DescribeAttributes(FieldAttributes attributes)
133
133
return att ;
134
134
}
135
135
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
-
148
136
/// <summary>
149
137
/// Invalid passwords should be detected early if possible, seekable stream
150
138
/// 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