示例#1
0
		public void ReplaceCurWithRev_ParaCopyObject()
		{
			StTxtPara paraRev = SetUpParagraphInRevision();

			// prepare the section in which we will append the copied paragraph
			IScrSection sectionCurr = CreateSection(m_genesis, "My aching head!");

			// Set up the Scripture ChangeWatcher
			ScriptureChangeWatcher.Create(Cache);

			// Now, call the methods under test!
			int hvoParaCurr = Cache.CopyObject(paraRev.Hvo,
				sectionCurr.ContentOAHvo, (int)StText.StTextTags.kflidParagraphs);
			StTxtPara newPara = new StTxtPara(Cache, hvoParaCurr);
			newPara.CreateOwnedObjects(0, newPara.Contents.Length, m_bookMerger);

			// Verify
			VerifyCopiedPara(newPara);
		}