public void IsEqualTo_should_be_null_guarded_when_comparer_is_null() { // Arrange var constraintManager = new DefaultArgumentConstraintManager <string>(x => { }); Expression <Action> call = () => constraintManager.IsEqualTo(null !, StringComparer.OrdinalIgnoreCase); // Act // Assert call.Should().BeNullGuarded(); }
public void SetUp() { this.createdConstraint = null; this.constraintManager = new DefaultArgumentConstraintManager<string>(x => this.createdConstraint = x); }
public DefaultArgumentConstraintManagerTests() { this.createdConstraint = null; this.constraintManager = new DefaultArgumentConstraintManager <string>(x => this.createdConstraint = x); }
public DefaultArgumentConstraintManagerTests() { this.createdConstraint = null !; // it will be assigned a non-null value by the time it's accessed this.constraintManager = new DefaultArgumentConstraintManager <string>(x => this.createdConstraint = x); }