Baseline.Testing.FileSystemIntegrationTester.folders_should_be_created_when_writing_to_a_file_path_having_folders_that_do_not_exist C# (CSharp) Метод

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

        public void folders_should_be_created_when_writing_to_a_file_path_having_folders_that_do_not_exist()
        {
            var pathDoesNotExist = Path.Combine(_basePath, randomName());
            var stream = new MemoryStream(new byte[] { 55, 66, 77, 88 });

            _fileSystem.WriteStreamToFile(Path.Combine(pathDoesNotExist, "file.txt"), stream);

            Directory.Exists(pathDoesNotExist).ShouldBeTrue();
        }