public InspectionResult Test() { PrepareTest(); _inspector.Init(); var result = _inspector.Run(); if (!result.IsOk && _throwOnError) { throw new ItemsValidationException(result); } return(result); }