Пример #1
0
 private void VerifyHyperlinkInfo(List <StringServices.LinkOccurrence> hyperlinkInfo, ICmObject obj, int flid, int ws,
                                  int ichMin, int ichLim, string relPath)
 {
     foreach (var linkOccurrence in hyperlinkInfo)
     {
         if (linkOccurrence.Object == obj && linkOccurrence.Flid == flid && linkOccurrence.Ws == ws &&
             linkOccurrence.IchMin == ichMin && linkOccurrence.IchLim == ichLim && linkOccurrence.RelativePath == relPath)
         {
             return;
         }
     }
     Assert.Fail("Did not find the link with properties " + obj.ToString() + " flid: " + flid + " ws: " + ws
                 + " ichMin: " + ichMin + " ichLim: " + ichLim + " link: " + relPath);
 }
Пример #2
0
		private void VerifyHyperlinkInfo(List<StringServices.LinkOccurrence> hyperlinkInfo, ICmObject obj, int flid, int ws,
			int ichMin, int ichLim, string relPath)
		{
			foreach (var linkOccurrence in hyperlinkInfo)
			{
				if (linkOccurrence.Object == obj && linkOccurrence.Flid == flid && linkOccurrence.Ws == ws &&
					linkOccurrence.IchMin == ichMin && linkOccurrence.IchLim == ichLim && linkOccurrence.RelativePath == relPath)
					return;
			}
			Assert.Fail("Did not find the link with properties " + obj.ToString() + " flid: " + flid + " ws: " + ws
				+ " ichMin: " + ichMin + " ichLim: " + ichLim + " link: " + relPath);
		}