コード例 #1
0
        public static TestProject AsTodayExtensionProject(this TestProject self)
        {
            var clone = self.Clone();

            clone.Path = Path.Combine(Path.GetDirectoryName(self.Path), Target.ProjectsDir, "today", Path.GetFileNameWithoutExtension(self.Path) + "-today" + Path.GetExtension(self.Path));
            return(clone);
        }
コード例 #2
0
        public static TestProject AsTvOSProject(this TestProject self)
        {
            var clone = self.Clone();

            clone.Path = Path.Combine(Path.GetDirectoryName(self.Path), Path.GetFileNameWithoutExtension(self.Path) + "-tvos" + Path.GetExtension(self.Path));
            return(clone);
        }
コード例 #3
0
        public static TestProject AsWatchOSProject(this TestProject self)
        {
            var clone    = self.Clone();
            var fileName = Path.GetFileNameWithoutExtension(self.Path);

            clone.Path = Path.Combine(Path.GetDirectoryName(self.Path), Target.ProjectsDir, "watchos", fileName + (fileName.Contains("-watchos") ? "" : "-watchos") + Path.GetExtension(self.Path));
            return(clone);
        }
コード例 #4
0
        public static TestProject AsTvOSProject(this TestProject self)
        {
            var clone  = self.Clone();
            var suffix = string.Empty;

            if (self.IsDotNetProject)
            {
                suffix = "-dotnet";
            }
            clone.Path = Path.Combine(Path.GetDirectoryName(self.Path), Target.ProjectsDir, "tvos" + suffix, Path.GetFileNameWithoutExtension(self.Path) + "-tvos" + Path.GetExtension(self.Path));
            return(clone);
        }