mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 09:46:54 +02:00
[ImageResizer] Enable analyzer and fix warnings (#16512)
This commit is contained in:
committed by
GitHub
parent
6a722e2961
commit
2b747d02d3
@@ -20,6 +20,8 @@
|
||||
<Platform Condition="'$(Platform)'==''">x64</Platform>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<IntermediateOutputPath>$(SolutionDir)$(Platform)\$(Configuration)\obj\$(AssemblyName)\</IntermediateOutputPath>
|
||||
<EnableNETAnalyzers>true</EnableNETAnalyzers>
|
||||
<AnalysisMode>Recommended</AnalysisMode>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace ImageResizer.Models
|
||||
[TestMethod]
|
||||
public void ProcessAggregatesErrors()
|
||||
{
|
||||
var batch = CreateBatch(file => throw new Exception("Error: " + file));
|
||||
var batch = CreateBatch(file => throw new InvalidOperationException("Error: " + file));
|
||||
batch.Files.Add("Image1.jpg");
|
||||
batch.Files.Add("Image2.jpg");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user