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