65 references to Assert
PresentationFramework (65)
src\Framework\MS\Internal\PtsHost\EmbeddedObject.cs (4)
108
ErrorHandler.
Assert
(newAttachedObject != null, ErrorHandler.EmbeddedObjectTypeMismatch);
109
ErrorHandler.
Assert
(newAttachedObject.Element.Equals(Element), ErrorHandler.EmbeddedObjectOwnerMismatch);
181
ErrorHandler.
Assert
(newInline != null, ErrorHandler.EmbeddedObjectTypeMismatch);
182
ErrorHandler.
Assert
(newInline._uiElementIsland == _uiElementIsland, ErrorHandler.EmbeddedObjectOwnerMismatch);
src\Framework\MS\Internal\PtsHost\FigureParaClient.cs (2)
478
ErrorHandler.
Assert
(fskupd != PTS.FSKUPDATE.fskupdShifted, ErrorHandler.UpdateShiftedNotValid);
509
ErrorHandler.
Assert
(visualChildren.Count == arrayColumnDesc.Length, ErrorHandler.ColumnVisualCountMismatch);
src\Framework\MS\Internal\PtsHost\FloaterParaClient.cs (2)
482
ErrorHandler.
Assert
(fskupd != PTS.FSKUPDATE.fskupdShifted, ErrorHandler.UpdateShiftedNotValid);
513
ErrorHandler.
Assert
(visualChildren.Count == arrayColumnDesc.Length, ErrorHandler.ColumnVisualCountMismatch);
src\Framework\MS\Internal\PtsHost\PtsHelper.cs (10)
239
ErrorHandler.
Assert
(fskupd != PTS.FSKUPDATE.fskupdShifted, ErrorHandler.UpdateShiftedNotValid);
607
ErrorHandler.
Assert
(pageDetails.u.complex.cSections == sectionCount, ErrorHandler.PTSObjectsCountMismatch);
632
ErrorHandler.
Assert
(subpageDetails.u.complex.cBasicColumns == trackCount, ErrorHandler.PTSObjectsCountMismatch);
663
ErrorHandler.
Assert
(sectionDetails.u.withpagenotes.cBasicColumns == trackCount, ErrorHandler.PTSObjectsCountMismatch);
688
ErrorHandler.
Assert
(trackDetails.cParas == paraCount, ErrorHandler.PTSObjectsCountMismatch);
713
ErrorHandler.
Assert
(subtrackDetails.cParas == paraCount, ErrorHandler.PTSObjectsCountMismatch);
738
ErrorHandler.
Assert
(textDetails.cLines == lineCount, ErrorHandler.PTSObjectsCountMismatch);
763
ErrorHandler.
Assert
(textDetails.cLines == lineCount, ErrorHandler.PTSObjectsCountMismatch);
787
ErrorHandler.
Assert
(lineDesc.cElements == lineElementCount, ErrorHandler.PTSObjectsCountMismatch);
811
ErrorHandler.
Assert
(cAttachedObject == attachedObjectCount, ErrorHandler.PTSObjectsCountMismatch);
src\Framework\MS\Internal\PtsHost\PtsPage.cs (21)
581
ErrorHandler.
Assert
(pageDetails.u.complex.cFootnoteColumns == 0, ErrorHandler.NotSupportedFootnotes);
634
ErrorHandler.
Assert
(pageDetails.u.complex.cFootnoteColumns == 0, ErrorHandler.NotSupportedFootnotes);
934
ErrorHandler.
Assert
(pageDetails.u.complex.cFootnoteColumns == 0, ErrorHandler.NotSupportedFootnotes);
984
ErrorHandler.
Assert
(pageDetails.u.complex.cFootnoteColumns == 0, ErrorHandler.NotSupportedFootnotes);
1012
ErrorHandler.
Assert
(sectionDetails.u.withpagenotes.cEndnoteColumns == 0, ErrorHandler.NotSupportedFootnotes);
1042
ErrorHandler.
Assert
(false, ErrorHandler.NotSupportedCompositeColumns);
1066
ErrorHandler.
Assert
(sectionDetails.u.withpagenotes.cEndnoteColumns == 0, ErrorHandler.NotSupportedFootnotes);
1091
ErrorHandler.
Assert
(false, ErrorHandler.NotSupportedCompositeColumns);
1116
ErrorHandler.
Assert
(pageDetails.fskupd != PTS.FSKUPDATE.fskupdShifted, ErrorHandler.UpdateShiftedNotValid);
1167
ErrorHandler.
Assert
(pageDetails.u.complex.cFootnoteColumns == 0, ErrorHandler.NotSupportedFootnotes);
1180
ErrorHandler.
Assert
(arraySectionDesc.Length == 1, ErrorHandler.NotSupportedMultiSection);
1225
ErrorHandler.
Assert
(fskupd != PTS.FSKUPDATE.fskupdShifted, ErrorHandler.UpdateShiftedNotValid);
1242
ErrorHandler.
Assert
(sectionDetails.u.withpagenotes.cEndnoteColumns == 0, ErrorHandler.NotSupportedFootnotes);
1273
ErrorHandler.
Assert
(visualChildren.Count == arrayColumnDesc.Length, ErrorHandler.ColumnVisualCountMismatch);
1285
ErrorHandler.
Assert
(false, ErrorHandler.NotSupportedCompositeColumns);
1344
ErrorHandler.
Assert
(pageDetails.u.complex.cFootnoteColumns == 0, ErrorHandler.NotSupportedFootnotes);
1405
ErrorHandler.
Assert
(pageDetails.u.complex.cFootnoteColumns == 0, ErrorHandler.NotSupportedFootnotes);
1465
ErrorHandler.
Assert
(sectionDetails.u.withpagenotes.cEndnoteColumns == 0, ErrorHandler.NotSupportedFootnotes);
1494
ErrorHandler.
Assert
(false, ErrorHandler.NotSupportedCompositeColumns);
1532
ErrorHandler.
Assert
(sectionDetails.u.withpagenotes.cEndnoteColumns == 0, ErrorHandler.NotSupportedFootnotes);
1567
ErrorHandler.
Assert
(false, ErrorHandler.NotSupportedCompositeColumns);
src\Framework\MS\Internal\PtsHost\SubpageParaClient.cs (2)
403
ErrorHandler.
Assert
(fskupd != PTS.FSKUPDATE.fskupdShifted, ErrorHandler.UpdateShiftedNotValid);
434
ErrorHandler.
Assert
(visualChildren.Count == arrayColumnDesc.Length, ErrorHandler.ColumnVisualCountMismatch);
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (23)
553
ErrorHandler.
Assert
(dcpLast == Paragraph.Cch + Line.SyntheticCharacterLength, ErrorHandler.ParagraphCharacterCountMismatch);
1712
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
1751
ErrorHandler.
Assert
(lastLineResult.DcpLast - Line.SyntheticCharacterLength == Paragraph.Cch, ErrorHandler.ParagraphCharacterCountMismatch);
1771
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
1820
ErrorHandler.
Assert
(lastLineResult.DcpLast - Line.SyntheticCharacterLength == Paragraph.Cch, ErrorHandler.ParagraphCharacterCountMismatch);
1844
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
1937
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
2034
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
2146
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
2596
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
2692
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
2823
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
2952
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
3122
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
3218
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
3349
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
3407
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
3472
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
3864
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
4070
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
4156
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
4259
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
4346
ErrorHandler.
Assert
(!PTS.ToBoolean(textDetails.fDropCapPresent), ErrorHandler.NotSupportedDropCap);
src\Framework\MS\Internal\PtsHost\TextParagraph.cs (1)
1561
ErrorHandler.
Assert
(objectsNew == null || (objectsNew[0].Dcp >= dcpStart && objectsNew[objectsNew.Count-1].Dcp <= dcpLim), ErrorHandler.SubmitInvalidList);