Bumblebee.IntegrationTests.Setup.SessionTests.Given_default_implementation_of_ISettings.When_path_points_to_a_valid_directory_in_Then_an_exception_is_not_thrown C# (CSharp) Method

When_path_points_to_a_valid_directory_in_Then_an_exception_is_not_thrown() private method

		public void When_path_points_to_a_valid_directory_in_Then_an_exception_is_not_thrown()
		{
			var drive = Path.GetPathRoot(Environment.CurrentDirectory);

			var directory = Directory.GetDirectories(drive)
				.Shuffle()
				.FirstOrDefault();

			Action fn = () => new Settings
			{
				ScreenCapturePath = directory
			};

			fn.ShouldNotThrow<ArgumentException>();
		}