Exemple #1
0
        public void GetFullSendFilePathTest()
        {
            string fileName = "";

            AssertThrows <ArgumentException>(() => command.GetFullSendFilePath(fileName));
            fileName = @"c:\Windows\System32";
            Assert.IsTrue(String.IsNullOrEmpty(command.GetFullSendFilePath(fileName)));
            fileName = @"c:\WindowsXXXXX\System32XX\xxxxx";
            AssertThrows <ArgumentException>(() => command.GetFullSendFilePath(fileName),
                                             String.Format(Resources.FileNotFound, fileName));
        }