public void Requestion_Deletion_Of_Drive_Should_Fail() { Assert.Ignore("Works fine. However: Run this test manually in the debugger and abort if it fails before deleting your stuff!"); var sysProvider = new LocalFileSystemProvider(); sysProvider.Auditor = new ConsoleAuditor(); sysProvider.DeleteFolder("G:\\"); }
public void Requestion_Deletion_System_Root_Should_Fail() { Assert.Ignore("Works fine. However: Run this test manually in the debugger and abort if it fails before deleting your stuff!"); var sysProvider = new LocalFileSystemProvider(); try { string rootName = sysProvider.GetFileSystemRoot().FullName; sysProvider.DeleteFolder(rootName); Assert.Fail("Could delete system root???"); } catch (ResourceAccessException e) { StringAssert.Contains("root", e.Message.ToLower()); } }
public void Requestion_Deletion_Of_Drive_Should_Fail () { Assert.Ignore("Works fine. However: Run this test manually in the debugger and abort if it fails before deleting your stuff!"); var sysProvider = new LocalFileSystemProvider(); sysProvider.Auditor = new ConsoleAuditor(); sysProvider.DeleteFolder("G:\\"); }