65 references to Assert
PresentationFramework (65)
MS\Internal\PtsHost\EmbeddedObject.cs (4)
105
ErrorHandler.
Assert
(newAttachedObject != null, ErrorHandler.EmbeddedObjectTypeMismatch);
106
ErrorHandler.
Assert
(newAttachedObject.Element.Equals(Element), ErrorHandler.EmbeddedObjectOwnerMismatch);
178
ErrorHandler.
Assert
(newInline != null, ErrorHandler.EmbeddedObjectTypeMismatch);
179
ErrorHandler.
Assert
(newInline._uiElementIsland == _uiElementIsland, ErrorHandler.EmbeddedObjectOwnerMismatch);
MS\Internal\PtsHost\FigureParaClient.cs (2)
427
ErrorHandler.
Assert
(fskupd != PTS.FSKUPDATE.fskupdShifted, ErrorHandler.UpdateShiftedNotValid);
458
ErrorHandler.
Assert
(visualChildren.Count == arrayColumnDesc.Length, ErrorHandler.ColumnVisualCountMismatch);
MS\Internal\PtsHost\FloaterParaClient.cs (2)
433
ErrorHandler.
Assert
(fskupd != PTS.FSKUPDATE.fskupdShifted, ErrorHandler.UpdateShiftedNotValid);
464
ErrorHandler.
Assert
(visualChildren.Count == arrayColumnDesc.Length, ErrorHandler.ColumnVisualCountMismatch);
MS\Internal\PtsHost\PtsHelper.cs (10)
217
ErrorHandler.
Assert
(fskupd != PTS.FSKUPDATE.fskupdShifted, ErrorHandler.UpdateShiftedNotValid);
561
ErrorHandler.
Assert
(pageDetails.u.complex.cSections == sectionCount, ErrorHandler.PTSObjectsCountMismatch);
580
ErrorHandler.
Assert
(subpageDetails.u.complex.cBasicColumns == trackCount, ErrorHandler.PTSObjectsCountMismatch);
604
ErrorHandler.
Assert
(sectionDetails.u.withpagenotes.cBasicColumns == trackCount, ErrorHandler.PTSObjectsCountMismatch);
623
ErrorHandler.
Assert
(trackDetails.cParas == paraCount, ErrorHandler.PTSObjectsCountMismatch);
642
ErrorHandler.
Assert
(subtrackDetails.cParas == paraCount, ErrorHandler.PTSObjectsCountMismatch);
661
ErrorHandler.
Assert
(textDetails.cLines == lineCount, ErrorHandler.PTSObjectsCountMismatch);
680
ErrorHandler.
Assert
(textDetails.cLines == lineCount, ErrorHandler.PTSObjectsCountMismatch);
698
ErrorHandler.
Assert
(lineDesc.cElements == lineElementCount, ErrorHandler.PTSObjectsCountMismatch);
716
ErrorHandler.
Assert
(cAttachedObject == attachedObjectCount, ErrorHandler.PTSObjectsCountMismatch);
MS\Internal\PtsHost\PtsPage.cs (21)
533
ErrorHandler.
Assert
(pageDetails.u.complex.cFootnoteColumns == 0, ErrorHandler.NotSupportedFootnotes);
578
ErrorHandler.
Assert
(pageDetails.u.complex.cFootnoteColumns == 0, ErrorHandler.NotSupportedFootnotes);
856
ErrorHandler.
Assert
(pageDetails.u.complex.cFootnoteColumns == 0, ErrorHandler.NotSupportedFootnotes);
900
ErrorHandler.
Assert
(pageDetails.u.complex.cFootnoteColumns == 0, ErrorHandler.NotSupportedFootnotes);
923
ErrorHandler.
Assert
(sectionDetails.u.withpagenotes.cEndnoteColumns == 0, ErrorHandler.NotSupportedFootnotes);
952
ErrorHandler.
Assert
(false, ErrorHandler.NotSupportedCompositeColumns);
971
ErrorHandler.
Assert
(sectionDetails.u.withpagenotes.cEndnoteColumns == 0, ErrorHandler.NotSupportedFootnotes);
995
ErrorHandler.
Assert
(false, ErrorHandler.NotSupportedCompositeColumns);
1013
ErrorHandler.
Assert
(pageDetails.fskupd != PTS.FSKUPDATE.fskupdShifted, ErrorHandler.UpdateShiftedNotValid);
1064
ErrorHandler.
Assert
(pageDetails.u.complex.cFootnoteColumns == 0, ErrorHandler.NotSupportedFootnotes);
1077
ErrorHandler.
Assert
(arraySectionDesc.Length == 1, ErrorHandler.NotSupportedMultiSection);
1117
ErrorHandler.
Assert
(fskupd != PTS.FSKUPDATE.fskupdShifted, ErrorHandler.UpdateShiftedNotValid);
1134
ErrorHandler.
Assert
(sectionDetails.u.withpagenotes.cEndnoteColumns == 0, ErrorHandler.NotSupportedFootnotes);
1164
ErrorHandler.
Assert
(visualChildren.Count == arrayColumnDesc.Length, ErrorHandler.ColumnVisualCountMismatch);
1176
ErrorHandler.
Assert
(false, ErrorHandler.NotSupportedCompositeColumns);
1228
ErrorHandler.
Assert
(pageDetails.u.complex.cFootnoteColumns == 0, ErrorHandler.NotSupportedFootnotes);
1282
ErrorHandler.
Assert
(pageDetails.u.complex.cFootnoteColumns == 0, ErrorHandler.NotSupportedFootnotes);
1337
ErrorHandler.
Assert
(sectionDetails.u.withpagenotes.cEndnoteColumns == 0, ErrorHandler.NotSupportedFootnotes);
1365
ErrorHandler.
Assert
(false, ErrorHandler.NotSupportedCompositeColumns);
1398
ErrorHandler.
Assert
(sectionDetails.u.withpagenotes.cEndnoteColumns == 0, ErrorHandler.NotSupportedFootnotes);
1432
ErrorHandler.
Assert
(false, ErrorHandler.NotSupportedCompositeColumns);
MS\Internal\PtsHost\SubpageParaClient.cs (2)
360
ErrorHandler.
Assert
(fskupd != PTS.FSKUPDATE.fskupdShifted, ErrorHandler.UpdateShiftedNotValid);
391
ErrorHandler.
Assert
(visualChildren.Count == arrayColumnDesc.Length, ErrorHandler.ColumnVisualCountMismatch);
MS\Internal\PtsHost\TextParaClient.cs (23)
480
ErrorHandler.
Assert
(dcpLast == Paragraph.Cch + Line.SyntheticCharacterLength, ErrorHandler.ParagraphCharacterCountMismatch);
1523
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
1562
ErrorHandler.
Assert
(lastLineResult.DcpLast - Line.SyntheticCharacterLength == Paragraph.Cch, ErrorHandler.ParagraphCharacterCountMismatch);
1575
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
1624
ErrorHandler.
Assert
(lastLineResult.DcpLast - Line.SyntheticCharacterLength == Paragraph.Cch, ErrorHandler.ParagraphCharacterCountMismatch);
1644
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
1732
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
1825
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
1932
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
2374
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
2466
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
2592
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
2717
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
2882
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
2974
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
3101
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
3154
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
3215
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
3589
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
3786
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
3868
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
3966
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
4048
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
MS\Internal\PtsHost\TextParagraph.cs (1)
1553
ErrorHandler.
Assert
(objectsNew == null || (objectsNew[0].Dcp >= dcpStart && objectsNew[objectsNew.Count-1].Dcp <= dcpLim), ErrorHandler.SubmitInvalidList);