Jonas Nyrup

Results 305 comments of Jonas Nyrup

The test code now wraps invocations in an `AssertionScope` to catch more potentially unsafe code. So we're down to 9 🎉 [NullReferenceExceptions.txt](https://github.com/fluentassertions/fluentassertions/files/6537332/NullReferenceExceptions.txt) The exception from `ShouldExcludeColumn` is being solved in...

If you attach a debugger, you should be able to see the exception.

It indeed does and on the top of my head I don't have a pretty way to tests it. Here's a not very satisfying way to catch it. ```cs [Fact]...

It is indeed some hacky Friday evening code 😅 I still find these, but they seem pretty obscure. E.g. inheriting from a Regex using the protected parameterless base constructor and...

Haven't tested these, but searched for `ForCondition.* is not null` and found some more ``` Search for "ForCondition.* is not null" HaveProperty propertyInfo HaveIndexer propertyInfo TaskCompletionSourceAssertions GenericAsyncFunctionAssertions FunctionAssertions ExceptionAssertions WithInnerException...

Forgot to mention that for `HaveProperty` and `HaveIndexer` I was looking at `propertyInfo` and not `Subject`

Just two observations: * `GetProperties()` includes static properties and does not include interface properties. * I'm not sure if it's possible, but if `expectation` has multiple properties with same `Name`,...

Before anyone goes on and implement this, please provide a proposal of what the adding API would look like.

> It already is exposed since it's part of the `IEquivalencyStep` interface. Ohh, I meant exposing the entire `IEquivalencyValidationContext` interface in the `When` method. > I think we should consider...

Seems to work out quite well with an implicit conversion from `Restriction` to `TSelf` 👍 One case I haven't figured out how we should handle: When `Expectation` is null, the...