Example #1
0
        public void ToString_Add3StringsToList_OutputIsSeeSpotRun()
        {
            //arrange
            ScratchList <string> testList = new ScratchList <string>();
            string actual;
            string expected = "SeeSpotRun";

            testList.Add("See");
            testList.Add("Spot");
            testList.Add("Run");

            //act
            actual = testList.ToString();

            //assert
            Assert.AreEqual(expected, actual);
        }
Example #2
0
        public void ToString_Add3DoublesToList_OutputIs2337()
        {
            //arrange
            ScratchList <double> testList = new ScratchList <double>();
            string actual;
            string expected = "2337";

            testList.Add(2);
            testList.Add(33);
            testList.Add(7);

            //act
            actual = testList.ToString();

            //assert
            Assert.AreEqual(expected, actual);
        }