public void CopyFrameworkToXcodeProject_CopyFramework_DirectoryExists()
        {
            var targetPath = Path.Combine(_xcodeProjectPath, "SomeDirectory", "Test.framework");

            BuildPostProcess.CopyFramework(_testFrameworkPath, targetPath, new TestLogger());

            Assert.IsTrue(Directory.Exists(targetPath));
        }
        public void CopyFramework_FrameworkAlreadyExists_LogsSkipMessage()
        {
            var testLogger = new TestLogger();
            var targetPath = Path.Combine(_xcodeProjectPath, "SomeDirectory", "Test.framework");

            BuildPostProcess.CopyFramework(_testFrameworkPath, targetPath, testLogger);
            BuildPostProcess.CopyFramework(_testFrameworkPath, targetPath, testLogger);

            Assert.IsTrue(testLogger.Logs.Any(log =>
                                              log.logLevel == SentryLevel.Debug &&
                                              log.message.Contains("has already been copied to")));
        }
 public void CopyFramework_FailedToCopy_ThrowsDirectoryNotFoundException() =>
 Assert.Throws <DirectoryNotFoundException>(() =>
                                            BuildPostProcess.CopyFramework("non-existent-path.framework",
                                                                           Path.Combine(_xcodeProjectPath, "SomeDirectory", "Test.framework"), new TestLogger()));