public void predicateEntityItemViewFilter_ctor_predicate_null_string_should_set_expected_values() { var expectedName = "Default Predicate name."; var expected = 1; var actual = 0; var target = new PredicateEntityItemViewFilter<GenericParameterHelper>( v => { actual++; return true; }, null ); target.ShouldInclude( new GenericParameterHelper() ); actual.Should().Be.EqualTo( expected ); target.ToString().Should().Be.EqualTo( expectedName ); }
public void predicateEntityItemViewFilter_ctor_predicate_null_string_should_set_expected_values() { var expectedName = "Default Predicate name."; var expected = 1; var actual = 0; var target = new PredicateEntityItemViewFilter <GenericParameterHelper>(v => { actual++; return(true); }, null); target.ShouldInclude(new GenericParameterHelper()); actual.Should().Be.EqualTo(expected); target.ToString().Should().Be.EqualTo(expectedName); }
public void predicateEntityItemViewFilter_ctor_null_predicate_null_string_should_raise_ArgumentNullException() { var target = new PredicateEntityItemViewFilter<GenericParameterHelper>( null, null ); }
public void predicateEntityItemViewFilter_ctor_null_predicate_null_string_should_raise_ArgumentNullException() { var target = new PredicateEntityItemViewFilter <GenericParameterHelper>(null, null); }