IT-VBFK

Results 59 comments of IT-VBFK

hmm.. What about giving `ContainItemsAssignableTo` an overload which checks the type exactly? As I understand the `ContainItemsAssignableTo` (which calls [IsAssignableFrom](https://docs.microsoft.com/en-us/dotnet/api/system.type.isassignablefrom?view=net-6.0)) correctly: it matches also derivatives of a type `T`, but...

Another approach could be: ```csharp public class ExceptionChain { internal IEnumerable elements; public Has(); } public class ExceptionAssertion { public ExceptionChain WhoseInnerExceptionChain { get; } } action.Should().Throw().WhoseInnerExceptionChain.Has(); ```

Ok And for the single overload? (If we address this here too) ```csharp action.Should().Throw().WhoseInnerExceptionChain.Should().HaveElementOfType(); ``` Or using the neat little thing called `OccurrenceConstraint` 😎 so this would then be for...

Hmm.. that limits the possibilities of a fluent syntax extremely.. But what if we omit the `Should()` after `WhoseInnerExceptionChain`? So for example: ```cs action.Should().Throw() .WhoseInnerExceptionChain.ContainsWithExactType(Exactly.Times(42)); ``` or something like this..

What I meant was: Should we concentrate only on exceptions (and inner exceptions) or should this feature also affect all collections.

I think a dedicated extension method would fit better into the structure of the `GenericCollectionAsstertions` to not pollute this class, because now I would have to take care if the...

Ahhm... this should be fixed with the next release. See #1782 The new syntax will be: ```csharp actual.Should().BeEquivalentTo( expected, cfg => cfg .For(a => a.Items) .Exclude(b => b.Name)); ```

Ok, so if we add it at v7 take the following also into consideration: for now you have to include `.WithExpectation()` twice in the statement. First place: as shown in...

Hello Is this still a valid request? If so maybe we should clarify the needed API changes? There are 2 possible solutions in my mind: 1. `stringCollection.Should().Contain("s", opt => opt.IgnoreCase());`...