public void ReadUtf8Text_Read_String_From_Path()
        {
            IFileSystem target = new DotNetFxFileSystem();

            Assert.Throws <FileNotFoundException>(
                () =>
            {
                target.ReadUtf8Text("existing2.txt");
            });
        }
        public void ReadUtf8Text_Read_String_From_Stream()
        {
            IFileSystem target   = new DotNetFxFileSystem();
            var         expceted = "κόσμε";
            string      actual;

            using (var stream = new MemoryStream(Encoding.UTF8.GetBytes(expceted)))
            {
                actual = target.ReadUtf8Text(stream);
            }

            Assert.Equal(expceted, actual);
        }
        public void WriteUtf8Text_Write_String_To_Path()
        {
            IFileSystem target   = new DotNetFxFileSystem();
            var         expceted = "κόσμε";

            target.WriteUtf8Text("new2.txt", expceted);
            Assert.True(File.Exists("new2.txt"));

            var actual = target.ReadUtf8Text("new2.txt");

            Assert.Equal(expceted, actual);

            File.Delete("new2.txt");
        }
        public void ReadUtf8Text_Read_String_From_Stream()
        {
            IFileSystem target = new DotNetFxFileSystem();
            var expceted = "κόσμε";
            string actual;
            
            using (var stream = new MemoryStream(Encoding.UTF8.GetBytes(expceted)))
            {
                actual = target.ReadUtf8Text(stream);
            }

            Assert.Equal(expceted, actual);
        }
        public void WriteUtf8Text_Write_String_To_Path()
        {
            IFileSystem target = new DotNetFxFileSystem();
            var expceted = "κόσμε";

            target.WriteUtf8Text("new2.txt", expceted);
            Assert.True(File.Exists("new2.txt"));

            var actual = target.ReadUtf8Text("new2.txt");
            Assert.Equal(expceted, actual);

            File.Delete("new2.txt");
        }
 public void ReadUtf8Text_Read_String_From_Path()
 {
     IFileSystem target = new DotNetFxFileSystem();
     Assert.Throws<FileNotFoundException>(
         () =>
         {
             target.ReadUtf8Text("existing2.txt");
         });
 }