Skip to content

Commit

Permalink
Minor refacor.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Jan 25, 2025
1 parent bdc5795 commit fd8331d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public void ShouldThrowExceptionWhenCustomImplementationDoesNotHaveExpectedChann
Assert.NotNull(phash);

var perceptualHash = Substitute.For<IPerceptualHash>();
perceptualHash.GetChannel(PixelChannel.Blue).Returns((IChannelPerceptualHash)null!);
perceptualHash.GetChannel(PixelChannel.Blue).Returns((IChannelPerceptualHash?)null);

var exception = Assert.Throws<NotSupportedException>(() => phash.SumSquaredDistance(perceptualHash));
Assert.Equal("The other perceptual hash should contain a red, green and blue channel.", exception.Message);
Expand Down

0 comments on commit fd8331d

Please sign in to comment.