Tanoda
UtilsTests.cs
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (C) Ultraleap, Inc. 2011-2020. *
3 * *
4 * Use subject to the terms of the Apache License 2.0 available at *
5 * http://www.apache.org/licenses/LICENSE-2.0, or another agreement *
6 * between Ultraleap and you, your company or other organization. *
7 ******************************************************************************/
8
9using NUnit.Framework;
10
11namespace Leap.Unity.Tests {
12
13 public class UtilsTests {
14
15 [Test]
16 [Sequential]
17 public void TestNiceNames([Values("_privateVar",
18 "multBy32",
19 "the_key_code",
20 "CamelCaseToo",
21 "_is2_equalTo_5",
22 "GetTheSCUBANow",
23 "m_privateVar",
24 "kConstantVar")] string source,
25 [Values("Private Var",
26 "Mult By 32",
27 "The Key Code",
28 "Camel Case Too",
29 "Is 2 Equal To 5",
30 "Get The SCUBA Now",
31 "Private Var",
32 "Constant Var")] string result) {
33 Assert.That(Utils.GenerateNiceName(source), Is.EqualTo(result));
34 }
35 }
36}
void TestNiceNames([Values("_privateVar", "multBy32", "the_key_code", "CamelCaseToo", "_is2_equalTo_5", "GetTheSCUBANow", "m_privateVar", "kConstantVar")] string source, [Values("Private Var", "Mult By 32", "The Key Code", "Camel Case Too", "Is 2 Equal To 5", "Get The SCUBA Now", "Private Var", "Constant Var")] string result)
Definition: UtilsTests.cs:17