public void Dont_Create_CustomFile_If_File_Exist(UnityFileUtility.FileType fileType) { var extension = UnityFileUtility.GetExtension(fileType); var cSharpFullPath = UnityPathUtility.GetCsharpUnityAbsoluteFullPath(_childPath, _fileName, extension); Assert.AreEqual(true, NotCreateWhenFileExist(fileType, cSharpFullPath)); ShouldFileInPath(true, fileType); }
public void SetUp() { _source1_ChildPath = "asdfasdlfja"; _targetChildPath = "eedkcvjiosder"; _source2_ChildPath = "lksdfkj"; _fileName = "235432asdfasdf"; _pngExtension = "png"; _animExtension = "anim"; _targetFolderPath = UnityPathUtility.GetCsharpUnityAbsoluteFolderPath(_targetChildPath); _source1_PngFolderPath = UnityPathUtility.GetCsharpUnityAbsoluteFolderPath(_source1_ChildPath); _source1_PngFullPath = UnityPathUtility.GetCsharpUnityAbsoluteFullPath(_source1_ChildPath, _fileName, _pngExtension); _source2_PngFullPath = UnityPathUtility.GetCsharpUnityAbsoluteFullPath(_source2_ChildPath, _fileName, _pngExtension); _source1_AnimFullPath = UnityPathUtility.GetCsharpUnityAbsoluteFullPath(_source1_ChildPath, _fileName, _animExtension); _target_PngFullPath = UnityPathUtility.GetCsharpUnityAbsoluteFullPath(_targetChildPath, _fileName, _pngExtension); _target_AnimFullPath = UnityPathUtility.GetCsharpUnityAbsoluteFullPath(_targetChildPath, _fileName, _animExtension); }