After performing a test, we typically do an Assert.True(someCondition)
. When a condition check isn't necessary and just completion of the test is sufficient, I end a test with Assert.Pass()
.
I'm using FluentAssertions
and have been doing true.Should().BeTrue();
. That is starting to feel more like a hack and not in the correct spirit of the library.
Is there some other Fluent syntax I could use to accomplish .Pass()
intention?
-Update: Based on feedback, there is nothing wrong with using .Pass()
from XUnit
or NUnit
when using primarily FluentAssertions
.