public void Open_Path_Throws_FileNotFoundException()
 {
     IFileSystem target = new DotNetFxFileSystem();
     Assert.Throws<FileNotFoundException>(
         () =>
         {
             using (var stream = target.Open("existing1.txt")) { }
         });
 }
        public void Create_Path_Creates_New_File()
        {
            IFileSystem target = new DotNetFxFileSystem();

            using (var stream = target.Create("new1.txt")) { }
            Assert.True(File.Exists("new1.txt"));

            using (var stream = target.Open("new1.txt")) { }
            File.Delete("new1.txt");
        }
        public void Create_Path_Creates_New_File()
        {
            IFileSystem target = new DotNetFxFileSystem();

            using (var stream = target.Create("new1.txt")) { }
            Assert.True(File.Exists("new1.txt"));

            using (var stream = target.Open("new1.txt")) { }
            File.Delete("new1.txt");
        }
        public void Open_Path_Throws_FileNotFoundException()
        {
            IFileSystem target = new DotNetFxFileSystem();

            Assert.Throws <FileNotFoundException>(
                () =>
            {
                using (var stream = target.Open("existing1.txt")) { }
            });
        }