ParseArgumentsTest.cs
1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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<string, string> args = new Dictionary<string, string>();
args.Add("-cloudProject", "fpsmicrogame");
Assert.AreEqual("fpsmicrogame", ParseArguments.CloudProject(args));
}
[Test]
public void TestParseCloudOrganization()
{
Dictionary<string, string> args = new Dictionary<string, string>();
args.Add("-cloudOrganization", "D51E18A1-CA04-4E7C-A649-6FD2829E3223-danipen-unity");
Assert.AreEqual("danipen-unity", ParseArguments.CloudOrganization(args));
}
[Test]
public void TestParseProjectPath()
{
Dictionary<string, string> args = new Dictionary<string, string>();
args.Add("-createProject", @"c:\tmp\newproj");
Assert.AreEqual(@"c:\tmp\newproj", ParseArguments.ProjectPath(args));
}
}
}