public void MappedTypeDoesNotWriteLogWhenDisabled() { var sut = new DefaultBuildLog(); sut.MappedType(typeof(Stream), typeof(MemoryStream)); sut.Output.Should().BeEmpty(); }
public void MappedTypeThrowsExceptionWithNullTargetType() { var sut = new DefaultBuildLog { IsEnabled = true }; Action action = () => sut.MappedType(typeof(Stream), null !); action.Should().Throw <ArgumentNullException>(); }
public void MappedTypeAppendsLogEntry() { var sut = new DefaultBuildLog { IsEnabled = true }; sut.MappedType(typeof(Stream), typeof(MemoryStream)); sut.Output.Should().NotBeNullOrWhiteSpace(); }