public void NoErrorWhenFailureReportingOptionIsOne(string record, bool isErroredExpected) { SpfRecord spfRecord = new SpfRecord(record, new Version(string.Empty), new List <Term>(), string.Empty); bool isErrored = _rule.IsErrored(spfRecord, out Evaluator.Rules.Error error); Assert.That(isErrored, Is.EqualTo(isErroredExpected)); Assert.That(error, isErroredExpected ? Is.Not.Null : Is.Null); }
public void NoErrorWhenFailureReportingOptionIsOne(string record, bool isErroredExpected) { DmarcRecord dmarcRecord = new DmarcRecord(record, new List <Tag>(), string.Empty, string.Empty, false, false); Error error; bool isErrored = _rule.IsErrored(dmarcRecord, out error); Assert.That(isErrored, Is.EqualTo(isErroredExpected)); Assert.That(error, isErroredExpected ? Is.Not.Null : Is.Null); }