public void GetUnityVersionOfBuild_ValidBuild_Success()
        {
            List <string> lines = new List <string>();

            lines.Add("m_EditorVersion: 2019.3.4f1");
            lines.Add("m_EditorVersionWithRevision: 2019.3.4f1(4f139db2fdbd)");
            File.WriteAllLines(Path.Combine(outputFolder, "ProjectVersion.txt"), lines);
            Assert.AreEqual("2019.3", ShareUtils.GetUnityVersionOfBuild(outputFolder));
        }
        public void GetUnityVersionOfBuild_InvalidVersionFile_Fails()
        {
            List <string> lines = new List <string>();

            lines.Add("m_EditorVersion: broken data");
            lines.Add("m_EditorVersionWithRevision: broken data");

            File.WriteAllLines(Path.Combine(outputFolder, "ProjectVersion.txt"), lines);
            Assert.AreEqual(string.Empty, ShareUtils.GetUnityVersionOfBuild(outputFolder));
        }