File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22<Project >
33 <PropertyGroup >
44 <NoWarn >CS1591;CS0649</NoWarn >
5- <Version >4.0.1 </Version >
5+ <Version >4.1.0 </Version >
66 <ImplicitUsings >enable</ImplicitUsings >
77 <AssemblyVersion >1.0.0</AssemblyVersion >
88 <PackageTags >ImageSharp, Verify</PackageTags >
Original file line number Diff line number Diff line change @@ -7,8 +7,4 @@ public static void Init() =>
77 VerifyImageSharp . Initialize ( ) ;
88
99 #endregion
10-
11- [ ModuleInitializer ]
12- public static void InitOther ( ) =>
13- VerifyImageSharp . Initialize ( ) ;
1410}
Original file line number Diff line number Diff line change @@ -10,8 +10,17 @@ namespace VerifyTests;
1010
1111public static class VerifyImageSharp
1212{
13+ public static bool Initialized { get ; private set ; }
14+
1315 public static void Initialize ( )
1416 {
17+ if ( Initialized )
18+ {
19+ throw new ( "Already Initialized" ) ;
20+ }
21+
22+ Initialized = true ;
23+
1524 InnerVerifier . ThrowIfVerifyHasBeenRun ( ) ;
1625 VerifierSettings . RegisterFileConverter ( "bmp" , ConvertBmp ) ;
1726 VerifierSettings . RegisterFileConverter ( "gif" , ConvertGif ) ;
You can’t perform that action at this time.
0 commit comments