public void When_CaptureScreen_is_called_with_invalid_file_extension_Then_an_exception_is_thrown() { Action fn = () => _session.CaptureScreen("screenshot.txt"); fn.ShouldThrow<ArgumentException>(); } }