public void ThrowCOMExceptionIfDeviceNotConnected([Greedy] ScanningDevice sut) { sut.IsConnected = false; sut.Invoking(x => x.GetImage(ScannerSettingsCustomization.SupportedImageFormat)) .Should().Throw <COMException>(); sut.Images.Should().BeEmpty(); }
public void ThrowIfImageFormatNotSupported([Greedy] ScanningDevice sut) { sut.Invoking(x => x.GetImage(IImagingDevice.ImageFormat.Gif)) .Should().Throw <ArgumentException>(); sut.Images.Should().BeEmpty(); }