public void GivenTestMethodHasParametersOfSameType_WhenFirstOneIsDecoratedWithIgnoreVirtualMembersAttribute_ThenAllParametersHasNoVirtualPropertiesPopulated( [IgnoreVirtualMembers] UserWithSubstitute user1, UserWithSubstitute user2) { user1.Name.Should().BeNull(); user1.Substitute.Should().BeNull(); user2.Name.Should().BeNull(); user2.Substitute.Should().BeNull(); }
public void GivenTestMethodHasParametersOfVariousTypes_WhenOneIsDecoratedWithIgnoreVirtualMembersAttribute_ThenOnlyThatParameterHasNoVirtualPropertiesPopulated( UserWithSubstitute userWithSubstitute, [IgnoreVirtualMembers] User user) { userWithSubstitute.Name.Should().NotBeNull(); userWithSubstitute.Substitute.Should().NotBeNull(); user.Name.Should().NotBeNull(); user.Address.Should().BeNull(); }
public void GivenTestMethodHasParametersOfSameType_WhenSecondOneIsDecoratedWithIgnoreVirtualMembersAttribute_ThenThatParameterAndFollowingOnesHaveNoVirtualPropertiesPopulated( UserWithSubstitute user1, [IgnoreVirtualMembers] UserWithSubstitute user2, UserWithSubstitute user3) { user1.Name.Should().NotBeNull(); user1.Substitute.Should().NotBeNull(); user2.Name.Should().BeNull(); user2.Substitute.Should().BeNull(); user3.Name.Should().BeNull(); user3.Substitute.Should().BeNull(); }