public void Reset() { this.failOnCheck = FailOnCheckType.Invalid; this.SetReturnFalseOnCheck(MockInstallerPrerunChecker.FailOnCheckType.UnattendedMode); this.SetReturnFalseOnCheck(MockInstallerPrerunChecker.FailOnCheckType.BlockingProcessesRunning); this.SetReturnFalseOnCheck(MockInstallerPrerunChecker.FailOnCheckType.IsServiceInstalledAndNotRunning); }
public void SetReturnTrueOnCheck(FailOnCheckType prerunCheck) { this.failOnCheck &= ~prerunCheck; }
private bool FakedResultOfCheck(FailOnCheckType checkType) { return(!this.failOnCheck.HasFlag(checkType)); }
public void SetReturnFalseOnCheck(FailOnCheckType prerunCheck) { this.failOnCheck |= prerunCheck; }
private bool FakedResultOfCheck(FailOnCheckType checkType) { bool result = this.failOnCheck.HasFlag(checkType) ? false : true; return(result); }