コード例 #1
0
        public void Constructor_Test()
        {
            string     testString     = "test";
            CheckScore testCheckScore = new CheckScore(testString);

            Assert.AreEqual(testString, testCheckScore.GetUserInput());
        }
コード例 #2
0
    public static void Main()
    {
        Console.WriteLine("Enter a word to check its Scrabble score.");
        string     userInput     = Console.ReadLine();
        CheckScore newCheckScore = new CheckScore(userInput);

        newCheckScore.CalculateScore();
        int myScore = newCheckScore.GetUserScore();

        Console.WriteLine("Your Scrabble score for the word " + newCheckScore.GetUserInput() + ": " + myScore + "!");
    }