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

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

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

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