Esempio n. 1
0
        public void COnstructorThrowsFileNotFoundExceptionIfFileNotFound()
        {
            const string fileName     = @"c:\fileNostExists.scp";
            const string documentName = @"Filename";

            var document = new Document(fileName, documentName, new TestFileProxy());
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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());
        }