Skip to content

Commit

Permalink
Fixed test behavior on .NET 5
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbrady91 committed Oct 2, 2021
1 parent d050f4c commit 3490378
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Linq;
using FluentAssertions;
using Microsoft.AspNetCore.Identity;
using Sodium;
Expand Down Expand Up @@ -68,7 +69,7 @@ public void HashPassword_ExpectNoNullTerminatedStrings()

var hashedPassword = sut.HashPassword("", Guid.NewGuid().ToString());

hashedPassword.Should().NotEndWith("\0");
hashedPassword.Last().Should().NotBe('\0');
}

[Theory]
Expand Down

0 comments on commit 3490378

Please sign in to comment.