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

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