Exemple #1
0
        public void FileNameDoesNotExist()
        {
            //Arrange
            FileProcess fp = new FileProcess();
            bool        fromCall;

            //Acto
            fromCall = fp.FileExist(BAD_FILE);
            //Assert
            Assert.IsFalse(fromCall);
        }
Exemple #2
0
        public void FileNameDoesExist()
        {
            //Arrange
            FileProcess fp = new FileProcess();
            bool        fromCall;

            //Acto
            fromCall = fp.FileExist(GOOD_FILE);
            //Assert
            Assert.IsTrue(fromCall);
        }
Exemple #3
0
        public void FileNameNullOrEmpty_throwsArgumentNullException()
        {
            FileProcess fp = new FileProcess();

            Assert.Throws <ArgumentNullException>(() => fp.FileExist(""));
        }