You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
739 B
C#
34 lines
739 B
C#
namespace CommanderApp;
|
|
|
|
public static class MockFileSystemItem
|
|
{
|
|
public static FileSystemItem CreateDirectory(string name, string path)
|
|
{
|
|
return new FileSystemItem
|
|
{
|
|
Name = name,
|
|
FullName = path,
|
|
IsDirectory = true
|
|
};
|
|
}
|
|
|
|
public static FileSystemItem CreateFile(string name, string path)
|
|
{
|
|
return new FileSystemItem
|
|
{
|
|
Name = name,
|
|
FullName = path,
|
|
IsDirectory = false
|
|
};
|
|
}
|
|
|
|
public static FileSystemItem CreateParentDirectory(string path)
|
|
{
|
|
return new FileSystemItem
|
|
{
|
|
Name = "..",
|
|
FullName = path,
|
|
IsDirectory = true
|
|
};
|
|
}
|
|
} |