File tree 4 files changed +4
-7
lines changed
tests/ClosedXML.Report.Tests
4 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 50
50
</PropertyGroup >
51
51
52
52
<ItemGroup >
53
- <PackageReference Include =" ClosedXML" Version =" 0.96 .0" />
53
+ <PackageReference Include =" ClosedXML" Version =" 0.97 .0" />
54
54
<PackageReference Include =" morelinq" Version =" 3.3.2" />
55
55
<PackageReference Include =" System.Linq.Dynamic.Core" Version =" 1.2.20" />
56
56
</ItemGroup >
Original file line number Diff line number Diff line change 1
- using System . Drawing ;
2
- using System . IO ;
1
+ using System . IO ;
3
2
using ClosedXML . Excel . Drawings ;
4
3
using ClosedXML . Report . Utils ;
5
4
@@ -31,7 +30,6 @@ public override void Execute(ProcessingContext context)
31
30
case null : return ;
32
31
case Stream stream : picture = xlCell . Worksheet . AddPicture ( stream ) ; break ;
33
32
case string path : picture = xlCell . Worksheet . AddPicture ( path ) ; break ;
34
- case Bitmap image : picture = xlCell . Worksheet . AddPicture ( image ) ; break ;
35
33
default : throw new TemplateParseException ( "Unsupported image type." , xlCell . AsRange ( ) ) ;
36
34
} ;
37
35
picture . MoveTo ( xlCell ) ;
Original file line number Diff line number Diff line change 25
25
26
26
<ItemGroup >
27
27
<PackageReference Include =" Bogus" Version =" 34.0.2" />
28
- <PackageReference Include =" ClosedXML" Version =" 0.96.0" />
29
28
<PackageReference Include =" DocumentFormat.OpenXml" Version =" 2.16.0" />
30
29
<PackageReference Include =" FluentAssertions" Version =" 6.7.0" />
31
30
<PackageReference Include =" linq2db" Version =" 4.3.0" />
Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ public void ColsFit_option_should_FitWidth()
51
51
wb =>
52
52
{
53
53
var worksheet = wb . Worksheet ( 1 ) ;
54
- worksheet . Column ( 4 ) . Width . Should ( ) . BeInRange ( 4.969999 , 497009 ) ;
55
- worksheet . Column ( 5 ) . Width . Should ( ) . BeInRange ( 13.57999 , 13.58001 ) ;
54
+ worksheet . Column ( 4 ) . Width . Should ( ) . BeApproximately ( 5.03 , 0.01 ) ;
55
+ worksheet . Column ( 5 ) . Width . Should ( ) . BeApproximately ( 13.61 , 0.01 ) ;
56
56
} ) ;
57
57
}
58
58
You can’t perform that action at this time.
0 commit comments