public void IsFolderExist()
        {
            CreateFolderUseTargetPath();
            var isFolderExist = CSharpFileUtility.IsFolderExist(_targetFolderPath);

            Assert.IsTrue(isFolderExist);
        }
Пример #2
0
        public void CheckFileExtension()
        {
            CreateAssetFileWithType(UnityFileUtility.FileType.Png);
            var extensionAreEqual = CSharpFileUtility.CheckFileExtension(_pngFullPath, _pngExtension);

            Assert.AreEqual(true, extensionAreEqual);
        }
        public void IsFileInPath()
        {
            CreateFolerUsePathSource1();
            CreateWhitePngInFolderSource1();
            var isFileInPath = CSharpFileUtility.IsFileInPath(_source1_PngFolderPath, _fileName, _pngExtension);

            Assert.AreEqual(true, isFileInPath);
        }
        public void ParseSlashToCsharpTest()
        {
            var beforeParsePath = "Assets/asdfasdlfja";
            var afterParse      = @"Assets\asdfasdlfja";
            var actual          = CSharpFileUtility.ParseSlashToCsharp(beforeParsePath);

            Assert.AreEqual(afterParse, actual);
        }
 private void ShouldFileSource1EqualtoTarget(string source1PngFullPath, string targetPngFullPath)
 {
     Assert.AreEqual(true, CSharpFileUtility.IsFileAreEqual(source1PngFullPath, targetPngFullPath));
 }
 private void CopyFile(string sourcePath, string targetPath)
 {
     CSharpFileUtility.CopyFile(sourcePath, targetPath);
 }