public static void IsFileLocked_GivenRegularIOException_ReturnsFalse() { var ex = new IOException("test"); Assert.IsFalse(ex.IsFileLocked()); }
public static void IsFileLocked_GivenNullIOException_ThrowsArgNullException() { IOException ex = null; Assert.Throws <ArgumentNullException>(() => ex.IsFileLocked()); }