Esempio n. 1
0
        public void Paper_Append_Char()
        {
            var ppr = new Paper();

            ppr.Append('Q');

            Assert.That(ppr.Text(), Is.EqualTo("Q"));
        }
Esempio n. 2
0
        public void Paper_Append_Null_Text()
        {
            var ppr = new Paper();

            ppr.Append(null);

            Assert.That(ppr.Text(), Is.EqualTo(""));
        }
Esempio n. 3
0
        public void Paper_Append_Long_Text()
        {
            var ppr = new Paper();

            ppr.Append(LorumIpsum.Text);

            Assert.That(ppr.Text(), Is.EqualTo(LorumIpsum.Text));
        }
Esempio n. 4
0
        public void Paper_Append_Short_Text()
        {
            var ppr = new Paper();

            ppr.Append("Z");

            Assert.That(ppr.Text(), Is.EqualTo("Z"));
        }
Esempio n. 5
0
        public void WhenPaperGivenTextToAppend_PaperContainsText()
        {
            string textToWrite = "It was the best of times";

            sheet = new Paper();

            sheet.Append(textToWrite);
            Assert.AreEqual(textToWrite, sheet.Text);
        }
Esempio n. 6
0
        public void WhenNonblankPaperGivenTextToWrite_PaperContainsOriginalAndAppendedText()
        {
            string originalText = "It was the best of times";
            string textToWrite  = ", it was the blurst of times.";

            sheet = new Paper(originalText);

            sheet.Append(textToWrite);
            Assert.AreEqual(originalText + textToWrite, sheet.Text);
        }
Esempio n. 7
0
        public void Paper_Append()
        {
            var ppr = new Paper();

            ppr.Append("Hello");
        }