Table of Contents

Class PdfCheckSet

Namespace
PDiffy
Assembly
PDiffy.dll

A set of PdfCheck rules for Check(PdfCheckSet). Latest grows as PDiffy adds rules, so an upgrade can fail a test that passed; a release's own set, such as Version1_0, never changes, so upgrading adds no rules until a test moves to a newer set.

public sealed class PdfCheckSet
Inheritance
PdfCheckSet
Inherited Members

Properties

Checks

The rules in the set, in the order PdfCheck declares them.

public IReadOnlyList<PdfCheck> Checks { get; }

Property Value

IReadOnlyList<PdfCheck>

Latest

Every rule in the installed version of PDiffy, as Check() with no arguments applies.

public static PdfCheckSet Latest { get; }

Property Value

PdfCheckSet

Name

The set's name: "latest", or the release it keeps the rules of, such as "1.0".

public string Name { get; }

Property Value

string

Version1_0

The rules PDiffy 1.0 shipped. It never changes.

public static PdfCheckSet Version1_0 { get; }

Property Value

PdfCheckSet

Methods

Except(params PdfCheck[])

The rules in this set other than the ones given, as a set with the same name.

public PdfCheckSet Except(params PdfCheck[] checks)

Parameters

checks PdfCheck[]

Returns

PdfCheckSet

Only(PdfCheckCategory, params PdfCheckCategory[])

The rules in this set that belong to one of the categories, such as tables, as a set with the same name.

public PdfCheckSet Only(PdfCheckCategory category, params PdfCheckCategory[] more)

Parameters

category PdfCheckCategory
more PdfCheckCategory[]

Returns

PdfCheckSet

ToString()

The name and how many rules the set has, such as "latest, 12 rules".

public override string ToString()

Returns

string