Esempio n. 1
0
        public void FileNameDoesNotExists()
        {
            FileProcess fp = new FileProcess();
            bool        fromCall;

            fromCall = fp.FileExists(@"C:\regedit.exe");

            Assert.IsFalse(fromCall);
        }
Esempio n. 2
0
        public void FileNameExists()
        {
            FileProcess fp = new FileProcess();
            bool        fromCall;

            fromCall = fp.FileExists(@"C:\Windows\regedit.exe");

            Assert.IsTrue(fromCall);
        }
Esempio n. 3
0
        public void FileNameNullOrEmpty_ThrowsArgumentNullException_UsingTryCatch()
        {
            FileProcess fp = new FileProcess();

            try
            {
                fp.FileExists("");
            }
            catch (ArgumentException)
            {
                return;
            }

            Assert.Fail("Fail expected!!!");
        }
Esempio n. 4
0
        public void FileNameNullOrEmpty_ThrowsArgumentNullException()
        {
            FileProcess fp = new FileProcess();

            fp.FileExists("");
        }