コード例 #1
0
 public void Test_DeleteNotEmptyTwiceAt0ThenEnd()
 {
     stringTextContext = new StringTextContext("test content");
     DeleteOperation delete1 = new DeleteOperation(0);
     DeleteOperation delete2 = new DeleteOperation(10);
     stringTextContext.Delete(null, delete1);
     Assert.AreEqual("est content", stringTextContext.Data, "Inconsistent state after deletion!");;
     stringTextContext.Delete(null, delete2);
     Assert.AreEqual("est conten", stringTextContext.Data, "Inconsistent state after deletion!");
 }
コード例 #2
0
 public void Test_DeleteNotEmptyAt0()
 {
     stringTextContext = new StringTextContext("test content");
     DeleteOperation delete = new DeleteOperation(0);
     stringTextContext.Delete(null, delete);
     Assert.AreEqual("est content", stringTextContext.Data, "Inconsistent state after deletion!");
 }