public void RecoveryMightFail() { Action act = () => CaseStudies.ParseOrCountWords(null); act.Should().Throw <ArgumentException>().WithMessage("input must not be null"); }
public void RecoverFromFailureShouldWork(string input, int expected) { CaseStudies.ParseOrCountWords(input).Should().Be(expected); }