Beispiel #1
0
        public void MakeFilePathTest6()
        {
            string saveFolder = "D:\\My Documents\\ImageRaker\\etc";             // TODO: Initialize to an appropriate value

            FilePathMaker target = new FilePathMaker(saveFolder);

            string url = "http://www.hello.com/1/2/test.jpg";                                          // TODO: Initialize to an appropriate value

            FilePathMaker.FileNameMakingMethod method = FilePathMaker.FileNameMakingMethod.PartialUrl; // TODO: Initialize to an appropriate value

            string expected = saveFolder + "\\2%2ftest" + FilePathMaker.AppendString + ".jpg";
            string actual;

            actual = target.MakeFilePath(url, method);

            Assert.AreEqual(expected, actual, "ImageRakerToolbar.FilePathMaker.MakeFilePath did not return the expected value.");
        }
Beispiel #2
0
        public void MakeFilePathTest3()
        {
            string saveFolder = "D:\\My Documents\\ImageRaker\\etc";             // TODO: Initialize to an appropriate value

            FilePathMaker target = new FilePathMaker(saveFolder);

            string url = "http://www.cyworld.com/cymain/download.blog?test=1234";                                       // TODO: Initialize to an appropriate value

            FilePathMaker.FileNameMakingMethod method = FilePathMaker.FileNameMakingMethod.FileNameDuplicateNotAllowed; // TODO: Initialize to an appropriate value

            string expected = saveFolder + "\\download.blog%3ftest%3d1234" + FilePathMaker.AppendString + ".jpg";
            string actual;

            actual = target.MakeFilePath(url, method);

            Assert.AreEqual(expected, actual, "ImageRakerToolbar.FilePathMaker.MakeFilePath did not return the expected value.");
        }