Beispiel #1
0
        public void Inheritance_No_Match()
        {
            dynamic mimic  = new SubMimic();
            int     result = mimic.Add(1, "llo");

            Assert.AreEqual(default(int), result);
        }
Beispiel #2
0
        public void Inheritance_String()
        {
            dynamic mimic  = new SubMimic();
            string  result = mimic.Add("He", "llo");

            Assert.AreEqual("Hello", result);
        }
Beispiel #3
0
        public void Inheritance_Int()
        {
            dynamic mimic  = new SubMimic();
            int     result = mimic.Add(2, 2);

            Assert.AreEqual(4, result);
        }
 public void Inheritance_No_Match()
 {
     dynamic mimic = new SubMimic();
     int result = mimic.Add(1, "llo");
     Assert.AreEqual(default(int), result);
 }
 public void Inheritance_String()
 {
     dynamic mimic = new SubMimic();
     string result = mimic.Add("He", "llo");
     Assert.AreEqual("Hello", result);
 }
 public void Inheritance_Int()
 {
     dynamic mimic = new SubMimic();
     int result = mimic.Add(2, 2);
     Assert.AreEqual(4, result);
 }