Esempio n. 1
0
        public void CheckingGetW()
        {
            //Arrange
            string  testWord   = "Tu";
            string  testString = "Hola";
            counter newTest    = new counter(testWord, testString);
            //Act
            string totalWord   = newTest.GetWord();
            string totalString = newTest.GetString();

            //Assert
            Assert.AreEqual(testWord, totalWord);
            Assert.AreEqual(testString, totalString);
        }
Esempio n. 2
0
        public void TestTwo()
        {
            //Arrange
            string  testingOne = "Good";
            string  testingTwo = "Bye";
            counter newTest    = new counter(testingOne, testingTwo);
//Act
            string totalWord   = newTest.GetWord();
            string totalString = newTest.GetString();
            int    total       = newTest.WordTotal();

            //Assert
            Assert.AreEqual(testingOne, totalWord);
            Assert.AreEqual(testingTwo, totalString);
            Assert.AreEqual(0, total);
        }