示例#1
0
 protected virtual void AssertFileInUse(CriticalFileWriteException exception, string filePath)
 {
     Assert.IsNotNull(exception);
     Assert.AreEqual($"Er is een onverwachte fout opgetreden tijdens het schrijven van het bestand '{filePath}'.", exception.Message);
     Assert.IsInstanceOf <IOException>(exception.InnerException);
 }
示例#2
0
 protected virtual void AssertInvalidDirectoryRights(CriticalFileWriteException exception, string filePath)
 {
     Assert.IsNotNull(exception);
     Assert.AreEqual($"Er is een onverwachte fout opgetreden tijdens het schrijven van het bestand '{filePath}'.", exception.Message);
     Assert.IsInstanceOf <UnauthorizedAccessException>(exception.InnerException);
 }