public void FileNameDoesNotExist() { bool fromCall; FileProccess fp = new FileProccess(); TestContext.WriteLine("Checking file: " + BAD_FILE_NAME); fromCall = fp.FileExists(BAD_FILE_NAME); Assert.IsFalse(fromCall); }
public void FileNameDoesExist() { bool fromCall; FileProccess fp = new FileProccess(); TestContext.WriteLine("Checking file: " + _GoodFileName); fromCall = fp.FileExists(_GoodFileName); Assert.IsTrue(fromCall); }
public void FileNameNullOrEmpty_ThrowsArgumentNullException() { FileProccess fp = new FileProccess(); try { fp.FileExists(""); } catch (ArgumentNullException) { // Test was a success return; } // Fail the test Assert.Fail("Call to FileExists() did NOT throw an ArgumentNullException."); }
public void FileNameNullOrEmpty_ThrowsArgumentNullException_UsingAttribute() { FileProccess fp = new FileProccess(); fp.FileExists(""); }