static void Main(string[] args) { string inputString = System.Console.ReadLine(); YourNameAsANumber Test = new YourNameAsANumber(inputString); System.Console.WriteLine(Test.CalcSumOfInputString()); System.Console.ReadKey(); }
public void TestMethod6() { string strSampleString = "Ivan"; YourNameAsANumber TestYourNameAsANumber = new YourNameAsANumber(strSampleString); int strActual = TestYourNameAsANumber.CalcSumOfInputString(); Assert.AreEqual(expected: 46, actual: strActual); }