예제 #1
0
    // 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");
    }
예제 #3
0
    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
    }
예제 #4
0
    void Start()
    {
        SomeClass myClass = new SomeClass();

        myClass.Add(1, 2);
        myClass.Add("Welcom", "Hell");

        Debug.Log(myClass);
    }
예제 #5
0
    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));
    }
예제 #6
0
        public void TestAdd()
        {
            var result = SomeClass.Add(11, 12);

            Assert.AreEqual(23, result);
        }