예제 #1
0
 public void Class1Test()
 {
     var obj1 = new internalClass();
     Assert.AreEqual("extension",obj1.getFirstValue());
 }
예제 #2
0
 public void baseClassTest()
 {
     var obj0 = new internalClass();
     Assert.AreEqual("rahul",obj0.getFirstName());
     Assert.AreEqual("RAHUL", obj0.getBaseStringUpper());
 }
예제 #3
0
 public void Class1ExtensionTest()
 {
     var obj1 = new internalClass();
     Assert.AreEqual("EXTENSION", obj1.getFirstValueUpper());
 }
예제 #4
0
 public static string getFirstValueUpper(this internalClass objClass)
 {
     return(objClass.getFirstValue().ToUpper());
 }