Bumblebee.IntegrationTests.Setup.SessionTests.Given_session_with_default_settings.When_CaptureScreen_is_called_Then_takes_screenshot_of_correct_format C# (CSharp) Method

When_CaptureScreen_is_called_Then_takes_screenshot_of_correct_format() private method

private When_CaptureScreen_is_called_Then_takes_screenshot_of_correct_format ( string path, ImageFormat format, string expected ) : void
path string
format System.Drawing.Imaging.ImageFormat
expected string
return void
		public void When_CaptureScreen_is_called_Then_takes_screenshot_of_correct_format(string path, ImageFormat format, string expected)
		{
			File.Delete(path);

			_session.CaptureScreen(path);

			var actual = GetMimeFromFile(path);

			actual.Should().Be(expected);

			File.Delete(path);
		}