public static bool IsWorseMatchThan(this SectionMatch actualMatchKind, SectionMatch expectedMatchKind) { var lowestMatch = (int)expectedMatchKind; var actualMatch = (int)actualMatchKind; return(actualMatch > lowestMatch); }
public static bool IsBetterOrEqualMatchThan(this SectionMatch actualMatchKind, SectionMatch expectedMatchKind) { var lowestMatch = (int)expectedMatchKind; var actualMatch = (int)actualMatchKind; return(actualMatch <= lowestMatch); }