public void Directory() { var Temp = new Utilities.IO.FileSystem.Manager(AppDomain.CurrentDomain.GetAssemblies().Objects <IFileSystem>()); var Dir = Temp.Directory(@"C:\"); Assert.NotNull(Dir); Assert.IsType <Utilities.IO.FileSystem.Default.LocalDirectory>(Dir); Assert.True(Dir.Exists); Dir = Temp.Directory(@"\\localhost\C$\"); Assert.NotNull(Dir); Assert.IsType <Utilities.IO.FileSystem.Default.LocalDirectory>(Dir); Assert.True(Dir.Exists); Dir = Temp.Directory(@"./"); Assert.NotNull(Dir); Assert.IsType <Utilities.IO.FileSystem.Default.LocalDirectory>(Dir); Assert.True(Dir.Exists); Dir = Temp.Directory(@"../"); Assert.NotNull(Dir); Assert.IsType <Utilities.IO.FileSystem.Default.LocalDirectory>(Dir); Assert.True(Dir.Exists); Dir = Temp.Directory(@"~/"); Assert.NotNull(Dir); Assert.IsType <Utilities.IO.FileSystem.Default.LocalDirectory>(Dir); Assert.True(Dir.Exists); }
public void File() { var Temp = new Utilities.IO.FileSystem.Manager(AppDomain.CurrentDomain.GetAssemblies().Objects<IFileSystem>()); var File = Temp.File(@"C:\Test.txt"); Assert.NotNull(File); Assert.IsType<Utilities.IO.FileSystem.Default.LocalFile>(File); Assert.False(File.Exists); File = Temp.File(@"~\Test.txt"); Assert.NotNull(File); Assert.IsType<Utilities.IO.FileSystem.Default.LocalFile>(File); Assert.False(File.Exists); File = Temp.File(@"\\localhost\C$\Test.txt"); Assert.NotNull(File); Assert.IsType<Utilities.IO.FileSystem.Default.LocalFile>(File); Assert.False(File.Exists); }
public void File() { var Temp = new Utilities.IO.FileSystem.Manager(AppDomain.CurrentDomain.GetAssemblies().Objects <IFileSystem>()); var File = Temp.File(@"C:\Test.txt"); Assert.NotNull(File); Assert.IsType <Utilities.IO.FileSystem.Default.LocalFile>(File); Assert.False(File.Exists); File = Temp.File(@"~\Test.txt"); Assert.NotNull(File); Assert.IsType <Utilities.IO.FileSystem.Default.LocalFile>(File); Assert.False(File.Exists); File = Temp.File(@"\\localhost\C$\Test.txt"); Assert.NotNull(File); Assert.IsType <Utilities.IO.FileSystem.Default.LocalFile>(File); Assert.False(File.Exists); }
public void Directory() { var Temp = new Utilities.IO.FileSystem.Manager(AppDomain.CurrentDomain.GetAssemblies().Objects<IFileSystem>()); var Dir = Temp.Directory(@"C:\"); Assert.NotNull(Dir); Assert.IsType<Utilities.IO.FileSystem.Default.LocalDirectory>(Dir); Assert.True(Dir.Exists); Dir = Temp.Directory(@"\\localhost\C$\"); Assert.NotNull(Dir); Assert.IsType<Utilities.IO.FileSystem.Default.LocalDirectory>(Dir); Assert.True(Dir.Exists); Dir = Temp.Directory(@"./"); Assert.NotNull(Dir); Assert.IsType<Utilities.IO.FileSystem.Default.LocalDirectory>(Dir); Assert.True(Dir.Exists); Dir = Temp.Directory(@"../"); Assert.NotNull(Dir); Assert.IsType<Utilities.IO.FileSystem.Default.LocalDirectory>(Dir); Assert.True(Dir.Exists); Dir = Temp.Directory(@"~/"); Assert.NotNull(Dir); Assert.IsType<Utilities.IO.FileSystem.Default.LocalDirectory>(Dir); Assert.True(Dir.Exists); }
public void Creation() { var Temp = new Utilities.IO.FileSystem.Manager(AppDomain.CurrentDomain.GetAssemblies().Objects<IFileSystem>()); Assert.NotNull(Temp); }
public void Creation() { var Temp = new Utilities.IO.FileSystem.Manager(AppDomain.CurrentDomain.GetAssemblies().Objects <IFileSystem>()); Assert.NotNull(Temp); }