Esempio n. 1
0
 public void MemoTest2()
 {
     string expected = "ABC";
     Memo m = new Memo(expected, 80);
     Assert.AreEqual(expected, m.InternalString);
     Assert.AreEqual(80, m.LengthOfLines);
 }
Esempio n. 2
0
 public void LengthOfLinesTest()
 {
     string expected = "ABC";
     Memo m = new Memo(expected);
     m.LengthOfLines = 22;
     Assert.AreEqual(22, m.LengthOfLines);
 }
Esempio n. 3
0
 public void AddToStringTest()
 {
     string expected = "ABC";
     Memo m = new Memo(expected);
     m.AddToString("DEF");
     Assert.AreEqual("DEF", m.GetLine(1));
 }
Esempio n. 4
0
        public Memo Equals(Memo rhs)
        {
            if (this != rhs)
            {
                ResetArray();
                cInternalString = rhs.cInternalString;
                bArrayIsSet = false;
                RefreshList();
            }

            return this;
        }
Esempio n. 5
0
 public void NumberOfLinesTest()
 {
     string expected = "ABC";
     Memo m = new Memo(expected);
     Assert.AreEqual(2, m.NumberOfLines);
 }
Esempio n. 6
0
 public void MemoTest1()
 {
     string expected = "ABC";
     Memo m = new Memo(expected);
     Assert.AreEqual(expected, m.InternalString);
 }
Esempio n. 7
0
 public void GetLineTest()
 {
     string expected = "ABC";
     Memo m = new Memo(expected);
     Assert.AreEqual(expected, m.GetLine(0));
 }