public void COnstructorThrowsFileNotFoundExceptionIfFileNotFound() { const string fileName = @"c:\fileNostExists.scp"; const string documentName = @"Filename"; var document = new Document(fileName, documentName, new TestFileProxy()); }
public void DocumentNamePropertyReturnsDocumentNameSetInTheConstructor() { const string fileName = @"c:\fileExists.scp"; const string documentName = @"Filename"; var document = new Document(fileName, documentName, new TestFileProxy()); Assert.AreEqual(documentName, document.DocumentName); }
public void FileExistsReturnsTrueIfTheFileExists() { const string fileName = @"c:\fileExists.scp"; const string documentName = @"Filename"; var document = new Document(fileName, documentName, new TestFileProxy()); Assert.IsTrue(document.FileExists()); }