using NUnit.Framework; using System.Collections.Generic; using Unity.PlasticSCM.Editor.ProjectDownloader; namespace Unity.PlasticSCM.Tests.Editor.ProjectDownloader { [TestFixture] class ParseArgumentsTest { [Test] public void TestParseCloudProject() { Dictionary args = new Dictionary(); args.Add("-cloudProject", "fpsmicrogame"); Assert.AreEqual("fpsmicrogame", ParseArguments.CloudProject(args)); } [Test] public void TestParseCloudOrganization() { Dictionary args = new Dictionary(); args.Add("-cloudOrganization", "D51E18A1-CA04-4E7C-A649-6FD2829E3223-danipen-unity"); Assert.AreEqual("danipen-unity", ParseArguments.CloudOrganization(args)); } [Test] public void TestParseProjectPath() { Dictionary args = new Dictionary(); args.Add("-createProject", @"c:\tmp\newproj"); Assert.AreEqual(@"c:\tmp\newproj", ParseArguments.ProjectPath(args)); } } }