public void FindsCorrectDeleteRoot()
        {
            string path = "Some/Test/Path";
            var    root = Path.Combine("Assets", "Some");

            using (var tp = new TemporaryAssetPath(path))
                Assert.That(tp.m_DeleteRoot, Is.EqualTo(root), () => string.Format("Expected: {0}, Actual: {1}", root, tp.m_DeleteRoot));
        }
 public void CanImport()
 {
     if (string.IsNullOrEmpty(MagicLeapRemoteImportSupport.sdkPath))
     {
         Assert.Ignore("Ignoring test because the environment is not properly configured");
     }
     using (var tp = new TemporaryAssetPath(kImportTestPath))
         Assert.That(() => MagicLeapRemoteImportSupport.ImportSupportLibrares(tp.path), Throws.Nothing);
 }
 public void AttemptingToImportOverExistingFilesThrowsException()
 {
     if (string.IsNullOrEmpty(MagicLeapRemoteImportSupport.sdkPath))
     {
         Assert.Ignore("Ignoring test because the environment is not properly configured");
     }
     using (var tp = new TemporaryAssetPath(kImportTestPath))
     {
         MagicLeapRemoteImportSupport.ImportSupportLibrares(tp.path);
         Assert.That(() => MagicLeapRemoteImportSupport.ImportSupportLibrares(tp.path), Throws.InstanceOf <ImportFailureException>());
     }
 }
        public void CanResolveMLIdentityLibrary()
        {
            if (string.IsNullOrEmpty(MagicLeapRemoteImportSupport.sdkPath))
            {
                Assert.Ignore("Ignoring test because the environment is not properly configured");
            }
            string path;

            using (var tp = new TemporaryAssetPath(kImportTestPath))
            {
                Assert.That(() => MagicLeapRemoteImportSupport.ImportSupportLibrares(tp.path), Throws.Nothing);
                Assert.That(MagicLeapRemoteImportSupport.TryResolveMLPluginPath("ml_identity", out path), Is.True);
                Assert.That(path, Is.Not.Null);
                Assert.That(path.EndsWith(MagicLeapRemoteImportSupport.hostExtension), Is.True);
            }
        }