Example #1
0
        public void TestLoadingEditorConfiguration()
        {
            var quickDeployConfig = new QuickDeployConfig();

            var inputConfig = new QuickDeployConfig.EditorConfiguration
            {
                assetBundleFileName = "testbundle"
            };

            File.WriteAllText(TestConfigurationPath, JsonUtility.ToJson(inputConfig));

            var outputConfig = quickDeployConfig.LoadEditorConfiguration(TestConfigurationPath);

            Assert.AreEqual(inputConfig.assetBundleFileName, outputConfig.assetBundleFileName);
        }
        public void TestLoadingEditorConfiguration()
        {
            var quickDeployConfig = new QuickDeployConfig();

            var inputConfig = new QuickDeployConfig.EditorConfiguration
            {
                cloudCredentialsFileName = "testcredentials",
                assetBundleFileName      = "testbundle",
                cloudStorageBucketName   = "testbucket",
                cloudStorageObjectName   = "testobject"
            };

            File.WriteAllText(TestConfigurationPath, JsonUtility.ToJson(inputConfig));

            var outputConfig = quickDeployConfig.LoadEditorConfiguration(TestConfigurationPath);

            Assert.AreEqual(inputConfig.cloudCredentialsFileName, outputConfig.cloudCredentialsFileName);
            Assert.AreEqual(inputConfig.assetBundleFileName, outputConfig.assetBundleFileName);
            Assert.AreEqual(inputConfig.cloudStorageBucketName, outputConfig.cloudStorageBucketName);
            Assert.AreEqual(inputConfig.cloudStorageObjectName, outputConfig.cloudStorageObjectName);
        }