public void AbstractValidationService_GetInvalidProperties_should_return_distinct_list() { var errors = new[] { new ValidationError("p1", "p1", new[] { "--fake 1--" }), new ValidationError("p1", "p1", new[] { "--fake 2--" }), new ValidationError("p2", "p2", new[] { "--fake--" }) }; var sut = new TestValidationService(errors); var invalid = sut.GetInvalidProperties(); Assert.AreEqual(2, invalid.Count()); }
public void AbstractValidationService_GetInvalidProperties_should_return_distinct_list() { var errors = new[] { new ValidationError( "p1", "p1", new[] { "--fake 1--" } ), new ValidationError( "p1", "p1", new[] { "--fake 2--" } ), new ValidationError( "p2", "p2", new[] { "--fake--" } ) }; var sut = new TestValidationService( errors ); var invalid = sut.GetInvalidProperties(); Assert.AreEqual( 2, invalid.Count() ); }