Bumblebee.IntegrationTests.Setup.SessionTests.Given_default_implementation_of_ISettings.When_path_points_to_a_directory_that_does_not_exist_Then_an_exception_is_thrown C# (CSharp) Метод

When_path_points_to_a_directory_that_does_not_exist_Then_an_exception_is_thrown() приватный Метод

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

			var directoryname = String.Format("{0}", Guid.NewGuid());

			var directory = Path.Combine(drive, directoryname);

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

			fn.ShouldThrow<ArgumentException>();
		}