static void OldWay() { // this is what is normally done, but not very good ClassA instanceA = new ClassA(); // DynamicTYping ClassC instanceC = new ClassC(instanceA); int sum = instanceC.GetSum(2, 3); }
public void TestTrimStringWithStartinhSpaces() { ClassA instanceA = new ClassA(); Assert.AreEqual(instanceA.TrimString(" a"), "a"); }
public void TestTrimStringWithNull() { ClassA instanceA = new ClassA(); Assert.AreEqual(instanceA.TrimString(null), null); }
public void TestTrimStringWithMiddlingSpaces() { ClassA instanceA = new ClassA(); Assert.AreEqual(instanceA.TrimString("a b "), "a b"); }
public void TestTrimStringNotNullThrowException() { ClassA instanceA = new ClassA(); var trimedString = instanceA.TrimStringNotNull(null); }
public void TestAddTwoNumbers() { ClassA instanceA = new ClassA(); Assert.AreEqual(instanceA.AddTwoNumbers(2, 3), 5); }