Skip to content

Commit 3a24fc0

Browse files
Fix typo and tests
1 parent c937a44 commit 3a24fc0

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

src/ImageSharp.Web/Middleware/ImageSharpMiddleware.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ private async Task ProcessRequestAsync(
338338
FormattedImage image = null;
339339
try
340340
{
341-
// Now we ca finally process the image.
341+
// Now we can finally process the image.
342342
// We first sort the processor collection by command order then use that collection to determine whether the decoded image pixel format
343343
// explicitly requires an alpha component in order to allow correct processing.
344344
//

tests/ImageSharp.Web.Tests/Processors/ResizeWebProcessorTests.cs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ public void ResizeWebProcessor_UpdatesSize(string resampler)
4545
new ArrayConverter<float>(),
4646
new EnumConverter(),
4747
new SimpleCommandConverter<bool>(),
48-
new SimpleCommandConverter<float>()
48+
new SimpleCommandConverter<float>(),
49+
new ColorConverter()
4950
};
5051

5152
var parser = new CommandParser(converters);
@@ -91,7 +92,8 @@ public void ResizeWebProcessor_RespectsOrientation_Size(ushort orientation, bool
9192
new ArrayConverter<float>(),
9293
new EnumConverter(),
9394
new SimpleCommandConverter<bool>(),
94-
new SimpleCommandConverter<float>()
95+
new SimpleCommandConverter<float>(),
96+
new ColorConverter()
9597
};
9698

9799
var parser = new CommandParser(converters);
@@ -146,7 +148,8 @@ public void ResizeWebProcessor_RespectsOrientation_Center(ushort orientation)
146148
new ArrayConverter<float>(),
147149
new EnumConverter(),
148150
new SimpleCommandConverter<bool>(),
149-
new SimpleCommandConverter<float>()
151+
new SimpleCommandConverter<float>(),
152+
new ColorConverter()
150153
};
151154

152155
var parser = new CommandParser(converters);
@@ -188,7 +191,8 @@ public void ResizeWebProcessor_RespectsOrientation_Anchor(ushort orientation)
188191
new ArrayConverter<float>(),
189192
new EnumConverter(),
190193
new SimpleCommandConverter<bool>(),
191-
new SimpleCommandConverter<float>()
194+
new SimpleCommandConverter<float>(),
195+
new ColorConverter()
192196
};
193197

194198
var parser = new CommandParser(converters);
@@ -236,7 +240,8 @@ public void ResizeWebProcessor_CanIgnoreOrientation(ushort orientation)
236240
new ArrayConverter<float>(),
237241
new EnumConverter(),
238242
new SimpleCommandConverter<bool>(),
239-
new SimpleCommandConverter<float>()
243+
new SimpleCommandConverter<float>(),
244+
new ColorConverter()
240245
};
241246

242247
var parser = new CommandParser(converters);

0 commit comments

Comments
 (0)