コード例 #1
0
        static void Main(string[] args)
        {
            string            inputString = System.Console.ReadLine();
            YourNameAsANumber Test        = new YourNameAsANumber(inputString);

            System.Console.WriteLine(Test.CalcSumOfInputString());
            System.Console.ReadKey();
        }
コード例 #2
0
        public void TestMethod6()
        {
            string            strSampleString       = "Ivan";
            YourNameAsANumber TestYourNameAsANumber = new YourNameAsANumber(strSampleString);
            int strActual = TestYourNameAsANumber.CalcSumOfInputString();

            Assert.AreEqual(expected: 46, actual: strActual);
        }