// Use this for initialization void Start() { SomeClass myClass = new SomeClass(); // The specific Add method called will depend on the arguments passed in. Debug.Log(myClass.Add(1, 2)); Debug.Log(myClass.Add("Hello", "world")); }
void Start() { SomeClass myClass = new SomeClass(); // The specific Add method called will depend on // the arguements passed in. myClass.Add(1, 2); myClass.Add("Hello", "World"); }
void Start() { SomeClass myClass = new SomeClass(); // The specific Add method called will depend on // the arguments passed in myClass.Add(1, 2); myClass.Add("Hello, ", "World!"); // <- I'm getting a tattoo of this saying in May :3 }
void Start() { SomeClass myClass = new SomeClass(); myClass.Add(1, 2); myClass.Add("Welcom", "Hell"); Debug.Log(myClass); }
public void TestSomeClassMethod1() { var instance = new SomeClass(); const string key = "someKey"; Assert.IsFalse(instance.Contains(key)); Assert.IsTrue(instance.Add(key, new object())); Assert.IsTrue(instance.Contains(key)); instance.Remove(key); Assert.IsFalse(instance.Contains(key)); }
public void TestAdd() { var result = SomeClass.Add(11, 12); Assert.AreEqual(23, result); }