public void FileNameDoesNotExists() { FileProcess fp = new FileProcess(); bool fromCall; fromCall = fp.FileExists(@"C:\regedit.exe"); Assert.IsFalse(fromCall); }
public void FileNameExists() { FileProcess fp = new FileProcess(); bool fromCall; fromCall = fp.FileExists(@"C:\Windows\regedit.exe"); Assert.IsTrue(fromCall); }
public void FileNameNullOrEmpty_ThrowsArgumentNullException_UsingTryCatch() { FileProcess fp = new FileProcess(); try { fp.FileExists(""); } catch (ArgumentException) { return; } Assert.Fail("Fail expected!!!"); }
public void FileNameNullOrEmpty_ThrowsArgumentNullException() { FileProcess fp = new FileProcess(); fp.FileExists(""); }