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); }
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); }