NotImplementedExceptionFileSystemBase.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using Lua.IO;
  2. namespace Lua.Tests.Helpers
  3. {
  4. abstract class NotImplementedExceptionFileSystemBase : ILuaFileSystem
  5. {
  6. public virtual bool IsReadable(string path)
  7. {
  8. throw new NotImplementedException();
  9. }
  10. public virtual ValueTask<LuaFileContent> ReadFileContentAsync(string fileName, CancellationToken cancellationToken)
  11. {
  12. throw new NotImplementedException();
  13. }
  14. public virtual ILuaIOStream? Open(string path, LuaFileOpenMode mode, bool throwError)
  15. {
  16. throw new NotImplementedException();
  17. }
  18. public virtual void Rename(string oldName, string newName)
  19. {
  20. throw new NotImplementedException();
  21. }
  22. public virtual void Remove(string path)
  23. {
  24. throw new NotImplementedException();
  25. }
  26. public virtual string DirectorySeparator => Path.DirectorySeparatorChar.ToString();
  27. public virtual string GetTempFileName()
  28. {
  29. throw new NotImplementedException();
  30. }
  31. }
  32. }