public void LogWithValidParametersSendsEmail(EmailLogger sut, string subject, string message) { sut.Log(subject, message); }
public void LogWithNullBodyThrows(EmailLogger sut, string subject) { var e = Assert.Throws<ArgumentNullException>(() => sut.Log(subject, null)); Assert.Equal("body", e.ParamName); }
public void LogWithNullSubjectThrows(EmailLogger sut, string body) { var e = Assert.Throws<ArgumentNullException>(() => sut.Log(null, body)); Assert.Equal("subject", e.ParamName); }
public void IsLogger(EmailLogger sut) { Assert.IsAssignableFrom<ILogger>(sut); }