Description
When providing a string not convertible to a Guid GuidAssertions.Be(string) throws a FormatException.
We have two options:
- Keep the overload taking a
string and validate it using Guid.TryParse
- Delete the overload and let users pass in a typed
Guid.
I vote for the second.
Complete minimal example reproducing the issue
Guid.NewGuid().Should().Be("");
Expected behavior:
We should not throw a FormatException.
Actual behavior:
We throw a FormatException.
Versions