Skip to content

Extend Is.Empty to work for Guid.Empty #3616

Closed
@yaakov-h

Description

@yaakov-h

If I have a Guid that I want to assert is empty, I currently have to use:

Assert.That(myId, Is.EqualTo(Guid.Empty));

I think it would be simpler and read easier to be able to say:

Assert.That(myId, Is.Empty);

Unfortunately this currently throws an error stating that NUnit expected myId to be an IEnumerable.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions