8849 references to Assert
PresentationBuildTasks (81)
Base\System\Windows\Markup\XmlCompatibilityReader.cs (1)
350
Debug.
Assert
(Scope.ShouldProcessContent(namespaceName, Reader.LocalName));
Base\System\Windows\Markup\XmlWrappingReader.cs (1)
49
Debug.
Assert
( baseReader != null );
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (26)
251
Debug.
Assert
(!cu.Pass2);
273
Debug.
Assert
(!cu.Pass2);
284
Debug.
Assert
(!cu.Pass2 || _pendingLocalFiles == null);
285
Debug.
Assert
(_pendingLocalFiles == null || _pendingLocalFiles.Count == 0);
585
Debug.
Assert
(_codeContexts.Count == 0);
965
Debug.
Assert
(_ccRoot.StyleConnectorFn.Statements.Count > 0);
967
Debug.
Assert
(ccsConnector != null);
1776
Debug.
Assert
(desc != null);
1851
Debug.
Assert
(pis != null && pis.Length == 2 && KnownTypes.Types[(int)KnownElements.DependencyObject].IsAssignableFrom(pis[0].ParameterType));
1979
Debug.
Assert
(_ccRoot != null && _ccRoot.SubClass.Length > 0);
2052
Debug.
Assert
(CompilerInfo != null && CompilerInfo.IsCodeDomProviderTypeValid);
2253
Debug.
Assert
(genericName.Length > 0 || t.IsGenericTypeDefinition);
2257
Debug.
Assert
(genericName.Length == 0 && typeArgsList != null);
2343
Debug.
Assert
(typeArgsList != null && typeArgsList.Length == refTypeParams.Length);
2408
Debug.
Assert
(_typeArgsList == null || (baseClass.IsGenericType && baseClass.IsGenericTypeDefinition));
2409
Debug.
Assert
(_typeArgsList != null || !baseClass.IsGenericType);
2476
Debug.
Assert
(!string.IsNullOrEmpty(baseName));
2482
Debug.
Assert
(_ccRoot == null);
2925
Debug.
Assert
(_ccRoot != null);
2974
Debug.
Assert
(cc != null);
2978
Debug.
Assert
(_ccRoot == (cc as CodeContextRoot));
2979
Debug.
Assert
(_ccRoot.CodeClass != null);
3003
Debug.
Assert
(_ccRoot.HookupFn == null);
3057
Debug.
Assert
(_ccRoot == (_codeContexts.Peek() as CodeContextRoot));
3058
Debug.
Assert
(_ccRoot.ElementType == null ||
3082
Debug.
Assert
(_ccRoot == (_codeContexts.Peek() as CodeContextRoot));
BuildTasks\Ms\Internal\MarkupCompiler\ParserExtension.cs (1)
907
Debug.
Assert
(bamlMemStream != null);
Framework\MS\Internal\Globalization\LocalizationComments.cs (1)
362
Debug.
Assert
(enumPrefix != null && enumNames != null);
Framework\System\Windows\Markup\BamlMapTable.cs (8)
92
Debug.
Assert
(null != xamlTypeMapper);
168
Debug.
Assert
(cmp > 0);
1068
Debug.
Assert
(bamlAssemblyInfoRecord.AssemblyId >= 0);
1104
Debug.
Assert
(
1116
Debug.
Assert
(bamlAssemblyInfoRecord.AssemblyId >= 0);
1296
Debug.
Assert
(ownerTypeName != null);
1297
Debug.
Assert
(attributeName != null);
1514
Debug.
Assert
(targetType != null && memberName != null);
Framework\System\Windows\Markup\BamlRecords.cs (7)
777
Debug.
Assert
(null == _writeCache[(int)record.RecordType]);
917
Debug.
Assert
( value <= 3 && value >= 0 );
1110
Debug.
Assert
(RecordSize < 0);
2478
Debug.
Assert
(value <= ExtensionIdMask);
4795
Debug.
Assert
( SerializerTypeId != 0 );
4972
Debug.
Assert
(arr.Length == 3 && arr[0] != null && arr[1] != null);
5015
Debug.
Assert
(arr.Length == 3 && arr[0] != null && arr[1] != null);
Framework\System\Windows\Markup\BamlRecordWriter.cs (10)
144
Debug.
Assert
(null != DocumentStartRecord);
416
Debug.
Assert
(_deferElementDepth == 0);
417
Debug.
Assert
(_deferComplexPropertyDepth == 0);
418
Debug.
Assert
(_staticResourceElementDepth == 0);
419
Debug.
Assert
(_dynamicResourceElementDepth == 0);
420
Debug.
Assert
(_staticResourceRecordList == null);
438
Debug.
Assert
(_staticResourceElementDepth == 0);
890
Debug.
Assert
(_deferElementDepth == 2);
1079
Debug.
Assert
(extensionTypeId != (short)KnownElements.TypeExtension);
1096
Debug.
Assert
(typeValue != null);
Framework\System\Windows\Markup\MarkupExtensionParser.cs (2)
1205
Debug.
Assert
(sb.Length > 0);
1206
Debug.
Assert
(!Char.IsWhiteSpace(sb[0]));
Framework\System\Windows\Markup\StyleXamlParser.cs (2)
513
Debug.
Assert
(_inEventSetter);
1228
Debug.
Assert
(!xamlClrEventNode.IsTemplateEvent && _inEventSetter);
Framework\System\Windows\Markup\TemplateXamlParser.cs (3)
570
Debug.
Assert
(_setterOrTriggerValueNode != null);
1343
Debug.
Assert
(_styleModeStack.Mode == StyleMode.VisualTree);
1353
Debug.
Assert
(!xamlClrEventNode.IsStyleSetterEvent);
Framework\System\Windows\Markup\XamlParser.cs (1)
1245
Debug.
Assert
(SkipActionDepthCount == -1);
Framework\System\Windows\Markup\XamlReaderHelper.cs (13)
376
Debug.
Assert
(null != XmlReader);
1522
Debug.
Assert
( (null==ContentPropertyInfo && null==ContentPropertyName)
2086
Debug.
Assert
(false == endTagHasBeenRead);
2236
Debug.
Assert
(IsElementScopedAttribute(attribName, attribLocalName, attributeNamespaceUri));
2245
Debug.
Assert
(IsElementScopedAttribute(attribName, attribLocalName, attributeNamespaceUri));
2254
Debug.
Assert
(IsElementScopedAttribute(attribName, attribLocalName, attributeNamespaceUri));
2263
Debug.
Assert
(IsElementScopedAttribute(attribName, attribLocalName, attributeNamespaceUri));
2272
Debug.
Assert
(IsElementScopedAttribute(attribName, attribLocalName, attributeNamespaceUri));
2281
Debug.
Assert
(attributeFound || !IsElementScopedAttribute(attribName, attribLocalName, attributeNamespaceUri));
2771
Debug.
Assert
(unknownTagName != null || null != parentType);
3710
Debug.
Assert
(typeAndSerializer == null ||
4790
Debug.
Assert
( collectionTypeID >= 0
5453
Debug.
Assert
(currentPos > 0 && currentPos < s.Length - 1);
Framework\System\Windows\Markup\XamlTypeMapper.cs (3)
2403
Debug.
Assert
(memberName != null);
2406
Debug.
Assert
(memberInfo != null);
2421
Debug.
Assert
(targetType != null);
Framework\System\Windows\Markup\XmlnsDictionary.cs (1)
722
Debug.
Assert
(prefix != null);
Shared\MS\Internal\TokenizerHelper.cs (1)
344
Debug.
Assert
(null != numberFormat);
PresentationCore (1553)
Core\CSharp\MS\Internal\AppModel\CookieHandler.cs (1)
132
Debug.
Assert
(size > 0);
Core\CSharp\MS\Internal\Automation\EventPropertyMap.cs (1)
118
Debug.
Assert
(properties != null);
Core\CSharp\MS\Internal\FontCache\FamilyCollection.cs (1)
830
Debug.
Assert
(i == FamilyCount);
Core\CSharp\MS\Internal\FontCache\FontCacheUtil.cs (1)
76
Debug.
Assert
(stream.Position == 0);
Core\CSharp\MS\Internal\FontCache\FontResourceCache.cs (3)
64
Debug.
Assert
(uri.IsAbsoluteUri && uri.Scheme == PackUriHelper.UriSchemePack && BaseUriHelper.IsPackApplicationUri(uri));
77
Debug.
Assert
(escapedPath.EndsWith(FakeFileName, StringComparison.OrdinalIgnoreCase));
145
Debug.
Assert
(!folderResourceMap.ContainsKey(resourceFullName));
Core\CSharp\MS\Internal\FontCache\FontSource.cs (3)
93
Debug.
Assert
(String.IsNullOrEmpty(_fontUri.Fragment));
385
Debug.
Assert
(memoryFontSize <= fileReadBufferSize);
476
Debug.
Assert
(_memoryHandle.IsAllocated);
Core\CSharp\MS\Internal\FontFace\CompositeFontInfo.cs (3)
221
Debug.
Assert
(IsFamilyMapRangesValid(familyMapRanges));
229
Debug.
Assert
(begin < end && end <= _familyMaps.Count);
257
Debug.
Assert
(count == FirstFamilyMapRange);
Core\CSharp\MS\Internal\FontFace\PhysicalFontFamily.cs (4)
146
Debug.
Assert
(bestMatch != null);
238
Debug.
Assert
(bestStyleTypeface != null);
366
Debug.
Assert
(advance <= unicodeString.Length);
372
Debug.
Assert
(advance + sizeofChar <= unicodeString.Length);
Core\CSharp\MS\Internal\Generic\Span.cs (1)
143
Debug.
Assert
(fc <= first);
Core\CSharp\MS\Internal\Ink\Bezier.cs (2)
116
Debug.
Assert
(to - from >= 4);
357
Debug.
Assert
(data.Node(to) - data.Node(from) > data.Node(j) - data.Node(from));
Core\CSharp\MS\Internal\Ink\CuspData.cs (1)
282
Debug.
Assert
(bReverse);
Core\CSharp\MS\Internal\Ink\EllipticalNodeOperations.cs (9)
29
System.Diagnostics.Debug.
Assert
((nodeShape != null) && nodeShape.IsEllipse);
176
System.Diagnostics.Debug.
Assert
(node.IsEmpty == false);
581
System.Diagnostics.Debug.
Assert
(result.IsEmpty);
619
System.Diagnostics.Debug.
Assert
(DoubleUtil.AreClose(beginRadius, endRadius) == false);
651
System.Diagnostics.Debug.
Assert
(!double.IsNaN(findex));
660
System.Diagnostics.Debug.
Assert
(DoubleUtil.IsBetweenZeroAndOne(x) == false);
662
System.Diagnostics.Debug.
Assert
(!double.IsNaN(findex));
678
System.Diagnostics.Debug.
Assert
(!double.IsNaN(findex));
690
System.Diagnostics.Debug.
Assert
(!double.IsNaN(findex));
Core\CSharp\MS\Internal\Ink\ErasingStroke.cs (6)
33
System.Diagnostics.Debug.
Assert
(erasingShape != null);
59
System.Diagnostics.Debug.
Assert
((path != null) && (IEnumerablePointHelper.GetCount(path) != 0));
100
System.Diagnostics.Debug.
Assert
(iterator != null);
139
System.Diagnostics.Debug.
Assert
(iterator != null);
140
System.Diagnostics.Debug.
Assert
(intersections != null);
262
System.Diagnostics.Debug.
Assert
(path.Length > 1);
Core\CSharp\MS\Internal\Ink\ExtendedPropertyCollection.cs (1)
185
System.Diagnostics.Debug.
Assert
(propertyToRemove != null);
Core\CSharp\MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (8)
81
Debug.
Assert
(NativeRecognizer.RecognizerHandleSingleton != null);
448
Debug.
Assert
(recContext != null && !recContext.IsInvalid);
502
Debug.
Assert
(recContext != null && !recContext.IsInvalid);
596
Debug.
Assert
(stylusPoints != null);
597
Debug.
Assert
(propertyGuids.Length == StylusPointDescription.RequiredCountOfProperties);
741
Debug.
Assert
(ApplicationGestureHelper.IsDefined(gesture));
835
Debug.
Assert
(pProps->cbPropertyValue == sizeof(uint) / sizeof(byte));
847
Debug.
Assert
(ApplicationGestureHelper.IsDefined(gesture));
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\AlgoModule.cs (4)
231
Debug.
Assert
(outputBufferIndex < outputBuffer.Length);
240
Debug.
Assert
(outputBufferIndex < outputBuffer.Length);
293
Debug.
Assert
(countPerItem == 4 || countPerItem == 2 || countPerItem == 1);
357
Debug.
Assert
(countPerItem == 4 || countPerItem == 2 || countPerItem == 1);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (2)
341
Debug.
Assert
(strm != null);
466
System.Diagnostics.Debug.
Assert
(guid == Guid.Empty);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (11)
352
System.Diagnostics.Debug.
Assert
(penTip == PenTip.Rectangle);
441
Debug.
Assert
(DrawingAttributes.MaxHeight == DrawingAttributes.MaxWidth &&
484
Debug.
Assert
(stream != null);
510
Debug.
Assert
(bw != null);
516
Debug.
Assert
(bw != null);
536
Debug.
Assert
(bw != null);
549
Debug.
Assert
(bw != null);
567
Debug.
Assert
(bw != null);
654
Debug.
Assert
(bw != null);
708
Debug.
Assert
(bw != null);
719
Debug.
Assert
(bw != null);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\GorillaCodec.cs (5)
234
Debug.
Assert
(intReader != null);
235
Debug.
Assert
(shortReader != null);
247
Debug.
Assert
(shortReader != null);
569
Debug.
Assert
(outputBufferIndex < outputBuffer.Length);
586
Debug.
Assert
(outputBufferIndex < outputBuffer.Length);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\HuffCodec.cs (9)
93
Debug.
Assert
(input != null);
94
Debug.
Assert
(input.Length >= 2);
95
Debug.
Assert
(startIndex == 1);
96
Debug.
Assert
(outputBuffer != null);
97
Debug.
Assert
(outputBuffer.Length != 0);
109
Debug.
Assert
(outputBufferIndex < outputBuffer.Length);
124
Debug.
Assert
(outputBufferIndex < outputBuffer.Length);
189
Debug.
Assert
(nDataLen > 0 && nDataLen - 1 <= Int32.MaxValue);
193
Debug.
Assert
(nDataLen <= Int32.MaxValue);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (7)
107
System.Diagnostics.Debug.
Assert
(inkData.Length > isfBase64PrefixLength);
252
Debug.
Assert
(inkdata != null);
317
Debug.
Assert
(inputStream != null);
2161
Debug.
Assert
(data != null);
2558
Debug.
Assert
(sizeOfHeaderInBytes == bytesWritten);
2597
Debug.
Assert
(sizes[i] == bytesWritten);
2797
System.Diagnostics.Debug.
Assert
(strokes != null);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\LZCodec.cs (4)
41
Debug.
Assert
(input != null);
42
Debug.
Assert
(input.Length > 1);
43
Debug.
Assert
(inputIndex < input.Length);
44
Debug.
Assert
(inputIndex >= 0);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\MultiByteCodec.cs (3)
80
Debug.
Assert
(input != null);
81
Debug.
Assert
(inputIndex < input.Length);
115
Debug.
Assert
(input != null); //already validated at the AlgoModule level
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (1)
1025
Debug.
Assert
(stream != null);
Core\CSharp\MS\Internal\Ink\Lasso.cs (19)
54
System.Diagnostics.Debug.
Assert
(_points != null);
68
System.Diagnostics.Debug.
Assert
(_points != null);
82
System.Diagnostics.Debug.
Assert
(_points != null);
83
System.Diagnostics.Debug.
Assert
((0 <= index) && (index < _points.Count));
95
System.Diagnostics.Debug.
Assert
(null != points);
109
System.Diagnostics.Debug.
Assert
(_points != null);
125
System.Diagnostics.Debug.
Assert
(_points != null);
176
System.Diagnostics.Debug.
Assert
(lassoSegment.Y != 0);
191
System.Diagnostics.Debug.
Assert
(_points != null);
192
System.Diagnostics.Debug.
Assert
(iterator != null);
341
System.Diagnostics.Debug.
Assert
(!crossing.IsEmpty && crossing.StartNode.IsValid && crossing.EndNode.IsValid);
344
System.Diagnostics.Debug.
Assert
(!mcrossing.IsEmpty && mcrossing.StartNode.IsValid && mcrossing.EndNode.IsValid);
351
System.Diagnostics.Debug.
Assert
(!mcrossing.IsEmpty && mcrossing.StartNode.IsValid && mcrossing.EndNode.IsValid);
428
System.Diagnostics.Debug.
Assert
(DoubleUtil.AreClose(si.InBegin, StrokeFIndices.BeforeFirst));
563
System.Diagnostics.Debug.
Assert
(!newFIndices.IsEmpty);
564
System.Diagnostics.Debug.
Assert
(strokeNode.IsValid);
605
System.Diagnostics.Debug.
Assert
(obj is LassoCrossing);
710
System.Diagnostics.Debug.
Assert
(intersection >= 0 && intersection <= points.Count - 2);
813
System.Diagnostics.Debug.
Assert
(hitEnd != hitBegin && orgBegin != orgEnd);
Core\CSharp\MS\Internal\Ink\Renderer.cs (8)
48
Debug.
Assert
(renderer != null);
451
System.Diagnostics.Debug.
Assert
(sender == _strokes);
501
System.Diagnostics.Debug.
Assert
(_strokes.IndexOf(sender as Stroke) != -1);
552
System.Diagnostics.Debug.
Assert
(_strokes != null);
558
Debug.
Assert
(visual is StrokeVisual);
652
System.Diagnostics.Debug.
Assert
(stroke != null);
661
System.Diagnostics.Debug.
Assert
(stroke != null);
673
System.Diagnostics.Debug.
Assert
(drawingAttributes != null);
Core\CSharp\MS\Internal\Ink\StrokeIntersection.cs (6)
192
System.Diagnostics.Debug.
Assert
(intersections != null);
193
System.Diagnostics.Debug.
Assert
(intersections.Length > 0);
198
System.Diagnostics.Debug.
Assert
(!intersections[j].IsEmpty);
224
System.Diagnostics.Debug.
Assert
(intersections != null);
225
System.Diagnostics.Debug.
Assert
(intersections.Length > 0);
230
System.Diagnostics.Debug.
Assert
(!intersections[j].IsEmpty);
Core\CSharp\MS\Internal\Ink\StrokeNode.cs (17)
42
System.Diagnostics.Debug.
Assert
(operations != null);
43
System.Diagnostics.Debug.
Assert
((nodeData.IsEmpty == false) && (index >= 0));
292
Debug.
Assert
(!endNodeRect.Contains(point));
905
System.Diagnostics.Debug.
Assert
(!double.IsNaN(cutAt.BeginFIndex) && !double.IsNaN(cutAt.EndFIndex));
923
System.Diagnostics.Debug.
Assert
(IsValid && (_index >= 0));
930
System.Diagnostics.Debug.
Assert
(fragment.BeginFIndex >= 0 && fragment.BeginFIndex <= 1);
935
System.Diagnostics.Debug.
Assert
(fragment.EndFIndex >= 0 && fragment.EndFIndex <= 1);
955
System.Diagnostics.Debug.
Assert
(IsValid);
967
System.Diagnostics.Debug.
Assert
(DoubleUtil.GreaterThanOrClose(fragment.BeginFIndex, 0f));
969
System.Diagnostics.Debug.
Assert
(DoubleUtil.LessThanOrClose(fragment.BeginFIndex, 1f));
983
System.Diagnostics.Debug.
Assert
(DoubleUtil.GreaterThanOrClose(fragment.EndFIndex, 0f));
985
System.Diagnostics.Debug.
Assert
(DoubleUtil.LessThanOrClose(fragment.EndFIndex, 1f));
1009
System.Diagnostics.Debug.
Assert
(IsValid);
1027
System.Diagnostics.Debug.
Assert
(IsValid);
1045
System.Diagnostics.Debug.
Assert
(IsValid);
1049
System.Diagnostics.Debug.
Assert
(findex == 0);
1053
System.Diagnostics.Debug.
Assert
((findex >= _index - 1) && (findex <= _index));
Core\CSharp\MS\Internal\Ink\StrokeNodeData.cs (2)
51
System.Diagnostics.Debug.
Assert
(DoubleUtil.GreaterThan((double)pressure, 0d));
62
Debug.
Assert
(DoubleUtil.AreClose(0, s_empty._pressure));
Core\CSharp\MS\Internal\Ink\StrokeNodeOperations.cs (19)
52
System.Diagnostics.Debug.
Assert
(nodeShape != null);
83
System.Diagnostics.Debug.
Assert
((boundingBox.X <= 0) && (boundingBox.Y <= 0));
129
System.Diagnostics.Debug.
Assert
(node.IsEmpty == false);
327
System.Diagnostics.Debug.
Assert
(DoubleUtil.IsZero(pressureFactor) == false);
378
System.Diagnostics.Debug.
Assert
(count > 0);
404
System.Diagnostics.Debug.
Assert
(count > 0);
426
System.Diagnostics.Debug.
Assert
(count > 0);
493
System.Diagnostics.Debug.
Assert
(DoubleUtil.IsZero(pressureFactor) == false);
639
System.Diagnostics.Debug.
Assert
(findex >= 0 && findex <= 1);
653
System.Diagnostics.Debug.
Assert
(findex >= 0 && findex <= 1);
790
System.Diagnostics.Debug.
Assert
(true == DoubleUtil.IsBetweenZeroAndOne(findex));
978
System.Diagnostics.Debug.
Assert
(DoubleUtil.IsZero(pressureFactor) == false);
1003
System.Diagnostics.Debug.
Assert
(DoubleUtil.IsZero(pressureFactor) == false);
1035
System.Diagnostics.Debug.
Assert
(!quad.IsEmpty);
1105
System.Diagnostics.Debug.
Assert
(i < count);
1145
System.Diagnostics.Debug.
Assert
(count > 0);
1167
System.Diagnostics.Debug.
Assert
(count > 0);
1240
System.Diagnostics.Debug.
Assert
(DoubleUtil.IsZero(pressureFactor) == false);
1312
System.Diagnostics.Debug.
Assert
(findex >= 0 && findex <= 1);
Core\CSharp\MS\Internal\Ink\StrokeNodeOperations2.cs (2)
45
System.Diagnostics.Debug.
Assert
((null != vertices) && (2 < vertices.Length));
83
System.Diagnostics.Debug.
Assert
(quad.IsEmpty == false);
Core\CSharp\MS\Internal\Ink\StrokeRenderer.cs (26)
47
Debug.
Assert
(iterator != null);
48
Debug.
Assert
(drawingAttributes != null);
79
System.Diagnostics.Debug.
Assert
(true == strokeNode.IsValid);
161
Debug.
Assert
(index == iterator.Count - 1);
221
Debug.
Assert
(iterator != null && drawingAttributes != null);
493
Debug.
Assert
(pathFigureDCSide.Count == 0);
637
Debug.
Assert
(!strokeNode.IsValid);
659
Debug.
Assert
(pathFigureDCSide.Count == 0);
686
Debug.
Assert
(pathFigureABSide.Count == 0);
722
Debug.
Assert
(pathFigureDCSide.Count == 0);
769
Debug.
Assert
(pointBuffer1 != null);
770
Debug.
Assert
(pointBuffer2 != null);
771
Debug.
Assert
(pointBuffer3 != null);
772
Debug.
Assert
(context != null);
845
Debug.
Assert
(percentIntersect >= 0.0 && percentIntersect <= 100.0d);
881
Debug.
Assert
(context != null);
882
Debug.
Assert
(points != null);
883
Debug.
Assert
(points.Count > 0);
909
Debug.
Assert
(context != null);
910
Debug.
Assert
(abPoints != null && dcPoints != null);
911
Debug.
Assert
(abPoints.Count > 0 && dcPoints.Count > 0);
932
Debug.
Assert
(context != null);
933
Debug.
Assert
(abPoints != null && dcPoints != null);
934
Debug.
Assert
(polyLinePoints != null);
963
Debug.
Assert
(i + 2 < points.Count);
1113
System.Diagnostics.Debug.
Assert
(da.IsHighlighter = true);
Core\CSharp\MS\Internal\Ink\StylusShape.cs (4)
167
System.Diagnostics.Debug.
Assert
(value.HasInverse);
237
System.Diagnostics.Debug.
Assert
(vertices.Length == 4);
262
System.Diagnostics.Debug.
Assert
(clockWiseIndex == vertices.Length || counterClockIndex == vertices.Length);
280
System.Diagnostics.Debug.
Assert
(m_tip == StylusTip.Ellipse);
Core\CSharp\MS\Internal\IO\Packaging\NetStream.cs (8)
873
Debug.
Assert
(offset >= 0);
874
Debug.
Assert
(length >= 0);
899
Debug.
Assert
(value >= 0);
912
Debug.
Assert
(value >= 0);
958
Debug.
Assert
(_offset <= b._offset);
959
Debug.
Assert
(Mergeable(b));
1007
Debug.
Assert
(block.Length > 0);
1114
Debug.
Assert
(block.Length > 0);
Core\CSharp\MS\Internal\LoadedOrUnloadedOperation.cs (1)
28
Debug.
Assert
(callback != null && target != null);
Core\CSharp\MS\Internal\Media\VisualTreeUtils.cs (1)
128
Debug.
Assert
(element == null);
Core\CSharp\MS\Internal\Media3D\GeneralTransform3Dto2Dto3D.cs (1)
44
Debug.
Assert
(transform3DTo2D != null && transform2DTo3D != null);
Core\CSharp\MS\Internal\Media3D\M3DUtil.cs (2)
149
Debug.
Assert
(matrix.IsAffine);
327
Debug.
Assert
(!matrix.IsAffine);
Core\CSharp\MS\Internal\PartialArray.cs (1)
39
Debug.
Assert
(initialIndex >= 0 && initialIndex + count <= array.Length);
Core\CSharp\MS\Internal\Shaping\OpenTypeCommon.cs (7)
243
Debug.
Assert
(TableTag==OpenTypeTags.GSUB || TableTag==OpenTypeTags.GPOS);
244
Debug.
Assert
(FirstGlyph<AfterLastGlyph);
245
Debug.
Assert
(AfterLastGlyph<=GlyphInfo.Length);
752
Debug.
Assert
(featureDescription.Parameter != 0);
807
Debug.
Assert
( FlagToSet==GlyphFlags.NotChanged ||
959
Debug.
Assert
(tableTag == OpenTypeTags.GSUB || tableTag == OpenTypeTags.GPOS);
1788
Debug.
Assert
(Index < SubTableCount());
Core\CSharp\MS\Internal\Shaping\OpenTypeLayoutCache.cs (16)
87
Debug.
Assert
(tableTag == OpenTypeTags.GSUB || tableTag == OpenTypeTags.GPOS);
351
Debug.
Assert
(totalSize <= maxCacheSize);
355
Debug.
Assert
(totalSize <= maxCacheSize);
430
Debug.
Assert
(tableTag == OpenTypeTags.GSUB || tableTag == OpenTypeTags.GPOS);
450
Debug.
Assert
(false);
583
Debug.
Assert
(lastLookup >= 0); // There are lookups, so there was an index
610
Debug.
Assert
(cacheSize > 0); // We've calcucalted them at least ones, and
611
Debug.
Assert
(glyphCount > 0); // if there is no records, we already should've exited
682
Debug.
Assert
((pList - pCache) * sizeof(ushort) < cacheSize);
687
Debug.
Assert
((pList - pCache) * sizeof(ushort) < cacheSize);
720
Debug.
Assert
((pList - pCache) * sizeof(ushort) < cacheSize);
725
Debug.
Assert
((pList - pCache) * sizeof(ushort) < cacheSize);
737
Debug.
Assert
((pList - pCache) * sizeof(ushort) == cacheSize); // We exactly filled up the cache
738
Debug.
Assert
((pGlyphs - pCache) * sizeof(ushort) == (4 + glyphCount * 2) * sizeof(ushort)); // Glyphs ended where lists start.
888
Debug.
Assert
(tableTag == OpenTypeTags.GSUB || tableTag == OpenTypeTags.GPOS);
1111
Debug.
Assert
(recordCount > 0); // Otherwise, we would go into (glyph > maxGlyphLookup);
Core\CSharp\MS\Internal\Shaping\ShaperBuffers.cs (2)
123
Debug.
Assert
(_charMap.Length == charCount);
134
Debug.
Assert
(_glyphInfoList.Length == glyphCount);
Core\CSharp\MS\Internal\Shaping\TypefaceMap.cs (7)
175
Debug.
Assert
(ichItem == unicodeString.Length);
190
Debug.
Assert
(index >= 0);
592
Debug.
Assert
(cchMap <= unicodeString.Length - ich);
829
Debug.
Assert
(cchNextValid > 0 && cchNextValid <= unicodeString.Length - ich);
847
Debug.
Assert
(cchNextValid == 0);
857
Debug.
Assert
(recursionDepth > 0 || advance == unicodeString.Length);
1069
Debug.
Assert
(cch > 0);
Core\CSharp\MS\Internal\Span.cs (2)
109
Debug.
Assert
(cp >= 0);
161
Debug.
Assert
(spanIndex > 0);
Core\CSharp\MS\Internal\SynchronizedInputHelper.cs (3)
189
Debug.
Assert
(mbArgs != null);
237
Debug.
Assert
(mbArgs != null);
287
Debug.
Assert
(false);
Core\CSharp\MS\Internal\TextFormatting\FormatSettings.cs (3)
221
Debug.
Assert
(offsetToFirstCp == 0);
229
Debug.
Assert
(offsetToFirstCp == 0);
242
Debug.
Assert
(offsetToFirstCp == 0);
Core\CSharp\MS\Internal\TextFormatting\FormattedTextSymbols.cs (6)
66
Debug.
Assert
(symbols != null);
89
Debug.
Assert
(shapeables != null && shapeables.Count > 0);
103
Debug.
Assert
(current != null);
217
Debug.
Assert
(_glyphs != null);
240
Debug.
Assert
(_glyphs != null);
384
Debug.
Assert
(glyphAdvances.Length <= glyphIndices.Length);
Core\CSharp\MS\Internal\TextFormatting\FullTextLine.cs (18)
231
Debug.
Assert
(_metrics._formatter != null);
489
Debug.
Assert
(_collapsingSymbol == null && symbol != null);
511
Debug.
Assert
(lineLength > 0);
732
Debug.
Assert
((_statusFlags & StatusFlags.BoundingBoxComputed) != 0);
786
Debug.
Assert
(_fullText != null);
791
Debug.
Assert
(_metrics._height > 0);
867
Debug.
Assert
(HasCollapsed);
1267
Debug.
Assert
(direction == CaretDirection.Backward || direction == CaretDirection.Backspace);
1456
Debug.
Assert
(direction == CaretDirection.Backward || direction == CaretDirection.Backspace);
1508
Debug.
Assert
(_collapsingSymbol != null);
1606
Debug.
Assert
(false);
1764
Debug.
Assert
(boundsList != null);
2128
Debug.
Assert
(textRun != null);
2132
Debug.
Assert
(cchAcc > 0);
2145
Debug.
Assert
(cchAcc > 0);
2149
Debug.
Assert
(cchLeft == 0);
2509
Debug.
Assert
(_ploline.Value != IntPtr.Zero);
2568
Debug.
Assert
(_ploline.Value != IntPtr.Zero);
Core\CSharp\MS\Internal\TextFormatting\FullTextState.cs (1)
322
Debug.
Assert
(!TextStore.IsMarker(plsrun));
Core\CSharp\MS\Internal\TextFormatting\LineServicesCallbacks.cs (14)
255
Debug.
Assert
(lsrun.RunProp != null);
566
Debug.
Assert
(lsrun.Shapeable != null && stringLength > 0);
776
Debug.
Assert
(ulInfo.dvpFirstUnderlineSize >= 0);
829
Debug.
Assert
(stInfo.dvpLowerStrikethroughSize >= 0);
1736
Debug.
Assert
(lsrunFirst.Shapeable != null);
1737
Debug.
Assert
(cchText > 0); // LineServices should not pass in zero character count;
1904
Debug.
Assert
(TextStore.IsContent(plsrun) && lsruns[i] != null);
1945
Debug.
Assert
(TextStore.IsContent(plsrun) && lsrun.Shapeable != null);
2549
Debug.
Assert
(textObject != null);
2607
Debug.
Assert
(false);
2634
Debug.
Assert
(lsrun.Type == Plsrun.InlineObject);
2646
Debug.
Assert
(textObject != null);
2647
Debug.
Assert
(textFlow != LsTFlow.lstflowWS || runDirection != 0);
3369
Debug.
Assert
(lsrun.Shapeable != null);
Core\CSharp\MS\Internal\TextFormatting\LineServicesRun.cs (2)
263
Debug.
Assert
(_shapeable != null);
940
Debug.
Assert
(lsruns != null && lsruns.Length > 0 && lsruns[0] != null);
Core\CSharp\MS\Internal\TextFormatting\SimpleTextLine.cs (1)
581
Debug.
Assert
((_statusFlags & StatusFlags.BoundingBoxComputed) != 0);
Core\CSharp\MS\Internal\TextFormatting\TextFormatterImp.cs (2)
582
Debug.
Assert
(context.Owner == null);
607
Debug.
Assert
(context != null);
Core\CSharp\MS\Internal\TextFormatting\TextMarkerSource.cs (5)
58
Debug.
Assert
(markerStyle != TextMarkerStyle.None);
106
Debug.
Assert
(autoNumberingIndex > 0);
145
Debug.
Assert
(_characterArray != null);
277
Debug.
Assert
(number >= 0);
409
Debug.
Assert
(number >= 0 && number <= 9);
Core\CSharp\MS\Internal\TextFormatting\TextMetrics.cs (1)
174
Debug.
Assert
(_cchLength > 0);
Core\CSharp\MS\Internal\TextFormatting\TextStore.cs (16)
276
Debug.
Assert
(stringLength > 0 && runInfo.Length > 0);
336
Debug.
Assert
(
512
Debug.
Assert
(textEffects != null && textEffects.Count != 0);
656
Debug.
Assert
(runInfo.StringLength > 0 && runInfo.Length > 0);
860
Debug.
Assert
(runInfo.StringLength >= stringLength);
885
Debug.
Assert
(cch <= runInfo.StringLength);
1434
Debug.
Assert
(ichRun < ichEnd);
1462
Debug.
Assert
(ichRun == cchUniform);
1560
Debug.
Assert
(runInfo.OffsetToFirstChar + offsetToFirstChar + lsrunLength <= runInfo.CharacterBuffer.Count);
1580
Debug.
Assert
(offsetToFirstChar == 0);
1626
Debug.
Assert
(uniformBidiLevel == (Pap.RightToLeft ? 1 : 0));
1655
Debug.
Assert
(lsrunLength > 0);
1722
Debug.
Assert
(false);
1732
Debug.
Assert
(cch > 0 && cch <= stringLength - ich);
1971
Debug.
Assert
(i < _plsrunVector.Count);
2394
Debug.
Assert
(metrics != null);
Core\CSharp\MS\Internal\TextFormatting\ThousandthOfEmRealDoubles.cs (2)
52
Debug.
Assert
(capacity >= 0);
63
Debug.
Assert
(realValues != null);
Core\CSharp\MS\Internal\TextFormatting\ThousandthOfEmRealPoints.cs (2)
45
Debug.
Assert
(capacity >= 0);
54
Debug.
Assert
(pointValues != null);
Core\CSharp\MS\Win32\UnsafeNativeMethodsTablet.cs (3)
179
Debug.
Assert
(handle != IntPtr.Zero);
244
Debug.
Assert
(handle != IntPtr.Zero);
260
System.Diagnostics.Debug.
Assert
(_recognizerHandle == null);
Core\CSharp\System\Windows\DurationConverter.cs (1)
135
Debug.
Assert
(durationValue == Duration.Automatic); // Only other legal duration type
Core\CSharp\System\Windows\FontStretch.cs (2)
33
Debug.
Assert
(1 <= stretch && stretch <= 9);
62
Debug.
Assert
(1 <= RealStretch && RealStretch <= 9);
Core\CSharp\System\Windows\FontStyle.cs (3)
27
Debug.
Assert
(0 <= style && style <= 2);
122
Debug.
Assert
(0 <= _style && _style <= 2);
141
Debug.
Assert
(_style == 2);
Core\CSharp\System\Windows\FontWeight.cs (1)
30
Debug.
Assert
(1 <= weight && weight <= 999);
Core\CSharp\System\Windows\FreezableCollection.cs (1)
194
Debug.
Assert
(_collection.Count == 0);
Core\CSharp\system\windows\generated\TextDecorationCollection.cs (1)
108
Debug.
Assert
(_collection.Count == 0);
Core\CSharp\System\Windows\Ink\DrawingAttributes.cs (13)
54
System.Diagnostics.Debug.
Assert
(extendedProperties != null);
65
System.Diagnostics.Debug.
Assert
(_extendedProperties != null);
84
Debug.
Assert
(Colors.Black == (Color)GetDefaultDrawingAttributeValue(KnownIds.Color));
108
Debug.
Assert
(StylusTip.Ellipse == (StylusTip)GetDefaultDrawingAttributeValue(KnownIds.StylusTip));
114
Debug.
Assert
(StylusTip.Rectangle == (StylusTip)GetExtendedPropertyBackedProperty(KnownIds.StylusTip));
137
Debug.
Assert
(Matrix.Identity == (Matrix)GetDefaultDrawingAttributeValue(KnownIds.StylusTipTransform));
166
Debug.
Assert
(DrawingAttributes.DefaultHeight == (double)GetDefaultDrawingAttributeValue(KnownIds.StylusHeight));
193
Debug.
Assert
(DrawingAttributes.DefaultWidth == (double)GetDefaultDrawingAttributeValue(KnownIds.StylusWidth));
282
Debug.
Assert
(false == (bool)GetDefaultDrawingAttributeValue(KnownIds.IsHighlighter));
287
Debug.
Assert
(true == (bool)GetExtendedPropertyBackedProperty(KnownIds.IsHighlighter));
780
System.Diagnostics.Debug.
Assert
(null != DrawingAttributes.GetDefaultDrawingAttributeValue(guid));
802
System.Diagnostics.Debug.
Assert
(sender != null);
803
System.Diagnostics.Debug.
Assert
(args != null);
Core\CSharp\System\Windows\Ink\IncrementalHitTester.cs (15)
64
System.Diagnostics.Debug.
Assert
(_strokes != null);
90
System.Diagnostics.Debug.
Assert
(_strokes != null);
136
System.Diagnostics.Debug.
Assert
(strokes != null);
179
System.Diagnostics.Debug.
Assert
((_strokes != null) && (_strokeInfos != null) && (_strokes == sender));
330
System.Diagnostics.Debug.
Assert
((percentageWithinLasso >= 0) && (percentageWithinLasso <= 100));
341
System.Diagnostics.Debug.
Assert
((points != null) && (IEnumerablePointHelper.GetCount(points)!= 0));
478
System.Diagnostics.Debug.
Assert
(eventArgs != null);
519
System.Diagnostics.Debug.
Assert
(eraserShape != null);
532
System.Diagnostics.Debug.
Assert
((points != null) && (IEnumerablePointHelper.GetCount(points) != 0));
533
System.Diagnostics.Debug.
Assert
(_erasingStroke != null);
578
System.Diagnostics.Debug.
Assert
(strokeHitEventArgCollection.Count != 0);
583
System.Diagnostics.Debug.
Assert
(eventArgs.HitStroke != null);
594
System.Diagnostics.Debug.
Assert
(eventArgs != null);
692
System.Diagnostics.Debug.
Assert
(stroke != null && hitFragments != null && hitFragments.Length > 0);
736
System.Diagnostics.Debug.
Assert
(stroke != null);
Core\CSharp\System\Windows\Ink\Stroke.cs (18)
136
Debug.
Assert
(_cachedGeometry == null || _cachedGeometry.IsFrozen);
273
Debug.
Assert
(bezierPoints != null && bezierPoints.Count > 0);
326
Debug.
Assert
(stylusPointsCount > stylusPointsIndex);
345
Debug.
Assert
(bezierLength >= prevUnbezierLength);
747
System.Diagnostics.Debug.
Assert
(cutAt != null);
748
System.Diagnostics.Debug.
Assert
(cutAt.Length != 0);
779
System.Diagnostics.Debug.
Assert
(false == ((!DoubleUtil.AreClose(cutAt[cutAt.Length - 1].EndFIndex, StrokeFIndices.AfterLast)) &&
789
System.Diagnostics.Debug.
Assert
(DoubleUtil.LessThan(fragment.BeginFIndex, fragment.EndFIndex));
809
System.Diagnostics.Debug.
Assert
(cutAt != null);
810
System.Diagnostics.Debug.
Assert
(cutAt.Length != 0);
835
System.Diagnostics.Debug.
Assert
(false == ((!DoubleUtil.AreClose(cutAt[cutAt.Length - 1].EndFIndex, StrokeFIndices.AfterLast)) &&
853
System.Diagnostics.Debug.
Assert
(DoubleUtil.LessThan(beginFIndex, fragment.BeginFIndex));
882
Debug.
Assert
(sourceStylusPoints != null);
895
System.Diagnostics.Debug.
Assert
(pointCount >= 1);
905
System.Diagnostics.Debug.
Assert
(sourceStylusPoints.Count > i + beginIndex);
909
System.Diagnostics.Debug.
Assert
(stylusPoints.Count == pointCount);
1184
Debug.
Assert
(ienum != null);
1203
Debug.
Assert
(ienum != null);
Core\CSharp\System\Windows\Ink\Stroke2.cs (9)
540
System.Diagnostics.Debug.
Assert
(_cachedGeometry != null && _cachedGeometry.IsFrozen);
573
System.Diagnostics.Debug.
Assert
(false == _drawAsHollow);
603
System.Diagnostics.Debug.
Assert
(geometry != null);
612
System.Diagnostics.Debug.
Assert
(newBounds.IsEmpty == false);
622
System.Diagnostics.Debug.
Assert
(shape != null);
623
System.Diagnostics.Debug.
Assert
(path != null);
642
System.Diagnostics.Debug.
Assert
(lasso != null);
665
System.Diagnostics.Debug.
Assert
(cutAt != null);
689
System.Diagnostics.Debug.
Assert
(cutAt != null);
Core\CSharp\System\Windows\Ink\StrokeCollection.cs (5)
136
Debug.
Assert
(stream != null);
137
Debug.
Assert
(stream.CanRead);
576
Debug.
Assert
(stroke != null && IndexOf(stroke) == -1);
684
Debug.
Assert
(e.Removed.Count > 0);
751
Debug.
Assert
(startingIndex >= 0);
Core\CSharp\System\Windows\Ink\StrokeCollection2.cs (2)
500
System.Diagnostics.Debug.
Assert
(original != null && toReplace != null);
501
System.Diagnostics.Debug.
Assert
(index >= 0 && index < this.Count);
Core\CSharp\System\Windows\Input\InputMethod.cs (5)
614
Debug.
Assert
(value != InputMethodState.DoNotCare);
687
Debug.
Assert
(value != InputMethodState.DoNotCare);
727
Debug.
Assert
(value != InputMethodState.DoNotCare);
914
Debug.
Assert
((value & ImeConversionModeValues.DoNotCare) == 0);
1171
Debug.
Assert
((value & ImeSentenceModeValues.DoNotCare) == 0);
Core\CSharp\System\Windows\Input\ManipulationDevice.cs (5)
175
Debug.
Assert
(manipulator != null);
193
Debug.
Assert
(manipulator != null);
414
Debug.
Assert
(!deltaEventArgs.IsInertial);
480
Debug.
Assert
(!completedEventArgs.IsInertial);
514
Debug.
Assert
(_manipulators == null || _manipulators.Count == 0);
Core\CSharp\System\Windows\Input\ManipulationLogic.cs (2)
253
Debug.
Assert
(_lastManipulationBeforeInertia != null);
696
Debug.
Assert
(_containerLayoutUpdated != null);
Core\CSharp\System\Windows\Input\TextComposition.cs (1)
342
Debug.
Assert
((_resultText.Length == 1) && Char.IsControl(_resultText[0]));
Core\CSharp\System\Windows\Input\TextCompositionManager.cs (1)
874
Debug.
Assert
(_altNumpadEntryMode);
Core\CSharp\System\Windows\Input\TouchDevice.cs (1)
1013
Debug.
Assert
(element != null);
Core\CSharp\System\Windows\Interop\D3DImage.cs (8)
651
Debug.
Assert
(timeout != Duration.Automatic);
698
Debug.
Assert
(e.OldValue != e.NewValue);
741
Debug.
Assert
(_isDirty);
742
Debug.
Assert
(_isWaitingForPresent);
743
Debug.
Assert
(_lockCount == 0);
764
Debug.
Assert
(_duceResource.IsOnChannel(channel));
859
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
934
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Interop\HwndAppCommandInputProvider.cs (1)
58
Debug.
Assert
(null != _source);
Core\CSharp\System\Windows\Interop\HwndKeyboardInputProvider.cs (5)
72
Debug.
Assert
( null != _source );
94
Debug.
Assert
( null != _source );
787
Debug.
Assert
( null != _source );
825
Debug.
Assert
( null != _source );
906
Debug.
Assert
( null != _source );
Core\CSharp\System\Windows\Interop\HwndSource.cs (3)
867
Debug.
Assert
(_weakMenuModeMessageHandler == null);
897
Debug.
Assert
(_weakMenuModeMessageHandler != null);
1777
Debug.
Assert
(_adjustSizingForNonClientArea == true);
Core\CSharp\System\Windows\Interop\HwndStylusInputProvider.cs (1)
95
Debug.
Assert
( null != _source );
Core\CSharp\System\Windows\Interop\HwndTarget.cs (11)
525
Debug.
Assert
(normalizedHwnd.Handle != IntPtr.Zero);
561
Debug.
Assert
(normalizedHwnd.Handle != IntPtr.Zero);
661
Debug.
Assert
(mode == RenderingMode.Software || mode == RenderingMode.Default);
802
Debug.
Assert
(!_compositionTarget.IsOnChannel(channel));
803
Debug.
Assert
(!_compositionTarget.IsOnChannel(outOfBandChannel));
822
Debug.
Assert
(resourceCreated);
1455
Debug.
Assert
(_restoreDT == sourceDT);
2576
Debug.
Assert
(!_compositionTarget.IsOnChannel(channel));
2811
Debug.
Assert
(hwndTarget != null);
2833
Debug.
Assert
(hwndTarget != null);
2836
Debug.
Assert
(_hwndTargetCount >= 0);
Core\CSharp\System\Windows\Media\Animation\Animatable.cs (3)
77
Debug.
Assert
(animatedPropertiesMap.Count > 0);
102
Debug.
Assert
(animatedPropertiesMap.Count > 0);
325
Debug.
Assert
(reference is WeakReference);
Core\CSharp\System\Windows\Media\Animation\AnimationClockResource.cs (6)
75
Debug.
Assert
(sender as System.Windows.Threading.DispatcherObject != null);
76
Debug.
Assert
(((System.Windows.Threading.DispatcherObject)sender).Dispatcher != null);
77
Debug.
Assert
(_animationClock != null);
129
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
170
Debug.
Assert
(_duceResource.IsOnChannel(channel));
186
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Animation\AnimationLayer.cs (13)
18
Debug.
Assert
(ownerStorage != null);
29
Debug.
Assert
(
105
Debug.
Assert
(_animationClocks != null);
120
Debug.
Assert
(animationClocks != null);
121
Debug.
Assert
(animationClocks.Count > 0);
122
Debug.
Assert
(!animationClocks.Contains(null));
123
Debug.
Assert
(_animationClocks == null);
187
Debug.
Assert
(newAnimationClocks != null);
188
Debug.
Assert
(newAnimationClocks.Count > 0);
189
Debug.
Assert
(!newAnimationClocks.Contains(null));
222
Debug.
Assert
(defaultDestinationValue != DependencyProperty.UnsetValue);
242
Debug.
Assert
(_snapshotValue != DependencyProperty.UnsetValue);
263
Debug.
Assert
(count > 0);
Core\CSharp\System\Windows\Media\Animation\AnimationStorage.cs (27)
51
Debug.
Assert
( _propertyTriggerLayers == null
80
Debug.
Assert
(animationClock != null);
81
Debug.
Assert
(_dependencyObject.Target != null);
82
Debug.
Assert
(_currentTimeInvalidatedHandler != null);
108
Debug.
Assert
(animationClock != null);
109
Debug.
Assert
(_currentTimeInvalidatedHandler != null);
121
Debug.
Assert
(_dependencyObject == null);
122
Debug.
Assert
(_dependencyProperty == null);
146
Debug.
Assert
(_propertyTriggerLayers != null);
147
Debug.
Assert
(_propertyTriggerLayers.ContainsValue(layer));
151
Debug.
Assert
(index >= 0);
249
Debug.
Assert
(animatedPropertyMap.Count > 0);
250
Debug.
Assert
(animatedPropertyMap[_dependencyProperty.GlobalIndex] != DependencyProperty.UnsetValue);
556
Debug.
Assert
(_animationClocks.Count > 0);
657
Debug.
Assert
(animationClocks[i] != null);
665
Debug.
Assert
(handoffBehavior == HandoffBehavior.Compose);
666
Debug.
Assert
(storage != null);
667
Debug.
Assert
(storage._animationClocks != null);
712
Debug.
Assert
(animationClocks != null);
713
Debug.
Assert
(!animationClocks.Contains(null));
785
Debug.
Assert
(animation == null || IsAnimationValid(dp, animation));
786
Debug.
Assert
(IsPropertyAnimatable(d, dp));
925
Debug.
Assert
(storage._snapshotValue != DependencyProperty.UnsetValue);
937
Debug.
Assert
(currentPropertyValue != DependencyProperty.UnsetValue);
947
Debug.
Assert
(count > 0);
979
Debug.
Assert
(clocksCount > 0);
980
Debug.
Assert
(defaultDestinationValue != DependencyProperty.UnsetValue);
Core\CSharp\System\Windows\Media\Animation\Clock.cs (121)
67
Debug.
Assert
(timeline != null);
177
Debug.
Assert
(!IsTimeManager);
206
Debug.
Assert
(!IsTimeManager);
224
Debug.
Assert
(!IsTimeManager);
246
Debug.
Assert
(!IsTimeManager);
284
Debug.
Assert
(!IsTimeManager);
297
Debug.
Assert
(!IsTimeManager);
315
Debug.
Assert
(!IsTimeManager);
342
Debug.
Assert
(!IsTimeManager);
370
Debug.
Assert
(!IsTimeManager);
502
Debug.
Assert
(!IsTimeManager);
588
Debug.
Assert
(!clock.IsTimeManager);
638
Debug.
Assert
(!current.IsTimeManager); // We should not yet be connected to the TimeManager
716
Debug.
Assert
(!IsTimeManager);
792
Debug.
Assert
(!IsTimeManager);
799
Debug.
Assert
(!(IsInteractivelyPaused && PendingInteractivePause));
800
Debug.
Assert
(!(!IsInteractivelyPaused && PendingInteractiveResume));
837
Debug.
Assert
(!IsTimeManager);
844
Debug.
Assert
( !(IsInteractivelyPaused && PendingInteractivePause));
845
Debug.
Assert
( !(!IsInteractivelyPaused && PendingInteractiveResume));
872
Debug.
Assert
(IsRoot);
894
Debug.
Assert
(IsRoot);
965
Debug.
Assert
(IsRoot);
976
Debug.
Assert
(IsRoot);
1007
Debug.
Assert
(IsRoot);
1088
Debug.
Assert
(!IsTimeManager);
1124
Debug.
Assert
(!IsTimeManager);
1146
Debug.
Assert
(!IsTimeManager);
1165
Debug.
Assert
(!IsTimeManager);
1244
Debug.
Assert
(!IsTimeManager);
1392
Debug.
Assert
(!IsTimeManager);
1429
Debug.
Assert
(!IsTimeManager);
1430
Debug.
Assert
(_parent != null && !_parent.IsTimeManager);
1802
Debug.
Assert
(IsRoot); // root clocks only; non-roots have constant begin time
1803
Debug.
Assert
(_rootData != null);
1808
Debug.
Assert
(!RootBeginPending); // we can have either a begin or a seek, not both
1879
Debug.
Assert
(_beginTime.HasValue);
1930
Debug.
Assert
(IsRoot);
1936
Debug.
Assert
(_rootData.DesiredFrameRate > 0);
1956
Debug.
Assert
(!IsTimeManager);
1957
Debug.
Assert
(!IsInteractivelyStopped);
1958
Debug.
Assert
(_parent._currentClockState != ClockState.Stopped);
1959
Debug.
Assert
(_currentClockState != ClockState.Stopped);
1961
Debug.
Assert
(_beginTime.HasValue);
1963
Debug.
Assert
(parentTime >= _beginTime.Value); // We are active or in postfill
1979
Debug.
Assert
(_currentClockState != ClockState.Active);
2188
Debug.
Assert
(_currentClockState == ClockState.Active
2271
Debug.
Assert
(!IsTimeManager);
2272
Debug.
Assert
(!IsInteractivelyStopped);
2273
Debug.
Assert
(_parent._currentClockState != ClockState.Stopped);
2274
Debug.
Assert
(_beginTime.HasValue);
2323
Debug.
Assert
(!IsTimeManager);
2324
Debug.
Assert
(!IsInteractivelyStopped);
2325
Debug.
Assert
(_parent._currentClockState != ClockState.Stopped);
2326
Debug.
Assert
(_currentClockState == ClockState.Active); // Must be active at this point
2353
Debug.
Assert
(!IsTimeManager);
2354
Debug.
Assert
(!IsInteractivelyStopped);
2355
Debug.
Assert
(_parent._currentClockState != ClockState.Stopped);
2356
Debug.
Assert
(_currentClockState != ClockState.Stopped);
2446
Debug.
Assert
(!IsTimeManager);
2488
Debug.
Assert
(!IsTimeManager);
2489
Debug.
Assert
(!IsInteractivelyStopped || IsRoot);
2539
Debug.
Assert
(_beginTime.HasValue); // _currentIterationBeginTime.HasValue implies _beginTime.HasValue
2568
Debug.
Assert
(repeatBehavior == RepeatBehavior.Forever); // Only other valid enum value
2662
Debug.
Assert
(!IsTimeManager);
2663
Debug.
Assert
(!IsInteractivelyStopped || IsRoot);
2675
Debug.
Assert
(_beginTime.HasValue);
2704
Debug.
Assert
(IsRoot);
2746
Debug.
Assert
(_beginTime == null);
2747
Debug.
Assert
(_currentClockState == ClockState.Stopped);
2771
Debug.
Assert
(!IsInteractivelyPaused); // Enforce invariant: cannot be pausePending when already paused
2772
Debug.
Assert
(!PendingInteractiveResume); // Enforce invariant: cannot be both pause and resumePending
2789
Debug.
Assert
(IsInteractivelyPaused);
2790
Debug.
Assert
(!PendingInteractivePause);
2818
Debug.
Assert
(endOfActivePeriod.HasValue);
2896
Debug.
Assert
(!IsTimeManager);
2921
Debug.
Assert
(parentTime.HasValue); // If parent isn't stopped, it must have valid time and speed
2922
Debug.
Assert
(parentSpeed.HasValue);
2948
Debug.
Assert
(parentTime.HasValue); // Cannot be true unless parent is stopped
2969
Debug.
Assert
(_beginTime.HasValue);
2970
Debug.
Assert
(parentTime.HasValue);
3015
Debug.
Assert
(!IsTimeManager);
3016
Debug.
Assert
(!IsInteractivelyStopped);
3017
Debug.
Assert
(_parent._currentClockState != ClockState.Stopped);
3018
Debug.
Assert
(_beginTime.HasValue);
3090
Debug.
Assert
(!IsTimeManager);
3091
Debug.
Assert
(!IsInteractivelyStopped || IsRoot);
3176
Debug.
Assert
(!IsTimeManager);
3177
Debug.
Assert
(_parent != null);
3178
Debug.
Assert
(_parent.CurrentState != ClockState.Stopped);
3181
Debug.
Assert
(HasSeekOccuredAfterLastTick ||
3185
Debug.
Assert
(_syncData.SyncClock == this || _syncData.SyncClock._parent == this);
3186
Debug.
Assert
(CanSlip || _timeline is ParallelTimeline && ((ParallelTimeline)_timeline).SlipBehavior == SlipBehavior.Slip);
3188
Debug.
Assert
(_syncData != null);
3189
Debug.
Assert
(!_syncData.IsInSyncPeriod);
3192
Debug.
Assert
(_timeline.AutoReverse == false);
3193
Debug.
Assert
(_timeline.AccelerationRatio == 0);
3194
Debug.
Assert
(_timeline.DecelerationRatio == 0);
3241
Debug.
Assert
(syncClockDuration == Duration.Automatic);
3310
Debug.
Assert
(!IsTimeManager);
3311
Debug.
Assert
(_parent != null);
3312
Debug.
Assert
(_syncData != null);
3313
Debug.
Assert
(_syncData.IsInSyncPeriod);
3316
Debug.
Assert
(_syncData.SyncClock == this || _syncData.SyncClock._parent == this);
3320
Debug.
Assert
(!parentIntervalCollection.IsEmpty); // The parent isn't Stopped, so it must have a TIC
3324
Debug.
Assert
(parentIntervalCollection.IsEmptyOfRealPoints || parentIntervalCollection.FirstNodeTime <= currentParentTimePT);
3325
Debug.
Assert
(currentParentSpeed >= 0);
3457
Debug.
Assert
(!IsTimeManager);
3538
Debug.
Assert
(_rootData.DesiredFrameRate > 0);
3566
Debug.
Assert
(!IsTimeManager);
3589
Debug.
Assert
(!IsTimeManager);
3590
Debug.
Assert
(_parent == null);
3591
Debug.
Assert
(_timeManager == null);
3682
Debug.
Assert
(factor != 0); // Divide by zero
3769
Debug.
Assert
(IsRoot); // This should only be called on root-child clocks
3805
Debug.
Assert
(!IsTimeManager);
3886
Debug.
Assert
(!IsTimeManager);
4006
Debug.
Assert
(syncClock != null);
4007
Debug.
Assert
(syncClock.GetCanSlip());
4008
Debug.
Assert
(syncClock.IsRoot || syncClock._timeline.BeginTime.HasValue); // Only roots may later validate their _beginTime
4097
Debug.
Assert
(_syncClockBeginTime.HasValue); // This should never be queried on a root without beginTime
Core\CSharp\System\Windows\Media\Animation\ClockGroup.cs (11)
58
Debug.
Assert
(!IsTimeManager);
71
Debug.
Assert
(!IsTimeManager);
84
Debug.
Assert
(IsTimeManager);
102
Debug.
Assert
(timelineGroup != null);
191
Debug.
Assert
(IsTimeManager);
219
Debug.
Assert
(IsTimeManager);
256
Debug.
Assert
(IsTimeManager);
302
Debug.
Assert
(group != null); // We should only have this flag set for ClockGroups
316
Debug.
Assert
(_children != null);
440
Debug.
Assert
(IsRoot);
466
Debug.
Assert
(_timeManager != null); // RootActivate should be called by our own TimeManager
Core\CSharp\System\Windows\Media\Animation\DoubleAnimationUsingPath.cs (2)
175
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
268
Debug.
Assert
(!_isValid);
Core\CSharp\System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (1)
336
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\BooleanKeyFrameCollection.cs (1)
491
Debug.
Assert
(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\ByteAnimation.cs (1)
220
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (1)
336
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\ByteKeyFrameCollection.cs (1)
491
Debug.
Assert
(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (1)
336
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\CharKeyFrameCollection.cs (1)
491
Debug.
Assert
(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\ColorAnimation.cs (1)
220
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (1)
336
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\ColorIndependentAnimationStorage.cs (1)
52
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Animation\Generated\ColorKeyFrameCollection.cs (1)
491
Debug.
Assert
(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\DecimalAnimation.cs (1)
220
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (1)
336
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\DecimalKeyFrameCollection.cs (1)
491
Debug.
Assert
(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleAnimation.cs (1)
220
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (1)
336
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleIndependentAnimationStorage.cs (1)
52
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleKeyFrameCollection.cs (1)
491
Debug.
Assert
(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\Int16Animation.cs (1)
220
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (1)
336
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\Int16KeyFrameCollection.cs (1)
491
Debug.
Assert
(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\Int32Animation.cs (1)
220
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (1)
336
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\Int32KeyFrameCollection.cs (1)
491
Debug.
Assert
(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\Int64Animation.cs (1)
220
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (1)
336
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\Int64KeyFrameCollection.cs (1)
491
Debug.
Assert
(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (1)
336
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\MatrixIndependentAnimationStorage.cs (1)
52
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Animation\Generated\MatrixKeyFrameCollection.cs (1)
491
Debug.
Assert
(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (1)
336
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\ObjectKeyFrameCollection.cs (1)
491
Debug.
Assert
(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\Point3DAnimation.cs (1)
220
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (1)
336
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\Point3DIndependentAnimationStorage.cs (1)
52
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Animation\Generated\Point3DKeyFrameCollection.cs (1)
491
Debug.
Assert
(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\PointAnimation.cs (1)
220
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (1)
336
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\PointIndependentAnimationStorage.cs (1)
52
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Animation\Generated\PointKeyFrameCollection.cs (1)
491
Debug.
Assert
(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionAnimation.cs (1)
220
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (1)
336
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionIndependentAnimationStorage.cs (1)
52
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionKeyFrameCollection.cs (1)
491
Debug.
Assert
(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\RectAnimation.cs (1)
220
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (1)
336
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\RectIndependentAnimationStorage.cs (1)
52
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Animation\Generated\RectKeyFrameCollection.cs (1)
491
Debug.
Assert
(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\Rotation3DAnimation.cs (1)
220
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (1)
336
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\Rotation3DKeyFrameCollection.cs (1)
491
Debug.
Assert
(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\SingleAnimation.cs (1)
220
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (1)
336
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\SingleKeyFrameCollection.cs (1)
491
Debug.
Assert
(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\SizeAnimation.cs (1)
220
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (1)
336
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\SizeIndependentAnimationStorage.cs (1)
52
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Animation\Generated\SizeKeyFrameCollection.cs (1)
491
Debug.
Assert
(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (1)
336
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\StringKeyFrameCollection.cs (1)
491
Debug.
Assert
(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\TimelineCollection.cs (1)
116
Debug.
Assert
(_collection.Count == 0);
Core\CSharp\System\Windows\Media\Animation\Generated\Vector3DAnimation.cs (1)
220
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (1)
336
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\Vector3DIndependentAnimationStorage.cs (1)
52
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Animation\Generated\Vector3DKeyFrameCollection.cs (1)
491
Debug.
Assert
(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\VectorAnimation.cs (1)
220
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (1)
336
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\VectorKeyFrameCollection.cs (1)
491
Debug.
Assert
(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\IndependentAnimationStorage.cs (11)
93
Debug.
Assert
(_duceResource.IsOnChannel(channel));
109
Debug.
Assert
(d != null);
112
Debug.
Assert
(d.Dispatcher != null);
115
Debug.
Assert
(d.CheckAccess());
180
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
212
Debug.
Assert
(d != null);
216
Debug.
Assert
(_duceResource.IsOnAnyChannel);
232
Debug.
Assert
(d != null);
233
Debug.
Assert
(dp != null);
234
Debug.
Assert
(d is Animatable ? ((Animatable)d).HasAnimatedProperties : true);
244
Debug.
Assert
(storage._duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Animation\KeySpline.cs (3)
267
Debug.
Assert
(_isDirty);
319
Debug.
Assert
(_isSpecified);
341
Debug.
Assert
(_isSpecified);
Core\CSharp\System\Windows\Media\Animation\MatrixAnimationUsingPath.cs (2)
258
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
321
Debug.
Assert
(!_isValid);
Core\CSharp\System\Windows\Media\Animation\PointAnimationUsingPath.cs (2)
151
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
224
Debug.
Assert
(!_isValid);
Core\CSharp\System\Windows\Media\Animation\TimeIntervalCollection.cs (82)
112
Debug.
Assert
(_minimumCapacity >= 2);
139
Debug.
Assert
(IsEmpty); // We should start with a new or Clear()-ed collection first
146
Debug.
Assert
(_nodeIsInterval[0] == false);
195
Debug.
Assert
(_count == 0); // The boolean constructor already did the job for us
257
Debug.
Assert
(_count > 0);
305
Debug.
Assert
(0 < _count && _count <= 2);
314
Debug.
Assert
(beginTime <= _nodeTime[1]);
418
Debug.
Assert
(_nodeTime[index] < time);
550
Debug.
Assert
(fromIndex <= toIndex);
561
Debug.
Assert
(toIndex >= 0); // Since fromIndex!=toIndex, toIndex must be >= 0
568
Debug.
Assert
(fromIndex + 1 < toIndex);
624
Debug.
Assert
(!_invertCollection); // Make sure we never leave inverted mode enabled
688
Debug.
Assert
(!tic1.IsEmptyOfRealPoints); // We shouldn't reach here if either TIC is empty
689
Debug.
Assert
(!tic2.IsEmptyOfRealPoints);
717
Debug.
Assert
(!intersectionFound); // If an intersection was already found, we should not reach this far
727
Debug.
Assert
(tic2.CurrentNodeIsPoint || tic2.CurrentNodeIsInterval);
745
Debug.
Assert
(!tic1.CurrentIsAtLastNode); // Thus tic1._current can be safely advanced now
751
Debug.
Assert
(tic1.CurrentNodeTime >= tic2.CurrentNodeTime);
754
Debug.
Assert
(tic2.CurrentIsAtLastNode || (tic1.CurrentNodeTime < tic2.NextNodeTime));
755
Debug.
Assert
(tic1.CurrentIsAtLastNode || (tic2.CurrentNodeTime < tic1.NextNodeTime));
787
Debug.
Assert
(tic1.NextNodeTime == tic2.NextNodeTime);
795
Debug.
Assert
(tic1.CurrentIsAtLastNode && tic2.CurrentIsAtLastNode);
803
Debug.
Assert
(tic2.CurrentIsAtLastNode || (tic1.CurrentNodeTime < tic2.NextNodeTime));
804
Debug.
Assert
(tic1.CurrentIsAtLastNode || (tic2.CurrentNodeTime < tic1.NextNodeTime));
815
Debug.
Assert
(!_invertCollection); // Make sure we never leave inverted mode enabled
863
Debug.
Assert
(!_invertCollection); // Make sure we never leave inverted mode enabled
882
Debug.
Assert
(beginTime <= CurrentNodeTime); // The PTIC is clipped by the active period, and we are a subset of the active period
883
Debug.
Assert
(CurrentIsAtLastNode || beginTime < NextNodeTime);
990
Debug.
Assert
(!_invertCollection); // Make sure we never leave inverted mode enabled
1038
Debug.
Assert
(projection.IsEmpty); // Make sure the projection was properly cleared first
1039
Debug.
Assert
(!_invertCollection); // Make sure we never leave inverted mode enabled
1040
Debug.
Assert
(beginTime <= endTime); // Ensure legitimate begin/end clipping parameters
1042
Debug.
Assert
(!IsEmptyOfRealPoints); // We assume this function is ONLY called when this collection overlaps the postfill zone. So we cannot be empty.
1043
Debug.
Assert
(!period.HasTimeSpan || period.TimeSpan > TimeSpan.Zero || beginTime == endTime); // Check the consistency of degenerate case where simple duration is zero; expiration time should equal beginTime
1044
Debug.
Assert
(!_nodeIsInterval[_count - 1]); // We should not have an infinite domain set
1161
Debug.
Assert
(projection.IsEmpty);
1162
Debug.
Assert
(!_invertCollection); // Make sure we never leave inverted mode enabled
1163
Debug.
Assert
(!endTime.HasValue || beginTime <= endTime); // Ensure legitimate begin/end clipping parameters
1165
Debug.
Assert
(!IsEmptyOfRealPoints); // We assume this function is ONLY called when this collection overlaps the active zone. So we cannot be empty.
1166
Debug.
Assert
(!endTime.HasValue || endTime >= _nodeTime[0]); // EndTime must come at or after our first node (it can be infinite)
1167
Debug.
Assert
(_nodeTime[_count - 1] >= beginTime); // Our last node must come at least at begin time (since we must intersect the active period)
1168
Debug.
Assert
(endTime.HasValue || fillDuration == TimeSpan.Zero); // Either endTime is finite, or it's infinite hence we cannot have any fill zone
1169
Debug.
Assert
(!period.HasTimeSpan || period.TimeSpan > TimeSpan.Zero || (endTime.HasValue && beginTime == endTime)); // Check the consistency of degenerate case where simple duration is zero; expiration time should equal beginTime
1170
Debug.
Assert
(!_nodeIsInterval[_count - 1]); // We should not have an infinite domain set
1244
Debug.
Assert
(!IsEmptyOfRealPoints);
1245
Debug.
Assert
(projection.IsEmpty);
1284
Debug.
Assert
(_current > 0); // The only way _current could stay at zero is if the collection begins at (or past) the end of active period
1289
Debug.
Assert
(endTime.HasValue && CurrentNodeTime >= endTime.Value);
1314
Debug.
Assert
(!IsEmptyOfRealPoints); // The entire projection process assumes we are not empty (have an intersection with the active zone).
1315
Debug.
Assert
(periodInTicks > 0); // We do not handle the degenerate case here.
1319
Debug.
Assert
(CurrentNodeTime >= TimeSpan.Zero); // Verify that we are already clipped
1336
Debug.
Assert
(CurrentNodeIsPoint);
1357
Debug.
Assert
(CurrentNodeIsPoint); // We should only call this method when we project a legitimate point
1358
Debug.
Assert
(!CurrentNodeIsInterval);
1429
Debug.
Assert
(timeBeforeNextPeriod > 0);
1502
Debug.
Assert
(intervalLength > 0);
1585
Debug.
Assert
(index == -1 || _nodeTime[index] < point);
1616
Debug.
Assert
(from < to); // Our code should never call MergeInterval for a point or reversed interval
1632
Debug.
Assert
(_nodeTime.Length >= _minimumCapacity); // Assert that we indeed have memory allocated
1670
Debug.
Assert
(_nodeTime[fromIndex] == from);
1701
Debug.
Assert
(_nodeTime[toIndex] == to);
1702
Debug.
Assert
(fromIndex < toIndex);
1733
Debug.
Assert
(_count + netIncreaseInNodes >= 2); // We should never shrink past size 2
1781
Debug.
Assert
(_nodeIsPoint == null);
1782
Debug.
Assert
(_nodeIsInterval == null);
1790
Debug.
Assert
(_nodeIsPoint != null);
1791
Debug.
Assert
(_nodeIsInterval != null);
1822
Debug.
Assert
(periodInTicks > 0);
1823
Debug.
Assert
(accelRatio + decelRatio > 0);
2137
Debug.
Assert
(_count > 0); // Count cannot be negative
2163
Debug.
Assert
(right == _count - 1);
2193
Debug.
Assert
(_current <= _count);
2208
Debug.
Assert
(_current < _count);
2213
Debug.
Assert
(_current < _count);
2222
Debug.
Assert
(_current < _count);
2227
Debug.
Assert
(_current < _count);
2236
Debug.
Assert
(_current < _count);
2241
Debug.
Assert
(_current < _count);
2250
Debug.
Assert
(_current + 1 < _count);
2259
Debug.
Assert
(_current + 1 < _count);
2268
Debug.
Assert
(_current + 1 < _count);
2283
Debug.
Assert
(_invertCollection != mode); // Make sure we aren't redundantly setting the mode
Core\CSharp\System\Windows\Media\Animation\Timeline.cs (1)
935
Debug.
Assert
(sourceStore.Count > 0);
Core\CSharp\System\Windows\Media\BitmapCacheBrush.cs (10)
214
Debug.
Assert
(!_pendingLayout);
272
Debug.
Assert
(element != null);
292
Debug.
Assert
(_pendingLayout);
296
Debug.
Assert
(element != null);
307
Debug.
Assert
(_DispatcherLayoutResult != null);
308
Debug.
Assert
(_DispatcherLayoutResult.Status == DispatcherOperationStatus.Pending);
310
Debug.
Assert
(abortStatus);
322
Debug.
Assert
(_pendingLayout);
325
Debug.
Assert
(element != null);
363
Debug.
Assert
(_reentrancyFlag); // Exit must be matched with Enter. See Enter comments.
Core\CSharp\System\Windows\Media\BoundsDrawingContextWalker.cs (4)
518
Debug.
Assert
(_pushTypeStack != null);
519
Debug.
Assert
(_pushTypeStack.Count > 0);
528
Debug.
Assert
(_transformStack != null);
529
Debug.
Assert
(_transformStack.Count > 0);
Core\CSharp\System\Windows\Media\ByteStreamGeometryContext.cs (7)
369
Debug.
Assert
(sizeof(MIL_PATHGEOMETRY) <= _currOffset);
370
Debug.
Assert
(_currentPathGeometryData.Size == (uint)_currOffset);
491
Debug.
Assert
(_chunkList.Count != 0);
625
Debug.
Assert
(_currentPathFigureDataOffset + sizeof(MIL_PATHFIGURE) <= _currOffset);
670
Debug.
Assert
(_currentPolySegmentDataOffset + sizeof(MIL_SEGMENT_POLY) <= _currOffset);
762
Debug.
Assert
(points != null);
763
Debug.
Assert
(count > 0);
Core\CSharp\System\Windows\Media\ColorContext.cs (2)
177
Debug.
Assert
(_profileUri.Value == null);
695
Debug.
Assert
(stm != null);
Core\CSharp\System\Windows\Media\ColorTransformHelper.cs (2)
106
Debug.
Assert
(success);
108
Debug.
Assert
(success);
Core\CSharp\System\Windows\Media\CombinedGeometry.cs (1)
209
Debug.
Assert
(false);
Core\CSharp\System\Windows\Media\CompositionTarget.cs (6)
80
Debug.
Assert
(channel != null);
81
Debug.
Assert
(!_contentRoot.IsOnChannel(channel));
83
Debug.
Assert
(outOfBandChannel != null);
84
Debug.
Assert
(!_contentRoot.IsOnChannel(outOfBandChannel));
95
Debug.
Assert
(resourceCreated);
490
Debug.
Assert
(_cachedRenderContext == null);
Core\CSharp\System\Windows\Media\Drawing.cs (1)
91
Debug.
Assert
(ctx != null);
Core\CSharp\System\Windows\Media\DrawingContextDrawingContextWalker.cs (1)
40
Debug.
Assert
(drawingContext != null);
Core\CSharp\System\Windows\Media\DrawingContextWalker.cs (2)
48
Debug.
Assert
(false);
58
Debug.
Assert
(false);
Core\CSharp\System\Windows\Media\DrawingDrawingContext.cs (3)
1343
Debug.
Assert
(geometry != null);
1429
Debug.
Assert
(newDrawing != null);
1435
Debug.
Assert
(_currentDrawingGroup == null);
Core\CSharp\System\Windows\Media\DrawingGroup.cs (3)
115
Debug.
Assert
(_open);
116
Debug.
Assert
(rootDrawingGroupChildren != null);
195
Debug.
Assert
(!ctx.ShouldStopWalking);
Core\CSharp\System\Windows\Media\DrawingGroupDrawingContext.cs (2)
26
Debug.
Assert
(null != drawingGroup);
44
Debug.
Assert
(null != _drawingGroup);
Core\CSharp\System\Windows\Media\DrawingVisual.cs (4)
68
Debug.
Assert
(intersectionDetail != IntersectionDetail.NotCalculated);
158
Debug.
Assert
(_proxy.IsOnChannel(channel));
231
Debug.
Assert
(!CheckFlagsAnd(channel, VisualProxyFlags.IsContentConnected));
232
Debug.
Assert
(_proxy.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\DrawingVisualDrawingContext.cs (2)
46
Debug.
Assert
(null != ownerVisual);
62
Debug.
Assert
(null != _ownerVisual);
Core\CSharp\System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (1)
115
Debug.
Assert
(_collection.Count == 0);
Core\CSharp\System\Windows\Media\Effects\Generated\BlurEffect.cs (2)
198
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
247
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Effects\Generated\DropShadowEffect.cs (2)
264
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
336
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Effects\Generated\ImplicitInputBrush.cs (2)
135
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
215
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Effects\Generated\PixelShader.cs (1)
201
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Effects\Generated\ShaderEffect.cs (3)
128
Debug.
Assert
(!channel.IsOutOfBandChannel);
129
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
222
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Effects\PixelShader.cs (3)
103
Debug.
Assert
(newUri.IsAbsoluteUri);
176
Debug.
Assert
(len == lengthRead);
204
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Effects\ShaderEffect.cs (7)
419
Debug.
Assert
(false);
561
Debug.
Assert
(!channel.IsOutOfBandChannel);
562
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
580
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
734
Debug.
Assert
(sizeof(DUCE.ResourceHandle) == sizeof(Int32));
822
Debug.
Assert
(_duceResource.IsOnChannel(channel));
977
Debug.
Assert
(false);
Core\CSharp\System\Windows\Media\EllipseGeometry.cs (2)
171
Debug.
Assert
(worldMatrix != null);
172
Debug.
Assert
(geometryMatrix != null);
Core\CSharp\System\Windows\Media\FactoryMaker.cs (2)
126
Debug.
Assert
(s_pFactory != IntPtr.Zero);
146
Debug.
Assert
(s_pImagingFactory != IntPtr.Zero);
Core\CSharp\System\Windows\Media\FamilyMap.cs (1)
372
Debug.
Assert
(first <= last);
Core\CSharp\System\Windows\Media\FontFamilyConverter.cs (3)
193
Debug.
Assert
(name != null);
198
Debug.
Assert
(name != null);
203
Debug.
Assert
(name != null);
Core\CSharp\System\Windows\Media\FormattedText.cs (4)
1038
Debug.
Assert
(_nextLine == null);
1058
Debug.
Assert
(_totalHeight + _currentLine.Height <= _that._maxTextHeight);
1147
Debug.
Assert
(_that._text.Length > 0 && textSourcePosition + line.Length <= _that._text.Length + 1);
1163
Debug.
Assert
(_that._trimming == TextTrimming.WordEllipsis);
Core\CSharp\System\Windows\Media\Generated\BitmapCache.cs (2)
200
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
249
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\BitmapCacheBrush.cs (10)
135
Debug.
Assert
(!channel.IsOutOfBandChannel);
136
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
172
Debug.
Assert
(element != null);
175
Debug.
Assert
(target._DispatcherLayoutResult != null);
176
Debug.
Assert
(target._DispatcherLayoutResult.Status == System.Windows.Threading.DispatcherOperationStatus.Pending);
178
Debug.
Assert
(abortStatus);
196
Debug.
Assert
(!channel.IsOutOfBandChannel);
197
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
337
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
428
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\Brush.cs (4)
136
Debug.
Assert
(!channel.IsOutOfBandChannel);
137
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
184
Debug.
Assert
(!channel.IsOutOfBandChannel);
185
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
Core\CSharp\System\Windows\Media\Generated\CombinedGeometry.cs (6)
135
Debug.
Assert
(!channel.IsOutOfBandChannel);
136
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
183
Debug.
Assert
(!channel.IsOutOfBandChannel);
184
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
282
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
350
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\DashStyle.cs (2)
182
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
252
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\DrawingBrush.cs (4)
128
Debug.
Assert
(!channel.IsOutOfBandChannel);
129
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
197
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
303
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\DrawingContextWalker.cs (24)
54
Debug.
Assert
(false);
74
Debug.
Assert
(false);
96
Debug.
Assert
(false);
120
Debug.
Assert
(false);
152
Debug.
Assert
(false);
190
Debug.
Assert
(false);
224
Debug.
Assert
(false);
264
Debug.
Assert
(false);
286
Debug.
Assert
(false);
304
Debug.
Assert
(false);
324
Debug.
Assert
(false);
339
Debug.
Assert
(false);
369
Debug.
Assert
(false);
387
Debug.
Assert
(false);
399
Debug.
Assert
(false);
411
Debug.
Assert
(false);
425
Debug.
Assert
(false);
441
Debug.
Assert
(false);
453
Debug.
Assert
(false);
465
Debug.
Assert
(false);
476
Debug.
Assert
(false);
493
Debug.
Assert
(false);
508
Debug.
Assert
(false);
517
Debug.
Assert
(false);
Core\CSharp\System\Windows\Media\Generated\DrawingGroup.cs (18)
148
Debug.
Assert
(!channel.IsOutOfBandChannel);
149
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
161
Debug.
Assert
(resource != null);
172
Debug.
Assert
(resource != null);
219
Debug.
Assert
(!channel.IsOutOfBandChannel);
220
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
274
Debug.
Assert
(!channel.IsOutOfBandChannel);
275
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
322
Debug.
Assert
(!channel.IsOutOfBandChannel);
323
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
370
Debug.
Assert
(!channel.IsOutOfBandChannel);
371
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
587
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
699
Debug.
Assert
(_duceResource.IsOnChannel(channel));
755
Debug.
Assert
(!channel.IsOutOfBandChannel);
756
Debug.
Assert
(!thisResource.GetHandle(channel).IsNull);
783
Debug.
Assert
(!channel.IsOutOfBandChannel);
784
Debug.
Assert
(!thisResource.GetHandle(channel).IsNull);
Core\CSharp\System\Windows\Media\Generated\DrawingImage.cs (4)
128
Debug.
Assert
(!channel.IsOutOfBandChannel);
129
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
197
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
244
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\EllipseGeometry.cs (2)
200
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
277
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\GeneralTransformCollection.cs (1)
117
Debug.
Assert
(_collection.Count == 0);
Core\CSharp\System\Windows\Media\Generated\Geometry.cs (2)
131
Debug.
Assert
(!channel.IsOutOfBandChannel);
132
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
Core\CSharp\System\Windows\Media\Generated\GeometryDrawing.cs (8)
128
Debug.
Assert
(!channel.IsOutOfBandChannel);
129
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
176
Debug.
Assert
(!channel.IsOutOfBandChannel);
177
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
224
Debug.
Assert
(!channel.IsOutOfBandChannel);
225
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
323
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
380
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\GeometryGroup.cs (10)
155
Debug.
Assert
(!channel.IsOutOfBandChannel);
156
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
168
Debug.
Assert
(resource != null);
179
Debug.
Assert
(resource != null);
262
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
349
Debug.
Assert
(_duceResource.IsOnChannel(channel));
399
Debug.
Assert
(!channel.IsOutOfBandChannel);
400
Debug.
Assert
(!thisResource.GetHandle(channel).IsNull);
427
Debug.
Assert
(!channel.IsOutOfBandChannel);
428
Debug.
Assert
(!thisResource.GetHandle(channel).IsNull);
Core\CSharp\System\Windows\Media\Generated\GlyphRunDrawing.cs (6)
109
Debug.
Assert
(!channel.IsOutOfBandChannel);
110
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
157
Debug.
Assert
(!channel.IsOutOfBandChannel);
158
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
241
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
293
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\GradientStopCollection.cs (1)
117
Debug.
Assert
(_collection.Count == 0);
Core\CSharp\System\Windows\Media\Generated\GuidelineSet.cs (2)
208
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
285
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\ImageBrush.cs (4)
128
Debug.
Assert
(!channel.IsOutOfBandChannel);
129
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
197
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
303
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\ImageDrawing.cs (4)
128
Debug.
Assert
(!channel.IsOutOfBandChannel);
129
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
219
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
274
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\LinearGradientBrush.cs (1)
202
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\LineGeometry.cs (2)
178
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
249
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\MatrixTransform.cs (2)
156
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
203
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\PathFigureCollection.cs (1)
118
Debug.
Assert
(_collection.Count == 0);
Core\CSharp\System\Windows\Media\Generated\PathGeometry.cs (1)
206
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\PathSegmentCollection.cs (1)
117
Debug.
Assert
(_collection.Count == 0);
Core\CSharp\System\Windows\Media\Generated\Pen.cs (6)
128
Debug.
Assert
(!channel.IsOutOfBandChannel);
129
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
218
Debug.
Assert
(!channel.IsOutOfBandChannel);
219
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
392
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
459
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\RadialGradientBrush.cs (1)
246
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\RectangleGeometry.cs (2)
200
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
277
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\RenderData.cs (11)
534
Debug.
Assert
(_duceResource.IsOnChannel(channel));
546
Debug.
Assert
(cbExtraData <= (uint)Int32.MaxValue);
562
Debug.
Assert
((_buffer != null) || (_curOffset == 0));
565
Debug.
Assert
((_buffer == null) || (_curOffset <= _buffer.Length));
1107
Debug.
Assert
(false);
1137
Debug.
Assert
((_buffer != null) || (_curOffset == 0));
1140
Debug.
Assert
((_buffer == null) || (_curOffset <= _buffer.Length));
1453
Debug.
Assert
(false);
1483
Debug.
Assert
((_buffer != null) || (_curOffset == 0));
1486
Debug.
Assert
((_buffer == null) || (_curOffset <= _buffer.Length));
1811
Debug.
Assert
(false);
Core\CSharp\System\Windows\Media\Generated\RenderDataDrawingContext.cs (25)
84
Debug.
Assert
(sizeof(MILCMD_DRAW_LINE) == 40);
150
Debug.
Assert
(sizeof(MILCMD_DRAW_LINE_ANIMATE) == 48);
210
Debug.
Assert
(sizeof(MILCMD_DRAW_RECTANGLE) == 40);
277
Debug.
Assert
(sizeof(MILCMD_DRAW_RECTANGLE_ANIMATE) == 48);
349
Debug.
Assert
(sizeof(MILCMD_DRAW_ROUNDED_RECTANGLE) == 56);
438
Debug.
Assert
(sizeof(MILCMD_DRAW_ROUNDED_RECTANGLE_ANIMATE) == 72);
512
Debug.
Assert
(sizeof(MILCMD_DRAW_ELLIPSE) == 40);
603
Debug.
Assert
(sizeof(MILCMD_DRAW_ELLIPSE_ANIMATE) == 56);
663
Debug.
Assert
(sizeof(MILCMD_DRAW_GEOMETRY) == 16);
719
Debug.
Assert
(sizeof(MILCMD_DRAW_IMAGE) == 40);
781
Debug.
Assert
(sizeof(MILCMD_DRAW_IMAGE_ANIMATE) == 40);
833
Debug.
Assert
(sizeof(MILCMD_DRAW_GLYPH_RUN) == 8);
881
Debug.
Assert
(sizeof(MILCMD_DRAW_DRAWING) == 8);
935
Debug.
Assert
(sizeof(MILCMD_DRAW_VIDEO) == 40);
995
Debug.
Assert
(sizeof(MILCMD_DRAW_VIDEO_ANIMATE) == 40);
1039
Debug.
Assert
(sizeof(MILCMD_PUSH_CLIP) == 8);
1084
Debug.
Assert
(sizeof(MILCMD_PUSH_OPACITY_MASK) == 24);
1131
Debug.
Assert
(sizeof(MILCMD_PUSH_OPACITY) == 8);
1184
Debug.
Assert
(sizeof(MILCMD_PUSH_OPACITY_ANIMATE) == 16);
1228
Debug.
Assert
(sizeof(MILCMD_PUSH_TRANSFORM) == 8);
1314
Debug.
Assert
(sizeof(MILCMD_PUSH_GUIDELINE_SET) == 8);
1358
Debug.
Assert
(sizeof(MILCMD_PUSH_GUIDELINE_Y1) == 8);
1409
Debug.
Assert
(sizeof(MILCMD_PUSH_GUIDELINE_Y2) == 16);
1458
Debug.
Assert
(sizeof(MILCMD_PUSH_EFFECT) == 8);
1507
Debug.
Assert
(sizeof(MILCMD_POP) == 1);
Core\CSharp\System\Windows\Media\Generated\RotateTransform.cs (2)
200
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
259
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\ScaleTransform.cs (2)
222
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
287
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\SkewTransform.cs (2)
222
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
287
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\SolidColorBrush.cs (2)
156
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
242
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\TextEffectCollection.cs (1)
117
Debug.
Assert
(_collection.Count == 0);
Core\CSharp\System\Windows\Media\Generated\TransformGroup.cs (10)
148
Debug.
Assert
(!channel.IsOutOfBandChannel);
149
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
161
Debug.
Assert
(resource != null);
172
Debug.
Assert
(resource != null);
240
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
310
Debug.
Assert
(_duceResource.IsOnChannel(channel));
359
Debug.
Assert
(!channel.IsOutOfBandChannel);
360
Debug.
Assert
(!thisResource.GetHandle(channel).IsNull);
387
Debug.
Assert
(!channel.IsOutOfBandChannel);
388
Debug.
Assert
(!thisResource.GetHandle(channel).IsNull);
Core\CSharp\System\Windows\Media\Generated\TranslateTransform.cs (2)
178
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
231
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\VideoDrawing.cs (4)
109
Debug.
Assert
(!channel.IsOutOfBandChannel);
110
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
200
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
255
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\VisualBrush.cs (8)
110
Debug.
Assert
(element != null);
113
Debug.
Assert
(target._DispatcherLayoutResult != null);
114
Debug.
Assert
(target._DispatcherLayoutResult.Status == System.Windows.Threading.DispatcherOperationStatus.Pending);
116
Debug.
Assert
(abortStatus);
134
Debug.
Assert
(!channel.IsOutOfBandChannel);
135
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
227
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
334
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Geometry.cs (5)
198
Debug.
Assert
(pWorldMatrix != null);
309
Debug.
Assert
(pbPathData != (byte*)0);
435
Debug.
Assert
(pbPathData != (byte*)0);
649
Debug.
Assert
(pbPathData != (byte*)0);
746
Debug.
Assert
(pbPathData != (byte*)0);
Core\CSharp\System\Windows\Media\GeometryDrawing.cs (1)
61
Debug.
Assert
(!ctx.ShouldStopWalking);
Core\CSharp\System\Windows\Media\GeometryGroup.cs (1)
70
Debug.
Assert
(pg.CanFreeze);
Core\CSharp\System\Windows\Media\GlyphRun.cs (6)
640
Debug.
Assert
(clusterMap[currentClusterStart] < lastGlyphInCluster);
1349
Debug.
Assert
(!IsSideways);
1607
Debug.
Assert
(!IsSideways);
1893
Debug.
Assert
(_glyphTypeface != null);
2396
Debug.
Assert
(!IsInitializing);
2407
Debug.
Assert
(!IsInitialized);
Core\CSharp\System\Windows\Media\GlyphRunDrawing.cs (1)
57
Debug.
Assert
(!ctx.ShouldStopWalking);
Core\CSharp\System\Windows\Media\GlyphsSerializer.cs (5)
109
Debug.
Assert
(_clusters[characterIndex] > glyphClusterStart);
120
Debug.
Assert
(_indices.Count > glyphClusterStart - _glyphClusterInitialOffset);
126
Debug.
Assert
(_characters == null || _characters.Count == 0 || _indices.Count == _characters.Count);
174
Debug.
Assert
(_glyphStringBuider.Length == 0);
309
Debug.
Assert
(caretStopStringLength == sb.ToString().Length);
Core\CSharp\System\Windows\Media\GlyphTypeface.cs (2)
1741
Debug.
Assert
(charBufferRange.Length > 0);
1817
Debug.
Assert
(glyphIndices != null || glyphMetrics != null);
Core\CSharp\System\Windows\Media\GuidelineCollection.cs (2)
60
Debug.
Assert
(!isDynamic || guidelinesX.Length % 2 == 0);
69
Debug.
Assert
(!isDynamic || guidelinesY.Length % 2 == 0);
Core\CSharp\System\Windows\Media\HitTestWithGeometryDrawingContextWalker.cs (8)
45
Debug.
Assert
(geometry != null);
345
Debug.
Assert
(_modifierStack != null);
346
Debug.
Assert
(_modifierStack.Count > 0);
356
Debug.
Assert
((_modifierStack.Count > 0) || (_currentTransform == null));
364
Debug.
Assert
((_modifierStack.Count > 0) || (_currentClip == null));
368
Debug.
Assert
(currentModifier == null);
394
Debug.
Assert
(_intersectionDetail != IntersectionDetail.FullyContains);
399
Debug.
Assert
(intersectionDetail != IntersectionDetail.NotCalculated);
Core\CSharp\System\Windows\Media\HitTestWithPointDrawingContextWalker.cs (7)
348
Debug.
Assert
(_pointStack != null);
349
Debug.
Assert
(_pointStack.Count > 0);
385
Debug.
Assert
(_noOpLayerDepth >= 1);
422
Debug.
Assert
(!_currentLayerIsNoOp);
423
Debug.
Assert
(_noOpLayerDepth == 0);
433
Debug.
Assert
(_currentLayerIsNoOp);
434
Debug.
Assert
(_noOpLayerDepth == 0);
Core\CSharp\System\Windows\Media\HostVisual.cs (9)
147
Debug.
Assert
(target != null);
148
Debug.
Assert
(target.Dispatcher.Thread == Thread.CurrentThread);
200
Debug.
Assert
(_target != null);
201
Debug.
Assert
(_target.Dispatcher.Thread == Thread.CurrentThread);
223
Debug.
Assert
(!targetsHandle.IsNull);
259
Debug.
Assert
(IsOnChannel(channel));
272
Debug.
Assert
(_target._contentRoot.IsOnChannel(channel));
273
Debug.
Assert
(_target.OutOfBandChannel == MediaContext.CurrentMediaContext.OutOfBandChannel);
275
Debug.
Assert
(!created);
Core\CSharp\System\Windows\Media\Imaging\BitmapCodecInfo.cs (9)
51
Debug.
Assert
(codecInfoHandle != null);
120
Debug.
Assert
(length >= 0);
172
Debug.
Assert
(length >= 0);
224
Debug.
Assert
(length >= 0);
276
Debug.
Assert
(length >= 0);
328
Debug.
Assert
(length >= 0);
380
Debug.
Assert
(length >= 0);
432
Debug.
Assert
(length >= 0);
484
Debug.
Assert
(length >= 0);
Core\CSharp\System\Windows\Media\Imaging\BitmapDecoder.cs (4)
1036
Debug.
Assert
(_syncObject != null);
1170
Debug.
Assert
((uri.Scheme == Uri.UriSchemeHttp) || (uri.Scheme == Uri.UriSchemeHttps));
1171
Debug.
Assert
(stream.CanSeek);
1324
Debug.
Assert
(decoder != IntPtr.Zero);
Core\CSharp\System\Windows\Media\Imaging\BitmapDownload.cs (1)
480
Debug.
Assert
(false);
Core\CSharp\System\Windows\Media\Imaging\BitmapEncoder.cs (2)
426
Debug.
Assert
(_supportsGlobalThumbnail);
458
Debug.
Assert
(_supportsGlobalMetadata);
Core\CSharp\System\Windows\Media\Imaging\BitmapFrameDecode.cs (7)
59
Debug.
Assert
(decoder != null);
159
Debug.
Assert
(decoder != null);
491
Debug.
Assert
(_decoder != null);
765
Debug.
Assert
(_decoder is LateBoundBitmapDecoder);
766
Debug.
Assert
(IsDownloading == false);
771
Debug.
Assert
(_decoder.InternalDecoder != null);
776
Debug.
Assert
(_syncObject != null);
Core\CSharp\System\Windows\Media\Imaging\BitmapFrameEncode.cs (2)
57
Debug.
Assert
(source != null);
186
Debug.
Assert
(sourceBitmapFrameEncode._source != null);
Core\CSharp\System\Windows\Media\Imaging\BitmapImage.cs (5)
243
Debug.
Assert
(_decoder != null);
386
Debug.
Assert
(decoder.SyncObject != null);
392
Debug.
Assert
(!_decoder.IsDownloading);
461
Debug.
Assert
(oldWidth > 0 && oldHeight > 0);
488
Debug.
Assert
(false);
Core\CSharp\System\Windows\Media\Imaging\BitmapMetadata.cs (4)
536
Debug.
Assert
(blockWriter != null);
537
Debug.
Assert
(blockWriter.MetadataBlocks != null);
1026
Debug.
Assert
(length >= 0);
1073
Debug.
Assert
(length >= 0);
Core\CSharp\System\Windows\Media\Imaging\BitmapMetadataEnumerator.cs (1)
200
Debug.
Assert
(metadataHandle != null && !metadataHandle.IsInvalid);
Core\CSharp\System\Windows\Media\Imaging\BitmapPalette.cs (7)
190
Debug.
Assert
(source != null);
193
Debug.
Assert
(bitmapSource != null && !bitmapSource.IsInvalid);
227
Debug.
Assert
(palette != null);
304
Debug.
Assert
(palette != null && !palette.IsInvalid);
319
Debug.
Assert
(_palette != null && !_palette.IsInvalid);
353
Debug.
Assert
(_palette != null && !_palette.IsInvalid);
379
Debug.
Assert
(cActualColors == numColors);
Core\CSharp\System\Windows\Media\Imaging\BitmapPalettes.cs (1)
297
Debug.
Assert
(key < c_maxPalettes);
Core\CSharp\System\Windows\Media\Imaging\BitmapSizeOptions.cs (4)
224
Debug.
Assert
(_preservesAspectRatio == true);
231
Debug.
Assert
(_preservesAspectRatio == true);
238
Debug.
Assert
(_preservesAspectRatio == false);
279
Debug.
Assert
(false);
Core\CSharp\System\Windows\Media\Imaging\BitmapSource.cs (5)
604
Debug.
Assert
(_syncObject != null);
885
Debug.
Assert
(_isSourceCached);
1070
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
1107
Debug.
Assert
(_duceResource.IsOnChannel(channel));
1297
Debug.
Assert
(destFmt == colorConvertedBitmap.Format);
Core\CSharp\System\Windows\Media\Imaging\BitmapSourceSafeMILHandle.cs (1)
121
Debug.
Assert
(wicBitmap != IntPtr.Zero);
Core\CSharp\System\Windows\Media\Imaging\BitmapVisualManager.cs (2)
104
Debug.
Assert
((sizeX > 0) && (sizeY > 0));
105
Debug.
Assert
((dpiX > 0) && (dpiY > 0));
Core\CSharp\System\Windows\Media\Imaging\InteropBitmapSource.cs (4)
78
Debug.
Assert
(_unmanagedSource != null && !_unmanagedSource.IsInvalid);
115
Debug.
Assert
(_unmanagedSource != null && !_unmanagedSource.IsInvalid);
175
Debug.
Assert
(_unmanagedSource != null && !_unmanagedSource.IsInvalid);
469
Debug.
Assert
(_sizeOptions.Rotation == Rotation.Rotate0);
Core\CSharp\System\Windows\Media\Imaging\LateBoundBitmapDecoder.cs (1)
352
Debug.
Assert
(newStream.CanSeek == true);
Core\CSharp\System\Windows\Media\Imaging\RenderTargetBitmap.cs (2)
306
Debug.
Assert
(renderTargetBitmap != null && !renderTargetBitmap.IsInvalid);
312
Debug.
Assert
(bitmapSource != null && !bitmapSource.IsInvalid);
Core\CSharp\System\Windows\Media\Imaging\WriteableBitmap.cs (15)
254
Debug.
Assert
(locked);
691
Debug.
Assert
(_pBackBufferLock == null);
738
Debug.
Assert
(!_isWaitingForCommit);
936
Debug.
Assert
(!backwardsCompat);
942
Debug.
Assert
(!backwardsCompat);
948
Debug.
Assert
(!backwardsCompat);
966
Debug.
Assert
(!backwardsCompat);
1045
Debug.
Assert
(!backwardsCompat);
1051
Debug.
Assert
(!backwardsCompat);
1384
Debug.
Assert
(_duceResource.IsOnChannel(channel));
1433
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
1502
Debug.
Assert
(_isWaitingForCommit); // How else are we here?
1505
Debug.
Assert
(_lockCount == 0); // How else are we here?
1506
Debug.
Assert
(_hasDirtyRects); // How else are we here?
1516
Debug.
Assert
(_duceResource.IsOnChannel(channel)); // How else are we here?
Core\CSharp\System\Windows\Media\LinearGradientBrush.cs (1)
144
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\LineGeometry.cs (2)
116
Debug.
Assert
(worldMatrix != null);
117
Debug.
Assert
(geometryMatrix != null);
Core\CSharp\System\Windows\Media\MatrixStack.cs (4)
165
Debug.
Assert
(!IsEmpty);
177
Debug.
Assert
(!IsEmpty);
193
Debug.
Assert
(_size == 0); // The stack must be empty before this is called.
194
Debug.
Assert
(_highWaterMark <= _items.Length);
Core\CSharp\System\Windows\Media\MediaContext.cs (23)
213
Debug.
Assert
(dispatcher.Reserved0 == null);
379
Debug.
Assert
(CheckAccess());
1401
Debug.
Assert
(Channel != null);
1427
Debug.
Assert
(dispatcher.Reserved0 == cm);
1450
Debug.
Assert
(CheckAccess());
1467
Debug.
Assert
(CheckAccess());
1498
Debug.
Assert
(_timeManager != null);
1527
Debug.
Assert
(dispatcher != null);
1528
Debug.
Assert
(iv != null);
1540
Debug.
Assert
(!_isDisposed);
1541
Debug.
Assert
(iv != null);
1568
Debug.
Assert
(dispatcher != null);
1569
Debug.
Assert
(iv != null);
1587
Debug.
Assert
(iv != null);
1637
Debug.
Assert
(callback != null);
1642
Debug.
Assert
(arg != null);
1683
Debug.
Assert
(op != null);
1721
Debug.
Assert
(CheckAccess());
1851
Debug.
Assert
(CheckAccess());
1852
Debug.
Assert
(
2091
Debug.
Assert
(CheckAccess());
2093
Debug.
Assert
(!_isDisposed);
2094
Debug.
Assert
(_registeredICompositionTargets != null);
Core\CSharp\System\Windows\Media\MediaContextNotificationWindow.cs (1)
189
Debug.
Assert
(_ownerMediaContext != null);
Core\CSharp\System\Windows\Media\MediaPlayer.cs (1)
596
Debug.
Assert
(_duceResource._duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\MediaPlayerState.cs (2)
1069
Debug.
Assert
(absoluteUri.IsAbsoluteUri);
1238
Debug.
Assert
(_nativeMedia != null && !_nativeMedia.IsInvalid);
Core\CSharp\System\Windows\Media\MediaSystem.cs (1)
166
Debug.
Assert
(s_refCount > 0);
Core\CSharp\System\windows\Media\MILUtilities.cs (10)
103
Debug.
Assert
(pD3DMatrix[2] == 0.0f || Single.IsNaN(pD3DMatrix[2]));
104
Debug.
Assert
(pD3DMatrix[3] == 0.0f || Single.IsNaN(pD3DMatrix[3]));
112
Debug.
Assert
(pD3DMatrix[6] == 0.0f || Single.IsNaN(pD3DMatrix[6]));
113
Debug.
Assert
(pD3DMatrix[7] == 0.0f || Single.IsNaN(pD3DMatrix[7]));
119
Debug.
Assert
(pD3DMatrix[8] == 0.0f || Single.IsNaN(pD3DMatrix[8]));
120
Debug.
Assert
(pD3DMatrix[9] == 0.0f || Single.IsNaN(pD3DMatrix[9]));
121
Debug.
Assert
(pD3DMatrix[10] == 1.0f || Single.IsNaN(pD3DMatrix[10]));
122
Debug.
Assert
(pD3DMatrix[11] == 0.0f || Single.IsNaN(pD3DMatrix[11]));
130
Debug.
Assert
(pD3DMatrix[14] == 0.0f || Single.IsNaN(pD3DMatrix[14]));
131
Debug.
Assert
(pD3DMatrix[15] == 1.0f || Single.IsNaN(pD3DMatrix[15]));
Core\CSharp\System\Windows\Media\PathGeometry.cs (30)
155
Debug.
Assert
(pathData.Size >= currentOffset + sizeof(MIL_PATHGEOMETRY));
176
Debug.
Assert
(pathData.SerializedData.Length >= currentOffset + sizeof(MIL_PATHFIGURE));
196
Debug.
Assert
(pathData.SerializedData.Length >= currentOffset + sizeof(MIL_SEGMENT));
197
Debug.
Assert
(pathData.Size >= currentOffset + sizeof(MIL_SEGMENT));
206
Debug.
Assert
(pathData.SerializedData.Length >= currentOffset + sizeof(MIL_SEGMENT_LINE));
207
Debug.
Assert
(pathData.Size >= currentOffset + sizeof(MIL_SEGMENT_LINE));
221
Debug.
Assert
(pathData.SerializedData.Length >= currentOffset + sizeof(MIL_SEGMENT_BEZIER));
222
Debug.
Assert
(pathData.Size >= currentOffset + sizeof(MIL_SEGMENT_BEZIER));
238
Debug.
Assert
(pathData.SerializedData.Length >= currentOffset + sizeof(MIL_SEGMENT_QUADRATICBEZIER));
239
Debug.
Assert
(pathData.Size >= currentOffset + sizeof(MIL_SEGMENT_QUADRATICBEZIER));
254
Debug.
Assert
(pathData.SerializedData.Length >= currentOffset + sizeof(MIL_SEGMENT_ARC));
255
Debug.
Assert
(pathData.Size >= currentOffset + sizeof(MIL_SEGMENT_ARC));
275
Debug.
Assert
(pathData.SerializedData.Length >= currentOffset + sizeof(MIL_SEGMENT_POLY));
276
Debug.
Assert
(pathData.Size >= currentOffset + sizeof(MIL_SEGMENT_POLY));
280
Debug.
Assert
(pSegmentPoly->Count <= Int32.MaxValue);
287
Debug.
Assert
(pathData.SerializedData.Length >=
291
Debug.
Assert
(pathData.Size >=
385
Debug.
Assert
(result != null);
407
Debug.
Assert
(figureCollection != null);
527
Debug.
Assert
(sameSegCount == 1);
558
Debug.
Assert
(sameSegCount == 1);
627
Debug.
Assert
(pbPathData != (byte*)0);
680
Debug.
Assert
(pPathData1 != (byte*)0);
684
Debug.
Assert
(pPathData2 != (byte*)0);
826
Debug.
Assert
(!pathData.IsEmpty());
845
Debug.
Assert
(pbPathData != (byte*)0);
906
Debug.
Assert
(pbPathData1 != (byte*)0);
910
Debug.
Assert
(pbPathData2 != (byte*)0);
939
Debug.
Assert
(detail != IntersectionDetail.NotCalculated);
1064
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\PathStreamGeometryContext.cs (17)
87
Debug.
Assert
(figureCount > 0);
98
Debug.
Assert
(segmentCount > 0);
109
Debug.
Assert
(_currentFigure != null);
124
Debug.
Assert
(_currentFigure == null || _figures != null);
251
Debug.
Assert
(_figures != null);
252
Debug.
Assert
(_currentFigure != null);
308
Debug.
Assert
(false);
320
Debug.
Assert
(_currentSegmentPoints == null);
330
Debug.
Assert
(points != null);
347
Debug.
Assert
(_figures != null);
348
Debug.
Assert
(_currentFigure != null);
350
Debug.
Assert
(count != 0);
376
Debug.
Assert
(_currentFigure != null);
380
Debug.
Assert
(count > 0);
421
Debug.
Assert
(count % 3 == 0);
438
Debug.
Assert
(count % 2 == 0);
447
Debug.
Assert
(false);
Core\CSharp\System\Windows\Media\Pen.cs (7)
94
Debug.
Assert
((MIL_PEN_CAP)PenLineCap.Flat == MIL_PEN_CAP.MilPenCapFlat);
95
Debug.
Assert
((MIL_PEN_CAP)PenLineCap.Square == MIL_PEN_CAP.MilPenCapSquare);
96
Debug.
Assert
((MIL_PEN_CAP)PenLineCap.Round == MIL_PEN_CAP.MilPenCapRound);
97
Debug.
Assert
((MIL_PEN_CAP)PenLineCap.Triangle == MIL_PEN_CAP.MilPenCapTriangle);
104
Debug.
Assert
((MIL_PEN_JOIN)PenLineJoin.Miter == MIL_PEN_JOIN.MilPenJoinMiter);
105
Debug.
Assert
((MIL_PEN_JOIN)PenLineJoin.Bevel == MIL_PEN_JOIN.MilPenJoinBevel);
106
Debug.
Assert
((MIL_PEN_JOIN)PenLineJoin.Round == MIL_PEN_JOIN.MilPenJoinRound);
Core\CSharp\System\Windows\Media\PixelFormat.cs (7)
71
Debug.
Assert
(mask != null);
180
Debug.
Assert
(Marshal.SizeOf(typeof(Guid)) == 16);
543
Debug.
Assert
(pixelFormatInfo != IntPtr.Zero);
556
Debug.
Assert
(channelCount >= 1);
567
Debug.
Assert
(cbBytes > 0);
576
Debug.
Assert
(cbBytes == channelMask.Length);
653
Debug.
Assert
(pixelFormatInfo != IntPtr.Zero);
Core\CSharp\System\Windows\Media\RadialGradientBrush.cs (1)
87
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\RectangleGeometry.cs (2)
199
Debug.
Assert
(worldMatrix != null);
200
Debug.
Assert
(geometryMatrix != null);
Core\CSharp\System\Windows\Media\RenderCapability.cs (3)
39
Debug.
Assert
(mediaContext != null);
166
Debug.
Assert
(mediaContext != null);
177
Debug.
Assert
(mediaContext != null);
Core\CSharp\System\Windows\Media\RenderContext.cs (1)
92
Debug.
Assert
(channel != null);
Core\CSharp\System\Windows\Media\RenderData.cs (17)
92
Debug.
Assert
(cbRecordSize >= 0);
95
Debug.
Assert
((_curOffset % 8) == 0);
96
Debug.
Assert
((cbRecordSize % 8) == 0);
97
Debug.
Assert
((sizeof(RecordHeader) % 8) == 0);
115
Debug.
Assert
((_buffer != null) && (_buffer.Length >= newOffset));
118
Debug.
Assert
(_buffer.Length > 0);
143
Debug.
Assert
(ctx != null);
245
Debug.
Assert
(!this.IsFrozen);
285
Debug.
Assert
(_dependentResources[i] as Freezable == null);
378
Debug.
Assert
(_duceResource.IsOnChannel(channel));
408
Debug.
Assert
(_duceResource.IsOnChannel(channel));
460
Debug.
Assert
(_duceResource.IsOnChannel(channel));
475
Debug.
Assert
(cbRequiredSize >= 0);
485
Debug.
Assert
(_buffer.Length < cbRequiredSize);
495
Debug.
Assert
(newSize >= cbRequiredSize);
512
Debug.
Assert
(index <= (uint)Int32.MaxValue);
519
Debug.
Assert
(_dependentResources.Count >= index);
Core\CSharp\System\Windows\Media\StreamGeometry.cs (2)
439
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
509
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\TextFormatting\TextCharacters.cs (3)
219
Debug.
Assert
(characterBufferReference.CharacterBuffer == _characterBufferReference.CharacterBuffer);
220
Debug.
Assert
(offsetToFirstChar >= 0 && offsetToFirstChar < _length);
310
Debug.
Assert
(shapeables != null);
Core\CSharp\System\Windows\Media\Typeface.cs (1)
528
Debug.
Assert
(i > 0);
Core\CSharp\System\Windows\Media\VideoDrawing.cs (1)
46
Debug.
Assert
(!ctx.ShouldStopWalking);
Core\CSharp\System\Windows\Media\Visual.cs (23)
584
Debug.
Assert
(BitmapEffectStateField.GetValue(this) != null);
662
Debug.
Assert
(IsOnChannel(channel));
663
Debug.
Assert
(!CheckFlagsAnd(channel, VisualProxyFlags.IsContentNodeConnected));
867
Debug.
Assert
(channelsToCyclicBrushMap[channel] > 0);
893
Debug.
Assert
(cyclicBrushToChannelsMap[cyclicBrush] > 0);
918
Debug.
Assert
(cyclicBrushToChannelsMap != null);
919
Debug.
Assert
(cyclicBrushToChannelsMap.ContainsKey(cyclicBrush));
920
Debug.
Assert
(cyclicBrushToChannelsMap[cyclicBrush] > 0);
941
Debug.
Assert
(channelsToCyclicBrushMap != null);
942
Debug.
Assert
(channelsToCyclicBrushMap.ContainsKey(channel));
943
Debug.
Assert
(channelsToCyclicBrushMap[channel] > 0);
1319
Debug.
Assert
(CheckFlagsAnd(VisualFlags.ReentrancyFlag)); // Exit must be matched with Enter. See Enter comments.
2107
Debug.
Assert
(BitmapEffectStateField.GetValue(this) != null);
2238
Debug.
Assert
(bitmapEffectState != null);
2277
Debug.
Assert
(intersectionDetail != IntersectionDetail.NotCalculated);
2335
Debug.
Assert
(intersectionDetail != IntersectionDetail.NotCalculated);
2399
Debug.
Assert
(resultCallback != null);
2466
Debug.
Assert
(intersectionDetail != IntersectionDetail.NotCalculated);
3243
Debug.
Assert
(currentBitmapEffect.IsFrozen == emulatingEffect.IsFrozen);
3313
Debug.
Assert
(bitmapEffectState != null);
4530
Debug.
Assert
(ancestor != null);
4647
Debug.
Assert
((group == null) || (group.Children.Count > 0));
4725
Debug.
Assert
(ancestor != null);
Core\CSharp\System\Windows\Media\VisualBrush.cs (10)
197
Debug.
Assert
(!_pendingLayout);
240
Debug.
Assert
(element != null);
262
Debug.
Assert
(_pendingLayout);
266
Debug.
Assert
(element != null);
277
Debug.
Assert
(_DispatcherLayoutResult != null);
278
Debug.
Assert
(_DispatcherLayoutResult.Status == DispatcherOperationStatus.Pending);
280
Debug.
Assert
(abortStatus);
292
Debug.
Assert
(_pendingLayout);
295
Debug.
Assert
(element != null);
333
Debug.
Assert
(_reentrancyFlag); // Exit must be matched with Enter. See Enter comments.
Core\CSharp\System\Windows\Media\VisualCollection.cs (16)
96
Debug.
Assert
(_owner != null);
102
Debug.
Assert
(_owner != null);
108
Debug.
Assert
(_owner != null);
115
Debug.
Assert
(_owner != null);
292
Debug.
Assert
(_items != null);
420
Debug.
Assert
(value != null);
421
Debug.
Assert
(_items[index] == null);
422
Debug.
Assert
(value._parent == null);
423
Debug.
Assert
(!value.IsRootElement);
438
Debug.
Assert
(_items[index] != null);
494
Debug.
Assert
(_items[addedPosition] == null);
573
Debug.
Assert
(visual._parent != null);
688
Debug.
Assert
(_items[i]._parent == _owner);
869
Debug.
Assert
(visual._parent != null);
870
Debug.
Assert
(destination == null || destination._parent == visual._parent);
1027
Debug.
Assert
(_index == -2);
Core\CSharp\System\Windows\Media\VisualProxy.cs (7)
161
Debug.
Assert
(count == 0);
183
Debug.
Assert
(count == 1);
299
Debug.
Assert
(index != PROXY_NOT_FOUND);
354
Debug.
Assert
(index >= 0 && index < Count);
397
Debug.
Assert
(index >= 0 && index < Count);
476
Debug.
Assert
(index >= 0 && index < Count);
577
Debug.
Assert
(delta % 2 == 0 && newLength >= 2);
Core\CSharp\System\Windows\Media\VisualTarget.cs (5)
58
Debug.
Assert
(!_connected);
83
Debug.
Assert
(channel != null);
84
Debug.
Assert
(outOfBandChannel != null);
106
Debug.
Assert
(!resourceCreated);
201
Debug.
Assert
(_connected);
Core\CSharp\System\Windows\Media\VisualTreeHelper.cs (1)
175
Debug.
Assert
(reference == null);
Core\CSharp\System\Windows\Media3D\Generated\AmbientLight.cs (2)
133
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
198
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\AxisAngleRotation3D.cs (2)
178
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
231
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\Camera.cs (2)
124
Debug.
Assert
(!channel.IsOutOfBandChannel);
125
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
Core\CSharp\System\Windows\Media3D\Generated\DiffuseMaterial.cs (4)
138
Debug.
Assert
(!channel.IsOutOfBandChannel);
139
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
237
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
286
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\DirectionalLight.cs (2)
152
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
223
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\EmissiveMaterial.cs (4)
131
Debug.
Assert
(!channel.IsOutOfBandChannel);
132
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
215
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
263
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (1)
113
Debug.
Assert
(_collection.Count == 0);
Core\CSharp\System\Windows\Media3D\Generated\GeometryModel3D.cs (8)
124
Debug.
Assert
(!channel.IsOutOfBandChannel);
125
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
174
Debug.
Assert
(!channel.IsOutOfBandChannel);
175
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
224
Debug.
Assert
(!channel.IsOutOfBandChannel);
225
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
323
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
395
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\MaterialGroup.cs (10)
144
Debug.
Assert
(!channel.IsOutOfBandChannel);
145
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
157
Debug.
Assert
(resource != null);
168
Debug.
Assert
(resource != null);
236
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
306
Debug.
Assert
(_duceResource.IsOnChannel(channel));
355
Debug.
Assert
(!channel.IsOutOfBandChannel);
356
Debug.
Assert
(!thisResource.GetHandle(channel).IsNull);
383
Debug.
Assert
(!channel.IsOutOfBandChannel);
384
Debug.
Assert
(!thisResource.GetHandle(channel).IsNull);
Core\CSharp\System\Windows\Media3D\Generated\MatrixCamera.cs (2)
174
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
233
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\MatrixTransform3D.cs (2)
152
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
192
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\MeshGeometry3D.cs (2)
234
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
336
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\Model3D.cs (2)
124
Debug.
Assert
(!channel.IsOutOfBandChannel);
125
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
Core\CSharp\System\Windows\Media3D\Generated\Model3DGroup.cs (10)
144
Debug.
Assert
(!channel.IsOutOfBandChannel);
145
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
157
Debug.
Assert
(resource != null);
168
Debug.
Assert
(resource != null);
236
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
322
Debug.
Assert
(_duceResource.IsOnChannel(channel));
372
Debug.
Assert
(!channel.IsOutOfBandChannel);
373
Debug.
Assert
(!thisResource.GetHandle(channel).IsNull);
400
Debug.
Assert
(!channel.IsOutOfBandChannel);
401
Debug.
Assert
(!thisResource.GetHandle(channel).IsNull);
Core\CSharp\System\Windows\Media3D\Generated\OrthographicCamera.cs (2)
152
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
247
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\PerspectiveCamera.cs (2)
152
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
247
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\PointLight.cs (2)
133
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
228
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\QuaternionRotation3D.cs (2)
155
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
202
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\RotateTransform3D.cs (4)
153
Debug.
Assert
(!channel.IsOutOfBandChannel);
154
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
271
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
338
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\ScaleTransform3D.cs (2)
280
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
357
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\SpecularMaterial.cs (4)
131
Debug.
Assert
(!channel.IsOutOfBandChannel);
132
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
237
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
286
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\SpotLight.cs (2)
196
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
309
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\Transform3DGroup.cs (10)
144
Debug.
Assert
(!channel.IsOutOfBandChannel);
145
Debug.
Assert
(!targetResource.GetHandle(channel).IsNull);
157
Debug.
Assert
(resource != null);
168
Debug.
Assert
(resource != null);
236
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
306
Debug.
Assert
(_duceResource.IsOnChannel(channel));
355
Debug.
Assert
(!channel.IsOutOfBandChannel);
356
Debug.
Assert
(!thisResource.GetHandle(channel).IsNull);
383
Debug.
Assert
(!channel.IsOutOfBandChannel);
384
Debug.
Assert
(!thisResource.GetHandle(channel).IsNull);
Core\CSharp\System\Windows\Media3D\Generated\TranslateTransform3D.cs (2)
205
Debug.
Assert
(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
264
Debug.
Assert
(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Matrix3D.cs (7)
1049
Debug.
Assert
(IsDistinguishedIdentity);
1061
Debug.
Assert
(IsDistinguishedIdentity);
1077
Debug.
Assert
(IsDistinguishedIdentity);
1203
Debug.
Assert
(!IsDistinguishedIdentity);
1204
Debug.
Assert
(IsAffine);
1220
Debug.
Assert
(!IsDistinguishedIdentity);
1221
Debug.
Assert
(IsAffine);
Core\CSharp\System\Windows\Media3D\Rect3D.cs (1)
66
Debug.
Assert
(size.IsEmpty == IsEmpty);
Core\CSharp\System\Windows\Media3D\Viewport2DVisual3D.cs (3)
604
Debug.
Assert
(Geometry == null || Geometry is MeshGeometry3D);
632
Debug.
Assert
(Geometry == null || Geometry is MeshGeometry3D);
660
Debug.
Assert
(Geometry == null || Geometry is MeshGeometry3D);
Core\CSharp\System\Windows\Media3D\Viewport3DVisual.cs (6)
344
Debug.
Assert
(child != null);
345
Debug.
Assert
(child.InternalVisualParent == null);
395
Debug.
Assert
(child != null);
396
Debug.
Assert
(child.InternalVisualParent == this);
732
Debug.
Assert
(IsOnChannel(channel));
821
Debug.
Assert
(IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Visual3D.cs (13)
254
Debug.
Assert
(child != null);
255
Debug.
Assert
(child.InternalVisualParent == null);
302
Debug.
Assert
(child != null);
303
Debug.
Assert
(child.InternalVisualParent == this);
974
Debug.
Assert
(InternalVisualParent == newParent);
982
Debug.
Assert
(InternalVisualParent == newParent);
1104
Debug.
Assert
(model != null);
1284
Debug.
Assert
(!CheckFlagsAnd(channel, VisualProxyFlags.IsContentConnected));
1285
Debug.
Assert
(IsOnChannel(channel));
1482
Debug.
Assert
(IsOnChannel(channel));
1483
Debug.
Assert
(!CheckFlagsAnd(channel, VisualProxyFlags.IsContentNodeConnected));
1686
Debug.
Assert
(ancestor != null);
1837
Debug.
Assert
(ancestor != null);
Core\CSharp\System\Windows\Navigation\BaseUriHelper.cs (2)
201
Debug.
Assert
(uri != null && uri.IsAbsoluteUri && SecurityHelper.AreStringTypesEqual(uri.Scheme, PackUriHelper.UriSchemePack) && IsPackApplicationUri(uri));
218
Debug.
Assert
(String.Compare(partName, uri.GetComponents(UriComponents.Path, UriFormat.UriEscaped), StringComparison.OrdinalIgnoreCase) == 0);
Core\CSharp\System\Windows\PresentationSource.cs (1)
627
Debug.
Assert
(InputElement.IsUIElement3D(uie) || InputElement.IsUIElement(uie));
Core\CSharp\System\Windows\ReverseInheritProperty.cs (1)
203
Debug.
Assert
(originChangedAction != null);
Core\CSharp\System\Windows\UIElement.cs (5)
3147
Debug.
Assert
(intersectionDetail != IntersectionDetail.NotCalculated);
3240
Debug.
Assert
(_proxy.IsOnChannel(channel));
3310
Debug.
Assert
(!CheckFlagsAnd(channel, VisualProxyFlags.IsContentConnected));
3311
Debug.
Assert
(_proxy.IsOnChannel(channel));
4195
Debug.
Assert
(value == Visibility.Visible || value == Visibility.Hidden || value == Visibility.Collapsed);
Core\CSharp\System\Windows\UIElement3D.cs (1)
1361
Debug.
Assert
(value == Visibility.Visible || value == Visibility.Hidden || value == Visibility.Collapsed);
Graphics\include\exports.cs (23)
134
Debug.
Assert
((cbData == 0) || ((Int64)(IntPtr)pbFrom) % 4 == 0);
135
Debug.
Assert
((cbData == 0) || ((Int64)(IntPtr)pbTo) % 4 == 0);
136
Debug.
Assert
(cbData % 4 == 0);
137
Debug.
Assert
(cbData >= 0);
625
Debug.
Assert
(!handle.IsNull);
661
Debug.
Assert
(!handle.IsNull);
1087
Debug.
Assert
(channel != null);
1107
Debug.
Assert
(channel != null);
1298
Debug.
Assert
(_others.Count > 0);
1324
Debug.
Assert
(index == 0);
1560
Debug.
Assert
(index <= 1);
1638
Debug.
Assert
(index == 0);
1677
Debug.
Assert
(channel != null);
1702
Debug.
Assert
(sourceChannel != null);
1707
Debug.
Assert
(found);
1714
Debug.
Assert
(!(_map.Get(targetChannel, out duplicate)));
1740
Debug.
Assert
(channel != null);
1745
Debug.
Assert
(found);
1808
Debug.
Assert
(channel != null);
1813
Debug.
Assert
(found);
2147
Debug.
Assert
(!hCompositionNode.IsNull);
2178
Debug.
Assert
(!hCompositionNode.IsNull);
2386
Debug.
Assert
(!hCompositionNode.IsNull);
Shared\MS\Internal\AppDomainShutdownMonitor.cs (3)
37
Debug.
Assert
(listener.Target != null);
38
Debug.
Assert
(listener.Target is IAppDomainShutdownListener);
51
Debug.
Assert
(listener.Target == null || listener.Target is IAppDomainShutdownListener);
Shared\MS\Internal\GenericEnumerator.cs (1)
103
Debug.
Assert
(_position >= 0);
Shared\MS\Internal\Ink\BitStream.cs (2)
30
Debug.
Assert
(buffer != null);
43
Debug.
Assert
(buffer != null);
Shared\MS\Internal\PartialList.cs (1)
46
Debug.
Assert
(initialIndex >= 0 && initialIndex + count <= list.Count);
Shared\MS\Internal\PriorityQueue.cs (2)
98
Debug.
Assert
(_count > 0);
140
Debug.
Assert
(_count != 0);
Shared\MS\Internal\SafeSecurityHelper.cs (1)
467
Debug.
Assert
(target != null);
Shared\System\Windows\Media\TypeConverterHelper.cs (1)
74
Debug.
Assert
(inputString is Uri);
PresentationFramework (1058)
src\Framework\MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (1)
311
Debug.
Assert
(tv != null);
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (2)
409
Debug.
Assert
(target != null);
479
Debug.
Assert
(startNode != null);
src\Framework\MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
241
Debug.
Assert
(textView != null);
src\Framework\MS\Internal\AppModel\ApplicationProxyInternal.cs (3)
441
Debug.
Assert
(Application.IsShuttingDown);
898
Debug.
Assert
(!Application.IsApplicationObjectShuttingDown);
928
Debug.
Assert
(((PackageDocument)_document.Value).Package ==
src\Framework\MS\Internal\AppModel\Journaling.cs (11)
136
Debug.
Assert
(value.JEGroupState == this);
137
Debug.
Assert
(_groupExitEntry == null || _groupExitEntry.ContentId == value.ContentId);
232
Debug.
Assert
(this.KeepAliveRoot == contentObject); // set by ctor; shouldn't change
239
Debug.
Assert
(navMode == NavigationMode.Back || navMode == NavigationMode.Forward);
240
Debug.
Assert
(this.KeepAliveRoot != null);
430
Debug.
Assert
(pageFunction != null && pageFunction.KeepAlive);
475
Debug.
Assert
(navMode == NavigationMode.Back || navMode == NavigationMode.Forward);
480
Debug.
Assert
(pf != null);
512
Debug.
Assert
(!pageFunction.KeepAlive);
587
Debug.
Assert
(navMode == NavigationMode.Back || navMode == NavigationMode.Forward);
600
Debug.
Assert
(pageFunction != null);
src\Framework\MS\Internal\AppModel\JournalNavigationScope.cs (2)
295
Debug.
Assert
(journal != null);
479
Debug.
Assert
(sender == _journal);
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (2)
292
Debug.
Assert
(topWindow != IntPtr.Zero);
690
Debug.
Assert
(sink.KeyboardInputSite == null);
src\Framework\MS\Internal\AppModel\XappLauncher.cs (5)
131
Debug.
Assert
(!_isInAsynchronousOperation && !IsCanceledOrShuttingDown);
383
Debug.
Assert
(_isInAsynchronousOperation);
857
Debug.
Assert
(!_canceled);
1006
Debug.
Assert
(!_canceled);
1019
Debug.
Assert
(!(_canceled && _isInAsynchronousOperation));
src\Framework\MS\Internal\Commands\CommandHelpers.cs (3)
104
Debug.
Assert
(controlType != null);
105
Debug.
Assert
(command != null);
106
Debug.
Assert
(executedRoutedEventHandler != null);
src\Framework\MS\Internal\Controls\CustomCategoryAttribute.cs (1)
18
Debug.
Assert
("Content".Equals(name, StringComparison.Ordinal)
src\Framework\MS\Internal\Controls\InkCanvasFeedbackAdorner.cs (1)
162
Debug.
Assert
(_frameSize != new Size(0, 0));
src\Framework\MS\Internal\Controls\InkCanvasInnerCanvas.cs (1)
43
Debug.
Assert
(inkCanvas != null);
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (10)
95
Debug.
Assert
(annotation != null);
137
Debug.
Assert
((token & AllValues) != 0);
625
Debug.
Assert
(false);
640
Debug.
Assert
(cargo != null);
664
Debug.
Assert
(false);
712
Debug.
Assert
(false);
822
Debug.
Assert
(snc.IsExpanded);
830
Debug.
Assert
(snc.IsExpanded);
1276
Debug.
Assert
(_attachedAnnotation != null && _attachedAnnotation.Annotation == args.Annotation);
1290
Debug.
Assert
(_attachedAnnotation != null && _attachedAnnotation.Annotation == args.Annotation);
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (3)
212
Debug.
Assert
(node != null && !IsEmpty);
239
Debug.
Assert
(node != null);
384
Debug.
Assert
(node != null && !IsEmpty);
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteHelper.cs (2)
104
Debug.
Assert
(!helper.IsLocked(flag));
114
Debug.
Assert
(_helper.IsLocked(_flag));
src\Framework\MS\Internal\Data\CollectionViewGroupInternal.cs (2)
528
Debug.
Assert
(subgroup != null);
550
Debug.
Assert
(subgroup != null);
src\Framework\MS\Internal\Data\CompositeCollectionView.cs (1)
476
Debug.
Assert
(args.Action == NotifyCollectionChangedAction.Remove);
src\Framework\MS\Internal\Data\DefaultValueConverter.cs (1)
481
Debug.
Assert
(sourceType != targetType);
src\Framework\MS\Internal\Data\DisplayMemberTemplateSelector.cs (1)
30
Debug.
Assert
(!(String.IsNullOrEmpty(displayMemberPath) && String.IsNullOrEmpty(stringFormat)));
src\Framework\MS\Internal\Data\XmlBindingWorker.cs (2)
43
Debug.
Assert
(_xpath != null);
445
Debug.
Assert
(ContextNode != null);
src\Framework\MS\Internal\DataStreams.cs (1)
342
Debug.
Assert
(state != null);
src\Framework\MS\Internal\Documents\ColumnResult.cs (1)
196
Debug.
Assert
(_paragraphs != null && _paragraphs.Count > 0);
src\Framework\MS\Internal\Documents\ContentElementCollection.cs (5)
44
Debug.
Assert
(owner != null);
185
Debug.
Assert
(Items[item.Index] == item);
321
Debug.
Assert
(collection != null);
722
Debug.
Assert
(BelongsToOwner(item) && Items[item.Index] == item);
732
Debug.
Assert
(BelongsToOwner(Items[i + 1]));
src\Framework\MS\Internal\Documents\HostedElements.cs (5)
88
Debug.
Assert
(_currentTextSegment == 0);
105
Debug.
Assert
(((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].Start) >= 0 &&
116
Debug.
Assert
(((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].Start) >= 0);
195
Debug.
Assert
(_currentPosition.GetAdjacentElementFromOuterPosition(LogicalDirection.Forward) is IInputElement);
199
Debug.
Assert
(_currentPosition.GetAdjacentElement(LogicalDirection.Forward) is IInputElement);
src\Framework\MS\Internal\Documents\TableColumnCollectionInternal.cs (8)
49
Debug.
Assert
(Items[index] == null);
68
Debug.
Assert
(BelongsToOwner(Items[i]));
118
Debug.
Assert
(BelongsToOwner(Items[i]));
143
Debug.
Assert
(item != null && item.Index == -1);
144
Debug.
Assert
(Items[index] == null);
180
Debug.
Assert
(item != null);
298
Debug.
Assert
(BelongsToOwner(Items[i]));
306
Debug.
Assert
(BelongsToOwner(Items[i + count]));
src\Framework\MS\Internal\Documents\TableTextElementCollectionInternal.cs (8)
71
Debug.
Assert
(BelongsToOwner(Items[i]));
246
Debug.
Assert
(BelongsToOwner(Items[i]));
267
Debug.
Assert
(item != null && item.Index == -1);
268
Debug.
Assert
(Items[index] == null);
296
Debug.
Assert
(BelongsToOwner(item) && Items[item.Index] == item);
310
Debug.
Assert
(BelongsToOwner(Items[i + 1]));
379
Debug.
Assert
(BelongsToOwner(Items[i]));
396
Debug.
Assert
(BelongsToOwner(item) && Items[item.Index] == item);
src\Framework\MS\Internal\Documents\TextParagraphView.cs (8)
174
Debug.
Assert
(lines != null && lines.Count > 0);
180
Debug.
Assert
(false);
295
Debug.
Assert
(lines != null && lines.Count > 0);
299
Debug.
Assert
(lineIndex >= 0 && lineIndex < lines.Count);
358
Debug.
Assert
(lineIndex < lines.Count);
557
Debug.
Assert
(lines != null && lines.Count > 0);
594
Debug.
Assert
(lines != null && lines.Count > 0);
721
Debug.
Assert
(lines != null && lines.Count > 0);
src\Framework\MS\Internal\Documents\UndoManager.cs (3)
134
Debug.
Assert
(((UndoManager)undoManager)._scope == null);
172
Debug.
Assert
(((UndoManager)undoManager)._scope == scope);
308
Debug.
Assert
(false);
src\Framework\MS\Internal\Globalization\BamlResourceContent.cs (1)
120
Debug.
Assert
(match.Value.Length > 0 && match.Value[0] == BamlConst.EscapeChar);
src\Framework\MS\Internal\Globalization\BamlResourceSerializer.cs (1)
84
Debug.
Assert
(elementNode != null);
src\Framework\MS\Internal\Globalization\BamlTreeMap.cs (1)
581
Debug.
Assert
(node.NodeType == BamlNodeType.StartElement);
src\Framework\MS\Internal\Globalization\LocalizableResourceBuilder.cs (1)
452
Debug.
Assert
(inheritableAttribute != null);
src\Framework\MS\Internal\Globalization\LocalizationComments.cs (1)
362
Debug.
Assert
(enumPrefix != null && enumNames != null);
src\Framework\MS\Internal\Helper.cs (2)
418
Debug.
Assert
( fe != null );
862
Debug.
Assert
(item != null);
src\Framework\MS\Internal\Ink\ClipboardProcessor.cs (5)
93
Debug.
Assert
(dataObject != null && _preferredClipboardData!= null);
144
Debug.
Assert
(inkCanvasSelection.SelectedStrokes.Count == orderedStrokes.Count);
202
Debug.
Assert
(dataObject != null && _preferredClipboardData!= null);
273
Debug.
Assert
(_preferredClipboardData != null);
282
Debug.
Assert
(value != null);
src\Framework\MS\Internal\Ink\EditingCoordinator.cs (3)
271
Debug.
Assert
(behavior != null);
375
Debug.
Assert
(behavior == ActiveEditingBehavior);
624
Debug.
Assert
(newEditingBehavior != null);
src\Framework\MS\Internal\Ink\EraserBehavior.cs (3)
111
Debug.
Assert
(_cachedEraseMode != mode);
165
Debug.
Assert
(newEraseMode == InkCanvasEditingMode.EraseByPoint
357
Debug.
Assert
(null != e.HitStroke);
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (2)
150
Debug.
Assert
( _inkCanvas.EditingCoordinator.UserIsEditing == true );
217
Debug.
Assert
(strokes != null && elements != null);
src\Framework\MS\Internal\Ink\LassoHelper.cs (2)
176
System.Diagnostics.Debug.
Assert
(null != points);
177
System.Diagnostics.Debug.
Assert
((0 <= percentIntersect) && (100 >= percentIntersect));
src\Framework\MS\Internal\Ink\LassoSelectionBehavior.cs (6)
284
Debug.
Assert
(tappedElement == null);
290
Debug.
Assert
(tappedStroke == null);
379
System.Diagnostics.Debug.
Assert
(null != _lassoHelper);
396
Debug.
Assert
(canvas != null);
397
Debug.
Assert
(childElement != null);
399
Debug.
Assert
(canvas.CheckAccess());
src\Framework\MS\Internal\Ink\SelectionEditingBehavior.cs (2)
80
Debug.
Assert
(_hitResult != InkCanvasSelectionHitResult.None);
339
Debug.
Assert
(false);
src\Framework\MS\Internal\Ink\XamlClipboardData.cs (1)
122
Debug.
Assert
(setString.Length > 0);
src\Framework\MS\Internal\IO\Packaging\ByteStream.cs (3)
54
Debug.
Assert
(stream != null);
60
Debug.
Assert
(_access == FileAccess.Read);
136
Debug.
Assert
(_length > 0);
src\Framework\MS\Internal\IO\Packaging\PackageFilter.cs (6)
466
Debug.
Assert
(false);
475
Debug.
Assert
(false);
592
Debug.
Assert
(dottedExtensionName != null);
620
Debug.
Assert
(pathWithGaps != null && stopGaps != null);
629
Debug.
Assert
(stopGaps.Length > nextStopGapToUse);
637
Debug.
Assert
(stopGaps.Length == nextStopGapToUse);
src\Framework\MS\Internal\IO\Packaging\XamlFilter.cs (8)
299
Debug.
Assert
(bufferCharacterCount >= 0);
365
Debug.
Assert
(_fixedPageContentExtractor != null);
400
Debug.
Assert
(_contextStack.Count == 0);
406
Debug.
Assert
(_topLevelReader != null);
413
Debug.
Assert
(false);
516
Debug.
Assert
(topOfStack.HasIndexableContent);
778
Debug.
Assert
(_xamlReader != null);
800
Debug.
Assert
(String.CompareOrdinal(_xamlReader.LocalName, _fixedPageName) == 0);
src\Framework\MS\Internal\IO\Packaging\XmlFixedPageInfo.cs (1)
42
Debug.
Assert
(_pageNode != null);
src\Framework\MS\Internal\IO\Packaging\XmlGlyphRunInfo.cs (1)
47
Debug.
Assert
(_glyphsNode != null
src\Framework\MS\Internal\PtsHost\BaseParaClient.cs (1)
124
Debug.
Assert
(oldParaClient._visual != null);
src\Framework\MS\Internal\PtsHost\BaseParagraph.cs (1)
185
Debug.
Assert
(ParagraphEndCharacterPosition >= startPosition);
src\Framework\MS\Internal\PtsHost\CellParaClient.cs (4)
96
Debug.
Assert
(calculatedColumns != null
388
Debug.
Assert
(tableParaClient != null);
391
Debug.
Assert
( calculatedColumns != null
405
Debug.
Assert
(0 <= durCellWidth);
src\Framework\MS\Internal\PtsHost\CellParagraph.cs (3)
83
Debug.
Assert
(Cell.Table != null);
152
Debug.
Assert
(Cell.Table != null);
181
Debug.
Assert
(Cell.Table != null);
src\Framework\MS\Internal\PtsHost\ColumnPropertiesGroup.cs (1)
46
internal double ColumnWidth { get { Debug.
Assert
(!double.IsNaN(_columnWidth)); return _columnWidth; } }
src\Framework\MS\Internal\PtsHost\ContainerParagraph.cs (12)
239
Debug.
Assert
(_ur.ChangeType == PTS.FSKCHANGE.fskchInside); // Inconsistent UpdateRecord data
307
Debug.
Assert
(_ur == null); // UpdateRecord has been already created.
370
Debug.
Assert
(StructuralCache.CurrentFormatContext.FinitePage || _ur != null); // For bottomless case UpdateRecord needs to be created in UpdGetFirstChangeInSegment.
375
Debug.
Assert
(_ur == null);
500
Debug.
Assert
(iArea == 0);
673
Debug.
Assert
(iArea == 0);
758
Debug.
Assert
(pmcsclientOut == IntPtr.Zero);
810
Debug.
Assert
(iArea == 0);
895
Debug.
Assert
(pmcsclientOut == IntPtr.Zero);
949
Debug.
Assert
(ParagraphEndCharacterPosition >= startPosition);
1090
Debug.
Assert
(textPointer is TextPointer);
1216
Debug.
Assert
(ur.Next.FirstPara == null || ur.Next.FirstPara.Next == null);
src\Framework\MS\Internal\PtsHost\DtrList.cs (1)
319
Debug.
Assert
(_dtrs.Length > 0);
src\Framework\MS\Internal\PtsHost\FigureParaClient.cs (4)
458
Debug.
Assert
(visualChildren.Count == 1 && visualChildren[0] is ContainerVisual);
479
Debug.
Assert
(fskupd != PTS.FSKUPDATE.fskupdNoChange);
493
Debug.
Assert
(visualChildren.Count == 1 && visualChildren[0] is SectionVisual);
679
Debug.
Assert
(arrayColumnDesc.Length == 1);
src\Framework\MS\Internal\PtsHost\FigureParagraph.cs (1)
455
Debug.
Assert
(ParagraphEndCharacterPosition >= startPosition);
src\Framework\MS\Internal\PtsHost\FloaterParaClient.cs (4)
462
Debug.
Assert
(visualChildren.Count == 1 && visualChildren[0] is ContainerVisual);
483
Debug.
Assert
(fskupd != PTS.FSKUPDATE.fskupdNoChange);
497
Debug.
Assert
(visualChildren.Count == 1 && visualChildren[0] is SectionVisual);
685
Debug.
Assert
(arrayColumnDesc.Length == 1);
src\Framework\MS\Internal\PtsHost\FloaterParagraph.cs (4)
264
Debug.
Assert
(pmcsclientOut == IntPtr.Zero);
519
Debug.
Assert
(pmcsclientOut == IntPtr.Zero);
538
Debug.
Assert
(pmcsclientOut == IntPtr.Zero);
624
Debug.
Assert
(ParagraphEndCharacterPosition >= startPosition);
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (8)
324
Debug.
Assert
(child != null);
474
Debug.
Assert
(pageDetails.u.complex.cSections == 1); // Only one section is supported right now.
490
Debug.
Assert
(sectionDetails.u.withpagenotes.cEndnoteColumns == 0); // Footnotes are not supported yet.
494
Debug.
Assert
(sectionDetails.u.withpagenotes.cSegmentDefinedColumnSpanAreas == 0);
495
Debug.
Assert
(sectionDetails.u.withpagenotes.cHeightDefinedColumnSpanAreas == 0);
532
Debug.
Assert
(false); // Complex columns are not supported yet.
954
Debug.
Assert
(e != null);
957
Debug.
Assert
(_structuralCache.TextContainer is TextContainer);
src\Framework\MS\Internal\PtsHost\Line.cs (2)
681
Debug.
Assert
(dcp >= 0 && (dcp + cch <= _line.Length));
701
Debug.
Assert
(cchGlyphRuns > 0 && glyphRunsCollection.Count > 0);
src\Framework\MS\Internal\PtsHost\ListMarkerSourceInfo.cs (1)
349
Debug.
Assert
(number >= 0 && number <= 9);
src\Framework\MS\Internal\PtsHost\PageVisual.cs (2)
76
Debug.
Assert
(vc.Count <= 1);
82
Debug.
Assert
(vc.Count <= 1);
src\Framework\MS\Internal\PtsHost\Pts.cs (1)
168
Debug.
Assert
(false);
src\Framework\MS\Internal\PtsHost\PtsHelper.cs (2)
652
Debug.
Assert
(sectionDetails.u.withpagenotes.cSegmentDefinedColumnSpanAreas == 0);
653
Debug.
Assert
(sectionDetails.u.withpagenotes.cHeightDefinedColumnSpanAreas == 0);
src\Framework\MS\Internal\PtsHost\PtsHost.cs (5)
421
Debug.
Assert
(cnms == 1); // Only one section is supported right now.
2701
Debug.
Assert
(false);
3150
Debug.
Assert
(false);
3384
Debug.
Assert
(false);
3500
Debug.
Assert
(false);
src\Framework\MS\Internal\PtsHost\PtsPage.cs (11)
1016
Debug.
Assert
(sectionDetails.u.withpagenotes.cSegmentDefinedColumnSpanAreas == 0);
1017
Debug.
Assert
(sectionDetails.u.withpagenotes.cHeightDefinedColumnSpanAreas == 0);
1070
Debug.
Assert
(sectionDetails.u.withpagenotes.cSegmentDefinedColumnSpanAreas == 0);
1071
Debug.
Assert
(sectionDetails.u.withpagenotes.cHeightDefinedColumnSpanAreas == 0);
1157
Debug.
Assert
(visualChildren.Count == 1 && visualChildren[0] is ContainerVisual);
1246
Debug.
Assert
(sectionDetails.u.withpagenotes.cSegmentDefinedColumnSpanAreas == 0);
1247
Debug.
Assert
(sectionDetails.u.withpagenotes.cHeightDefinedColumnSpanAreas == 0);
1469
Debug.
Assert
(sectionDetails.u.withpagenotes.cSegmentDefinedColumnSpanAreas == 0);
1470
Debug.
Assert
(sectionDetails.u.withpagenotes.cHeightDefinedColumnSpanAreas == 0);
1536
Debug.
Assert
(sectionDetails.u.withpagenotes.cSegmentDefinedColumnSpanAreas == 0);
1537
Debug.
Assert
(sectionDetails.u.withpagenotes.cHeightDefinedColumnSpanAreas == 0);
src\Framework\MS\Internal\PtsHost\RowParagraph.cs (3)
206
Debug.
Assert
(cCells == Row.FormatCellCount);
275
Debug.
Assert
(_spannedCells[j] != null);
294
Debug.
Assert
(Row.Index - cell.RowIndex + 1 == cell.RowSpan);
src\Framework\MS\Internal\PtsHost\SubpageParaClient.cs (3)
383
Debug.
Assert
(visualChildren.Count == 1 && visualChildren[0] is ContainerVisual);
404
Debug.
Assert
(fskupd != PTS.FSKUPDATE.fskupdNoChange);
418
Debug.
Assert
(visualChildren.Count == 1 && visualChildren[0] is SectionVisual);
src\Framework\MS\Internal\PtsHost\SubpageParagraph.cs (3)
482
Debug.
Assert
(pmcsclientOut == IntPtr.Zero);
650
Debug.
Assert
(pmcsclientOut == IntPtr.Zero);
698
Debug.
Assert
(ParagraphEndCharacterPosition >= startPosition);
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (21)
77
Debug.
Assert
( Table != null
349
Debug.
Assert
( TableParagraph.Table != null
398
Debug.
Assert
( TableParagraph.Table != null
475
Debug.
Assert
(TableParagraph.Table != null
656
Debug.
Assert
( TableParagraph.Table != null
888
Debug.
Assert
( TableParagraph.Table != null
965
Debug.
Assert
( TableParagraph.Table != null
1025
Debug.
Assert
( TableParagraph.Table != null
1112
Debug.
Assert
( TableParagraph.Table != null
1213
Debug.
Assert
( TableParagraph.Table != null
1241
Debug.
Assert
(false);
1263
Debug.
Assert
(Table != null);
1289
Debug.
Assert
(Table != null);
1481
Debug.
Assert
(TableParagraph == (TableParagraph)(PtsContext.HandleToObject(tableObjDetails.fsnmTable)));
1511
Debug.
Assert
(tableDetails.cRows == cRowsActual);
1565
Debug.
Assert
(tableRowDetails.cCells == cCellsActual);
1699
Debug.
Assert
( cellParaClient.Visual != null
1833
Debug.
Assert
( cellParaClient.Visual != null
2171
Debug.
Assert
(0 <= _calculatedColumns[i].DurMinWidth && 0 <= _calculatedColumns[i].DurMaxWidth);
2496
Debug.
Assert
(_calculatedColumns[i].UserWidth.IsAbsolute);
2520
Debug.
Assert
(_calculatedColumns[i].DurMinWidth <= _calculatedColumns[i].DurMaxWidth);
src\Framework\MS\Internal\PtsHost\TableParagraph.cs (1)
320
Debug.
Assert
(Table.RowGroups.Count > 0);
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (32)
149
Debug.
Assert
(textDetails.fsktd == PTS.FSKTEXTDETAILS.fsktdCached);
186
Debug.
Assert
(!((TextParagraph) Paragraph).HasFiguresFloatersOrInlineObjects());
266
Debug.
Assert
(textDetails.fsktd == PTS.FSKTEXTDETAILS.fsktdCached);
298
Debug.
Assert
(Paragraph.Element as ContentElement != e);
366
Debug.
Assert
(textDetails.fsktd == PTS.FSKTEXTDETAILS.fsktdCached);
428
Debug.
Assert
(textDetails.fsktd == PTS.FSKTEXTDETAILS.fsktdCached);
819
Debug.
Assert
(textDetails.fsktd == PTS.FSKTEXTDETAILS.fsktdCached);
909
Debug.
Assert
(textDetails.fsktd == PTS.FSKTEXTDETAILS.fsktdCached);
951
Debug.
Assert
(position is TextPointer);
982
Debug.
Assert
(textDetails.fsktd == PTS.FSKTEXTDETAILS.fsktdCached);
1011
Debug.
Assert
(position is TextPointer);
1042
Debug.
Assert
(textDetails.fsktd == PTS.FSKTEXTDETAILS.fsktdCached);
1218
Debug.
Assert
(textDetails.fsktd == PTS.FSKTEXTDETAILS.fsktdCached);
1551
Debug.
Assert
(textDetails.fsktd == PTS.FSKTEXTDETAILS.fsktdCached);
1575
Debug.
Assert
(!PTS.ToBoolean(textDetails.fLinesComposite));
1655
Debug.
Assert
(insertionIndex >= 0 && insertionIndex <= lineVisuals.Count);
2855
Debug.
Assert
(index > 0);
2989
Debug.
Assert
(index == 0);
2990
Debug.
Assert
(elIndex == 0);
3004
Debug.
Assert
(index > 0);
3029
Debug.
Assert
(elIndex == arrayLineElement.Length - 1);
3030
Debug.
Assert
(index == arrayLineDesc.Length - 1);
3154
Debug.
Assert
(index > 0);
3202
Debug.
Assert
(backspaceCaretPosition != null);
3255
Debug.
Assert
(index == 0);
3256
Debug.
Assert
(elIndex == 0);
3270
Debug.
Assert
(index > 0);
3634
Debug.
Assert
(!PTS.ToBoolean(textDetails.fLinesComposite));
3752
Debug.
Assert
(_lineIndexFirstVisual == lineIndexFirstVisible);
3781
Debug.
Assert
(visualChildren.Count == (lineIndexFirstInvisible - lineIndexFirstVisible));
4218
Debug.
Assert
(localEnd > localStart);
4432
Debug.
Assert
(localEnd > localStart);
src\Framework\MS\Internal\PtsHost\TextParagraph.cs (1)
160
Debug.
Assert
(iArea == 0);
src\Framework\MS\Internal\PtsHost\TextParaLineResult.cs (4)
61
Debug.
Assert
(false);
77
Debug.
Assert
(false);
90
Debug.
Assert
(false);
106
Debug.
Assert
(false);
src\Framework\MS\Internal\PtsHost\UpdateRecord.cs (1)
45
Debug.
Assert
(Next != null); // This is the last UR, cannot merge with next.
src\Framework\MS\Internal\PtsTable\CalculatedColumn.cs (1)
58
Debug.
Assert
(0 <= durMinWidth && durMinWidth <= durMaxWidth);
src\Framework\MS\Internal\PtsTable\RowSpanVector.cs (5)
145
Debug.
Assert
(0 <= _index && _index < _size);
153
Debug.
Assert
(0 <= _index && _index < _size);
186
Debug.
Assert
(_entries[i].Cell != null);
187
Debug.
Assert
(i >= j);
253
Debug.
Assert
( _entries.Length > 0
src\Framework\MS\Internal\Text\ComplexLine.cs (1)
88
Debug.
Assert
(dcp >= 0);
src\Framework\MS\Internal\Text\DynamicPropertyReader.cs (5)
47
Debug.
Assert
(element != null);
59
Debug.
Assert
(element != null);
77
Debug.
Assert
(element != null);
236
Debug.
Assert
(element != null);
261
Debug.
Assert
(!position.IsNull);
src\Framework\MS\Internal\Text\LineMetrics.cs (2)
119
get { Debug.
Assert
((_packedData & HasBeenUpdatedMask) != 0); return _width; }
134
get { Debug.
Assert
((_packedData & HasBeenUpdatedMask) != 0); return _start; }
src\Framework\MS\Internal\Text\SimpleLine.cs (1)
133
Debug.
Assert
(content != null);
src\Framework\MS\Internal\Text\TextLineResult.cs (4)
61
Debug.
Assert
(false);
73
Debug.
Assert
(false);
84
Debug.
Assert
(false);
96
Debug.
Assert
(false);
src\Framework\MS\Internal\Text\TextProperties.cs (1)
264
Debug.
Assert
(element != null);
src\Framework\MS\Internal\Text\TypographyProperties.cs (1)
110
Debug.
Assert
((uint)PropertyId.PropertyCount <= 32);
src\Framework\System\Windows\Automation\Peers\DataGridAutomationPeer.cs (1)
203
Debug.
Assert
(false);
src\Framework\System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (1)
672
Debug.
Assert
((int)owningButton.GetValue(Grid.RowProperty) > 0);
src\Framework\System\Windows\BroadcastEventHelper.cs (7)
22
Debug.
Assert
(d is FrameworkElement || d is FrameworkContentElement);
43
Debug.
Assert
(d is FrameworkElement || d is FrameworkContentElement);
47
Debug.
Assert
(loadedPending.Length == 3);
70
Debug.
Assert
(d is FrameworkElement || d is FrameworkContentElement);
91
Debug.
Assert
(d is FrameworkElement || d is FrameworkContentElement);
95
Debug.
Assert
(unloadedPending.Length == 3);
511
Debug.
Assert
( fo.IsFE );
src\Framework\System\Windows\Controls\Calendar.cs (14)
214
Debug.
Assert
(c != null);
270
Debug.
Assert
(c != null);
331
Debug.
Assert
(c != null);
388
Debug.
Assert
(c != null);
419
Debug.
Assert
(false);
546
Debug.
Assert
(c != null);
632
Debug.
Assert
(c != null);
930
Debug.
Assert
(false);
949
Debug.
Assert
(false);
989
Debug.
Assert
(false);
1022
Debug.
Assert
(false);
1094
Debug.
Assert
(false);
1196
Debug.
Assert
(this.DisplayMode == CalendarMode.Year);
1209
Debug.
Assert
(this.DisplayMode == CalendarMode.Decade);
src\Framework\System\Windows\Controls\CalendarBlackoutDatesCollection.cs (2)
116
Debug.
Assert
(dayInterval != 0);
333
Debug.
Assert
(day != null);
src\Framework\System\Windows\Controls\ComboBox.cs (1)
642
Debug.
Assert
(_editableTextBoxSite == sender);
src\Framework\System\Windows\Controls\ContentPresenter.cs (3)
1016
Debug.
Assert
(tc.CanConvertTo(typeof(UIElement)));
1087
Debug.
Assert
(!(content is String) && !(content is UIElement)); // these are handled by different templates
1126
Debug.
Assert
(!(tc != null && tc.CanConvertTo(typeof(UIElement)))); // this is handled by a different template
src\Framework\System\Windows\Controls\DataGrid.cs (2)
5288
Debug.
Assert
(!IsUpdatingSelectedCells);
5294
Debug.
Assert
(IsUpdatingSelectedCells);
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (1)
1153
Debug.
Assert
(startIndex >= 0);
src\Framework\System\Windows\Controls\DataGridColumn.cs (1)
596
Debug.
Assert
(Width.IsStar);
src\Framework\System\Windows\Controls\DataGridColumnCollection.cs (2)
549
Debug.
Assert
(assignedDisplayIndexMap.ContainsKey(displayIndex));
693
Debug.
Assert
(removedDisplayIndex >= 0);
src\Framework\System\Windows\Controls\DataGridColumnHeaderCollection.cs (1)
52
Debug.
Assert
(_columns.Contains(column));
src\Framework\System\Windows\Controls\DataGridRow.cs (1)
231
Debug.
Assert
(stateCode != DATAGRIDROW_stateNullCode);
src\Framework\System\Windows\Controls\DatePicker.cs (11)
210
Debug.
Assert
(dp != null);
256
Debug.
Assert
(dp != null);
321
Debug.
Assert
(dp != null);
339
Debug.
Assert
(dp != null);
366
Debug.
Assert
(dp != null);
427
Debug.
Assert
(dp != null);
523
Debug.
Assert
(dp != null);
575
Debug.
Assert
(dp != null);
943
Debug.
Assert
(c != null);
944
Debug.
Assert
(args != null);
966
Debug.
Assert
(e.AddedItems.Count < 2);
src\Framework\System\Windows\Controls\DateTimeHelper.cs (1)
181
Debug.
Assert
(DateTime.Compare(start, end) < 1);
src\Framework\System\Windows\Controls\DefinitionBase.cs (6)
333
Debug.
Assert
(value >= -1 && _parentIndex != value);
716
Debug.
Assert
(sharedSizeGroup != null);
732
Debug.
Assert
(_registry.Contains(key));
749
Debug.
Assert
(sharedSizeScope != null && sharedSizeGroupId != null);
762
Debug.
Assert
(!_registry.Contains(member));
846
Debug.
Assert
( _userSize.GridUnitType == GridUnitType.Auto
src\Framework\System\Windows\Controls\Frame.cs (21)
473
Debug.
Assert
(_ownJournalScope != null);
485
Debug.
Assert
(_ownJournalScope == null);
527
Debug.
Assert
(_journalOwnership == (JournalOwnership)GetValue(JournalOwnershipProperty));
651
Debug.
Assert
(sender == this && _ownJournalScope != null);
657
Debug.
Assert
(sender == this && _ownJournalScope != null);
664
Debug.
Assert
(sender == this && _ownJournalScope != null);
670
Debug.
Assert
(sender == this && _ownJournalScope != null);
677
Debug.
Assert
(sender == this && _ownJournalScope != null);
696
Debug.
Assert
(sender == this && _ownJournalScope != null);
701
Debug.
Assert
(sender == this && _ownJournalScope != null);
708
Debug.
Assert
(sender == this && _ownJournalScope != null);
771
Debug.
Assert
(d as Frame != null && ((Frame)d).NavigationService != null);
844
Debug.
Assert
(canGoFwd == (bool)GetValue(CanGoForwardProperty));
859
Debug.
Assert
(canGoBack == (bool)GetValue(CanGoBackProperty));
1018
Debug.
Assert
(backStack == GetValue(BackStackProperty));
1030
Debug.
Assert
(fwdStack == GetValue(ForwardStackProperty));
1192
Debug.
Assert
(GetValue(BackStackProperty) == _ownJournalScope.BackStack);
1235
Debug.
Assert
(JournalEntry.GetType().IsSerializable);
1265
Debug.
Assert
(_journalOwnership == JournalOwnership.OwnsJournal);
1361
Debug.
Assert
(_ownJournalScope == null ^ _journalOwnership == JournalOwnership.OwnsJournal);
1394
Debug.
Assert
(_ownJournalScope == null ^ _journalOwnership == JournalOwnership.OwnsJournal);
src\Framework\System\Windows\Controls\Grid.cs (20)
486
Debug.
Assert
(DefinitionsU.Length > 0 && DefinitionsV.Length > 0);
746
Debug.
Assert
(DefinitionsU.Length > 0 && DefinitionsV.Length > 0);
994
Debug.
Assert
(0 <= cell.ColumnIndex && cell.ColumnIndex < DefinitionsU.Length);
995
Debug.
Assert
(0 <= cell.RowIndex && cell.RowIndex < DefinitionsV.Length);
1093
Debug.
Assert
(ExtData.DefinitionsU != null && ExtData.DefinitionsU.Length > 0);
1140
Debug.
Assert
(ExtData.DefinitionsV != null && ExtData.DefinitionsV.Length > 0);
1188
Debug.
Assert
(false);
1454
Debug.
Assert
(0 < count && 0 <= start && (start + count) <= definitions.Length);
1481
Debug.
Assert
(0 < count && 0 <= start && (start + count) <= definitions.Length);
1509
Debug.
Assert
(1 < count && 0 <= start && (start + count) <= definitions.Length);
1542
Debug.
Assert
( minSize <= preferredSize
1573
Debug.
Assert
(tempDefinitions[i].UserSize.IsAuto);
1582
Debug.
Assert
(!tempDefinitions[i].UserSize.IsAuto);
1590
Debug.
Assert
(_IsZero(sizeToDistribute));
1610
Debug.
Assert
(!tempDefinitions[i].UserSize.IsAuto);
1621
Debug.
Assert
(tempDefinitions[i].UserSize.IsAuto);
1630
Debug.
Assert
(_IsZero(sizeToDistribute));
2160
Debug.
Assert
(!definitions[i].IsShared || !definitions[i].UserSize.IsStar);
2234
Debug.
Assert
(nonStarIndex == starDefinitionsCount);
4109
Debug.
Assert
(grid != null);
src\Framework\System\Windows\Controls\GridSplitter.cs (2)
425
Debug.
Assert
(_decorator != null);
448
Debug.
Assert
(_decorator != null);
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (4)
642
Debug.
Assert
(column != null);
993
Debug.
Assert
(header != null || index != -1);
1077
Debug.
Assert
(header != null);
1086
Debug.
Assert
(header != null);
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (1)
289
Debug.
Assert
(column != null);
src\Framework\System\Windows\Controls\InkCanvas.cs (4)
2390
System.Diagnostics.Debug.
Assert
(_dynamicallySelectedStrokes.Contains(s));
2703
System.Diagnostics.Debug.
Assert
(object.ReferenceEquals(sender, DefaultDrawingAttributes));
2842
Debug.
Assert
(inkCanvas != null);
2921
Debug.
Assert
(inkCanvas != null);
src\Framework\System\Windows\Controls\InkPresenter.cs (3)
491
System.Diagnostics.Debug.
Assert
(sender == this.Strokes);
541
System.Diagnostics.Debug.
Assert
(stroke != null);
550
System.Diagnostics.Debug.
Assert
(stroke != null);
src\Framework\System\Windows\Controls\ItemCollection.cs (12)
733
Debug.
Assert
(_deferLevel == 0 || _collectionView == null || _deferInnerRefresh != null);
736
Debug.
Assert
(_deferLevel != 0 || _deferInnerRefresh == null);
1575
Debug.
Assert
(_isInitializing == false);
1583
Debug.
Assert
(_isInitializing == true);
1930
Debug.
Assert
(sender == _collectionView);
1936
Debug.
Assert
(sender == _collectionView);
1963
Debug.
Assert
(_collectionView != null);
1974
Debug.
Assert
(_collectionView == null || _deferInnerRefresh != null);
2204
Debug.
Assert
(e.NewStartingIndex >= 0);
2215
Debug.
Assert
(e.OldStartingIndex >= 0);
2223
Debug.
Assert
(e.OldStartingIndex >= 0);
2233
Debug.
Assert
(e.OldStartingIndex >= 0);
src\Framework\System\Windows\Controls\ItemsControl.cs (1)
3102
Debug.
Assert
(direction == FocusNavigationDirection.Up ||
src\Framework\System\Windows\Controls\PasswordTextNavigator.cs (1)
303
Debug.
Assert
(false);
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (11)
232
Debug.
Assert
(false);
397
Debug.
Assert
(mode != CalendarMode.Month);
469
Debug.
Assert
(false);
551
Debug.
Assert
(e != null);
569
Debug.
Assert
(b != null);
685
Debug.
Assert
(selectedDate != null);
930
Debug.
Assert
(this.Owner.DisplayMode == CalendarMode.Year);
1060
Debug.
Assert
(childButton != null);
1251
Debug.
Assert
(childButton != null);
1298
Debug.
Assert
(childButton != null);
1308
Debug.
Assert
(this.Owner.DisplayDateInternal != null);
src\Framework\System\Windows\Controls\Primitives\DataGridRowHeader.cs (1)
495
Debug.
Assert
(stateCode != DATAGRIDROWHEADER_stateNullCode);
src\Framework\System\Windows\Controls\Primitives\DatePickerTextBox.cs (1)
168
Debug.
Assert
(e.NewValue is bool);
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (4)
246
Debug.
Assert
(menu.HasPushedMenuMode);
915
Debug.
Assert
(_pushedMenuMode == null);
917
Debug.
Assert
(_pushedMenuMode != null);
932
Debug.
Assert
(_pushedMenuMode != null);
src\Framework\System\Windows\Controls\Primitives\Popup.cs (1)
2504
Debug.
Assert
(i >= 0 && i < GetNumberOfCombinations(placement));
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (2)
812
Debug.
Assert
(IsScrollClient);
847
Debug.
Assert
(IsScrollClient);
src\Framework\System\Windows\Controls\Primitives\Selector.cs (9)
603
Debug.
Assert
(String.IsNullOrEmpty(path) || path == "/InnerText");
1556
Debug.
Assert
(IsSynchronizedWithCurrentItemPrivate);
1584
Debug.
Assert
(IsSynchronizedWithCurrentItemPrivate);
2228
Debug.
Assert
(String.IsNullOrEmpty(path) || path == "/InnerText");
2327
Debug.
Assert
(_owner.CheckAccess());
2340
Debug.
Assert
(_owner.CheckAccess());
2550
Debug.
Assert
(_owner.CheckAccess());
2607
Debug.
Assert
(_owner.CheckAccess());
2646
Debug.
Assert
(_owner.CheckAccess());
src\Framework\System\Windows\Controls\ScrollViewer.cs (2)
1781
Debug.
Assert
(_panningInfo != null);
1915
Debug.
Assert
(_panningInfo != null);
src\Framework\System\Windows\Controls\SelectedDatesCollection.cs (3)
415
Debug.
Assert
(false);
433
Debug.
Assert
(!_isAddingRange);
439
Debug.
Assert
(_isAddingRange);
src\Framework\System\Windows\Controls\SoundPlayerAction.cs (2)
159
Debug.
Assert
(m_player.IsLoadCompleted);
244
Debug.
Assert
(m_player.IsLoadCompleted);
src\Framework\System\Windows\Controls\Stack.cs (2)
820
Debug.
Assert
(measureElement.IsScrolling);
845
Debug.
Assert
(logicalOffset == 0 || (logicalOffset > 0 && logicalOffset < children.Count));
src\Framework\System\Windows\Controls\TextBlock.cs (23)
1504
Debug.
Assert
(lineCount == LineCount);
1620
Debug.
Assert
(lineCount == LineCount);
1776
Debug.
Assert
(lineCount == LineCount);
1883
Debug.
Assert
(lineCount == LineCount);
1888
Debug.
Assert
(lineIndex < lineCount);
1899
Debug.
Assert
(lineCount == LineCount);
1901
Debug.
Assert
(lineIndex < lineCount);
1927
Debug.
Assert
(lineBounds.Count > 0);
2152
Debug.
Assert
(lineCount == LineCount);
2294
Debug.
Assert
(lineCount == LineCount);
2567
Debug.
Assert
(lineIndex > 0);
2570
Debug.
Assert
(dcp >= 0);
2585
Debug.
Assert
(lineIndex < lineCount - 1);
2695
Debug.
Assert
(lineIndex > 0);
2698
Debug.
Assert
(dcp >= 0);
3405
Debug.
Assert
(IsLayoutDataValid);
3406
Debug.
Assert
(CheckFlags(Flags.RequiresAlignment));
3424
Debug.
Assert
(lineCount == LineCount);
3598
Debug.
Assert
(lineCount == LineCount);
3635
Debug.
Assert
(e != null);
3638
Debug.
Assert
(_complexContent.TextContainer is TextContainer);
3909
Debug.
Assert
(owner != null);
3910
Debug.
Assert
(textContainer != null);
src\Framework\System\Windows\Controls\VirtualizedCellInfoCollection.cs (10)
982
Debug.
Assert
(rowIndex >= 0);
1010
Debug.
Assert
(rowIndex >= 0);
1049
Debug.
Assert
(rowIndex >= 0);
1065
Debug.
Assert
(oldIndex >= 0);
1066
Debug.
Assert
(newIndex >= 0);
1155
Debug.
Assert
(columnIndex >= 0);
1198
Debug.
Assert
(columnIndex >= 0);
1237
Debug.
Assert
(columnIndex >= 0);
1256
Debug.
Assert
(oldIndex >= 0);
1257
Debug.
Assert
(newIndex >= 0);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (4)
3650
Debug.
Assert
(args.Action == NotifyCollectionChangedAction.Reset && args.ItemCount == 1);
9200
Debug.
Assert
(_cleanupDelay != null);
9221
Debug.
Assert
(_cleanupOperation != null);
9310
Debug.
Assert
(startIndex >= 0 && count > 0);
src\Framework\System\Windows\Controls\WebBrowser.cs (2)
720
Debug.
Assert
(clsid.ToString("D") == CLSID.WebBrowser);
772
Debug.
Assert
(_axIWebBrowser2 != null);
src\Framework\System\Windows\Data\BindingListCollectionView.cs (1)
746
Debug.
Assert
(true);
src\Framework\System\Windows\Data\ObjectDataProvider.cs (4)
166
Debug.
Assert
((_objectInstance == null) ? (_objectType == null) : (_objectType == _objectInstance.GetType()));
353
Debug.
Assert
(_mode != SourceMode.FromType);
454
Debug.
Assert
(_objectType != null);
523
Debug.
Assert
(_objectType != null);
src\Framework\System\Windows\Data\RelativeSource.cs (3)
176
Debug.
Assert
(_mode == RelativeSourceMode.FindAncestor);
214
Debug.
Assert
((!IsUninitialized) || (_mode == RelativeSourceMode.FindAncestor));
278
Debug.
Assert
(IsUninitialized);
src\Framework\System\Windows\Data\XmlDataProvider.cs (1)
772
Debug.
Assert
(doc != null);
src\Framework\System\Windows\Documents\AdornerLayer.cs (2)
654
Debug.
Assert
(adorner != null);
727
Debug.
Assert
(element != null);
src\Framework\System\Windows\Documents\ChildDocumentBlock.cs (4)
53
Debug.
Assert
(childContainer != null);
60
Debug.
Assert
(docRef != null);
78
Debug.
Assert
(newBlock != null);
133
Debug.
Assert
(ChildContainer.Highlights.GetLayer(typeof(TextSelection)) == null);
src\Framework\System\Windows\Documents\ColumnResizeAdorner.cs (1)
46
Debug.
Assert
(scope != null);
src\Framework\System\Windows\Documents\CompositionAdorner.cs (1)
61
Debug.
Assert
(textView != null && textView.RenderScope != null);
src\Framework\System\Windows\Documents\DocumentSequence.cs (9)
274
Debug.
Assert
(innerDP != null);
298
Debug.
Assert
(innerDP != null);
595
Debug.
Assert
(docRef != null);
602
Debug.
Assert
(paginator != null);
610
Debug.
Assert
(paginator != null);
1094
Debug.
Assert
(documentSequence != null);
1095
Debug.
Assert
(documentPaginator != null);
1096
Debug.
Assert
(documentPage != null);
1207
Debug.
Assert
(false);
src\Framework\System\Windows\Documents\DocumentSequenceHighlightLayer.cs (1)
82
Debug.
Assert
(ranges.Count > 0);
src\Framework\System\Windows\Documents\DocumentSequenceTextContainer.cs (12)
49
Debug.
Assert
(parent != null);
50
Debug.
Assert
(parent is FixedDocumentSequence);
237
Debug.
Assert
(_start != null);
250
Debug.
Assert
(_end != null);
405
Debug.
Assert
(docRef != null);
521
Debug.
Assert
(_parent != null);
670
Debug.
Assert
(sender != null);
671
Debug.
Assert
(args != null);
672
Debug.
Assert
(args.Ranges != null);
721
Debug.
Assert
(args.Ranges.Count > 0 && ((TextSegment)args.Ranges[0]).Start.CompareTo(((TextSegment)args.Ranges[0]).End) < 0);
1015
Debug.
Assert
(parentTextPointer != null);
1038
Debug.
Assert
(parentChangePosition != null);
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (7)
42
Debug.
Assert
(childBlock != null);
43
Debug.
Assert
(childPosition != null);
573
Debug.
Assert
(_childTp != null);
914
Debug.
Assert
(direction == LogicalDirection.Backward);
959
Debug.
Assert
(tp != null);
971
Debug.
Assert
(thisTp.ChildBlock.ChildContainer == tp.ChildBlock.ChildContainer);
1015
Debug.
Assert
(xGapAwareCompareTo(tp1, tp2) <= 0);
src\Framework\System\Windows\Documents\FixedDocument.cs (9)
363
Debug.
Assert
(page != null);
692
Debug.
Assert
(IsValidPageIndex(index));
738
Debug.
Assert
(fp != null);
1075
Debug.
Assert
(sender != null);
1076
Debug.
Assert
(args != null);
1077
Debug.
Assert
(args.Ranges != null);
1080
Debug.
Assert
(args.Ranges.Count > 0 && ((TextSegment)args.Ranges[0]).Start.CompareTo(((TextSegment)args.Ranges[0]).End) < 0);
1208
Debug.
Assert
(pageNo >= 0 && pageNo<PageCount);
1401
Debug.
Assert
(panel != null && page != null);
src\Framework\System\Windows\Documents\FixedElement.cs (2)
204
Debug.
Assert
(_object == null && e._type == ElementType.Object);
267
Debug.
Assert
(false);
src\Framework\System\Windows\Documents\FixedFindEngine.cs (13)
41
Debug.
Assert
(start != null);
42
Debug.
Assert
(end != null);
43
Debug.
Assert
( ((start is DocumentSequenceTextPointer) && (end is DocumentSequenceTextPointer)) ||
45
Debug.
Assert
(findPattern != null);
54
Debug.
Assert
(paginator != null);
94
Debug.
Assert
(firstSearchPageStart != null);
95
Debug.
Assert
(firstSearchPageEnd != null);
129
Debug.
Assert
(fixedDoc != null);
316
Debug.
Assert
(endAsFTP != null);
336
Debug.
Assert
(startAsFTP != null);
348
Debug.
Assert
(doc != null);
349
Debug.
Assert
(translatedPageNo >= 0 && translatedPageNo < doc.PageCount);
374
Debug.
Assert
(pageStream != null);
src\Framework\System\Windows\Documents\FixedFlowMap.cs (2)
144
Debug.
Assert
(fp >= 0 && fp < _flowOrder.Count);
176
Debug.
Assert
(flowOld.Type == FlowNodeType.Virtual || flowNew != null);
src\Framework\System\Windows\Documents\FixedHighlight.cs (3)
46
Debug.
Assert
(element != null && beginOffset >= 0 && endOffset >= 0);
146
Debug.
Assert
(_gBeginOffset >= 0);
147
Debug.
Assert
(_gEndOffset <= chrct);
src\Framework\System\Windows\Documents\FixedNode.cs (5)
89
Debug.
Assert
(childLevels >= 1);
105
Debug.
Assert
(childPath != null);
144
Debug.
Assert
(path != null && path.Length >= 2); // At least a page index and an element index
354
Debug.
Assert
(level < _path.Length);
365
Debug.
Assert
(_path.Length >= 2);
src\Framework\System\Windows\Documents\FixedPage.cs (3)
894
Debug.
Assert
(e != null);
930
Debug.
Assert
(currentLevelIndex >= 0 && currentLevelIndex <= ((Canvas)element).Children.Count);
1061
Debug.
Assert
(currentChildrens != null);
src\Framework\System\Windows\Documents\FixedPageStructure.cs (6)
45
Debug.
Assert
(pageIndex >= 0);
121
Debug.
Assert
(_lineResults != null);
159
Debug.
Assert
(_lineResults != null);
213
Debug.
Assert
(flowStart != null && flowStart.Type != FlowNodeType.Virtual);
214
Debug.
Assert
(flowEnd != null && flowEnd.Type != FlowNodeType.Virtual);
686
Debug.
Assert
(_fixedSOMPageConstructor != null);
src\Framework\System\Windows\Documents\FixedSOMContainer.cs (7)
43
Debug.
Assert
(compared != null);
44
Debug.
Assert
(This != null);
52
Debug.
Assert
(compareHor != SpatialComparison.None);
53
Debug.
Assert
(compareVer != SpatialComparison.None);
109
Debug.
Assert
(false);
116
Debug.
Assert
(false);
233
Debug.
Assert
(container != null);
src\Framework\System\Windows\Documents\FixedSOMGroup.cs (5)
45
Debug.
Assert
(compared != null);
56
Debug.
Assert
(compareHor != SpatialComparison.None);
57
Debug.
Assert
(compareVer != SpatialComparison.None);
108
Debug.
Assert
(false);
115
Debug.
Assert
(false);
src\Framework\System\Windows\Documents\FixedSOMImage.cs (1)
75
Debug.
Assert
(path.Fill is ImageBrush);
src\Framework\System\Windows\Documents\FixedSOMLineCollection.cs (2)
65
Debug.
Assert
(point1.X == point2.X);
71
Debug.
Assert
(point1.Y == point2.Y);
src\Framework\System\Windows\Documents\FixedSOMPageConstructor.cs (10)
232
Debug.
Assert
(fixedPage != null);
246
Debug.
Assert
(_fixedPage != null);
251
Debug.
Assert
(obj != null);
382
Debug.
Assert
(obj is Image || obj is Path);
412
Debug.
Assert
(glyphs != null);
587
Debug.
Assert
(fixedBlock.SemanticBoxes.Count > 0);
642
Debug.
Assert
(textRunRect.Height != 0 && fixedBlock.LineHeight != 0);
1019
Debug.
Assert
(false);
1146
Debug.
Assert
(currentPageElement != null);
1156
Debug.
Assert
(nextPageElement != null);
src\Framework\System\Windows\Documents\FixedSOMSemanticBox.cs (3)
100
Debug.
Assert
(o != null);
110
Debug.
Assert
(compareHor != SpatialComparison.None && compareVer != SpatialComparison.None);
306
Debug.
Assert
(false);
src\Framework\System\Windows\Documents\FixedSOMTable.cs (2)
175
Debug.
Assert
(row != null);
191
Debug.
Assert
(row != null);
src\Framework\System\Windows\Documents\FixedSOMTextRun.cs (1)
49
Debug.
Assert
(otherRun != null);
src\Framework\System\Windows\Documents\FixedTextBuilder.cs (23)
202
Debug.
Assert
(!_IsBoundaryPage(pageIndex));
220
Debug.
Assert
(page != null);
221
Debug.
Assert
(page.IsInitialized);
390
Debug.
Assert
(fn.Type == FlowNodeType.Start);
483
Debug.
Assert
(pStart.CompareTo(pEnd) < 0);
522
Debug.
Assert
(fixes.Length == 1);
599
Debug.
Assert
(flowNode.Type == FlowNodeType.Run);
603
Debug.
Assert
(flowNode.Type == FlowNodeType.Run);
604
Debug.
Assert
(fixes != null);
817
Debug.
Assert
(pathPrefix != null);
840
Debug.
Assert
(prevRun != null);
841
Debug.
Assert
(currentRun != null);
1022
Debug.
Assert
(pathPrefix == null);
1023
Debug.
Assert
(level1Index >= 0);
1033
Debug.
Assert
(newPathPrefix != null);
1104
Debug.
Assert
(false);
1309
Debug.
Assert
(false);
1332
Debug.
Assert
(e is Image);
1430
Debug.
Assert
(elem is FixedPage || elem is Canvas);
1582
Debug.
Assert
(false);
1696
Debug.
Assert
(run.EndIndex - run.StartIndex == run.Text.Length);
1773
Debug.
Assert
(uiElement != null);
1794
Debug.
Assert
(newLineResult != null);
src\Framework\System\Windows\Documents\FixedTextContainer.cs (8)
54
Debug.
Assert
(parent != null && parent is FixedDocument);
206
Debug.
Assert
(_start != null);
219
Debug.
Assert
(_end != null);
401
Debug.
Assert
(res);
417
Debug.
Assert
(highlights != null);
535
Debug.
Assert
(_fixedTextBuilder != null);
544
Debug.
Assert
(_containerElement != null);
627
Debug.
Assert
(start.CompareTo(end) <= 0);
src\Framework\System\Windows\Documents\FixedTextView.cs (11)
130
Debug.
Assert
(pos != null);
178
Debug.
Assert
(ftp != null);
256
Debug.
Assert
(startPosition != null && this.Contains(startPosition));
257
Debug.
Assert
(endPosition != null && this.Contains(endPosition));
422
Debug.
Assert
(pos != null);
481
Debug.
Assert
(false);
879
Debug.
Assert
(itp != null);
977
Debug.
Assert
(hitGlyphs != null);
1029
Debug.
Assert
(charStart - charCount == 1);
1040
Debug.
Assert
(charEnd - charCount == 1);
1147
Debug.
Assert
(symbolType == TextPointerContext.Text || symbolType == TextPointerContext.EmbeddedElement);
src\Framework\System\Windows\Documents\FlowNode.cs (2)
58
Debug.
Assert
( (type != FlowNodeType.Run) || ((int)cookie != 0));
103
Debug.
Assert
(_fp != fn._fp || (_fp == fn._fp) && (_scopeId == fn._scopeId));
src\Framework\System\Windows\Documents\FlowPosition.cs (12)
46
Debug.
Assert
(!FlowNode.IsNull(node));
138
Debug.
Assert
(flow != null);
185
Debug.
Assert
(dir == LogicalDirection.Forward || dir == LogicalDirection.Backward);
193
Debug.
Assert
(GetPointerContext(dir) == TextPointerContext.Text);
210
Debug.
Assert
(GetPointerContext(dir) == TextPointerContext.Text);
251
Debug.
Assert
(type == FlowNodeType.Object || type == FlowNodeType.Noop || type == FlowNodeType.Start || type == FlowNodeType.End);
382
Debug.
Assert
(this._OverlapAwareCompare(pEnd) < 0);
435
Debug.
Assert
(dir == LogicalDirection.Backward);
593
Debug.
Assert
(dir == LogicalDirection.Backward);
643
Debug.
Assert
(dir == LogicalDirection.Backward);
733
Debug.
Assert
(flow != null);
761
Debug.
Assert
(this._flowNode.Equals(flow._flowNode));
src\Framework\System\Windows\Documents\Glyphs.cs (4)
81
Debug.
Assert
(_glyphRunProperties != null);
255
Debug.
Assert
(glyphRunProperties.glyphIndices != null);
279
Debug.
Assert
(0 <= nibble && nibble <= 15);
358
Debug.
Assert
(parsedGlyphs.Count == glyphCount);
src\Framework\System\Windows\Documents\HighlightVisual.cs (4)
179
Debug.
Assert
(highlights != null);
248
Debug.
Assert
(bg != null);
254
Debug.
Assert
(highlightGeometry != null);
272
Debug.
Assert
(highlightGeometry != null);
src\Framework\System\Windows\Documents\Hyperlink.cs (1)
588
Debug.
Assert
(targetUri != null);
src\Framework\System\Windows\Documents\ImmComposition.cs (2)
376
Debug.
Assert
((oldSource == null) || (oldSource == _source));
411
Debug.
Assert
(newSource == _source);
src\Framework\System\Windows\Documents\NullTextContainer.cs (2)
186
Debug.
Assert
(_start != null);
199
Debug.
Assert
(_end != null);
src\Framework\System\Windows\Documents\NullTextNavigator.cs (5)
52
Debug.
Assert
(position is NullTextPointer || position is NullTextPointer);
68
Debug.
Assert
(position is NullTextPointer || position is NullTextPointer);
201
Debug.
Assert
(distance == 0);
318
Debug.
Assert
(false); // must never call this
326
Debug.
Assert
(false); // must never call this
src\Framework\System\Windows\Documents\PageContentAsyncResult.cs (2)
67
Debug.
Assert
(source == null || source.IsAbsoluteUri);
106
get { Debug.
Assert
(false); return null; }
src\Framework\System\Windows\Documents\RtfToXamlLexer.cs (1)
424
Debug.
Assert
(false);
src\Framework\System\Windows\Documents\RtfToXamlReader.cs (39)
2754
Debug.
Assert
(HasBorder);
5204
Debug.
Assert
(dnRow != null); // Need row
5205
Debug.
Assert
(dnRow != null && !dnRow.IsPending); // Row props attached when row is closed
5206
Debug.
Assert
(dnRow != null && dnRow.FormatState.RowFormat != null);
5654
Debug.
Assert
(Type == DocumentNodeType.dnTable);
5983
Debug.
Assert
(value >= 0);
5984
Debug.
Assert
(!IsPending);
6045
Debug.
Assert
(value == null || !value.IsPending);
6314
Debug.
Assert
(nUnfilledRowIndex != 0);
6406
Debug.
Assert
(nStart + nChild < Count);
6491
Debug.
Assert
(Count == 0 || (nStart >= 0 && nStart < Count));
6502
Debug.
Assert
(nStart + nChild < Count);
6520
Debug.
Assert
(nAt + dn.ChildCount <= nEnd);
6521
Debug.
Assert
(!dn.IsTerminated);
6530
Debug.
Assert
(dnChild.ChildCount == 0 && dnChild.IsTerminated);
6552
Debug.
Assert
(Count == 0 || (nStart >= 0 && nStart < Count));
6563
Debug.
Assert
(nStart + nChild < Count);
6581
Debug.
Assert
(nAt + dn.ChildCount <= nEnd);
6582
Debug.
Assert
(!dn.IsTerminated);
6594
Debug.
Assert
(dnChild.ChildCount == 0 && dnChild.IsTerminated);
6619
Debug.
Assert
(Count == 0 || (index >= 0 && index < Count));
6620
Debug.
Assert
(index + nChildCount < Count);
6649
Debug.
Assert
(Count == 0 || (index >= 0 && index < Count));
6691
Debug.
Assert
(EntryAt(i).ClosedParent != null);
6694
Debug.
Assert
(nAt + dn.ChildCount < Count);
6698
Debug.
Assert
(dnPa.IsPending || (nAt > dnPa.Index && nAt <= dnPa.Index + dnPa.ChildCount));
6716
Debug.
Assert
(dnPa != null && dnPa.Type == DocumentNodeType.dnTable);
6719
Debug.
Assert
(dnPa != null && dnPa.Type == DocumentNodeType.dnTableBody);
6722
Debug.
Assert
(dnPa != null && dnPa.Type == DocumentNodeType.dnRow);
6725
Debug.
Assert
(dnPa != null && dnPa.Type == DocumentNodeType.dnList);
6991
Debug.
Assert
(false);
7168
Debug.
Assert
(_fMain);
7215
Debug.
Assert
(dnPa.LastChildIndex >= nAt + nExcise - 1);
8293
Debug.
Assert
(dn.ChildCount == 0);
8324
Debug.
Assert
(dn.ChildCount == 0);
9961
Debug.
Assert
(nInsertAt >= 0 && nChildren > 0 && nInsertAt + nChildren - 1 < dna.Count);
11172
Debug.
Assert
(dna.Count > 0 && dna.EntryAt(dna.Count - 1).Type == DocumentNodeType.dnParagraph);
11387
Debug.
Assert
(!dnPara.IsTerminated);
11610
Debug.
Assert
(!dnTop.IsTerminated);
src\Framework\System\Windows\Documents\RubberbandSelector.cs (2)
421
Debug.
Assert
(range.first != null && range.second != null);
576
Debug.
Assert
(end >= begin);
src\Framework\System\Windows\Documents\Table.cs (2)
441
Debug.
Assert
(table != null);
493
Debug.
Assert
(_currentChildType != ChildrenTypes.BeforeFirst);
src\Framework\System\Windows\Documents\TableCell.cs (1)
413
Debug.
Assert
(value >= -1 && _parentIndex != value);
src\Framework\System\Windows\Documents\TableColumn.cs (1)
178
Debug.
Assert
(value >= -1 && _parentIndex != value);
src\Framework\System\Windows\Documents\TableRow.cs (5)
212
Debug.
Assert
(rowSpanVector != null);
239
Debug.
Assert
(i <= firstAvailableIndex);
259
Debug.
Assert
(_spannedCells != null);
269
Debug.
Assert
(_cells.Count <= _formatCellCount);
325
Debug.
Assert
(value >= -1 && _parentIndex != value);
src\Framework\System\Windows\Documents\TableRowGroup.cs (1)
276
Debug.
Assert
(value >= -1 && _parentIndex != value);
src\Framework\System\Windows\Documents\XamlToRtfWriter.cs (3)
233
Debug.
Assert
(openLists.Count > 0);
407
Debug.
Assert
(openLists.Count > 0);
438
Debug.
Assert
(openLists.Count > 0);
src\Framework\System\Windows\EventTrigger.cs (1)
310
Debug.
Assert
( eventTrigger._routedEventHandler == null && eventTrigger._source == null);
src\Framework\System\Windows\FrameworkContentElement.cs (7)
658
Debug.
Assert
(entry.Value == DependencyProperty.UnsetValue);
1493
Debug.
Assert
((uint)InternalFlags.InheritanceBehavior0 == 0x08);
1494
Debug.
Assert
((uint)InternalFlags.InheritanceBehavior1 == 0x10);
1495
Debug.
Assert
((uint)InternalFlags.InheritanceBehavior2 == 0x20);
1508
Debug.
Assert
((uint)InternalFlags.InheritanceBehavior0 == 0x08);
1509
Debug.
Assert
((uint)InternalFlags.InheritanceBehavior1 == 0x10);
1510
Debug.
Assert
((uint)InternalFlags.InheritanceBehavior2 == 0x20);
src\Framework\System\Windows\FrameworkElement.cs (12)
1943
Debug.
Assert
( IsTemplatedParentAnFE );
2351
Debug.
Assert
( foTemplatedParent.IsFE );
2617
Debug.
Assert
((uint)InternalFlags.InheritanceBehavior0 == 0x08);
2618
Debug.
Assert
((uint)InternalFlags.InheritanceBehavior1 == 0x10);
2619
Debug.
Assert
((uint)InternalFlags.InheritanceBehavior2 == 0x20);
2632
Debug.
Assert
((uint)InternalFlags.InheritanceBehavior0 == 0x08);
2633
Debug.
Assert
((uint)InternalFlags.InheritanceBehavior1 == 0x10);
2634
Debug.
Assert
((uint)InternalFlags.InheritanceBehavior2 == 0x20);
2991
Debug.
Assert
(fe != null || fce != null);
3033
Debug.
Assert
( feTemplatedParent != null );
4103
Debug.
Assert
(sourceTransform != null);
4112
Debug.
Assert
(_transform != null);
src\Framework\System\Windows\FrameworkElementFactory.cs (2)
747
Debug.
Assert
( _frameworkTemplate != null );
823
Debug.
Assert
( _frameworkTemplate != null );
src\Framework\System\Windows\FrameworkTemplate.cs (2)
777
Debug.
Assert
(fo.TemplatedParent == templatedParent);
1169
Debug.
Assert
(!(rootElement is FrameworkElement) ||
src\Framework\System\Windows\Input\KeyboardNavigation.cs (2)
3207
Debug.
Assert
(DoubleUtil.GreaterThanOrClose(rangeEnd1, rangeStart1));
3208
Debug.
Assert
(DoubleUtil.GreaterThanOrClose(rangeEnd2, rangeStart2));
src\Framework\System\Windows\Interop\DocobjHost.cs (2)
85
Debug.
Assert
(_mainThread.ApartmentState == ApartmentState.STA);
120
Debug.
Assert
(lease.CurrentState == LeaseState.Initial);
src\Framework\System\Windows\Localization.cs (1)
133
Debug.
Assert
(property == AttributesProperty);
src\Framework\System\Windows\Markup\Baml2006\Baml2006KeyRecord.cs (1)
68
Debug.
Assert
(StaticResources[StaticResources.Count - 1] is StaticResource);
src\Framework\System\Windows\Markup\Baml2006\Baml2006Reader.cs (4)
1549
Debug.
Assert
(dataByteSize == 1);
1689
Debug.
Assert
(ownerType != null);
1979
Debug.
Assert
(sr != null);
2619
Debug.
Assert
(property.Type.UnderlyingType == typeof(DependencyProperty));
src\Framework\System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (1)
192
Debug.
Assert
(wpfMember.DependencyProperty != null);
src\Framework\System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (2)
140
Debug.
Assert
(bamlType != null);
170
Debug.
Assert
(bamlMember != null);
src\Framework\System\Windows\Markup\Baml2006\WpfXamlMember.cs (1)
128
Debug.
Assert
(!IsAttachable && !IsEvent);
src\Framework\System\Windows\Markup\BamlMapTable.cs (18)
92
Debug.
Assert
(null != xamlTypeMapper);
168
Debug.
Assert
(cmp > 0);
274
Debug.
Assert
(type.IsEnum);
279
Debug.
Assert
(ReflectionHelper.IsNullableType(type));
561
Debug.
Assert
(propType.IsEnum);
572
Debug.
Assert
(ReflectionHelper.IsNullableType(propType));
630
Debug.
Assert
(-id <= _knownStrings.Length);
635
Debug.
Assert
(id < StringIdMap.Count);
872
Debug.
Assert
(memberId < 0);
1104
Debug.
Assert
(
1116
Debug.
Assert
(bamlAssemblyInfoRecord.AssemblyId >= 0);
1127
Debug.
Assert
(AssemblyIdMap.Count == record.AssemblyId ||
1279
Debug.
Assert
(TypeIdMap.Count == record.TypeId ||
1296
Debug.
Assert
(ownerTypeName != null);
1297
Debug.
Assert
(attributeName != null);
1514
Debug.
Assert
(targetType != null && memberName != null);
1656
Debug.
Assert
(AttributeIdMap.Count == record.AttributeId ||
1672
Debug.
Assert
(StringIdMap.Count == record.StringId ||
src\Framework\System\Windows\Markup\BamlRecordReader.cs (34)
116
Debug.
Assert
(null != bamlStream);
117
Debug.
Assert
(null != parserContext && null != parserContext.XamlTypeMapper);
142
Debug.
Assert
(null != parserContext && null != parserContext.XamlTypeMapper);
356
Debug.
Assert
(bamlRecord.RecordType == BamlRecordType.LinePosition);
558
Debug.
Assert
(bamlConnectionIdRecord.ConnectionId > 0);
570
Debug.
Assert
(0 == ReaderContextStack.Count); // if not zero we missed an EndElement
654
Debug.
Assert
(false);
743
Debug.
Assert
(ReaderFlags.DependencyObject == CurrentContext.ContextType);
831
Debug.
Assert
(ReaderFlags.DependencyObject == CurrentContext.ContextType ||
1038
Debug.
Assert
(_rootElement != null);
1088
Debug.
Assert
(null == ParentContext);
1257
Debug.
Assert
( CurrentContext.ContextType != ReaderFlags.PropertyComplexClr );
1258
Debug.
Assert
( CurrentContext.ContextType != ReaderFlags.PropertyComplexDP );
1310
Debug.
Assert
(CurrentContext.ContextType == ReaderFlags.ConstructorParams);
1340
Debug.
Assert
(parent is DependencyObject);
1460
Debug.
Assert
(param is String);
1503
Debug.
Assert
(paramString != null);
2145
Debug.
Assert
(serializerTypeId == (short)KnownElements.DependencyPropertyConverter);
2571
Debug.
Assert
(o is DependencyObject);
2788
Debug.
Assert
(element is DependencyObject);
3029
Debug.
Assert
(!holder.ReadOnly); // this is being checked in XamlReaderHelper, just assert
3054
Debug.
Assert
(arrayExt != null);
3173
Debug.
Assert
(holder.Collection == null);
3679
Debug.
Assert
(null != CurrentContext &&
3740
Debug.
Assert
(false); //
3749
Debug.
Assert
(currentTarget is DependencyObject);
3764
Debug.
Assert
(false); // We do not expect to be here after all checks done in propertyType identification above
3826
Debug.
Assert
(genericType != null);
3870
Debug.
Assert
(memberInfo is MethodInfo);
3886
Debug.
Assert
(null != CurrentContext &&
3936
Debug.
Assert
(null != CurrentContext &&
4952
Debug.
Assert
(contentProperty != null);
5819
Debug.
Assert
(_attributeInfo != null);
5918
Debug.
Assert
(this.AttachedPropertyGetter != null);
src\Framework\System\Windows\Markup\BamlRecords.cs (8)
777
Debug.
Assert
(null == _writeCache[(int)record.RecordType]);
917
Debug.
Assert
( value <= 3 && value >= 0 );
1110
Debug.
Assert
(RecordSize < 0);
2478
Debug.
Assert
(value <= ExtensionIdMask);
2817
Debug.
Assert
(!ValueObjectSet);
4795
Debug.
Assert
( SerializerTypeId != 0 );
4972
Debug.
Assert
(arr.Length == 3 && arr[0] != null && arr[1] != null);
5015
Debug.
Assert
(arr.Length == 3 && arr[0] != null && arr[1] != null);
src\Framework\System\Windows\Markup\BamlRecordWriter.cs (11)
125
Debug.
Assert
(null != DocumentStartRecord);
144
Debug.
Assert
(null != DocumentStartRecord);
416
Debug.
Assert
(_deferElementDepth == 0);
417
Debug.
Assert
(_deferComplexPropertyDepth == 0);
418
Debug.
Assert
(_staticResourceElementDepth == 0);
419
Debug.
Assert
(_dynamicResourceElementDepth == 0);
420
Debug.
Assert
(_staticResourceRecordList == null);
438
Debug.
Assert
(_staticResourceElementDepth == 0);
890
Debug.
Assert
(_deferElementDepth == 2);
1079
Debug.
Assert
(extensionTypeId != (short)KnownElements.TypeExtension);
1096
Debug.
Assert
(typeValue != null);
src\Framework\System\Windows\Markup\BamlWriter.cs (4)
409
Debug.
Assert
(typeValue != null);
1299
Debug.
Assert
(stackNode != null);
1307
Debug.
Assert
(stackNode != null);
1315
Debug.
Assert
(stackNode != null);
src\Framework\System\Windows\Markup\Localizer\BamlLocalizableResource.cs (1)
70
Debug.
Assert
(other != null);
src\Framework\System\Windows\Markup\MarkupExtensionParser.cs (2)
1205
Debug.
Assert
(sb.Length > 0);
1206
Debug.
Assert
(!Char.IsWhiteSpace(sb[0]));
src\Framework\System\Windows\Markup\Primitives\ElementMarkupObject.cs (4)
57
Debug.
Assert
(instance != null);
743
Debug.
Assert
(obj != null);
767
Debug.
Assert
(descriptor != null);
816
Debug.
Assert
(DO != null);
src\Framework\System\Windows\Markup\Primitives\FrameworkElementFactoryMarkupObject.cs (1)
35
Debug.
Assert
(factory != null);
src\Framework\System\Windows\Markup\Primitives\MarkupWriter.cs (4)
274
Debug.
Assert
( (object)key != null);
458
Debug.
Assert
(item != null && _writer != null);
847
Debug.
Assert
(property.PropertyDescriptor != null);
1051
Debug.
Assert
(property.Value != null);
src\Framework\System\Windows\Markup\XamlReader.cs (1)
1057
Debug.
Assert
(parent == null || root == parent);
src\Framework\System\Windows\Markup\XamlTypeMapper.cs (6)
950
Debug.
Assert
(propertyOwnerType != null);
979
Debug.
Assert
(attachedPropertyInfo.IsPublic ||
2221
Debug.
Assert
( propertyMember is DependencyProperty);
2403
Debug.
Assert
(memberName != null);
2406
Debug.
Assert
(memberInfo != null);
2421
Debug.
Assert
(targetType != null);
src\Framework\System\Windows\Markup\XmlnsDictionary.cs (1)
722
Debug.
Assert
(prefix != null);
src\Framework\System\Windows\Media\Animation\BeginStoryboard.cs (1)
188
Debug.
Assert
( frameworkTemplate != null );
src\Framework\System\Windows\Media\Animation\ControllableStoryboardAction.cs (1)
72
Debug.
Assert
( frameworkTemplate != null );
src\Framework\System\Windows\Media\Animation\Generated\ThicknessAnimation.cs (1)
220
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
src\Framework\System\Windows\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (1)
336
Debug.
Assert
(animationClock.CurrentState != ClockState.Stopped);
src\Framework\System\Windows\Media\Animation\Generated\ThicknessKeyFrameCollection.cs (1)
491
Debug.
Assert
(_keyFrames[index] != null);
src\Framework\System\Windows\Media\Animation\Storyboard.cs (1)
265
Debug.
Assert
( nameScope == null );
src\Framework\System\Windows\Navigation\Journal.cs (7)
271
Debug.
Assert
(ValidateIndexes());
281
Debug.
Assert
(ValidateIndexes());
297
Debug.
Assert
(journalEntry.ContentId != 0);
347
Debug.
Assert
(ValidateIndexes());
442
Debug.
Assert
(ValidateIndexes());
489
Debug.
Assert
(je.GetType().IsSerializable);
593
Debug.
Assert
(ValidateIndexes());
src\Framework\System\Windows\Navigation\JournalEntry.cs (2)
324
Debug.
Assert
(_jeGroupState.JournalDataStreams == null);
341
Debug.
Assert
(navMode == NavigationMode.Back || navMode == NavigationMode.Forward);
src\Framework\System\Windows\Navigation\NavigationService.cs (28)
290
Debug.
Assert
(IsConsistent(navInfo));
322
Debug.
Assert
(navMode != NavigationMode.Refresh); // because of !IsSameUri() above
343
Debug.
Assert
(_navStatus == NavigationStatus.Navigating);
520
Debug.
Assert
(!(_bp is Visual));
726
Debug.
Assert
(_parentNavigationService == newParent);
1005
Debug.
Assert
(_navigateQueueItem == null && _navStatus == NavigationStatus.Navigated);
1029
Debug.
Assert
(finishingChildPageFunction == null ||
1048
Debug.
Assert
(finishingChildPageFunction._Return == null);
1082
Debug.
Assert
(pfReturnInfo == null);
1088
Debug.
Assert
(pf.ParentPageFunctionId != Guid.Empty);
1127
Debug.
Assert
(IsConsistent(navInfo));
1152
Debug.
Assert
(!JournalScope.Journal.HasUncommittedNavigation);
1156
Debug.
Assert
(_navigateQueueItem == null);
1345
Debug.
Assert
(!JournalScope.Journal.HasUncommittedNavigation);
1362
Debug.
Assert
(navMode == NavigationMode.Back || navMode == NavigationMode.Forward);
1365
Debug.
Assert
(_contentId != 0);
1369
Debug.
Assert
(_journalEntryGroupState == null ||
2285
Debug.
Assert
(navigateInfo.IsConsistent);
2441
Debug.
Assert
(_navStatus == NavigationStatus.Navigated);
2784
Debug.
Assert
(sender == _bp);
3313
Debug.
Assert
(IsConsistent(navigateInfo));
3350
Debug.
Assert
(destinationJournalEntry == null
3433
Debug.
Assert
(_contentId != 0 &&
3976
Debug.
Assert
(ps._Resume); // should've been set by JournalEntryPFxx.ResumePageFunction()
4081
Debug.
Assert
(parentPF._Return == null);
4183
Debug.
Assert
(parentEntryIndex < journal.CurrentIndex);
4688
Debug.
Assert
(_postedOp == null);
4779
Debug.
Assert
(child != null);
src\Framework\System\Windows\Navigation\NavigationWindow.cs (2)
247
Debug.
Assert
(_navigationService == null && _JNS == null);
340
Debug.
Assert
(_JNS != null);
src\Framework\System\Windows\Navigation\PageFunction.cs (2)
279
Debug.
Assert
((returnEventArgs == null) || (ra != null));
283
Debug.
Assert
(eh != null);
src\Framework\System\Windows\PropertyPath.cs (1)
435
Debug.
Assert
(aryIPI.Length > 0);
src\Framework\System\Windows\ResourceDictionary.cs (9)
196
Debug.
Assert
(classicResourceUri != null);
210
Debug.
Assert
(genericResourceUri != null);
1099
Debug.
Assert
(deferrableContent.Stream != null);
1100
Debug.
Assert
(deferrableContent.SchemaContext != null);
1101
Debug.
Assert
(deferrableContent.ObjectWriterFactory != null);
1102
Debug.
Assert
(deferrableContent.ServiceProvider != null);
1103
Debug.
Assert
(deferrableContent.RootObject != null);
1281
Debug.
Assert
(staticResources != null && staticResources.Count > 0);
1319
Debug.
Assert
(obj is DeferredResourceReference);
src\Framework\System\Windows\ResourceReferenceExpression.cs (1)
552
Debug.
Assert
(!_resource.IsFrozen);
src\Framework\System\Windows\Shapes\Shape.cs (5)
637
Debug.
Assert
(mode != Stretch.None);
659
Debug.
Assert
(mode == Stretch.UniformToFill);
691
Debug.
Assert
(geometry != null);
731
Debug.
Assert
(geometry != null);
742
Debug.
Assert
(_renderedGeometry != null);
src\Framework\System\Windows\Shell\JumpList.cs (12)
561
Debug.
Assert
(_initializing == false);
796
Debug.
Assert
(removedList != null);
797
Debug.
Assert
(shellObject != null);
875
Debug.
Assert
(false);
885
Debug.
Assert
(shellObjects != null);
930
Debug.
Assert
(jumpItems.Count != 0);
931
Debug.
Assert
(cdl != null);
986
Debug.
Assert
(jumpItems.Count != linksOnlyList.Count);
992
Debug.
Assert
(HRESULT.DESTS_E_NO_MATCHING_ASSOC_HANDLER != hr);
1016
Debug.
Assert
(jumpTask != null);
1133
Debug.
Assert
(jumpPath != null);
1207
Debug.
Assert
(false);
src\Framework\System\Windows\Shell\ThumbButtonInfo.cs (1)
279
Debug.
Assert
(command != null);
src\Framework\System\Windows\StyleHelper.cs (52)
60
Debug.
Assert
(fe != null || fce != null);
99
Debug.
Assert
(fe != null || fce != null);
165
Debug.
Assert
((fe != null && fce == null)|| (fe == null && fce != null));
360
Debug.
Assert
(frameworkTemplate != null );
380
Debug.
Assert
( !frameworkTemplate.HasXamlNodeContent );
384
Debug.
Assert
(frameworkTemplate != null);
425
Debug.
Assert
( frameworkTemplate != null );
779
Debug.
Assert
(childIndex >= 0);
1287
Debug.
Assert
( childIndex != 0 ); // This should go to the other AddDelegateToFireTrigger overload
1345
Debug.
Assert
((fe != null && fce == null) || (fe == null && fce != null));
1377
Debug.
Assert
((fe != null && fce == null) || (fe == null && fce != null));
1378
Debug.
Assert
((fe != null && fe == container) || (fce != null && fce == container));
1379
Debug.
Assert
(newStyle != null || newFrameworkTemplate != null );
1441
Debug.
Assert
((fe != null && fce == null) || (fe == null && fce != null));
1442
Debug.
Assert
((fe != null && fe == container) || (fce != null && fce == container));
1443
Debug.
Assert
(oldStyle != null || oldFrameworkTemplate != null );
1677
Debug.
Assert
(oldStyle != null || oldFrameworkTemplate != null );
1695
Debug.
Assert
(dataField == ThemeStyleDataField);
1777
Debug.
Assert
(frameworkTemplate != null );
2051
Debug.
Assert
(frameworkTemplate != null );
2189
Debug.
Assert
(feContainer != null || fceContainer != null);
2224
Debug.
Assert
(oldFrameworkTemplate != null );
2273
Debug.
Assert
( oldFrameworkTemplate != null );
2487
Debug.
Assert
( feTemplatedParent != null );
2511
Debug.
Assert
(ownerStyle != null || frameworkTemplate != null );
2523
Debug.
Assert
( frameworkTemplate != null );
2892
Debug.
Assert
(dataField == ThemeStyleDataField);
3158
Debug.
Assert
(fe != null || fce != null);
3240
Debug.
Assert
(fe != null || fce != null);
3312
Debug.
Assert
(feContainer != null);
3321
Debug.
Assert
(feContainer != null);
3361
Debug.
Assert
(feContainer != null);
3384
Debug.
Assert
(feContainer != null);
3412
Debug.
Assert
(feContainer != null);
3456
Debug.
Assert
(fe != null || fce != null);
3457
Debug.
Assert
(container == fe || container == fce);
3497
Debug.
Assert
(fe != null || fce != null);
3498
Debug.
Assert
(container == fe || container == fce);
3907
Debug.
Assert
(sourceType == ValueLookupType.Simple ||
3937
Debug.
Assert
(sourceType == ValueLookupType.Trigger ||
3991
Debug.
Assert
(sourceType == ValueLookupType.Simple ||
4201
Debug.
Assert
(child.FE != null || child.FCE != null);
4310
Debug.
Assert
(ownerStyle != null || frameworkTemplate != null );
4382
Debug.
Assert
(ownerStyle != null || frameworkTemplate != null );
4553
Debug.
Assert
( ft != null );
5316
Debug.
Assert
(frameworkTemplate != null );
5323
Debug.
Assert
(frameworkTemplate != null);
5347
Debug.
Assert
(frameworkTemplate != null);
5392
Debug.
Assert
(frameworkTemplate != null );
5397
Debug.
Assert
(frameworkTemplate != null);
5453
Debug.
Assert
(
5559
Debug.
Assert
(routedEvent != null);
src\Framework\System\Windows\SystemResources.cs (7)
1135
Debug.
Assert
(hwndDpiInfo == hwndDpiInfoKey);
1163
Debug.
Assert
(_hwndNotify != null);
1164
Debug.
Assert
(_hwndNotifyHook != null);
1165
Debug.
Assert
(callerName.Equals(nameof(EnsureResourceChangeListener), StringComparison.InvariantCulture));
1194
Debug.
Assert
(hwndDpiInfo.DpiAwarenessContextValue == dpiContextValue);
1641
Debug.
Assert
(hwndDpiInfo != null);
1901
Debug.
Assert
(_inflatedList != null);
src\Framework\System\Windows\SystemThemeKey.cs (1)
31
Debug.
Assert
(id > SystemResourceKeyID.InternalSystemThemeStylesStart &&
src\Framework\System\Windows\TemplateContent.cs (10)
39
Debug.
Assert
(_xamlType == null);
247
Debug.
Assert
(TemplateLoadData.Reader != null);
680
Debug.
Assert
(sharedValue != null);
820
Debug.
Assert
(xamlReader.NodeType == Xaml.XamlNodeType.StartObject);
821
Debug.
Assert
(xamlReader.Type.UnderlyingType == typeof(StaticResourceExtension));
843
Debug.
Assert
(resource != null);
866
Debug.
Assert
(xamlReader.NodeType == System.Xaml.XamlNodeType.StartMember);
961
Debug.
Assert
(xamlReader.NodeType == System.Xaml.XamlNodeType.StartObject);
1220
Debug.
Assert
(xamlReader.NodeType == System.Xaml.XamlNodeType.EndMember);
1299
Debug.
Assert
(templateChildName != null);
src\Framework\System\Windows\TemplateNameScope.cs (2)
165
Debug.
Assert
(_affectedChildren.Count == childIndex);
215
Debug.
Assert
(fo.IsFE);
src\Framework\System\Windows\TriggerActionCollection.cs (1)
281
Debug.
Assert
(Owner == null);
src\Framework\System\Windows\TriggerCollection.cs (1)
106
Debug.
Assert
(Owner == null);
src\Framework\System\Windows\Window.cs (16)
753
Debug.
Assert
(false);
2372
Debug.
Assert
( _swh != null );
2381
Debug.
Assert
( _swh != null );
3992
Debug.
Assert
(hMonitor != IntPtr.Zero);
6777
Debug.
Assert
(0 != (int)_overlaySize.Width);
6778
Debug.
Assert
(0 != (int)_overlaySize.Height);
6826
Debug.
Assert
(null != _taskbarList);
6852
Debug.
Assert
(false);
6875
Debug.
Assert
(null != _taskbarList);
6889
Debug.
Assert
(0 <= taskbarInfo.ProgressValue && taskbarInfo.ProgressValue <= 1);
6901
Debug.
Assert
(null != _taskbarList);
6930
Debug.
Assert
(null != _taskbarList);
7011
Debug.
Assert
(null != _taskbarList);
7043
Debug.
Assert
(null != _taskbarList);
7524
Debug.
Assert
( _swh != null );
7798
Debug.
Assert
( sourceWindow != null );
src\Shared\MS\Internal\Xaml\Context\XamlContextStack.cs (5)
24
Debug.
Assert
(CurrentFrame != null);
25
Debug.
Assert
(CurrentFrame.Depth == Depth);
83
Debug.
Assert
(iteratorFrame != null);
107
Debug.
Assert
(CurrentFrame.Depth == Depth);
120
Debug.
Assert
(CurrentFrame.Depth == Depth);
PresentationFramework.Aero (1)
parent\Shared\Microsoft\Windows\Themes\PlatformCulture.cs (1)
35
Debug.
Assert
(_platformCulture != null);
PresentationFramework.Classic (1)
parent\Shared\Microsoft\Windows\Themes\PlatformCulture.cs (1)
35
Debug.
Assert
(_platformCulture != null);
PresentationFramework.Luna (1)
parent\Shared\Microsoft\Windows\Themes\PlatformCulture.cs (1)
35
Debug.
Assert
(_platformCulture != null);
PresentationFramework.Royale (1)
parent\Shared\Microsoft\Windows\Themes\PlatformCulture.cs (1)
35
Debug.
Assert
(_platformCulture != null);
System (103)
compmod\microsoft\csharp\csharpcodeprovider.cs (1)
2860
Debug.
Assert
( names.Length > 0);
compmod\microsoft\visualbasic\VBCodeProvider.cs (1)
2517
Debug.
Assert
( names.Length > 0);
compmod\system\componentmodel\BindingList.cs (1)
600
Debug.
Assert
(itemTypeProperties != null);
compmod\system\componentmodel\CultureInfoConverter.cs (3)
218
Debug.
Assert
(invariantIndex >= 0 && invariantIndex < installedCultures.Length);
228
Debug.
Assert
(array[0] == null);
272
Debug.
Assert
(cultureConverter != null);
net\System\IriHelper.cs (1)
30
Debug.
Assert
(Char.IsHighSurrogate(highSurr));
net\System\Net\_Connection.cs (2)
710
Debug.
Assert
(m_WriteList.Count == 0);
1565
Debug.
Assert
(request.WriteBuffer == null);
net\System\Net\_DigestClient.cs (2)
461
Debug.
Assert
(challenge != null);
462
Debug.
Assert
(index >= 0 && index < challenge.Length);
net\System\Net\_NetworkingPerfCounters.cs (4)
58
Debug.
Assert
(instanceCounter != null);
59
Debug.
Assert
(globalCounter != null);
139
Debug.
Assert
(cp != null);
171
Debug.
Assert
(avgCounterIndex + 1 < counters.Length);
net\System\Net\_RegBlobWebProxyDataBuilder.cs (1)
68
Debug.
Assert
(registry != null);
net\System\Net\_ServiceNameStore.cs (2)
45
Debug.
Assert
(!String.IsNullOrEmpty(uriPrefix));
81
Debug.
Assert
(!String.IsNullOrEmpty(uriPrefix));
net\System\Net\_SSPIWrapper.cs (1)
89
Debug.
Assert
(s_DefaultCredentialsHandleCacheSize > 0);
net\System\Net\_WebProxyDataBuilder.cs (5)
89
Debug.
Assert
(!string.IsNullOrEmpty(proxyString));
108
Debug.
Assert
(!string.IsNullOrEmpty(proxyListString));
143
Debug.
Assert
(proxyListHashTable.Count > 0);
159
Debug.
Assert
(rawString != null);
209
Debug.
Assert
(rawString != null);
net\System\Net\Cache\_CacheStreams.cs (1)
40
Debug.
Assert
(wrappedStream != null);
net\System\Net\Cache\IERequestCache.cs (2)
750
Debug.
Assert
(m_CallNesting == 0);
963
Debug.
Assert
(m_CallNesting == 0);
net\System\Net\HttpListener.cs (7)
316
Debug.
Assert
(selectorDelegate != null);
2424
Debug.
Assert
(blob != IntPtr.Zero);
2427
Debug.
Assert
(tokenPointer != IntPtr.Zero);
2433
Debug.
Assert
(blob != IntPtr.Zero);
2448
Debug.
Assert
(size >= 0);
2475
Debug.
Assert
(tokenSize < Int32.MaxValue);
2487
Debug.
Assert
(tokenSize < Int32.MaxValue);
net\System\Net\HttpListenerRequest.cs (4)
1060
Debug.
Assert
(m_TokenBindings == null);
1123
Debug.
Assert
(handle != null);
1124
Debug.
Assert
(!handle.IsInvalid);
1185
Debug.
Assert
((long)(&pThisResultData->identifierData->hashAlgorithm) == (long)(pThisResultData->identifierData) + 1 );
net\System\Net\HttpListenerTimeoutManager.cs (2)
36
Debug.
Assert
(configTimeouts != null);
37
Debug.
Assert
(configTimeouts.Length == (timeouts.Length + 1));
net\System\Net\HttpWebRequest.cs (2)
3050
Debug.
Assert
(_WriteBuffer != null);
5449
Debug.
Assert
(callback != null);
net\System\Net\mail\Base64Stream.cs (1)
569
Debug.
Assert
(thisPtr.written == thisPtr.count);
net\System\Net\mail\MailAddressParser.cs (1)
73
Debug.
Assert
(!String.IsNullOrEmpty(data));
net\System\Net\mail\MailBnfHelper.cs (2)
374
Debug.
Assert
(index >= 0);
375
Debug.
Assert
(index < data.Length);
net\System\Net\mail\MailWriter.cs (1)
58
System.Diagnostics.Debug.
Assert
(this.contentStream == sender);
net\System\Net\mail\Message.cs (1)
460
System.Diagnostics.Debug.
Assert
(this.headersEncoding != null);
net\System\Net\mail\QEncodedStream.cs (1)
384
System.Diagnostics.Debug.
Assert
(thisPtr.written == thisPtr.count);
net\System\Net\mail\QuotedPrintableStream.cs (1)
416
System.Diagnostics.Debug.
Assert
(thisPtr.written == thisPtr.count);
net\System\Net\mail\SmtpDateTime.cs (1)
331
Debug.
Assert
(dateValue.Kind == DateTimeKind.Unspecified);
net\System\Net\mail\SmtpReplyReaderFactory.cs (2)
317
System.Diagnostics.Debug.
Assert
(readState == ReadState.Status0);
404
System.Diagnostics.Debug.
Assert
(parent.readState == ReadState.Status0);
net\System\Net\NetRegistryConfiguration.cs (2)
169
Debug.
Assert
(currentProcess != null);
181
Debug.
Assert
(appExePath != null);
net\System\Net\ServicePoint.cs (4)
679
Debug.
Assert
(connectionGroupPrefixSafeInternal.Length > connectionGroupPrefixSafe.Length);
680
Debug.
Assert
(connectionGroupPrefixUnsafeInternal.Length > connectionGroupPrefixUnsafe.Length);
681
Debug.
Assert
(connectionGroupPrefixSafeInternal.StartsWith(connectionGroupPrefixSafe, StringComparison.Ordinal));
682
Debug.
Assert
(connectionGroupPrefixUnsafeInternal.StartsWith(connectionGroupPrefixUnsafe, StringComparison.Ordinal));
net\System\Net\ServicePointManager.cs (6)
273
Debug.
Assert
((int)SecurityProtocolType.SystemDefault == (int)SslProtocols.None);
274
Debug.
Assert
((int)SecurityProtocolType.Ssl3 == (int)SslProtocols.Ssl3);
275
Debug.
Assert
((int)SecurityProtocolType.Tls == (int)SslProtocols.Tls);
276
Debug.
Assert
((int)SecurityProtocolType.Tls11 == (int)SslProtocols.Tls11);
277
Debug.
Assert
((int)SecurityProtocolType.Tls12 == (int)SslProtocols.Tls12);
278
Debug.
Assert
((int)SecurityProtocolType.Tls13 == (int)SslProtocols.Tls13);
net\System\Net\UnsafeNativeMethods.cs (2)
1723
Debug.
Assert
(chainCount == 0 || !chainList.IsInvalid);
1732
Debug.
Assert
(!chainRef.IsInvalid);
net\System\Net\webclient.cs (1)
1733
Debug.
Assert
(n < 0x10);
net\System\Net\WebUtility.cs (4)
605
Debug.
Assert
(UNICODE_PLANE01_START <= smpChar && smpChar <= UNICODE_PLANE16_END);
617
Debug.
Assert
(charsRemaining >= 1);
618
Debug.
Assert
(Char.IsSurrogate(*pch));
652
Debug.
Assert
(n < 0x10);
net\System\UriHelper.cs (1)
583
Debug.
Assert
(dest.Length > destOffset);
security\system\security\Authentication\ExtendedProtection\ServiceNameCollection.cs (2)
69
Debug.
Assert
(serviceNames != null);
70
Debug.
Assert
(!String.IsNullOrEmpty(searchServiceName));
security\system\security\cryptography\oid.cs (2)
75
Debug.
Assert
(value != null);
76
Debug.
Assert
(friendlyName != null);
security\system\security\cryptography\x509\x509certificate2.cs (1)
158
Debug.
Assert
(false);
security\system\security\cryptography\x509\x509chain.cs (4)
285
Debug.
Assert
(pChain.cChain > 0);
310
Debug.
Assert
(index < chainStatus.Length);
322
Debug.
Assert
(index < chainStatus.Length);
331
Debug.
Assert
(index == chainStatus.Length);
security\system\security\cryptography\x509\x509utils.cs (1)
410
Debug.
Assert
(false);
services\monitoring\system\diagnosticts\EventLogInternal.cs (1)
1391
Debug.
Assert
(info != null);
sys\system\collections\concurrent\BlockingCollection.cs (8)
228
Debug.
Assert
(boundedCapacity > 0 || boundedCapacity == NON_BOUNDED);
242
Debug.
Assert
(boundedCapacity > 0);
530
Debug.
Assert
((m_currentAdders & ~COMPLETE_ADDING_ON_MASK) > 0);
759
Debug.
Assert
(m_boundedCapacity != NON_BOUNDED);
1047
Debug.
Assert
((index == WaitHandle.WaitTimeout) || (index >= 0 && index < handles.Count));
1100
Debug.
Assert
(collections != null);
1147
Debug.
Assert
(originalWaitMillisecondsTimeout != Timeout.Infinite);
1449
Debug.
Assert
((index == WaitHandle.WaitTimeout) || (index >= 0 && index < handles.Count));
sys\system\collections\concurrent\ConcurrentBag.cs (4)
331
Debug.
Assert
(list != null);
983
Debug.
Assert
(m_tail == null);
1007
Debug.
Assert
(m_head != null);
1048
Debug.
Assert
(tail != null);
sys\System\IO\compression\CopyEncoder.cs (2)
18
Debug.
Assert
(output != null);
19
Debug.
Assert
(output.FreeBytes >= PaddingSize);
sys\System\IO\compression\DeflaterManaged.cs (1)
216
Debug.
Assert
(NeedsInput());
sys\System\IO\compression\DeflateStream.cs (2)
519
Debug.
Assert
(array != null);
520
Debug.
Assert
(count != 0);
sys\System\IO\compression\FastEncoderWindow.cs (1)
309
Debug.
Assert
(RecalculateHash((int)search) == RecalculateHash(bufPos));
sys\system\threading\Barrier.cs (1)
750
Debug.
Assert
(phase < CurrentPhaseNumber);
System.Core (293)
Microsoft\Scripting\Actions\CallSiteBinder.cs (1)
231
Debug.
Assert
(result != null);
Microsoft\Scripting\Actions\DynamicObject.cs (2)
492
Debug.
Assert
(binder is ConvertBinder && fallbackInvoke == null);
496
Debug.
Assert
(convert.Method == null);
Microsoft\Scripting\Actions\ExpandoObject.cs (8)
134
Debug.
Assert
(data[exactMatch] == Uninitialized);
142
Debug.
Assert
(index != ExpandoObject.NoMatch);
222
Debug.
Assert
(index >= 0 && index <= _data.Length);
247
Debug.
Assert
(oldClass != newClass);
299
Debug.
Assert
(collection != null);
415
Debug.
Assert
(collection != null);
826
Debug.
Assert
(originalClass != klass);
875
Debug.
Assert
(index != ExpandoObject.NoMatch);
Microsoft\Scripting\Ast\BinaryExpression.cs (11)
158
Debug.
Assert
(IsOpAssignment(op));
342
Debug.
Assert
(method == null && TypeUtils.AreEquivalent(type, left.Type));
346
Debug.
Assert
(method == null && TypeUtils.AreEquivalent(type, right.Type) && nodeType == ExpressionType.Coalesce);
416
Debug.
Assert
(IsLiftedLogical);
422
Debug.
Assert
(opTrueFalse != null);
615
System.Diagnostics.Debug.
Assert
(method != null);
726
System.Diagnostics.Debug.
Assert
(method != null);
1339
Debug.
Assert
(typeof(System.MulticastDelegate).IsAssignableFrom(delegateType) && delegateType != typeof(System.MulticastDelegate));
1345
Debug.
Assert
(pms.Length == conversion.Parameters.Count);
1476
Debug.
Assert
(typeof(System.MulticastDelegate).IsAssignableFrom(delegateType) && delegateType != typeof(System.MulticastDelegate));
1479
Debug.
Assert
(pms.Length == conversion.Parameters.Count);
Microsoft\Scripting\Ast\BlockExpression.cs (18)
60
Debug.
Assert
(ExpressionCount > 0);
209
Debug.
Assert
(args.Length == 2);
210
Debug.
Assert
(variables == null || variables.Count == 0);
246
Debug.
Assert
(args.Length == 3);
247
Debug.
Assert
(variables == null || variables.Count == 0);
285
Debug.
Assert
(args.Length == 4);
286
Debug.
Assert
(variables == null || variables.Count == 0);
326
Debug.
Assert
(args.Length == 5);
327
Debug.
Assert
(variables == null || variables.Count == 0);
337
Debug.
Assert
(expressions.Count != 0);
343
Debug.
Assert
(index >= 0 && index < _expressions.Count);
359
Debug.
Assert
(variables == null || variables.Count == 0);
430
Debug.
Assert
(args.Length == 1);
431
Debug.
Assert
(variables == null || variables.Count == VariableCount);
460
Debug.
Assert
(args.Length == ExpressionCount);
461
Debug.
Assert
(variables == null || variables.Count == VariableCount);
480
Debug.
Assert
(args.Length == ExpressionCount);
481
Debug.
Assert
(variables == null || variables.Count == VariableCount);
Microsoft\Scripting\Ast\DebugViewWriter.cs (10)
118
Debug.
Assert
(String.IsNullOrEmpty(le.Name));
123
Debug.
Assert
(String.IsNullOrEmpty(p.Name));
128
Debug.
Assert
(String.IsNullOrEmpty(target.Name));
136
Debug.
Assert
(node != null);
137
Debug.
Assert
(writer != null);
148
Debug.
Assert
(_stack.Count == 0);
571
Debug.
Assert
(parent != null);
610
Debug.
Assert
(child.NodeType == parent.NodeType);
623
Debug.
Assert
(binary != null);
1141
Debug.
Assert
(_stack.Count == 0);
Microsoft\Scripting\Ast\DynamicExpression.cs (7)
47
Debug.
Assert
(delegateType.GetMethod("Invoke").GetReturnType() == typeof(object) || GetType() != typeof(DynamicExpression));
454
Debug.
Assert
(args.Length == ((IArgumentProvider)this).ArgumentCount);
465
Debug.
Assert
(delegateType.GetMethod("Invoke").GetReturnType() == returnType);
500
Debug.
Assert
(args.Length == 1);
548
Debug.
Assert
(args.Length == 2);
598
Debug.
Assert
(args.Length == 3);
650
Debug.
Assert
(args.Length == 4);
Microsoft\Scripting\Ast\ExpressionStringBuilder.cs (6)
119
Debug.
Assert
(node != null);
126
Debug.
Assert
(node != null);
133
Debug.
Assert
(node != null);
143
Debug.
Assert
(node != null);
153
Debug.
Assert
(node != null);
765
Debug.
Assert
(node.Indexer != null);
Microsoft\Scripting\Ast\IndexExpression.cs (4)
51
Debug.
Assert
(instance != null && instance.Type.IsArray);
52
Debug.
Assert
(instance.Type.GetArrayRank() == arguments.Count);
135
Debug.
Assert
(instance != null);
136
Debug.
Assert
(arguments == null || arguments.Length == _arguments.Count);
Microsoft\Scripting\Ast\InvocationExpression.cs (2)
114
Debug.
Assert
(lambda != null);
115
Debug.
Assert
(arguments == null || arguments.Length == _arguments.Count);
Microsoft\Scripting\Ast\LambdaExpression.cs (2)
62
Debug.
Assert
(delegateType != null);
278
Debug.
Assert
(create != null);
Microsoft\Scripting\Ast\MethodCallExpression.cs (21)
165
Debug.
Assert
(instance == null);
166
Debug.
Assert
(args == null || args.Count == _arguments.Count);
201
Debug.
Assert
(instance != null);
202
Debug.
Assert
(args == null || args.Count == _arguments.Count);
234
Debug.
Assert
(instance == null);
235
Debug.
Assert
(args == null || args.Count == 1);
274
Debug.
Assert
(instance == null);
275
Debug.
Assert
(args == null || args.Count == 2);
315
Debug.
Assert
(instance == null);
316
Debug.
Assert
(args == null || args.Count == 3);
358
Debug.
Assert
(instance == null);
359
Debug.
Assert
(args == null || args.Count == 4);
403
Debug.
Assert
(instance == null);
404
Debug.
Assert
(args == null || args.Count == 5);
421
Debug.
Assert
(instance != null);
451
Debug.
Assert
(instance != null);
452
Debug.
Assert
(args == null || args.Count == 2);
468
Debug.
Assert
(instance != null);
500
Debug.
Assert
(instance != null);
501
Debug.
Assert
(args == null || args.Count == 3);
835
Debug.
Assert
(nodeKind == ExpressionType.Invoke || nodeKind == ExpressionType.Call || nodeKind == ExpressionType.Dynamic || nodeKind == ExpressionType.New);
Microsoft\Scripting\Ast\TypeUtils.cs (15)
200
Debug.
Assert
(source != null && dest != null);
227
Debug.
Assert
(source != null && dest != null);
264
Debug.
Assert
(t != null);
270
Debug.
Assert
(t != null);
276
Debug.
Assert
(t != null);
282
Debug.
Assert
(t != null);
288
Debug.
Assert
(source != null && dest != null);
312
Debug.
Assert
(genericParameters != null);
313
Debug.
Assert
(sourceArguments != null);
314
Debug.
Assert
(destArguments != null);
315
Debug.
Assert
(genericParameters.Length == sourceArguments.Length);
316
Debug.
Assert
(genericParameters.Length == destArguments.Length);
323
Debug.
Assert
(sourceArgument != null && destArgument != null);
333
Debug.
Assert
(genericParameter != null);
421
Debug.
Assert
(left.IsValueType);
Microsoft\Scripting\Ast\UnaryExpression.cs (5)
265
Debug.
Assert
(i == temps.Length);
269
Debug.
Assert
(i == temps.Length);
272
Debug.
Assert
(i == block.Length);
394
System.Diagnostics.Debug.
Assert
(method != null);
431
System.Diagnostics.Debug.
Assert
(method != null);
Microsoft\Scripting\Compiler\BoundConstants.cs (2)
110
Debug.
Assert
(!ILGen.CanEmitConstant(value, type));
171
Debug.
Assert
(lc.CanEmitBoundConstants); // this should've been checked already
Microsoft\Scripting\Compiler\CompilerScope.cs (3)
189
Debug.
Assert
(locals != null);
281
Debug.
Assert
(_parent == null && parent != this);
381
Debug.
Assert
(ShouldCache(v) && !_locals.ContainsKey(v));
Microsoft\Scripting\Compiler\DelegateHelpers.Generated.cs (2)
209
Debug.
Assert
(types != null && types.Length > 0);
223
Debug.
Assert
(result != null);
Microsoft\Scripting\Compiler\ExpressionQuoter.cs (1)
40
Debug.
Assert
(hoistedLocals != null && locals != null);
Microsoft\Scripting\Compiler\ILGen.cs (20)
40
Debug.
Assert
(methodBase is MethodInfo || methodBase is ConstructorInfo);
52
Debug.
Assert
(index >= 0);
78
Debug.
Assert
(index >= 0);
88
Debug.
Assert
(index >= 0);
477
Debug.
Assert
(value != null);
773
Debug.
Assert
(TypeUtils.IsNullableType(typeFrom));
774
Debug.
Assert
(TypeUtils.IsNullableType(typeTo));
808
Debug.
Assert
(!TypeUtils.IsNullableType(typeFrom));
809
Debug.
Assert
(TypeUtils.IsNullableType(typeTo));
822
Debug.
Assert
(TypeUtils.IsNullableType(typeFrom));
823
Debug.
Assert
(!TypeUtils.IsNullableType(typeTo));
832
Debug.
Assert
(TypeUtils.IsNullableType(typeFrom));
833
Debug.
Assert
(!TypeUtils.IsNullableType(typeTo));
834
Debug.
Assert
(typeTo.IsValueType);
846
Debug.
Assert
(TypeUtils.IsNullableType(typeFrom));
856
Debug.
Assert
(isTypeFromNullable || isTypeToNullable);
868
Debug.
Assert
(nullableType.IsValueType);
875
Debug.
Assert
(nullableType.IsValueType);
882
Debug.
Assert
(nullableType.IsValueType);
992
Debug.
Assert
(!type.IsEnum);
Microsoft\Scripting\Compiler\LabelInfo.cs (1)
352
Debug.
Assert
(CanJumpInto);
Microsoft\Scripting\Compiler\LambdaCompiler.Address.cs (5)
38
Debug.
Assert
(node != null);
79
Debug.
Assert
(node.NodeType == ExpressionType.ArrayIndex && node.Method == null);
198
Debug.
Assert
(node.NodeType == ExpressionType.Unbox);
199
Debug.
Assert
(type.IsValueType && !TypeUtils.IsNullableType(type));
207
Debug.
Assert
(TypeUtils.AreReferenceAssignable(type, node.Type));
Microsoft\Scripting\Compiler\LambdaCompiler.Binary.cs (11)
41
Debug.
Assert
(b.NodeType != ExpressionType.AndAlso && b.NodeType != ExpressionType.OrElse && b.NodeType != ExpressionType.Coalesce);
57
Debug.
Assert
(!b.IsLiftedToNull || b.Type == typeof(bool?));
82
Debug.
Assert
(TypeUtils.IsNullableType(e.Type));
83
Debug.
Assert
(op == ExpressionType.Equal || op == ExpressionType.NotEqual);
162
Debug.
Assert
(!TypeUtils.IsNullableType(leftType));
163
Debug.
Assert
(!TypeUtils.IsNullableType(rightType));
304
Debug.
Assert
(!resultType.IsNullableType());
323
Debug.
Assert
(op == ExpressionType.Equal || op == ExpressionType.NotEqual);
337
Debug.
Assert
(TypeUtils.IsNullableType(leftType) || TypeUtils.IsNullableType(rightType));
383
Debug.
Assert
(TypeUtils.IsNullableType(leftType));
496
Debug.
Assert
(leftIsNullable || rightIsNullable);
Microsoft\Scripting\Compiler\LambdaCompiler.ControlFlow.cs (3)
58
Debug.
Assert
(_labelBlock != null && _labelBlock.Kind == kind);
64
Debug.
Assert
(node.Target != null);
80
Debug.
Assert
(label != null);
Microsoft\Scripting\Compiler\LambdaCompiler.cs (4)
247
Debug.
Assert
(type != null);
251
Debug.
Assert
(type == local.LocalType);
265
Debug.
Assert
(type != null && variable != null);
298
Debug.
Assert
(_method is DynamicMethod);
Microsoft\Scripting\Compiler\LambdaCompiler.Expressions.cs (11)
54
Debug.
Assert
(newValue == CompilationFlags.EmitAsTail || newValue == CompilationFlags.EmitAsMiddle || newValue == CompilationFlags.EmitAsNoTail);
63
Debug.
Assert
(newValue == CompilationFlags.EmitExpressionStart || newValue == CompilationFlags.EmitNoExpressionStart);
72
Debug.
Assert
(newValue == CompilationFlags.EmitAsDefaultType || newValue == CompilationFlags.EmitAsVoidType);
95
Debug.
Assert
(node != null);
138
Debug.
Assert
(TypeUtils.AreReferenceAssignable(type, node.Type));
434
Debug.
Assert
(args.ArgumentCount + skipParameters == pis.Length);
563
Debug.
Assert
(!type.IsValueType);
572
Debug.
Assert
(result == AnalyzeTypeIsResult.Unknown);
923
System.Diagnostics.Debug.
Assert
(variables != null);
924
System.Diagnostics.Debug.
Assert
(arguments != null);
938
Debug.
Assert
(TypeUtils.AreEquivalent(TypeUtils.GetNonNullableType(resultType), TypeUtils.GetNonNullableType(mc.Type)));
Microsoft\Scripting\Compiler\LambdaCompiler.Generated.cs (1)
38
Debug.
Assert
(node != null);
Microsoft\Scripting\Compiler\LambdaCompiler.Lambda.cs (1)
196
Debug.
Assert
(_labelBlock.Parent == null && _labelBlock.Kind == LabelScopeKind.Lambda);
Microsoft\Scripting\Compiler\LambdaCompiler.Logical.cs (15)
38
Debug.
Assert
(node.Test.Type == typeof(bool));
96
Debug.
Assert
(b.Method == null);
111
Debug.
Assert
(b.Method == null);
124
Debug.
Assert
(b.Conversion.Parameters.Count == 1);
126
Debug.
Assert
(p.Type.IsAssignableFrom(b.Left.Type) ||
177
Debug.
Assert
(b.Conversion.Parameters.Count == 1);
212
Debug.
Assert
(!b.Left.Type.IsValueType);
297
Debug.
Assert
(b.Method.IsStatic);
424
Debug.
Assert
(b.Method.IsStatic);
520
Debug.
Assert
(node.NodeType == ExpressionType.Equal || node.NodeType == ExpressionType.NotEqual);
521
Debug.
Assert
(!node.IsLiftedToNull);
536
Debug.
Assert
(!node.Right.Type.IsValueType);
545
Debug.
Assert
(!node.Left.Type.IsValueType);
581
Debug.
Assert
(node.NodeType == ExpressionType.AndAlso || node.NodeType == ExpressionType.OrElse);
582
Debug.
Assert
(!node.IsLiftedToNull);
Microsoft\Scripting\Compiler\LambdaCompiler.Statements.cs (5)
113
Debug.
Assert
(_scope.Node == node);
195
Debug.
Assert
(TypeUtils.AreReferenceAssignable(testValue.Type, test.Type));
260
Debug.
Assert
(key > buckets[buckets.Count - 1].Key);
545
Debug.
Assert
(key == bucket[bucket.Count - 1].Key + 1);
546
Debug.
Assert
(slot == jmpLabels.Length);
Microsoft\Scripting\Compiler\LambdaCompiler.Unary.cs (3)
146
Debug.
Assert
(TypeUtils.AreEquivalent(operandType, resultType));
272
Debug.
Assert
(node.Type.IsValueType && !TypeUtils.IsNullableType(node.Type));
303
Debug.
Assert
(pis != null && pis.Length == 1);
Microsoft\Scripting\Compiler\RuntimeVariableList.cs (2)
86
Debug.
Assert
(data != null);
87
Debug.
Assert
(indexes != null);
Microsoft\Scripting\Compiler\StackSpiller.cs (3)
134
Debug.
Assert
(result.Node != null);
926
Debug.
Assert
(original != null);
927
Debug.
Assert
(max < original.Count);
Microsoft\Scripting\Compiler\StackSpiller.Temps.cs (9)
74
Debug.
Assert
(_freeTemps == null || !_freeTemps.Contains(temp));
75
Debug.
Assert
(_usedTemps == null || !_usedTemps.Contains(temp));
85
Debug.
Assert
(_freeTemps == null || !_freeTemps.Contains(temp));
100
Debug.
Assert
(_usedTemps == null || mark <= _usedTemps.Count);
102
Debug.
Assert
(mark == 0 || _usedTemps != null);
114
Debug.
Assert
(_usedTemps == null || _usedTemps.Count == 0);
146
Debug.
Assert
(!_done);
207
Debug.
Assert
(_comma.Capacity == _comma.Count + 1);
235
Debug.
Assert
(first == 0);
Microsoft\Scripting\Compiler\VariableBinder.cs (1)
206
Debug.
Assert
(referenceScope != null);
Microsoft\Scripting\Utils\CacheDict.cs (1)
62
Debug.
Assert
(size > 0);
Microsoft\Scripting\Utils\ContractUtils.cs (6)
47
Debug.
Assert
(!string.IsNullOrEmpty(paramName));
55
Debug.
Assert
(!string.IsNullOrEmpty(paramName));
75
Debug.
Assert
(!string.IsNullOrEmpty(offsetName));
76
Debug.
Assert
(!string.IsNullOrEmpty(countName));
77
Debug.
Assert
(array != null);
87
Debug.
Assert
(arrayName != null);
Microsoft\Scripting\Utils\TypeExtensions.cs (1)
30
Debug.
Assert
(methodInfo != null && delegateType != null);
Microsoft\Win32\SafeHandles\CapiSafeHandles.cs (1)
113
Debug.
Assert
(m_csp == IntPtr.Zero);
System\Collections\Generic\HashSet.cs (2)
191
Debug.
Assert
(index == count);
1106
Debug.
Assert
(m_freeList == -1);
System\Diagnostics\Eventing\Reader\EventLogWatcher.cs (1)
217
Debug.
Assert
(this. numEventsInBuffer == 0);
System\Diagnostics\Eventing\Reader\ProviderMetadataCachedInformation.cs (1)
99
Debug.
Assert
(session != null);
System\IO\LogStream.cs (1)
74
Debug.
Assert
(!String.IsNullOrEmpty(path));
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (1)
180
Debug.
Assert
(handle != null && !handle.IsInvalid);
System\IO\Pipes\Pipe.cs (2)
760
Debug.
Assert
(afsar._overlapped == null);
889
Debug.
Assert
(asyncResult._overlapped == pOverlapped);
System\Linq\Parallel\Merging\ArrayMergeHelper.cs (1)
89
Debug.
Assert
(m_outputArray != null);
System\Security\Cryptography\BCryptNative.cs (16)
683
Debug.
Assert
(input != null);
684
Debug.
Assert
(inputOffset >= 0);
685
Debug.
Assert
(inputCount >= 0);
686
Debug.
Assert
(inputCount <= input.Length - inputOffset);
687
Debug.
Assert
(output != null);
688
Debug.
Assert
(outputOffset >= 0);
689
Debug.
Assert
(outputCount >= 0);
690
Debug.
Assert
(outputCount <= output.Length - outputOffset);
733
Debug.
Assert
(input != null);
734
Debug.
Assert
(inputOffset >= 0);
735
Debug.
Assert
(inputCount >= 0);
736
Debug.
Assert
(inputCount <= input.Length - inputOffset);
737
Debug.
Assert
(output != null);
738
Debug.
Assert
(outputOffset >= 0);
739
Debug.
Assert
(outputCount >= 0);
740
Debug.
Assert
(outputCount <= output.Length - outputOffset);
System\Security\Cryptography\ECDsaCng.cs (6)
448
Debug.
Assert
(data != null);
449
Debug.
Assert
(offset >= 0 && offset <= data.Length);
450
Debug.
Assert
(count >= 0 && count <= data.Length - offset);
451
Debug.
Assert
(!String.IsNullOrEmpty(hashAlgorithm.Name));
461
Debug.
Assert
(data != null);
462
Debug.
Assert
(!String.IsNullOrEmpty(hashAlgorithm.Name));
System\Security\Cryptography\Rfc4050KeyFormatter.cs (1)
146
Debug.
Assert
(isDHKey || isDsaKey);
System\Security\Cryptography\RsaCng.cs (6)
163
Debug.
Assert
(data != null);
164
Debug.
Assert
(offset >= 0 && offset <= data.Length);
165
Debug.
Assert
(count >= 0 && count <= data.Length);
166
Debug.
Assert
(!String.IsNullOrEmpty(hashAlgorithm.Name));
178
Debug.
Assert
(data != null);
179
Debug.
Assert
(!String.IsNullOrEmpty(hashAlgorithm.Name));
System\Security\Cryptography\X509Certificates\AuthenticodeSignatureInformation.cs (1)
65
Debug.
Assert
(error != SignatureVerificationResult.Valid);
System\Security\Cryptography\X509Certificates\ECDsaCertificateExtensions.cs (8)
184
Debug.
Assert
(newCert != null);
185
Debug.
Assert
(!ReferenceEquals(certificate, newCert));
186
Debug.
Assert
(!certificate.HasPrivateKey);
187
Debug.
Assert
(newCert.HasPrivateKey);
260
Debug.
Assert
(!cryptHandle.IsInvalid);
287
Debug.
Assert
(ecBlob.Length >= sizeof(Interop.BCrypt.BCRYPT_ECCKEY_BLOB));
312
Debug.
Assert
(!cryptHandle.IsInvalid);
333
Debug.
Assert
(!cryptHandle.IsInvalid);
System\Security\Cryptography\X509Certificates\RSACertificateExtensions.cs (4)
155
Debug.
Assert
(newCert != null);
156
Debug.
Assert
(!ReferenceEquals(certificate, newCert));
157
Debug.
Assert
(!certificate.HasPrivateKey);
158
Debug.
Assert
(newCert.HasPrivateKey);
System\Security\Cryptography\X509Certificates\X509Native.cs (1)
206
Debug.
Assert
(context != IntPtr.Zero);
system\threading\ReaderWriterLockSlim\ReaderWriterLockSlim.cs (17)
598
Debug.
Assert
(_fIsReentrant);
599
Debug.
Assert
(_fUpgradeThreadHoldingRead);
656
Debug.
Assert
((_owners & WRITER_HELD) > 0);
752
Debug.
Assert
((_owners & WRITER_HELD) > 0);
864
Debug.
Assert
(lrwc.readercount == 1);
1011
Debug.
Assert
(enterLockType == EnterLockType.UpgradeToWrite);
1055
Debug.
Assert
(enterLockType == EnterLockType.UpgradeToWrite);
1218
Debug.
Assert
(_numReadWaiters != 0 || _numUpgradeWaiters != 0);
1568
Debug.
Assert
(
1588
Debug.
Assert
(DeprioritizeEnterAnyReadIncrement == (1 << 16));
1597
Debug.
Assert
(DeprioritizeEnterAnyWriteIncrement == 1);
1604
Debug.
Assert
((reason & EnterSpinLockReason.Wait) != 0 || reason == (reason & EnterSpinLockReason.OperationMask));
1605
Debug.
Assert
(
1614
Debug.
Assert
(
1625
Debug.
Assert
((GetEnterDeprioritizationStateChange(reason) & DeprioritizeEnterAnyWriteIncrement) == 0);
1629
Debug.
Assert
((GetEnterDeprioritizationStateChange(reason) & DeprioritizeEnterAnyWriteIncrement) != 0);
1690
Debug.
Assert
(
System.Data (578)
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (2)
649
Debug.
Assert
(null != parent);
685
Debug.
Assert
(null != parent);
fx\src\data\Microsoft\SqlServer\Server\SmiGettersStream.cs (4)
25
Debug.
Assert
( null != sink );
26
Debug.
Assert
( null != getters );
27
Debug.
Assert
( 0 <= ordinal );
28
Debug.
Assert
( null != metaData );
fx\src\data\Microsoft\SqlServer\Server\SmiSettersStream.cs (4)
25
Debug.
Assert
( null != sink );
26
Debug.
Assert
( null != setters );
27
Debug.
Assert
( 0 <= ordinal );
28
Debug.
Assert
( null != metaData );
fx\src\data\Microsoft\SqlServer\Server\SmiXetterAccessMap.cs (2)
106
Debug.
Assert
( SmiXetterTypeCode.XetBoolean <= xetterType && SmiXetterTypeCode.XetDateTimeOffset >= xetterType );
113
Debug.
Assert
(SmiXetterTypeCode.XetBoolean <= xetterType && SmiXetterTypeCode.XetDateTimeOffset >= xetterType &&
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (128)
1578
Debug.
Assert
( typeCode == ExtendedClrTypeCode.Invalid ||
1729
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.Int64 ) );
1733
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlBytes ) );
1737
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.Boolean ) );
1741
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlChars ) );
1745
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.DateTime ) );
1749
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlDecimal ) );
1753
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.Double ) );
1757
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlBytes ) );
1761
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.Int32 ) );
1765
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlMoney ) );
1771
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlChars ) );
1775
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.Single ) );
1779
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.Guid ) );
1783
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.DateTime ) );
1787
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.Int16 ) );
1791
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlMoney ) );
1795
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlChars ) );
1799
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlBytes ) );
1803
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.Byte ) );
1807
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlBytes ) );
1811
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.String ) );
1815
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlXml ) );
1825
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlBytes ) );
1855
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.Int64));
1859
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.ByteArray));
1863
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.Boolean));
1867
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.CharArray));
1871
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.DateTime));
1875
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.SqlDecimal));
1887
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.Double));
1891
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.ByteArray));
1895
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.Int32));
1899
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.SqlMoney));
1905
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.CharArray));
1909
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.Single));
1913
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.Guid));
1917
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.DateTime));
1921
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.Int16));
1925
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.SqlMoney));
1929
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.CharArray));
1933
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.ByteArray));
1937
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.Byte));
1941
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.ByteArray));
1945
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.String));
1949
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.SqlXml));
1984
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.ByteArray));
1993
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.DateTime));
1997
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.TimeSpan));
2009
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.DateTimeOffset));
2049
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.Int64 ) );
2053
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlBytes ) );
2057
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.Boolean ) );
2061
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlChars ) );
2065
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.DateTime ) );
2069
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlDecimal ) );
2073
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.Double ) );
2077
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlBytes ) );
2081
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.Int32 ) );
2085
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlMoney ) );
2091
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlChars ) );
2095
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.Single ) );
2099
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.Guid ) );
2103
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.DateTime ) );
2107
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.Int16 ) );
2111
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlMoney ) );
2115
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlChars ) );
2119
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlBytes ) );
2123
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.Byte ) );
2127
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlBytes ) );
2131
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.String ) );
2135
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlXml ) );
2144
Debug.
Assert
( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlBytes ) );
2172
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.Int64));
2176
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.SqlBytes));
2180
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.Boolean));
2184
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.SqlChars));
2188
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.DateTime));
2192
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.SqlDecimal));
2196
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.Double));
2200
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.SqlBytes));
2204
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.Int32));
2208
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.SqlMoney));
2214
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.SqlChars));
2218
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.Single));
2222
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.Guid));
2226
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.DateTime));
2230
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.Int16));
2234
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.SqlMoney));
2238
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.SqlChars));
2242
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.SqlBytes));
2246
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.Byte));
2250
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.SqlBytes));
2254
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.String));
2258
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.SqlXml));
2267
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.SqlBytes));
2272
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.DateTime));
2277
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.TimeSpan));
2293
Debug.
Assert
(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.DateTimeOffset));
2383
Debug.
Assert
(result != null);
2747
Debug.
Assert
( ExtendedClrTypeCode.First <= setterTypeCode && ExtendedClrTypeCode.Last >= setterTypeCode );
2748
Debug.
Assert
( SqlDbType.BigInt <= metaData.SqlDbType && SqlDbType.DateTimeOffset >= metaData.SqlDbType );
2767
Debug.
Assert
( ExtendedClrTypeCode.First <= setterTypeCode && ExtendedClrTypeCode.Last >= setterTypeCode );
2768
Debug.
Assert
( SqlDbType.BigInt <= metaData.SqlDbType && SqlDbType.DateTimeOffset >= metaData.SqlDbType );
2996
Debug.
Assert
( !IsDBNull_Unchecked( sink, getters, ordinal ) );
3004
Debug.
Assert
( !IsDBNull_Unchecked( sink, getters, ordinal ) );
3012
Debug.
Assert
( !IsDBNull_Unchecked( sink, getters, ordinal ) );
3025
Debug.
Assert
( !IsDBNull_Unchecked( sink, getters, ordinal ) );
3039
Debug.
Assert
( !IsDBNull_Unchecked( sink, getters, ordinal ) );
3048
Debug.
Assert
( !IsDBNull_Unchecked( sink, getters, ordinal ) );
3061
Debug.
Assert
( !IsDBNull_Unchecked( sink, getters, ordinal ) );
3075
Debug.
Assert
( !IsDBNull_Unchecked( sink, getters, ordinal ) );
3083
Debug.
Assert
( !IsDBNull_Unchecked( sink, getters, ordinal ) );
3091
Debug.
Assert
(!IsDBNull_Unchecked(sink, getters, ordinal));
3099
Debug.
Assert
( !IsDBNull_Unchecked( sink, getters, ordinal ) );
3107
Debug.
Assert
( !IsDBNull_Unchecked( sink, getters, ordinal ) );
3115
Debug.
Assert
( !IsDBNull_Unchecked( sink, getters, ordinal ) );
3123
Debug.
Assert
( !IsDBNull_Unchecked( sink, getters, ordinal ) );
3131
Debug.
Assert
( !IsDBNull_Unchecked( sink, getters, ordinal ) );
3139
Debug.
Assert
( !IsDBNull_Unchecked( sink, getters, ordinal ) );
3147
Debug.
Assert
( !IsDBNull_Unchecked( sink, getters, ordinal ) );
3154
Debug.
Assert
( !IsDBNull_Unchecked( sink, getters, ordinal ) );
3162
Debug.
Assert
( !IsDBNull_Unchecked( sink, getters, ordinal ) );
3170
Debug.
Assert
( !IsDBNull_Unchecked( sink, getters, ordinal ) );
3189
Debug.
Assert
( !IsDBNull_Unchecked( sink, getters, ordinal ) );
3201
Debug.
Assert
(!IsDBNull_Unchecked(sink, getters, ordinal));
3233
Debug.
Assert
(readSize >= 0);
3262
Debug.
Assert
(readSize >= 0);
fx\src\data\System\Data\Common\DBConnectionString.cs (1)
471
Debug.
Assert
(0 >= StringComparer.Ordinal.Compare(restrictionValues[i-1], restrictionValues[i]));
fx\src\data\System\Data\Common\DbConnectionStringCommon.cs (3)
366
Debug.
Assert
(IsValidPoolBlockingPeriodValue(value));
496
Debug.
Assert
(IsValidApplicationIntentValue(value));
694
Debug.
Assert
(IsValidAuthenticationTypeValue(value));
fx\src\data\System\Data\ConstraintCollection.cs (1)
598
Debug.
Assert
(name != null);
fx\src\data\System\Data\DataColumn.cs (2)
435
Debug.
Assert
(this.encodedColumnName != null && this.encodedColumnName.Length != 0);
493
Debug.
Assert
(value != null);
fx\src\data\System\Data\DataColumnCollection.cs (1)
751
Debug.
Assert
(name != null);
fx\src\data\System\Data\DataRelationCollection.cs (1)
371
Debug.
Assert
(name != null);
fx\src\data\System\Data\DataSet.cs (1)
270
Debug.
Assert
(info != null);
fx\src\data\System\Data\DataTable.cs (16)
482
Debug.
Assert
(DataSet != null);
507
Debug.
Assert
(fk != null);
569
Debug.
Assert
(con.Equals("F"));
783
Debug.
Assert
(bitStates != null);
784
Debug.
Assert
(bitStates.Length > bitIndex);
804
Debug.
Assert
(Rows.Count > rowIndex);
805
Debug.
Assert
(rowErrors != null);
806
Debug.
Assert
(colErrors != null);
830
Debug.
Assert
(Rows.Count > rowIndex);
831
Debug.
Assert
(rowErrors != null);
832
Debug.
Assert
(colErrors != null);
843
Debug.
Assert
(columnsInError.Length == columnErrors.Length);
1994
Debug.
Assert
(ndx != null);
3065
Debug.
Assert
(key.HasValue);
6030
Debug.
Assert
(table != null);
6083
Debug.
Assert
(ds != null);
fx\src\data\System\Data\DataTableCollection.cs (1)
668
Debug.
Assert
(name != null);
fx\src\data\System\Data\Odbc\OdbcDataReader.cs (1)
876
Debug.
Assert
(cbMissing == -1 && lengthOrIndicator <= cbMaxData);
fx\src\data\System\Data\Odbc\odbcmetadatafactory.cs (1)
481
Debug.
Assert
(allRestrictions.Length >= restrictionsCount);
fx\src\data\System\Data\OleDb\OleDbMetaDataFactory.cs (1)
382
Debug.
Assert
(sourceColumns.Length == targetColumns.Length);
fx\src\data\System\Data\ProviderBase\DbConnectionPool.cs (7)
123
Debug.
Assert
( connections != null );
159
Debug.
Assert
( connections != null );
195
Debug.
Assert
( connections != null );
262
Debug.
Assert
( connections != null );
896
Debug.
Assert
( _state == State.Running || _state == State.ShuttingDown );
990
Debug.
Assert
( destroyObject == false );
1006
Debug.
Assert
( rootTxn == true || returnToGeneralPool == true || destroyObject == true );
fx\src\data\System\Data\ProviderBase\DbConnectionPoolAuthenticationContext.cs (3)
56
Debug.
Assert
(accessToken != null && accessToken.Length > 0);
57
Debug.
Assert
(expirationTime > DateTime.MinValue && expirationTime < DateTime.MaxValue);
105
Debug.
Assert
(oldValue == STATUS_LOCKED);
fx\src\data\System\Data\ProviderBase\DbConnectionPoolAuthenticationContextKey.cs (2)
53
Debug.
Assert
(!string.IsNullOrWhiteSpace(stsAuthority));
54
Debug.
Assert
(!string.IsNullOrWhiteSpace(servicePrincipalName));
fx\src\data\System\Data\ProviderBase\DbMetaDataFactory.cs (3)
135
Debug.
Assert
(requestedCollectionRow != null);
315
Debug.
Assert
(dataSourceInfoTable.TableName == DbMetaDataCollectionNames.DataSourceInformation);
380
Debug.
Assert
(_metaDataCollectionsDataSet != null);
fx\src\data\System\Data\ProviderBase\TimeoutTimer.cs (5)
53
Debug.
Assert
(timeout != null); // Need a valid timeouttimer if no error
64
Debug.
Assert
(0 <= milliseconds);
75
Debug.
Assert
(timeout != null); // Need a valid timeouttimer if no error
88
Debug.
Assert
(0 <= seconds || InfiniteTimeout == seconds); // no need to support negative seconds at present
181
Debug.
Assert
(0<=milliseconds); // This property guarantees no negative return values
fx\src\data\System\Data\Selection.cs (1)
115
Debug.
Assert
(indexFields != null);
fx\src\data\System\Data\Sql\SqlDataSourceEnumerator.cs (4)
122
Debug.
Assert
(instanceName == null);
128
Debug.
Assert
(String.Compare(_Cluster, 0, instance2, 0, _clusterLength, StringComparison.OrdinalIgnoreCase) == 0);
132
Debug.
Assert
(version == null);
133
Debug.
Assert
(String.Compare(_Version, 0, instance2, 0, _versionLength, StringComparison.OrdinalIgnoreCase) == 0);
fx\src\data\System\Data\SqlClient\SqlAeadAes256CbcHmac256Algorithm.cs (10)
151
Debug.
Assert
(plainText != null);
266
Debug.
Assert
(cipherText != null);
319
Debug.
Assert
((iv != null) && (cipherText != null));
320
Debug.
Assert
(offset > -1 && count > -1);
321
Debug.
Assert
((count+offset) <= cipherText.Length);
378
Debug.
Assert
(cipherText != null);
392
Debug.
Assert
(retVal == _version.Length);
394
Debug.
Assert
(retVal == iv.Length);
396
Debug.
Assert
(retVal == length);
401
Debug.
Assert
(computedHash.Length >= authenticationTag.Length);
fx\src\data\System\Data\SqlClient\SqlAeadAes256CbcHmac256Factory.cs (2)
34
Debug.
Assert
(encryptionKey != null);
35
Debug.
Assert
(string.Equals(encryptionAlgorithm, SqlAeadAes256CbcHmac256Algorithm.AlgorithmName, StringComparison.OrdinalIgnoreCase) == true);
fx\src\data\System\Data\SqlClient\SqlAes256CbcFactory.cs (2)
37
Debug.
Assert
(encryptionKey != null);
38
Debug.
Assert
(string.Equals(encryptionAlgorithm, SqlAes256CbcAlgorithm.AlgorithmName, StringComparison.OrdinalIgnoreCase) == true);
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (1)
672
Debug.
Assert
(null != _object);
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (3)
681
Debug.
Assert
(rowvalue is SqlString);
1324
Debug.
Assert
(_parser.ShouldEncryptValuesForBulkCopy());
1970
Debug.
Assert
(_parser.ShouldEncryptValuesForBulkCopy());
fx\src\data\System\Data\SqlClient\SqlCachedBuffer.cs (3)
69
Debug.
Assert
(cb == byteArr.Length);
81
Debug.
Assert
(stateObj._longlen == 0 && stateObj._longlenleft == 0);
93
Debug.
Assert
(cachedBytes.Count == 0);
fx\src\data\System\Data\SqlClient\SqlClientWrapperSmiStream.cs (2)
22
Debug.
Assert
( null != sink );
23
Debug.
Assert
( null != stream );
fx\src\data\System\Data\SqlClient\SqlClientWrapperSmiStreamChars.cs (2)
25
Debug.
Assert
( null != sink );
26
Debug.
Assert
( null != stream );
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCertificateStoreProvider.cs (10)
394
Debug.
Assert
(!string.IsNullOrEmpty(keyPath));
510
Debug.
Assert
(plainText != null);
511
Debug.
Assert
(certificate != null);
526
Debug.
Assert
((cipherText != null) && (cipherText.Length != 0));
527
Debug.
Assert
(certificate != null);
542
Debug.
Assert
((dataToSign != null) && (dataToSign.Length != 0));
543
Debug.
Assert
(certificate != null);
568
Debug.
Assert
((dataToVerify != null) && (dataToVerify.Length != 0));
569
Debug.
Assert
((signature != null) && (signature.Length != 0));
570
Debug.
Assert
(certificate != null);
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCngProvider.cs (10)
318
Debug.
Assert
(columnEncryptionKey != null);
319
Debug.
Assert
(rsaCngProvider != null);
332
Debug.
Assert
((encryptedColumnEncryptionKey != null) && (encryptedColumnEncryptionKey.Length != 0));
333
Debug.
Assert
(rsaCngProvider != null);
346
Debug.
Assert
((dataToSign != null) && (dataToSign.Length != 0));
347
Debug.
Assert
(rsaCngProvider != null);
361
Debug.
Assert
((dataToVerify != null) && (dataToVerify.Length != 0));
362
Debug.
Assert
((signature != null) && (signature.Length != 0));
363
Debug.
Assert
(rsaCngProvider != null);
375
Debug.
Assert
(rsaCngProvider != null);
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCspProvider.cs (10)
326
Debug.
Assert
(columnEncryptionKey != null);
327
Debug.
Assert
(rscp != null);
341
Debug.
Assert
((encryptedColumnEncryptionKey != null) && (encryptedColumnEncryptionKey.Length != 0));
342
Debug.
Assert
(rscp != null);
355
Debug.
Assert
((dataToSign != null) && (dataToSign.Length != 0));
356
Debug.
Assert
(rscp != null);
370
Debug.
Assert
((dataToVerify != null) && (dataToVerify.Length != 0));
371
Debug.
Assert
((signature != null) && (signature.Length != 0));
372
Debug.
Assert
(rscp != null);
384
Debug.
Assert
(rscp != null);
fx\src\data\System\Data\SqlClient\SqlCommand.cs (16)
354
Debug.
Assert
(SmiContextFactory.Instance.NegotiatedSmiVersion >= SmiContextFactory.YukonVersion);
366
Debug.
Assert
(SmiContextFactory.Instance.NegotiatedSmiVersion >= SmiContextFactory.KatmaiVersion);
1443
Debug.
Assert
(!_internalEndExecuteInitiated || _stateObj == null);
1533
Debug.
Assert
(_stateObj == null);
1651
Debug.
Assert
(!inRetry);
1868
Debug.
Assert
(!_internalEndExecuteInitiated || _stateObj == null);
2074
Debug.
Assert
(!_internalEndExecuteInitiated || _stateObj == null);
2200
Debug.
Assert
(!usedCache || !inRetry);
2221
Debug.
Assert
(!_internalEndExecuteInitiated);
3710
Debug.
Assert
(originalRpcRequest != null);
4499
Debug.
Assert
(_rpcArrayOf1[0] == rpc);
4534
Debug.
Assert
(_rpcArrayOf1[0] == rpc);
4690
Debug.
Assert
(_stateObj == null);
5275
Debug.
Assert
(null != paramMetaData);
6130
Debug.
Assert
(_RPCList != null);
6131
Debug.
Assert
(_parameterCollectionList != null);
fx\src\data\System\Data\SqlClient\SqlCommandBuilder.cs (1)
199
Debug.
Assert
(quotePrefix == "\"" || quotePrefix == "[");
fx\src\data\System\Data\SqlClient\SqlConnection.cs (1)
2255
Debug.
Assert
(o != null);
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (2)
3482
Debug.
Assert
(_sharedState._nextColumnDataToRead == _sharedState._nextColumnHeaderToRead);
3996
Debug.
Assert
(IsCommandBehavior(CommandBehavior.SequentialAccess));
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (5)
1069
Debug.
Assert
( _currentPosition != PositionState.AfterResults );
1101
Debug.
Assert
( _currentPosition != PositionState.AfterResults );
1108
Debug.
Assert
( _currentPosition != PositionState.AfterResults );
1115
Debug.
Assert
( _currentPosition != PositionState.AfterResults );
1127
Debug.
Assert
( _currentPosition != PositionState.AfterResults );
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (4)
910
Debug.
Assert
(_asyncCommandCount > 0);
2223
Debug.
Assert
(_dbConnectionPool.AuthenticationContexts != null);
2715
Debug.
Assert
(null != userOptions);
2733
Debug.
Assert
(null != userOptions && null!=routing);
fx\src\data\System\Data\SqlClient\SqlSecurityUtility.cs (6)
33
Debug.
Assert
(key != null && plainText != null);
34
Debug.
Assert
(hash.Length != 0 && hash.Length <= MaxSHA256HashBytes);
50
Debug.
Assert
(input != null);
99
Debug.
Assert
(input != null);
178
Debug.
Assert
(startIndex >= 0);
229
Debug.
Assert
(cipherAlgorithm != null);
fx\src\data\System\Data\SqlClient\SqlStream.cs (3)
161
Debug.
Assert
(reader != null && !reader.IsClosed);
218
Debug.
Assert
(cb == count);
545
Debug.
Assert
(charsToSkip == 0);
fx\src\data\System\Data\SqlClient\SqlUtil.cs (3)
874
Debug.
Assert
(2 == validLocations.Length);
902
Debug.
Assert
(2 == validLocations.Length);
993
Debug.
Assert
(2 == validLocations.Length);
fx\src\data\System\Data\SqlClient\TdsParser.cs (25)
826
Debug.
Assert
(GUID_SIZE == connectionIdBytes.Length);
1192
Debug.
Assert
(connection != null && _connHandler.Connection == connection);
1521
Debug.
Assert
(2 == stateObj._bShortBytes.Length);
1570
Debug.
Assert
(4 == stateObj._bIntBytes.Length);
4237
Debug.
Assert
(0 <= col.scale && col.scale <= 7);
5617
Debug.
Assert
(length <= TdsEnums.MAXSIZE);
7628
Debug.
Assert
(authentication == SqlAuthenticationMethod.ActiveDirectoryIntegrated || authentication == SqlAuthenticationMethod.ActiveDirectoryPassword);
9180
Debug.
Assert
(8 == cekTable[i].CekMdVersion.Length);
9223
Debug.
Assert
(SqlDbType.Xml != mdPriv.type);
9224
Debug.
Assert
(SqlDbType.Udt != mdPriv.type);
9274
Debug.
Assert
(md.cipherMD.CipherAlgorithmName.Length < 256);
9979
Debug.
Assert
(value is SqlBytes);
10032
Debug.
Assert
(value is SqlString);
10060
Debug.
Assert
(value is SqlString);
10173
Debug.
Assert
(!_parser._asyncWrite);
10185
Debug.
Assert
(_parser._asyncWrite);
10301
Debug.
Assert
(_size >= _written);
10323
Debug.
Assert
(_size >= _written);
10406
Debug.
Assert
(encoding == null || !needBom);
10465
Debug.
Assert
(readSize >= 0);
10943
Debug.
Assert
(value is SqlBytes);
10986
Debug.
Assert
(value is SqlString);
11004
Debug.
Assert
(value is SqlString);
11164
Debug.
Assert
(stateObj._longlenleft == 0);
11256
Debug.
Assert
(stateObj._longlenleft == 0);
fx\src\data\System\Data\SqlClient\TdsParserHelperClasses.cs (4)
222
Debug.
Assert
(_databaseId == databaseId);
223
Debug.
Assert
(_cekId == cekId);
224
Debug.
Assert
(_cekVersion == cekVersion);
225
Debug.
Assert
(_cekMdVersion != null && cekMdVersion != null && _cekMdVersion.Length == _cekMdVersion.Length);
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (4)
1756
Debug.
Assert
(_longlenleft == 0);
2730
Debug.
Assert
(async || _asyncWriteCount == 0);
2924
Debug.
Assert
(_asyncWriteCount >= 0);
3598
Debug.
Assert
(!_snapshotInBuffs.Any(b => object.ReferenceEquals(b, buffer)));
fx\src\data\System\Data\SqlClient\TdsValueSetter.cs (17)
117
Debug.
Assert
(
135
Debug.
Assert
(
151
Debug.
Assert
(
191
Debug.
Assert
(
228
Debug.
Assert
(
280
Debug.
Assert
(
312
Debug.
Assert
(
377
Debug.
Assert
(
391
Debug.
Assert
(
404
Debug.
Assert
(
437
Debug.
Assert
(
450
Debug.
Assert
(
463
Debug.
Assert
(
479
Debug.
Assert
(
528
Debug.
Assert
(
547
Debug.
Assert
(
567
Debug.
Assert
(
fx\src\data\System\Data\SQLTypes\SQLBytes.cs (7)
465
Debug.
Assert
(m_state >= SqlBytesCharsState.Null && m_state <= SqlBytesCharsState.Stream);
470
Debug.
Assert
((m_lCurLen >= 0 && m_lCurLen <= x_lMaxLen) || FStream());
471
Debug.
Assert
(FStream() || (m_rgbBuf != null && m_lCurLen <= m_rgbBuf.Length));
472
Debug.
Assert
(!FStream() || (m_lCurLen == x_lNull));
474
Debug.
Assert
(m_rgbWorkBuf == null || m_rgbWorkBuf.Length == 1);
481
Debug.
Assert
(FStream());
591
Debug.
Assert
(false);
fx\src\data\System\Data\SQLTypes\SQLChars.cs (7)
463
Debug.
Assert
(m_state >= SqlBytesCharsState.Null && m_state <= SqlBytesCharsState.Stream);
468
Debug.
Assert
((m_lCurLen >= 0 && m_lCurLen <= x_lMaxLen) || FStream());
469
Debug.
Assert
(FStream() || (m_rgchBuf != null && m_lCurLen <= m_rgchBuf.Length));
470
Debug.
Assert
(!FStream() || (m_lCurLen == x_lNull));
472
Debug.
Assert
(m_rgchWorkBuf == null || m_rgchWorkBuf.Length == 1);
484
Debug.
Assert
(FStream());
576
Debug.
Assert
(false);
fx\src\data\System\Data\SQLTypes\SQLFileStream.cs (21)
156
Debug.
Assert
( value != null );
157
Debug.
Assert
( !m_disposed );
175
Debug.
Assert
( value != null );
176
Debug.
Assert
( !m_disposed );
436
Debug.
Assert
( path != null );
437
Debug.
Assert
( path == path.Trim() );
438
Debug.
Assert
( path.Length > 0 );
439
Debug.
Assert
(path.Length <= MaxWin32PathLength);
440
Debug.
Assert
(path.IndexOfAny(InvalidPathChars) < 0);
441
Debug.
Assert
( path.StartsWith ( @"\\", StringComparison.OrdinalIgnoreCase ) );
442
Debug.
Assert
( !path.StartsWith ( @"\\.\", StringComparison.Ordinal ) );
460
Debug.
Assert
( path != null );
530
Debug.
Assert
(access == System.IO.FileAccess.ReadWrite);
588
Debug.
Assert
( path != null );
589
Debug.
Assert
(transactionContext != null);
641
Debug.
Assert
(access == System.IO.FileAccess.ReadWrite);
787
System.Diagnostics.Debug.
Assert
( m_fs == null );
881
System.Diagnostics.Debug.
Assert
( path.Length <= ( UInt16.MaxValue / sizeof(char) ) );
1082
System.Diagnostics.Debug.
Assert
(Marshal.OffsetOf(typeof(UnsafeNativeMethods.FILE_FULL_EA_INFORMATION), "EaName").ToInt64() <= (Int64) Int32.MaxValue);
1089
System.Diagnostics.Debug.
Assert
( cbOffset < m_cbBuffer );
1095
System.Diagnostics.Debug.
Assert
( cbOffset < m_cbBuffer || transactionContext.Length == 0 && cbOffset == m_cbBuffer );
fx\src\data\System\Data\SQLTypes\SQLMoney.cs (1)
108
Debug.
Assert
(snum.Scale == x_iMoneyScale);
fx\src\data\System\Data\SQLTypes\UnsafeNativeMethods.cs (1)
73
Debug.
Assert
(path.Length < Int16.MaxValue);
fx\src\data\System\NewXml\DataPointer.cs (22)
53
Debug.
Assert
( rowElem != null );
54
Debug.
Assert
( rowElem.Row != null );
69
Debug.
Assert
( rowElem.Row != null );
83
Debug.
Assert
( node == this.doc || node.OwnerDocument == this.doc );
94
Debug.
Assert
( node == this.doc || node.OwnerDocument == this.doc );
105
Debug.
Assert
( node == this.doc || node.OwnerDocument == this.doc );
339
Debug.
Assert
( name != null );
382
Debug.
Assert
( name != null );
566
Debug.
Assert
( this.column == null );
570
Debug.
Assert
( this.column == null );
574
Debug.
Assert
( this.column == null );
587
Debug.
Assert
( this.column == null );
591
Debug.
Assert
( this.column == null );
595
Debug.
Assert
( this.column == null );
606
Debug.
Assert
( this.column == null );
625
Debug.
Assert
( this.column == null );
639
Debug.
Assert
( this.column == null );
653
Debug.
Assert
( this.column == null );
670
Debug.
Assert
( rowElem != null );
673
Debug.
Assert
( row != null );
680
Debug.
Assert
( ! Convert.IsDBNull( row[ this.column, rowVersion ] ) );
683
Debug.
Assert
( (this.column.ColumnMapping == MappingType.SimpleContent) ? (this.fOnValue == true) : true );
fx\src\data\System\NewXml\DataSetMappper.cs (6)
34
Debug.
Assert
( this.dataSet == null );
86
Debug.
Assert
( elem != null );
95
Debug.
Assert
( rowElem.Row != null );
131
Debug.
Assert
( rowElem != null );
133
Debug.
Assert
( (node is XmlBoundElement) ? ((XmlBoundElement)node).Row == null : true );
217
Debug.
Assert
( rowElem.Row != null );
fx\src\data\System\NewXml\RegionIterator.cs (14)
28
Debug.
Assert
( rowElement != null && rowElement.Row != null );
47
Debug.
Assert
( oldState != ElementState.None );
56
Debug.
Assert
( (oldState == ElementState.Defoliated) ? (rowElement.ElementState == ElementState.Defoliated) : true );
73
Debug.
Assert
( oldState != ElementState.None );
80
Debug.
Assert
( (oldState == ElementState.Defoliated) ? (rowElement.ElementState == ElementState.Defoliated) : true );
94
Debug.
Assert
( (oldState == ElementState.Defoliated) ? (rowElement.ElementState == ElementState.Defoliated) : true );
101
Debug.
Assert
( currentNode != null );
103
Debug.
Assert
( (oldState == ElementState.Defoliated) ? (rowElement.ElementState == ElementState.Defoliated) : true );
112
Debug.
Assert
( this.CurrentNode != null );
113
Debug.
Assert
( this.CurrentNode.NodeType == XmlNodeType.Element );
124
Debug.
Assert
( oldState != ElementState.None );
130
Debug.
Assert
( (oldState == ElementState.Defoliated) ? (rowElement.ElementState == ElementState.Defoliated) : true );
135
Debug.
Assert
( ! XmlDataDocument.IsTextLikeNode( n ) );
138
Debug.
Assert
( (oldState == ElementState.Defoliated) ? (rowElement.ElementState == ElementState.Defoliated) : true );
fx\src\data\System\NewXml\TreeIterator.cs (2)
18
Debug.
Assert
( nodeTop != null );
72
Debug.
Assert
( currentNode != null );
fx\src\data\System\NewXml\XmlBoundElement.cs (4)
194
Debug.
Assert
( element is XmlBoundElement );
226
Debug.
Assert
( dp.NodeType == XmlNodeType.Element );
255
Debug.
Assert
( dp.NodeType == XmlNodeType.Element );
314
Debug.
Assert
( ((IXmlDataVirtualNode)dp).IsOnColumn( null ) );
fx\src\data\System\NewXml\XmlDataDocument.cs (119)
59
Debug.
Assert
( pointers.ContainsValue(pointer) == false );
66
Debug.
Assert
( temp != null );
98
Debug.
Assert
( dataSet == null );
99
Debug.
Assert
( ds != null );
180
Debug.
Assert
( ignoreXmlEvents == true );
193
Debug.
Assert
( DocumentElement == null || ! fLoadFromDataSet );
222
Debug.
Assert
( fDataRowCreatedSpecial == false );
223
Debug.
Assert
( fBoundToDataSet == false && fBoundToDocument == false );
228
Debug.
Assert
( fDataRowCreatedSpecial == true );
243
Debug.
Assert
( dataSet != null );
334
Debug.
Assert
( fDataRowCreatedSpecial == false );
346
Debug.
Assert
( be != null );
373
Debug.
Assert
( rowElem.Row != null );
406
Debug.
Assert
( mapper.GetColumnSchemaForNode( rowElem, node ) != null );
453
Debug.
Assert
( this.ignoreXmlEvents == true );
455
Debug.
Assert
( this.GetRowFromElement( this.DocumentElement ) != null );
463
Debug.
Assert
( docElem.LastChild == docElem.FirstChild );
479
Debug.
Assert
( ! mapper.IsMapped() );
480
Debug.
Assert
( ! fBoundToDocument );
481
Debug.
Assert
( ! fBoundToDataSet );
493
Debug.
Assert
( fDataRowCreatedSpecial == false );
494
Debug.
Assert
( mapper.IsMapped() );
495
Debug.
Assert
( fBoundToDataSet && fBoundToDocument );
531
Debug.
Assert
( newState == ElementState.WeakFoliation || newState == ElementState.StrongFoliation );
558
Debug.
Assert
( node.Row != null );
596
Debug.
Assert
( node.Row != null );
597
Debug.
Assert
( node.Row.RowState != DataRowState.Deleted );
638
Debug.
Assert
( col.ColumnMapping == MappingType.SimpleContent );
796
Debug.
Assert
( be != null );
807
Debug.
Assert
( pointer != null );
864
Debug.
Assert
( DataSet.EnforceConstraints == false );
875
Debug.
Assert
( newNode != null );
891
Debug.
Assert
( ignoreDataSetEvents == true );
892
Debug.
Assert
( ignoreXmlEvents == true );
893
Debug.
Assert
( IsFoliationEnabled == false );
932
Debug.
Assert
( clone.FirstChild == null );
1000
Debug.
Assert
( false );
1074
Debug.
Assert
( reader is XmlTextReader );
1097
Debug.
Assert
( DocumentElement != null );
1129
Debug.
Assert
( r.Element == null );
1144
Debug.
Assert
( false );
1148
Debug.
Assert
( false );
1164
Debug.
Assert
( node != null );
1172
Debug.
Assert
( r == null );
1180
Debug.
Assert
( be.Row != null );
1196
Debug.
Assert
( row.RowState == DataRowState.Detached );
1205
Debug.
Assert
( row.RowState == DataRowState.Detached );
1214
Debug.
Assert
( row.Element == null );
1216
Debug.
Assert
( row.RowState == DataRowState.Detached );
1222
Debug.
Assert
( row.Element == null );
1234
Debug.
Assert
( tb != null ) ;
1243
Debug.
Assert
( this.ignoreXmlEvents == true );
1246
Debug.
Assert
( rowElement != null );
1252
Debug.
Assert
( rowElement != null );
1358
Debug.
Assert
( e != null );
1409
Debug.
Assert
( relation.ChildTable == row.Table );
1417
Debug.
Assert
( args.Row.RowState != DataRowState.Deleted );
1434
Debug.
Assert
( be != null );
1448
Debug.
Assert
( row != null );
1449
Debug.
Assert
( rowElement != null );
1472
Debug.
Assert
( this.ignoreXmlEvents == true );
1508
Debug.
Assert
( pointer != null );
1537
Debug.
Assert
( child.Element == childElement && childElement.Row == child );
1539
Debug.
Assert
( ignoreXmlEvents == true );
1566
Debug.
Assert
( colInParent != null );
1601
Debug.
Assert
( DataSet.EnforceConstraints == false );
1634
Debug.
Assert
( DataSet.EnforceConstraints == false );
1647
Debug.
Assert
( oldParent == null );
1685
Debug.
Assert
( DataSet.EnforceConstraints == false );
1693
Debug.
Assert
( args.NewParent == null );
1748
Debug.
Assert
( ! IsRowLive( row ) );
1756
Debug.
Assert
( ! IsRowLive( be.Row ) );
1785
Debug.
Assert
( rowElement != null );
1876
Debug.
Assert
( false ); // This should have been handled above, irrespective of ignoreDataSetEvents value (true or false)
1989
Debug.
Assert
( ! (args.Action == CollectionChangeAction.Add || args.Action == CollectionChangeAction.Remove) || rel.Nested == false );
2031
Debug.
Assert
( child.ParentNode != prevSibling.ParentNode );
2033
Debug.
Assert
( prevSibling.ParentNode != null );
2034
Debug.
Assert
( IsFoliationEnabled == false );
2035
Debug.
Assert
( IgnoreXmlEvents == true );
2037
Debug.
Assert
( prevSibling != this.DocumentElement );
2042
Debug.
Assert
( child.ParentNode == null );
2048
Debug.
Assert
( parent != null );
2049
Debug.
Assert
( parent.NodeType != XmlNodeType.Attribute ); // We need to get get the grand-parent region
2050
Debug.
Assert
( parent != DocumentElement ); // We cannot promote children of the DocumentElement
2059
Debug.
Assert
( iter.CurrentNode is XmlBoundElement && ((XmlBoundElement)(iter.CurrentNode)).Row != null );
2068
Debug.
Assert
( parent != null );
2140
Debug.
Assert
( col.ColumnMapping != MappingType.Hidden );
2141
Debug.
Assert
( row.Table.DataSet.EnforceConstraints == false );
2149
Debug.
Assert
( xmlText != null );
2150
Debug.
Assert
( row.Table.DataSet.EnforceConstraints == false );
2155
Debug.
Assert
( oVal != null && ! ( oVal is DBNull ) );
2178
Debug.
Assert
( row != null );
2212
Debug.
Assert
( rowElement != null );
2213
Debug.
Assert
( rowElement.Row != null );
2214
Debug.
Assert
( this.DataSet.EnforceConstraints == false );
2217
Debug.
Assert
( row != null );
2263
Debug.
Assert
( c.Table == row.Table );
2413
Debug.
Assert
(rowElemList[0] != null && rowElemList[0] is XmlBoundElement);
2417
Debug.
Assert
( subRowElem != null );
2429
Debug.
Assert
( ! IsRowLive( be.Row ) );
2437
Debug.
Assert
(rowElemList[0] != null && rowElemList[0] is XmlBoundElement);
2458
Debug.
Assert
( rowElem.Row != null );
2509
Debug.
Assert
( false );
2512
Debug.
Assert
( IsRowLive( rowElem.Row ) );
2517
Debug.
Assert
( rowElem.Row != null );
2558
Debug.
Assert
( false );
2562
Debug.
Assert
( ! IsRowLive( rowElem.Row ) );
2571
Debug.
Assert
( row != null );
2585
Debug.
Assert
( row != null );
2587
Debug.
Assert
( row.RowState == DataRowState.Detached || row.RowState == DataRowState.Deleted );
2595
Debug.
Assert
( childRowElem.Row != null );
2609
Debug.
Assert
( parentRow != null );
2659
Debug.
Assert
( node.OwnerDocument == this || node == this );
2690
Debug.
Assert
( IsRowLive( rowElement.Row ) );
2694
Debug.
Assert
( rowElement.Row != null );
2695
Debug.
Assert
( IsRowLive( rowElement.Row ) );
2709
Debug.
Assert
( ! IsRowLive( rowElement.Row ) );
2713
Debug.
Assert
( rowElement.Row != null );
2714
Debug.
Assert
( ! IsRowLive( rowElement.Row ) );
fx\src\data\System\NewXml\XPathNodePointer.cs (33)
63
Debug.
Assert
( XmlDataDocument.IsTextNode( node.NodeType ) );
94
Debug.
Assert
( xnt != -1 );
115
Debug.
Assert
( owner != null );
398
Debug.
Assert
( rowElem != null );
399
Debug.
Assert
( rowElem.Row != null );
416
Debug.
Assert
( rowElem.Row != null );
447
Debug.
Assert
( node == this._doc || node.OwnerDocument == this._doc );
458
Debug.
Assert
( node == this._doc || node.OwnerDocument == this._doc );
567
Debug.
Assert
( _node.Attributes != null );
636
Debug.
Assert
( xntInt != -1 );
657
Debug.
Assert
( xntInt != -1 );
676
Debug.
Assert
( _column.ColumnMapping != MappingType.Attribute && _column.ColumnMapping != MappingType.Hidden );
917
Debug.
Assert
( _parentOfNS != null );
982
Debug.
Assert
( other != null );
995
Debug.
Assert
( other.NodeType != XPathNodeType.Namespace );
1008
Debug.
Assert
( this.NodeType != XPathNodeType.Namespace );
1025
Debug.
Assert
( this._fOnValue != other._fOnValue );
1032
Debug.
Assert
( this.Row == other.Row ); //in the same row
1048
Debug.
Assert
( curNode1 != null );
1049
Debug.
Assert
( curNode2 != null );
1099
Debug.
Assert
( false );
1156
Debug.
Assert
( this._column != null );
1324
Debug.
Assert
( attrs!=null );
1410
Debug.
Assert
( _parentOfNS != null );
1414
Debug.
Assert
( this._column.Namespace == s_strReservedXmlns );
1418
Debug.
Assert
( be != null );
1420
Debug.
Assert
( curRow != null );
1439
Debug.
Assert
( attr != null );
1481
Debug.
Assert
( rowElem != null );
1484
Debug.
Assert
( row != null );
1491
Debug.
Assert
( ! Convert.IsDBNull( row[ this._column, rowVersion ] ) );
1494
Debug.
Assert
( (this._column.ColumnMapping == MappingType.SimpleContent) ? (this._fOnValue == true) : true );
1497
Debug.
Assert
( !this._fOnValue );
System.Data.DataSetExtensions (9)
System\Data\DataRowComparer.cs (1)
207
Debug.
Assert
(row.Table != null);
System\Data\EnumerableRowCollection.cs (1)
316
Debug.
Assert
(pred != null);
System\Data\LinqDataView.cs (1)
126
Debug.
Assert
(base.Sort != null);
System\Data\SortExpressionBuilder.cs (6)
62
Debug.
Assert
(keySelector != null);
63
Debug.
Assert
(compare != null);
74
Debug.
Assert
(_currentSelector != null);
75
Debug.
Assert
(_currentComparer != null);
110
Debug.
Assert
(a.Count == Count);
131
Debug.
Assert
(_selectors.Count == _comparers.Count); //weak now that we have two dimensions
System.Data.Entity (529)
System\Data\Common\EntitySql\AST\Literal.cs (22)
154
System.Diagnostics.Debug.
Assert
(IsNumber && !IsSignedNumber);
156
System.Diagnostics.Debug.
Assert
(_computedValue == null);
393
Debug.
Assert
(stringLiteralValue.Length >= 2);
429
Debug.
Assert
(after == (before - 2) / 2);
514
Debug.
Assert
(year >= 1 && year <= 9999);
515
Debug.
Assert
(month >= 1 && month <= 12);
516
Debug.
Assert
(day >= 1 && day <= 31);
517
Debug.
Assert
(hour >= 0 && hour <= 24);
518
Debug.
Assert
(minute >= 0 && minute <= 59);
519
Debug.
Assert
(second >= 0 && second <= 59);
520
Debug.
Assert
(ticks >= 0 && ticks <= 9999999);
545
Debug.
Assert
(year >= 1 && year <= 9999);
546
Debug.
Assert
(month >= 1 && month <= 12);
547
Debug.
Assert
(day >= 1 && day <= 31);
548
Debug.
Assert
(hour >= 0 && hour <= 24);
549
Debug.
Assert
(minute >= 0 && minute <= 59);
550
Debug.
Assert
(second >= 0 && second <= 59);
551
Debug.
Assert
(ticks >= 0 && ticks <= 9999999);
589
Debug.
Assert
(hour >= 0 && hour <= 24);
590
Debug.
Assert
(minute >= 0 && minute <= 59);
591
Debug.
Assert
(second >= 0 && second <= 59);
592
Debug.
Assert
(ticks >= 0 && ticks <= 9999999);
System\Data\Common\EntitySql\CqlParser.cs (2)
2971
System.Diagnostics.Debug.
Assert
(elist.Count==2);
2980
System.Diagnostics.Debug.
Assert
(elist.Count==2);
System\Data\Common\EntitySql\FunctionOverloadResolver.cs (1)
151
Debug.
Assert
(bestCandidateRank != null);
System\Data\Common\EntitySql\SemanticAnalyzer.cs (3)
374
Debug.
Assert
(functionDefList.Count == inlineFunctionInfos.Count);
2967
Debug.
Assert
(projectionItemErrCtxs.Count == rowType.Members.Count);
3963
Debug.
Assert
(TypeSemantics.IsCollectionType(lambdaVariable.ResultType));
System\Data\Common\EntitySql\StaticContext.cs (3)
48
Debug.
Assert
(Contains(key));
54
Debug.
Assert
(Contains(key));
453
Debug.
Assert
(CurrentScopeIndex >= 0);
System\Data\Common\EntityUtil.cs (1)
1836
Debug.
Assert
(providerFactory != null);
System\Data\Common\Internal\Materialization\Shaper.cs (10)
287
Debug.
Assert
(targetMember != null);
288
Debug.
Assert
(targetMember.RelationshipMultiplicity == RelationshipMultiplicity.One || targetMember.RelationshipMultiplicity == RelationshipMultiplicity.ZeroOrOne);
411
Debug.
Assert
(associationType.DataSpace == DataSpace.CSpace);
651
Debug.
Assert
(Helper.IsGeometricTypeKind(spatialTypeKind));
694
Debug.
Assert
(null != (object)sourceKey);
695
Debug.
Assert
(wrappedSource != null);
696
Debug.
Assert
(wrappedSource.Entity != null);
697
Debug.
Assert
(targetMember != null);
698
Debug.
Assert
(this.Context != null);
710
Debug.
Assert
(associationSet.AssociationSetEnds[sourceMember.Name].EntitySet == sourceEntitySet);
System\Data\Common\Utils\Boolean\BoolExpr.cs (2)
255
Debug.
Assert
(null != (object)identifier);
336
Debug.
Assert
(null != children);
System\Data\Common\Utils\Boolean\Clause.cs (1)
53
Debug.
Assert
(isAnd || ExprType.Or == treeType);
System\Data\Common\Utils\Boolean\ConversionContext.cs (1)
80
Debug.
Assert
(2 == vertex.Children.Length);
System\Data\Common\Utils\Boolean\DomainConstraint.cs (2)
38
Debug.
Assert
(null != identifier && null != domain);
99
Debug.
Assert
(null != variable && null != range);
System\Data\Common\Utils\Boolean\Literal.cs (1)
43
Debug.
Assert
(null != term);
System\Data\Common\Utils\Boolean\Sentence.cs (1)
83
Debug.
Assert
(isAnd || ExprType.Or == treeType);
System\Data\Common\Utils\Boolean\Simplifier.cs (1)
59
Debug.
Assert
(isAnd || ExprType.Or == tree.ExprType);
System\Data\Common\Utils\Boolean\Solver.cs (1)
276
Debug.
Assert
(null != vertices);
System\Data\Common\Utils\Boolean\Visitor.cs (2)
70
Debug.
Assert
(null != expression);
197
Debug.
Assert
(null != translator);
System\Data\Common\Utils\CommandHelper.cs (9)
47
Debug.
Assert
(null != commandText);
77
Debug.
Assert
(null != entityCommand);
102
Debug.
Assert
(null != entityCommand);
103
Debug.
Assert
(null != storeProviderCommand);
122
Debug.
Assert
(null != entityCommand);
123
Debug.
Assert
(null != storeProviderCommand);
124
Debug.
Assert
(null != connection);
160
Debug.
Assert
(Helper.IsGeometricType(parameterType));
168
Debug.
Assert
(null != workspace && null != containerName && null != functionImportName);
System\Data\Common\Utils\KeyToListMap.cs (1)
29
Debug.
Assert
(null != comparer);
System\Data\Common\Utils\MetadataHelper.cs (13)
166
Debug.
Assert
(null != workspace);
221
Debug.
Assert
(null != end);
275
Debug.
Assert
(null != toEnd);
276
Debug.
Assert
(null != type);
288
Debug.
Assert
(null != end);
299
Debug.
Assert
(function != null);
314
Debug.
Assert
(member != null);
315
Debug.
Assert
(Helper.IsEdmProperty(member) || Helper.IsAssociationEndMember(member));
328
Debug.
Assert
(table.EntityContainer.GetDataSpace() == DataSpace.SSpace);
593
Debug.
Assert
(entitySet1 != null);
594
Debug.
Assert
(entitySet2 != null);
651
Debug.
Assert
(entitySet != null);
688
Debug.
Assert
(null != typeUsage && null != typeUsage.EdmType && typeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.PrimitiveType);
System\Data\Common\Utils\Set.cs (1)
313
Debug.
Assert
(other.Comparer.GetType().Equals(this.Comparer.GetType()));
System\Data\EntityClient\EntityAdapter.cs (1)
132
Debug.
Assert
(null != entityCache);
System\Data\EntityClient\EntityCommand.cs (2)
564
Debug.
Assert
(this._connection != null);
624
Debug.
Assert
(CommandType.StoredProcedure == this.CommandType);
System\Data\EntityClient\EntityConnection.cs (3)
150
Debug.
Assert
(_storeConnection != null);
278
Debug.
Assert
(this.StoreConnection != null);
1128
System.Diagnostics.Debug.
Assert
(
System\Data\EntityClient\EntityDataReader.cs (2)
43
Debug.
Assert
(command != null && storeDataReader != null);
172
Debug.
Assert
(this._command.Connection != null);
System\Data\EntityClient\EntityTransaction.cs (1)
35
Debug.
Assert
(connection != null && storeTransaction != null);
System\Data\EntityModel\SchemaObjectModel\CollectionTypeElement.cs (5)
62
Debug.
Assert
(reader != null);
103
Debug.
Assert
(reader != null);
112
Debug.
Assert
(reader != null);
121
Debug.
Assert
(reader != null);
130
Debug.
Assert
(reader != null);
System\Data\EntityModel\SchemaObjectModel\EntityContainer.cs (3)
184
Debug.
Assert
(reader != null);
192
Debug.
Assert
(reader != null);
200
Debug.
Assert
(null != reader);
System\Data\EntityModel\SchemaObjectModel\EntityContainerAssociationSet.cs (3)
92
Debug.
Assert
( reader != null );
157
Debug.
Assert
( relationshipEnd != null );
158
Debug.
Assert
( !_relationshipEnds.ContainsKey( relationshipEnd.Name ) );
System\Data\EntityModel\SchemaObjectModel\EntityContainerEntitySet.cs (4)
143
Debug.
Assert
(reader != null);
169
Debug.
Assert
( reader != null );
185
Debug.
Assert
( reader != null );
197
Debug.
Assert
( reader != null );
System\Data\EntityModel\SchemaObjectModel\EntityContainerRelationshipSet.cs (2)
68
Debug.
Assert
( reader != null );
164
Debug.
Assert
( Relationship != null );
System\Data\EntityModel\SchemaObjectModel\Function.cs (12)
608
Debug.
Assert
(reader != null);
619
Debug.
Assert
(reader != null);
631
Debug.
Assert
(reader != null);
643
Debug.
Assert
(reader != null);
658
Debug.
Assert
(reader != null);
670
Debug.
Assert
(reader != null);
678
Debug.
Assert
(reader != null);
687
Debug.
Assert
(reader != null);
688
Debug.
Assert
(UnresolvedReturnType == null);
722
Debug.
Assert
(reader != null);
737
Debug.
Assert
(reader != null);
756
Debug.
Assert
(reader != null);
System\Data\EntityModel\SchemaObjectModel\ModelFunction.cs (1)
145
Debug.
Assert
(reader != null);
System\Data\EntityModel\SchemaObjectModel\OnOperation.cs (1)
101
Debug.
Assert
(reader != null);
System\Data\EntityModel\SchemaObjectModel\Parameter.cs (7)
183
Debug.
Assert
(reader != null);
184
Debug.
Assert
(UnresolvedType == null);
212
Debug.
Assert
(reader != null);
314
Debug.
Assert
(reader != null);
323
Debug.
Assert
(reader != null);
332
Debug.
Assert
(reader != null);
341
Debug.
Assert
(reader != null);
System\Data\EntityModel\SchemaObjectModel\ReferenceTypeElement.cs (4)
51
Debug.
Assert
(reader != null);
65
Debug.
Assert
(UnresolvedType != null && !UnresolvedType.Trim().Equals(String.Empty));
78
Debug.
Assert
(!(_type is ScalarType));
83
Debug.
Assert
(entityType != null);
System\Data\EntityModel\SchemaObjectModel\Relationship.cs (2)
189
Debug.
Assert
(reader != null);
208
Debug.
Assert
(reader != null);
System\Data\EntityModel\SchemaObjectModel\RelationshipEnd.cs (3)
197
Debug.
Assert
(reader != null);
212
Debug.
Assert
(reader != null);
237
Debug.
Assert
(reader != null);
System\Data\EntityModel\SchemaObjectModel\RelationshipEndCollection.cs (3)
254
Debug.
Assert
(ends.Length-index >= Count);
275
Debug.
Assert
(data != null);
276
Debug.
Assert
(keysInDefOrder != null);
System\Data\EntityModel\SchemaObjectModel\ReturnType.cs (8)
155
Debug.
Assert
(reader != null);
156
Debug.
Assert
(UnresolvedType == null);
183
Debug.
Assert
(reader != null);
193
Debug.
Assert
(reader != null);
234
Debug.
Assert
(reader != null);
243
Debug.
Assert
(reader != null);
252
Debug.
Assert
(reader != null);
261
Debug.
Assert
(reader != null);
System\Data\EntityModel\SchemaObjectModel\RowTypeElement.cs (1)
48
Debug.
Assert
(reader != null);
System\Data\EntityModel\SchemaObjectModel\RowTypePropertyElement.cs (6)
64
Debug.
Assert
(reader != null);
117
Debug.
Assert
(reader != null);
126
Debug.
Assert
(reader != null);
135
Debug.
Assert
(reader != null);
144
Debug.
Assert
(reader != null);
216
Debug.
Assert
(entityType != null);
System\Data\EntityModel\SchemaObjectModel\Schema.cs (18)
302
Debug.
Assert
(e != null);
740
Debug.
Assert
(_depth > 0);
824
Debug.
Assert
(usingElement != null);
825
Debug.
Assert
(typeName != null);
937
Debug.
Assert
(reader != null);
953
Debug.
Assert
(reader != null);
965
Debug.
Assert
(reader != null);
978
Debug.
Assert
(reader != null);
987
Debug.
Assert
(reader != null);
1013
Debug.
Assert
(reader != null);
1027
Debug.
Assert
(reader != null);
1047
Debug.
Assert
(reader != null);
1062
Debug.
Assert
(reader != null);
1077
Debug.
Assert
(reader != null);
1089
Debug.
Assert
(reader != null);
1104
Debug.
Assert
(reader != null);
1118
Debug.
Assert
(reader != null);
1133
Debug.
Assert
(reader != null);
System\Data\EntityModel\SchemaObjectModel\SchemaElement.cs (3)
241
Debug.
Assert
(reader.NodeType == XmlNodeType.Element);
497
Debug.
Assert
(reader != null);
635
Debug.
Assert
(reader.NamespaceURI != null);
System\Data\EntityModel\SchemaObjectModel\SchemaEnumType.cs (1)
207
Debug.
Assert
(_unresolvedUnderlyingTypeName != string.Empty);
System\Data\EntityModel\SchemaObjectModel\SchemaManager.cs (1)
166
Debug.
Assert
(schemaCollection.All(s => s.SchemaVersion == currentSchemaVersion || s.SchemaVersion != XmlConstants.UndefinedVersion));
System\Data\EntityModel\SchemaObjectModel\StructuredProperty.cs (1)
154
Debug.
Assert
(Type is SchemaEnumType);
System\Data\EntityModel\SchemaObjectModel\StructuredType.cs (1)
410
Debug.
Assert
(baseType != null);
System\Data\EntityModel\SchemaObjectModel\TypeElement.cs (8)
108
Debug.
Assert
(reader != null);
121
Debug.
Assert
(reader != null);
133
Debug.
Assert
(reader != null);
145
Debug.
Assert
(reader != null);
157
Debug.
Assert
(reader != null);
169
Debug.
Assert
(reader != null);
181
Debug.
Assert
(reader != null);
195
Debug.
Assert
(reader != null);
System\Data\EntityModel\SchemaObjectModel\TypeRefElement.cs (3)
52
Debug.
Assert
(reader != null);
87
Debug.
Assert
(UnresolvedType != null && !UnresolvedType.Trim().Equals(String.Empty));
93
Debug.
Assert
(_typeUsage != null);
System\Data\EntityModel\SchemaObjectModel\TypeUsageBuilder.cs (4)
431
Debug.
Assert
( (primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.DateTime) ||(primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.DateTimeOffset)||(primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.Time)) ;
536
Debug.
Assert
(reader.LocalName == EdmProviderManifest.MaxLengthFacetName);
556
Debug.
Assert
(reader.LocalName == EdmProviderManifest.SridFacetName);
700
Debug.
Assert
(_default != null);
System\Data\EntityModel\SchemaObjectModel\ValidationHelper.cs (4)
34
Debug.
Assert
(element != null);
35
Debug.
Assert
(typeUsageBuilder != null);
74
Debug.
Assert
(element != null);
96
Debug.
Assert
(element != null);
System\Data\Mapping\DefaultObjectMappingItemCollection.cs (8)
236
Debug.
Assert
((cdmType != null) && (clrType != null));
242
Debug.
Assert
(typeSpace == DataSpace.CSpace || typeSpace == DataSpace.OSpace || Helper.IsRowType(edmType) || Helper.IsCollectionType(edmType));
449
Debug.
Assert
((edmType != null) && (objectType != null));
476
Debug.
Assert
(Helper.IsAssociationType(edmType));
692
Debug.
Assert
(Helper.IsPrimitiveType(edmEnumType.UnderlyingType));
693
Debug.
Assert
(Helper.IsSupportedEnumUnderlyingType(edmEnumType.UnderlyingType.PrimitiveTypeKind));
696
Debug.
Assert
(Helper.IsPrimitiveType(objectEnumType.UnderlyingType));
697
Debug.
Assert
(Helper.IsSupportedEnumUnderlyingType(objectEnumType.UnderlyingType.PrimitiveTypeKind));
System\Data\Mapping\FunctionImportMappingNonComposable.cs (2)
47
Debug.
Assert
(functionImport.ReturnParameters.Count == structuralTypeMappingsList.Count);
103
Debug.
Assert
(resultMapping != null);
System\Data\Mapping\ObjectTypeMapping.cs (1)
135
Debug.
Assert
(!m_memberMapping.ContainsKey(memberMapping.EdmMember.Name));
System\Data\Mapping\StorageComplexTypeMapping.cs (1)
128
Debug.
Assert
(conditionMember != null);
System\Data\Mapping\StorageEntityContainerMapping.cs (1)
432
Debug.
Assert
(object.ReferenceEquals(this, args.ContainerMapping));
System\Data\Mapping\StorageMappingFragment.cs (1)
203
Debug.
Assert
(conditionMember != null);
System\Data\Mapping\StorageMappingItemCollection.cs (2)
230
Debug.
Assert
(errors != null);
816
Debug.
Assert
(key.First.Equals(setMapping.Set));
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (5)
73
Debug.
Assert
(container != null);
131
Debug.
Assert
(entityContainerMap.HasViews);
163
Debug.
Assert
(entityContainer != null);
164
Debug.
Assert
(entity != null);
165
Debug.
Assert
(type != null);
System\Data\Mapping\StorageMappingItemLoader.cs (11)
98
Debug.
Assert
(storageMappingItemCollection != null);
99
Debug.
Assert
(scalarMemberMappings != null);
319
Debug.
Assert
(nav.LocalName == StorageMslConstructs.EntityContainerMappingElement);
1253
Debug.
Assert
(nav.LocalName == StorageMslConstructs.QueryViewElement);
1309
Debug.
Assert
(isOfTypeEntityTypes.Count > 0 || entityTypes.Count > 0);
1310
Debug.
Assert
(!(isOfTypeEntityTypes.Count > 0 && entityTypes.Count > 0));
3013
Debug.
Assert
(partialAttribute == "true" || partialAttribute == "false");
3024
Debug.
Assert
(nav.LocalName == StorageMslConstructs.ComplexTypeMappingElement);
3143
Debug.
Assert
(endRef != null);
3309
Debug.
Assert
(isNullAttribute == "true" || isNullAttribute == "false");
3676
Debug.
Assert
(typeUsage != null);
System\Data\Mapping\StorageScalarPropertyMapping.cs (1)
58
Debug.
Assert
(columnMember != null);
System\Data\Mapping\StorageSetMapping.cs (1)
243
Debug.
Assert
(m_typeSpecificQueryViews.ContainsKey(key));
System\Data\Mapping\Update\Internal\KeyManager.cs (4)
299
Debug.
Assert
(null != addedEntry);
300
Debug.
Assert
(!addedEntry.IsRelationship);
301
Debug.
Assert
(!addedEntry.IsKeyEntry);
302
Debug.
Assert
(addedEntry.EntityKey.IsTemporary);
System\Data\Mapping\Update\Internal\Propagator.JoinPropagator.cs (1)
482
Debug.
Assert
(null != change && null != keySelectors && null != parent);
System\Data\Mapping\Update\Internal\PropagatorResult.cs (5)
326
Debug.
Assert
(null != record);
366
Debug.
Assert
(null != stateEntry);
517
Debug.
Assert
(null != structuralType);
518
Debug.
Assert
(null != values);
519
Debug.
Assert
(values.Length == TypeHelpers.GetAllStructuralMembers(structuralType).Count);
System\Data\Mapping\Update\Internal\RelationshipConstraintValidator.cs (3)
123
Debug.
Assert
(extendedRecord != null);
125
Debug.
Assert
(BuiltInTypeKind.EntityType == extendedRecord.DataRecordInfo.RecordType.EdmType.BuiltInTypeKind);
141
Debug.
Assert
(associationSet.ElementType.Equals(record.DataRecordInfo.RecordType.EdmType));
System\Data\Mapping\Update\Internal\SourceInterpreter.cs (4)
45
Debug.
Assert
(null != source);
46
Debug.
Assert
(null != translator);
47
Debug.
Assert
(null != sourceTable);
57
Debug.
Assert
(null != source);
System\Data\Mapping\Update\Internal\UpdateCompiler.cs (5)
217
Debug.
Assert
(propertyResult.IsSimple);
413
Debug.
Assert
(null != target && null != property && null != value);
428
Debug.
Assert
(null != target && null != property);
437
Debug.
Assert
(null != value && value.IsSimple && null != property);
498
Debug.
Assert
(null != processor);
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (3)
345
Debug.
Assert
(null != role);
346
Debug.
Assert
(null != property);
548
Debug.
Assert
(clrEnumType.IsEnum);
System\Data\Mapping\ViewGeneration\CellCreator.cs (4)
195
Debug.
Assert
(originalCell != null);
196
Debug.
Assert
(memberToExpand != null);
450
Debug.
Assert
(conditionMap.EdmProperty != null);
494
Debug.
Assert
(conditionExpression != null);
System\Data\Mapping\ViewGeneration\CellTreeSimplifier.cs (2)
194
Debug.
Assert
(child.OpType == commonChildOpType);
571
Debug.
Assert
(bools1.Count == bools2.Count);
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQueryKB.cs (3)
117
Debug.
Assert
(constraint.ToRole.RelationshipMultiplicity.Equals(RelationshipMultiplicity.Many) == false);
144
Debug.
Assert
(constraint.FromRole.RelationshipMultiplicity.Equals(RelationshipMultiplicity.One));
145
Debug.
Assert
(constraint.ToRole.RelationshipMultiplicity.Equals(RelationshipMultiplicity.One));
System\Data\Mapping\ViewGeneration\QueryRewriting\QueryRewriter.cs (14)
79
Debug.
Assert
(typesGenerationMode != ViewGenMode.GenerateAllViews);
99
Debug.
Assert
(_views.Count > 0);
128
Debug.
Assert
(_errorLog.Count > 0);
214
Debug.
Assert
(!Helper.IsRefType(_generatedType));
315
Debug.
Assert
(!Helper.IsRefType(_generatedType));
350
Debug.
Assert
(!(isAlwaysTrue && isAlwaysFalse));
357
Debug.
Assert
(caseStatement.Clauses.Count == 0);
470
Debug.
Assert
(nonConditionalScalarAttributes != null);
556
Debug.
Assert
(_context.ViewTarget == ViewTarget.UpdateView || !_config.IsValidationEnabled);
721
Debug.
Assert
(fragment != null);
768
Debug.
Assert
(entry.Value.ElseValue == null);
945
Debug.
Assert
(usedViews.Count > 0);
978
Debug.
Assert
(attributeTile != null);
1218
Debug.
Assert
(view.FromVariable != null);
System\Data\Mapping\ViewGeneration\QueryRewriting\RewritingProcessor.cs (1)
266
Debug.
Assert
(succeeded);
System\Data\Mapping\ViewGeneration\QueryRewriting\Tile.cs (2)
184
Debug.
Assert
(namedQuery != null);
219
Debug.
Assert
(arg1 != null && arg2 != null);
System\Data\Mapping\ViewGeneration\Structures\BoolExpression.cs (2)
100
Debug.
Assert
(childList.Count > 0);
120
Debug.
Assert
(childList.Count == 1);
System\Data\Mapping\ViewGeneration\Structures\BoolExpressionVisitors.cs (2)
279
Debug.
Assert
(kind == ExprType.Or || kind == ExprType.And);
509
Debug.
Assert
(kind == ExprType.Or || kind == ExprType.And);
System\Data\Mapping\ViewGeneration\Structures\CaseStatement.cs (1)
104
Debug.
Assert
(value != null);
System\Data\Mapping\ViewGeneration\Structures\CellIdBoolean.cs (1)
30
Debug.
Assert
(index >= 0);
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (3)
595
Debug.
Assert
(slotIndexes != null);
611
Debug.
Assert
(this.Extent is AssociationSet);
635
Debug.
Assert
(slotIndexes != null);
System\Data\Mapping\ViewGeneration\Structures\ConstantProjectedSlot.cs (1)
30
Debug.
Assert
(value != null);
System\Data\Mapping\ViewGeneration\Structures\Domain.cs (3)
46
Debug.
Assert
(values != null);
47
Debug.
Assert
(possibleDiscreteValues != null);
156
Debug.
Assert
(Helper.IsEntityType(type) || Helper.IsComplexType(type) || Helper.IsRefType(type) || Helper.IsAssociationType(type));
System\Data\Mapping\ViewGeneration\Structures\ErrorLog.cs (1)
107
Debug.
Assert
(wrappers != null);
System\Data\Mapping\ViewGeneration\Structures\LeafCellTreeNode.cs (2)
207
Debug.
Assert
(foreignKeySlots != null);
271
Debug.
Assert
(otherEnds.Count() == 1);
System\Data\Mapping\ViewGeneration\Structures\LeftCellWrapper.cs (1)
120
Debug.
Assert
(m_mergedCells.Count == 1);
System\Data\Mapping\ViewGeneration\Structures\MemberMaps.cs (3)
38
Debug.
Assert
(m_queryDomainMap != null);
39
Debug.
Assert
(m_updateDomainMap != null);
40
Debug.
Assert
(m_projectedSlotMap != null);
System\Data\Mapping\ViewGeneration\Structures\MemberRestriction.cs (1)
68
Debug.
Assert
(possibleValues != null);
System\Data\Mapping\ViewGeneration\Structures\OpCellTreeNode.cs (3)
223
Debug.
Assert
(OpType == CellTreeOpType.Union);
324
Debug.
Assert
(boolArray.Length == another.Length);
593
Debug.
Assert
(children.Any());
System\Data\Mapping\ViewGeneration\Validation\ErrorPatternMatcher.cs (1)
50
Debug.
Assert
(context.ViewTarget == ViewTarget.QueryView || context.Config.IsValidationEnabled);
System\Data\Mapping\ViewGeneration\Validation\ForeignConstraint.cs (5)
321
Debug.
Assert
(errorListForInvalidParentColumnsForForeignKey != null && errorListForInvalidParentColumnsForForeignKey.Count > 0);
436
Debug.
Assert
(pNode != null);
694
Debug.
Assert
(childSlot != null);
717
Debug.
Assert
(parentSlot != null);
803
Debug.
Assert
(endSlots.Count > 0);
System\Data\Mapping\ViewGeneration\ViewgenContext.cs (3)
63
Debug.
Assert
(extent.Equals(cell.GetLeftQuery(viewTarget).Extent));
64
Debug.
Assert
(cell.CQuery.NumProjectedSlots == cell.SQuery.NumProjectedSlots);
248
Debug.
Assert
(m_viewTarget == ViewTarget.QueryView);
System\Data\Mapping\ViewGeneration\ViewGenerator.cs (2)
170
Debug.
Assert
(mode != ViewGenMode.GenerateAllViews);
244
Debug.
Assert
(mode != ViewGenMode.GenerateAllViews);
System\Data\Mapping\ViewGeneration\ViewgenGatekeeper.cs (5)
135
Debug.
Assert
(viewGenerator != null); //make sure there is no exception thrown that does not add error to log
168
Debug.
Assert
(container != null);
200
Debug.
Assert
(viewGenerator != null);
237
Debug.
Assert
(container != null);
282
Debug.
Assert
(smallestCell != null && lowestLineNum >= 0);
System\Data\Mapping\ViewValidator.cs (5)
63
Debug.
Assert
(null != setMapping);
64
Debug.
Assert
(null != elementType);
240
Debug.
Assert
(null != expression.Target);
245
Debug.
Assert
(null != target.EntityContainer);
271
Debug.
Assert
(setMapping != null);
System\Data\Metadata\AspProxy.cs (4)
79
Debug.
Assert
(_triedLoadingWebAssembly == false);
80
Debug.
Assert
(_webAssembly == null);
144
Debug.
Assert
(!string.IsNullOrEmpty(path));
145
Debug.
Assert
(path.StartsWith(EdmConstants.WebHomeSymbol, StringComparison.Ordinal));
System\Data\Metadata\CacheForPrimitiveTypes.cs (3)
94
Debug.
Assert
(facetDescriptions.Length > 0);
144
Debug.
Assert
(type != null);
153
Debug.
Assert
(facetDescriptions != null && facetDescriptions.Length > 0);
System\Data\Metadata\ClrPerspective.cs (1)
112
Debug.
Assert
(((GlobalItem)map.EdmItem).DataSpace == DataSpace.CSpace);
System\Data\Metadata\Converter.cs (5)
450
Debug.
Assert
(element.RelationshipKind == RelationshipKind.Association);
578
Debug.
Assert
(properties.Count != 0);
655
Debug.
Assert
(relationshipSet.Relationship.RelationshipKind == RelationshipKind.Association);
731
Debug.
Assert
(somProperty.TypeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.PrimitiveType);
809
Debug.
Assert
(somRelationshipEnd.Multiplicity != RelationshipMultiplicity.Many);
System\Data\Metadata\CustomAssemblyResolver.cs (2)
23
Debug.
Assert
(wildcardAssemblyEnumerator != null);
24
Debug.
Assert
(referenceResolver != null);
System\Data\Metadata\DefaultAssemblyResolver.cs (1)
64
Debug.
Assert
(referenceName != null);
System\Data\Metadata\Edm\EntityType.cs (2)
107
Debug.
Assert
(Members.Contains(member));
120
Debug.
Assert
(Members.Contains(member));
System\Data\Metadata\Edm\EnumType.cs (2)
168
Debug.
Assert
(Helper.IsEnumMemberValueInRange(UnderlyingType.PrimitiveTypeKind, Convert.ToInt64(enumMember.Value, CultureInfo.InvariantCulture)));
169
Debug.
Assert
(enumMember.Value.GetType() == UnderlyingType.ClrEquivalentType);
System\Data\Metadata\Edm\FacetDescription.cs (1)
254
System.Diagnostics.Debug.
Assert
(this.FacetType.Identity == "Edm.Boolean");
System\Data\Metadata\Edm\FilteredReadOnlyMetadataCollection.cs (1)
51
Debug.
Assert
(collection != null);
System\Data\Metadata\Edm\ItemCollection.cs (1)
90
Debug.
Assert
(item.DataSpace == this.DataSpace);
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (2)
152
System.Diagnostics.Debug.
Assert
(type != null);
436
System.Diagnostics.Debug.
Assert
(mi != null);
System\Data\Metadata\Edm\MetadataCollection.cs (1)
363
System.Diagnostics.Debug.
Assert
(index == -1 || index == listCount);
System\Data\Metadata\Edm\MetadataPropertyAttribute.cs (1)
60
Debug.
Assert
(null != type);
System\Data\Metadata\Edm\MetadataPropertyCollection.cs (3)
64
Debug.
Assert
(null != clrType);
111
Debug.
Assert
(null != propertyInfo);
112
Debug.
Assert
(null != attribute);
System\Data\Metadata\Edm\MetadataPropertyvalue.cs (2)
27
Debug.
Assert
(null != propertyInfo);
28
Debug.
Assert
(null != item);
System\Data\Metadata\Edm\TypeUsage.cs (1)
432
System.Diagnostics.Debug.
Assert
(((RefType)edmType).ElementType.DataSpace == DataSpace.CSpace);
System\Data\Metadata\Helper.cs (1)
222
Debug.
Assert
(xmlReaders != null);
System\Data\Metadata\MetadataArtifactLoader.cs (9)
87
Debug.
Assert
(path != null);
88
Debug.
Assert
(resolver != null);
147
Debug.
Assert
(!string.IsNullOrEmpty(validExtension));
225
Debug.
Assert
(!string.IsNullOrEmpty(path));
226
Debug.
Assert
(!string.IsNullOrEmpty(validExtension));
316
Debug.
Assert
(!string.IsNullOrEmpty(resource));
334
Debug.
Assert
(!string.IsNullOrEmpty(resource));
352
Debug.
Assert
(!string.IsNullOrEmpty(resource));
385
Debug.
Assert
(!string.IsNullOrEmpty(resource));
System\Data\Metadata\MetadataArtifactLoaderComposite.cs (1)
46
Debug.
Assert
(children != null);
System\Data\Metadata\MetadataArtifactLoaderCompositeResource.cs (10)
46
Debug.
Assert
(resolver != null);
160
Debug.
Assert
(resolver != null);
163
Debug.
Assert
(!string.IsNullOrEmpty(assemblyName));
230
Debug.
Assert
(assembly != null);
241
Debug.
Assert
(resourceName != null);
242
Debug.
Assert
(assembly != null);
265
Debug.
Assert
(assembly != null);
279
Debug.
Assert
(resolver != null);
294
Debug.
Assert
(path != null);
295
Debug.
Assert
(MetadataArtifactLoader.PathStartsWithResPrefix(path));
System\Data\Metadata\MetadataArtifactLoaderResource.cs (2)
35
Debug.
Assert
(assembly != null);
36
Debug.
Assert
(resourceName != null);
System\Data\Metadata\MetadataWorkspace.cs (3)
321
Debug.
Assert
(itemCollectionType != null);
1222
Debug.
Assert
(null != functionImport);
1434
Debug.
Assert
(entitySet.EntityContainer != null);
System\Data\Metadata\ObjectHelper.cs (1)
53
Debug.
Assert
(errors != null);
System\Data\Metadata\ObjectLayer\ObjectItemAttributeAssemblyLoader.cs (1)
163
Debug.
Assert
(CacheEntry.TypesInAssembly.Count == 0);
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (3)
139
Debug.
Assert
(cspaceType is StructuralType);
693
Debug.
Assert
(ospaceEndTypes[0] is StructuralType);
694
Debug.
Assert
(ospaceEndTypes[1] is StructuralType);
System\Data\Metadata\ObjectLayer\ObjectItemLoadingSessionData.cs (1)
168
Debug.
Assert
(Helper.IsAssociationType(type));
System\Data\Metadata\StoreItemCollection.Loader.cs (2)
207
Debug.
Assert
(provEx != null);
208
Debug.
Assert
(addError != null);
System\Data\Metadata\TypeHelpers.cs (1)
496
System.Diagnostics.Debug.
Assert
(edmType != null);
System\Data\Metadata\TypeSemantics.cs (4)
761
Debug.
Assert
(fromRowType != null && toRowType != null);
799
Debug.
Assert
(edmType1 != null && edmType2 != null);
921
Debug.
Assert
(refType1.ElementType != null && reftype2.ElementType != null);
1035
Debug.
Assert
(fromType != null && toType != null);
System\Data\Objects\DataClasses\ComplexObject.cs (1)
50
Debug.
Assert
(_parentPropertyName == null);
System\Data\Objects\DataClasses\EntityCollection.cs (1)
657
Debug.
Assert
(_wrappedRelatedEntities.Count == 0);
System\Data\Objects\DataClasses\EntityReference_TResultType.cs (2)
598
Debug.
Assert
(properties != null);
619
Debug.
Assert
(retrievedProperties != null);
System\Data\Objects\DataClasses\RelationshipManager.cs (7)
1222
Debug.
Assert
(wrappedOwner.Entity != null);
1223
Debug.
Assert
(visited != null);
1229
Debug.
Assert
((object)ownerKey != null);
1301
Debug.
Assert
(properties != null);
1302
Debug.
Assert
(propertiesToRetrieve != null);
1364
Debug.
Assert
(ownerEntry != null);
1437
Debug.
Assert
(wrappedOwner.Entity != null);
System\Data\Objects\ELinq\ExpressionConverter.cs (6)
289
Debug.
Assert
(null != metadata);
629
Debug.
Assert
(operationType == ExpressionType.TypeAs || operationType == ExpressionType.TypeIs);
843
Debug.
Assert
(null != input);
907
Debug.
Assert
(null != linq);
976
Debug.
Assert
(null != left);
977
Debug.
Assert
(null != right);
System\Data\Objects\ELinq\InitializerFacet.cs (8)
40
Debug.
Assert
(null != clrType);
220
Debug.
Assert
(ClrType.IsGenericType &&
222
Debug.
Assert
(propertyTranslatorResults.Count == 2);
237
Debug.
Assert
(ClrType.IsGenericType &&
257
Debug.
Assert
(null != newExpression);
356
Debug.
Assert
(null != initExpression);
357
Debug.
Assert
(null != members);
446
Debug.
Assert
(null != navigationProperty);
System\Data\Objects\ELinq\MethodCallTranslator.cs (10)
178
Debug.
Assert
(!s_vbMethodsInitialized);
583
Debug.
Assert
(!s_vbMethodsInitialized);
1574
Debug.
Assert
(5 == call.Arguments.Count);
1672
Debug.
Assert
(1 == call.Arguments.Count);
1680
Debug.
Assert
(2 == call.Arguments.Count);
1748
Debug.
Assert
(isUnary || 2 == call.Arguments.Count);
2026
Debug.
Assert
(0 <= call.Arguments.Count);
2033
Debug.
Assert
(1 <= call.Arguments.Count);
2115
Debug.
Assert
(2 <= call.Arguments.Count);
3014
Debug.
Assert
(2 == call.Arguments.Count);
System\Data\Objects\ELinq\Translator.cs (1)
395
Debug.
Assert
(!s_vbPropertiesInitialized);
System\Data\Objects\EntityEntry.cs (16)
1675
Debug.
Assert
(!this.IsKeyEntry);
2411
Debug.
Assert
(!this.IsKeyEntry);
2758
Debug.
Assert
(properties != null);
2759
Debug.
Assert
(propertyName != null);
2760
Debug.
Assert
(propertyValue != null);
2866
Debug.
Assert
(!this.IsKeyEntry);
2867
Debug.
Assert
((object)_entityKey != null);
2903
Debug.
Assert
(this.IsKeyEntry);
2917
Debug.
Assert
(properties != null);
2918
Debug.
Assert
(_cacheTypeMetadata != null);
2919
Debug.
Assert
(_cacheTypeMetadata.DataRecordInfo != null);
2920
Debug.
Assert
(_cacheTypeMetadata.DataRecordInfo.RecordType != null);
2946
Debug.
Assert
(!this.IsKeyEntry);
2959
Debug.
Assert
(!member.IsComplex);
3276
Debug.
Assert
(!(value is IEntityWrapper));
3364
Debug.
Assert
(!(value is IEntityWrapper));
System\Data\Objects\Internal\EntityProxyFactory.cs (1)
1208
Debug.
Assert
(member.BuiltInTypeKind == BuiltInTypeKind.NavigationProperty);
System\Data\Objects\Internal\EntityProxyTypeInfo.cs (1)
180
Debug.
Assert
(ospaceEntityType.ClrType == _entityType.ClrType);
System\Data\Objects\Internal\TransactionManager.cs (18)
220
Debug.
Assert
(!this.IsAddTracking);
239
Debug.
Assert
(this.IsAddTracking);
258
Debug.
Assert
(!this.IsAttachTracking);
275
Debug.
Assert
(this.IsAttachTracking);
316
Debug.
Assert
(this.IsDetectChanges);
350
Debug.
Assert
(!this.IsLocalPublicAPI);
357
Debug.
Assert
(this.IsLocalPublicAPI);
364
Debug.
Assert
(!this.IsOriginalValuesGetter);
371
Debug.
Assert
(this.IsOriginalValuesGetter);
378
Debug.
Assert
(!this.IsForeignKeyUpdate);
386
Debug.
Assert
(this.IsForeignKeyUpdate);
394
Debug.
Assert
(!this.IsRelatedEndAdd);
400
Debug.
Assert
(this.IsRelatedEndAdd);
411
Debug.
Assert
(_graphUpdateCount > 0);
417
Debug.
Assert
(!IsDetaching);
423
Debug.
Assert
(IsDetaching);
429
Debug.
Assert
(!IsFixupByReference);
435
Debug.
Assert
(IsFixupByReference);
System\Data\Objects\ObjectContext.cs (2)
1166
Debug.
Assert
(!Object.ReferenceEquals(entry.Entity, wrappedEntity.Entity));
2675
Debug.
Assert
(edmTypes != null && edmTypes.Length > 0);
System\Data\Objects\ObjectStateManager.cs (5)
758
Debug.
Assert
(relatedEnd != null);
759
Debug.
Assert
(wrappedEntity != null);
760
Debug.
Assert
(wrappedEntity.Entity != null);
1745
Debug.
Assert
(!(entity is IEntityWithKey));
3396
Debug.
Assert
(reference != null);
System\Data\Query\InternalTrees\ColumnMapFactory.cs (4)
36
Debug.
Assert
(resultMapping != null);
130
Debug.
Assert
(null != reader);
131
Debug.
Assert
(null != type);
132
Debug.
Assert
(null != workspace);
System\Data\Query\InternalTrees\Command.cs (3)
435
Debug.
Assert
(m_vars.Contains(oldVar));
1060
Debug.
Assert
(definingExpr.Op != null);
1062
Debug.
Assert
(scalarOp != null);
System\Data\Query\InternalTrees\NodeInfo.cs (2)
564
Debug.
Assert
(varDefListNode.Op.OpType == OpType.VarDefList);
573
Debug.
Assert
(varDefOp != null);
System\Data\Query\InternalTrees\Nodes.cs (1)
170
Debug.
Assert
(extendedNodeInfo != null);
System\Data\Query\InternalTrees\OpCopier.cs (3)
681
Debug.
Assert
(!n.HasChild0);
699
Debug.
Assert
(n.HasChild0);
1100
Debug.
Assert
(op != null);
System\Data\Query\InternalTrees\RelOps.cs (2)
993
Debug.
Assert
(keyVars != null);
994
Debug.
Assert
(!keyVars.IsEmpty);
System\Data\Query\InternalTrees\RuleProcessor.cs (1)
134
Debug.
Assert
(subTreeRoot == newSubTreeRoot);
System\Data\Spatial\SpatialHelpers.cs (1)
19
Debug.
Assert
(Helper.IsSpatialType(columnType));
System\Data\SqlClient\SqlGen\DmlSqlGenerator.cs (2)
465
Debug.
Assert
(null != commandText);
466
Debug.
Assert
(null != commandTree);
System\Data\SqlClient\SqlGen\SqlBuilder.cs (1)
50
Debug.
Assert
(s != null);
System\Data\SqlClient\SqlGen\SqlGenerator.cs (23)
546
Debug.
Assert
(selectStatementStack.Count == 0);
547
Debug.
Assert
(isParentAJoinStack.Count == 0);
610
Debug.
Assert
(false);
655
Debug.
Assert
(false);
671
Debug.
Assert
(e.When.Count == e.Then.Count);
757
Debug.
Assert
(false); // The constructor should have prevented this
776
Debug.
Assert
(false);
1460
Debug.
Assert
(result.Select.IsEmpty);
1515
Debug.
Assert
(aggregate.Arguments.Count == 1);
1643
Debug.
Assert
(false);
2321
Debug.
Assert
(joinSymbol.NameToExtent.ContainsKey(e.Property.Name));
2406
Debug.
Assert
(e.ExpressionKind == DbExpressionKind.All);
2476
Debug.
Assert
(input.Select.IsEmpty);
2913
Debug.
Assert
(e.Arguments.Count <= 1);
2935
Debug.
Assert
(collectionType != null);
2944
Debug.
Assert
(isScalarElement);
3698
Debug.
Assert
(sortClause.Collation != null);
3757
Debug.
Assert
(oldStatement.FromExtents.Count == 1);
4025
Debug.
Assert
(false);
4039
Debug.
Assert
(!String.IsNullOrEmpty(name));
4080
Debug.
Assert
(TypeSemantics.IsCollectionType(e.ResultType));
4112
Debug.
Assert
(TypeSemantics.IsCollectionType(e.ResultType));
4257
Debug.
Assert
(aggregate.Arguments.Count == 1);
System\Data\SqlClient\SqlGen\SqlSelectClauseBuilder.cs (1)
118
Debug.
Assert
(false); // we have removed all possibilities of SELECT *.
System\Data\SqlClient\SqlGen\SymbolPair.cs (1)
53
Debug.
Assert
(false);
System\Data\SqlClient\SqlProviderManifest.cs (1)
516
System.Diagnostics.Debug.
Assert
(edmType.EdmType.BuiltInTypeKind == BuiltInTypeKind.PrimitiveType);
System\Data\SqlClient\SqlProviderServices.cs (4)
299
Debug.
Assert
(sqlTypes != null);
787
Debug.
Assert
(sqlConnection != null);
863
Debug.
Assert
(!string.IsNullOrEmpty(attachDBFile));
1044
Debug.
Assert
(sqlConnection != null);
System\Data\SqlClient\SqlSpatialServices.cs (1)
127
Debug.
Assert
(expectedSpatialType == this.SqlTypes.SqlGeographyType || expectedSpatialType == this.SqlTypes.SqlGeometryType);
System\Data\SqlClient\SqlTypesAssembly.cs (1)
589
Debug.
Assert
(sqlStringFromStringCtor != null);
System.Data.Entity.Design (19)
System\Data\Entity\Design\Common\MetadataUtil.cs (2)
263
Debug.
Assert
(errors != null);
282
Debug.
Assert
(xmlReaders != null);
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (2)
223
Debug.
Assert
(item != null);
255
Debug.
Assert
(item != null);
System\Data\EntityModel\Emitters\CommentEmitter.cs (8)
169
Debug.
Assert
(!string.IsNullOrEmpty(text));
205
Debug.
Assert
(start <= last);
295
Debug.
Assert
(commentCollection != null);
310
Debug.
Assert
(summaryComments != null);
311
Debug.
Assert
(commentCollection != null);
324
Debug.
Assert
(tag != null);
325
Debug.
Assert
(summaryComments != null);
326
Debug.
Assert
(commentCollection != null);
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (1)
495
Debug.
Assert
(null != functionImport);
System\Data\EntityModel\Emitters\PropertyEmitter.cs (1)
588
Debug.
Assert
(MetadataUtil.IsComplexType(typeUsage.EdmType));
System\Data\EntityModel\EntityClassGenerator.cs (5)
334
Debug.
Assert
(exception != null);
335
Debug.
Assert
(sourceLocation != null);
342
Debug.
Assert
(exception != null);
343
Debug.
Assert
(sourceLocation != null);
350
Debug.
Assert
(exception != null);
System.Data.Linq (138)
ChangeConflicts.cs (1)
280
Debug.
Assert
(this.IsDeleted);
ChangeDirector.cs (4)
251
System.Diagnostics.Debug.
Assert
(membersToSync.Count > 0);
284
System.Diagnostics.Debug.
Assert
(item != null);
290
System.Diagnostics.Debug.
Assert
(syncResults.Length == membersToSync.Count);
400
System.Diagnostics.Debug.
Assert
(table != null);
ChangeProcessor.cs (2)
417
Debug.
Assert
(cachedTracked != null);
438
Debug.
Assert
(cachedTracked != null);
ChangeTracker.cs (14)
336
System.Diagnostics.Debug.
Assert
(this.IsNew || this.IsRemoved || this.IsUnmodified);
342
System.Diagnostics.Debug.
Assert
(this.IsPossiblyModified || this.IsDeleted);
348
System.Diagnostics.Debug.
Assert
(this.IsPossiblyModified);
349
System.Diagnostics.Debug.
Assert
(this.type.VersionMember != null || !this.type.HasUpdateCheck);
356
System.Diagnostics.Debug.
Assert
(this.IsNew || this.IsPossiblyModified);
357
System.Diagnostics.Debug.
Assert
(originalState != null);
358
System.Diagnostics.Debug.
Assert
(originalState.GetType() == this.type.Type);
366
System.Diagnostics.Debug.
Assert
(this.IsDeleted || this.IsPossiblyModified);
372
System.Diagnostics.Debug.
Assert
(this.IsDead || this.IsDeleted);
378
System.Diagnostics.Debug.
Assert
(this.IsRemoved || this.IsNew);
384
System.Diagnostics.Debug.
Assert
(this.IsNew || this.IsPossiblyModified);
484
System.Diagnostics.Debug.
Assert
(!mm.IsAssociation);
522
System.Diagnostics.Debug.
Assert
(instance != null);
524
System.Diagnostics.Debug.
Assert
(instance.GetType() == this.type.Type);
DataContext.cs (2)
392
System.Diagnostics.Debug.
Assert
(metaTable != null);
1112
System.Diagnostics.Debug.
Assert
(metaTable != null);
Mapping\AttributedMetaModel.cs (1)
878
System.Diagnostics.Debug.
Assert
(functionAttrib != null);
Mapping\MappedMetaModel.cs (1)
1269
System.Diagnostics.Debug.
Assert
(this.otherType.IsEntity);
Mapping\MappingSource.cs (9)
251
System.Diagnostics.Debug.
Assert
(reader.NodeType == XmlNodeType.Element);
325
System.Diagnostics.Debug.
Assert
(reader.NodeType == XmlNodeType.Element);
376
System.Diagnostics.Debug.
Assert
(reader.NodeType == XmlNodeType.Element);
394
System.Diagnostics.Debug.
Assert
(reader.NodeType == XmlNodeType.Element);
418
System.Diagnostics.Debug.
Assert
(reader.NodeType == XmlNodeType.Element);
469
System.Diagnostics.Debug.
Assert
(reader.NodeType == XmlNodeType.Element);
478
System.Diagnostics.Debug.
Assert
(reader.NodeType == XmlNodeType.Element);
533
System.Diagnostics.Debug.
Assert
(reader.NodeType == XmlNodeType.Element);
567
System.Diagnostics.Debug.
Assert
(reader.NodeType == XmlNodeType.Element);
SqlClient\Common\SqlFactory.cs (3)
242
Debug.
Assert
(IsSqlHighPrecisionDateTimeType(timeSpan));
466
System.Diagnostics.Debug.
Assert
(value != null);
477
System.Diagnostics.Debug.
Assert
(false);
SqlClient\Common\SqlNode.cs (3)
844
System.Diagnostics.Debug.
Assert
(expr != null);
1489
System.Diagnostics.Debug.
Assert
(sqlType.CanBeColumn);
1494
System.Diagnostics.Debug.
Assert
(expr != null);
SqlClient\Common\SqlVisitor.cs (1)
251
System.Diagnostics.Debug.
Assert
(false);
SqlClient\Query\QueryConverter.cs (4)
1516
System.Diagnostics.Debug.
Assert
(select.Selection.NodeType == SqlNodeType.AliasRef);
1995
System.Diagnostics.Debug.
Assert
(function != null);
2419
System.Diagnostics.Debug.
Assert
(cons != null);
2445
System.Diagnostics.Debug.
Assert
(resultSelector.Parameters.Count == 1);
SqlClient\Query\SqlBinder.cs (7)
784
System.Diagnostics.Debug.
Assert
(mm != null);
799
System.Diagnostics.Debug.
Assert
(mm != null);
831
System.Diagnostics.Debug.
Assert
(mm != null);
995
System.Diagnostics.Debug.
Assert
(type != null);
996
System.Diagnostics.Debug.
Assert
(mi != null);
1088
System.Diagnostics.Debug.
Assert
(result is SqlColumnRef);
1555
System.Diagnostics.Debug.
Assert
(false);
SqlClient\Query\SqlFormatter.cs (1)
560
System.Diagnostics.Debug.
Assert
(spc.Arguments.Count >= pc);
SqlClient\Query\SqlMethodCallConverter.cs (6)
944
Debug.
Assert
(GetMethodSupport(mc) == MethodSupport.Method);
978
Debug.
Assert
(GetMethodSupport(mc) == MethodSupport.Method);
1309
Debug.
Assert
(TypeSystem.GetNonNullableType(bo.Left.ClrType) == typeof(DateTimeOffset));
2469
Debug.
Assert
(mc.Arguments.Count == 3);
2470
Debug.
Assert
(mc.Arguments[0].ClrType == typeof(string));
2471
Debug.
Assert
(mc.Arguments[1].ClrType == typeof(string));
SqlClient\Query\SqlNamer.cs (1)
48
System.Diagnostics.Debug.
Assert
(ss != null && ss.Select != null && ss.Select.Row != null && ss.Select.Row.Columns.Count == 1);
SqlClient\Query\SqlOuterApplyReducer.cs (4)
317
System.Diagnostics.Debug.
Assert
(source != null);
318
System.Diagnostics.Debug.
Assert
(aliasesForLifting != null);
325
System.Diagnostics.Debug.
Assert
(source != null);
326
System.Diagnostics.Debug.
Assert
(aliasesForLifting != null);
SqlClient\Query\SqlParameterizer.cs (1)
192
System.Diagnostics.Debug.
Assert
(false);
SqlClient\Query\Translator.cs (11)
28
System.Diagnostics.Debug.
Assert
(rowType != null && rowType.Table != null);
131
System.Diagnostics.Debug.
Assert
(thisType.IsEntity);
277
System.Diagnostics.Debug.
Assert
(link.Expansion != null);
278
System.Diagnostics.Debug.
Assert
(link.KeyExpressions == keyExpressions);
286
System.Diagnostics.Debug.
Assert
(
357
System.Diagnostics.Debug.
Assert
(exprs1.Count > 0);
358
System.Diagnostics.Debug.
Assert
(exprs2.Count > 0);
359
System.Diagnostics.Debug.
Assert
(exprs1.Count == exprs2.Count);
447
System.Diagnostics.Debug.
Assert
(expr.NodeType == SqlNodeType.IsNull || expr.NodeType == SqlNodeType.IsNotNull);
455
System.Diagnostics.Debug.
Assert
(exprs.Count > 0);
513
System.Diagnostics.Debug.
Assert
(members.Count > 0);
SqlClient\Reader\ObjectReaderCompiler.cs (52)
169
System.Diagnostics.Debug.
Assert
(
820
System.Diagnostics.Debug.
Assert
(miInvoke != null);
826
System.Diagnostics.Debug.
Assert
(TypeSystem.IsNullableType(u.Operand.ClrType));
836
System.Diagnostics.Debug.
Assert
(opt.HasValue.ClrType == typeof(int?));
842
System.Diagnostics.Debug.
Assert
(TypeSystem.IsNullableType(actualType));
991
System.Diagnostics.Debug.
Assert
(miInsertLookup != null);
1043
System.Diagnostics.Debug.
Assert
(miRaiseEvent != null);
1068
System.Diagnostics.Debug.
Assert
(piCanDeferLoad != null);
1158
System.Diagnostics.Debug.
Assert
(memberType.IsGenericType && memberType.GetGenericTypeDefinition() == typeof(EntitySet<>));
1172
System.Diagnostics.Debug.
Assert
(argType.IsAssignableFrom(eType));
1195
System.Diagnostics.Debug.
Assert
(ci != null);
1207
System.Diagnostics.Debug.
Assert
(miSetSource != null);
1220
System.Diagnostics.Debug.
Assert
(memberType.IsGenericType && memberType.GetGenericTypeDefinition() == typeof(EntitySet<>));
1234
System.Diagnostics.Debug.
Assert
(argType.IsAssignableFrom(eType));
1257
System.Diagnostics.Debug.
Assert
(ci != null);
1269
System.Diagnostics.Debug.
Assert
(miAssign != null);
1278
System.Diagnostics.Debug.
Assert
(
1313
System.Diagnostics.Debug.
Assert
(ci != null);
1353
System.Diagnostics.Debug.
Assert
(miCreateGroup != null);
1381
System.Diagnostics.Debug.
Assert
(mi != null);
1400
System.Diagnostics.Debug.
Assert
(mi != null);
1453
System.Diagnostics.Debug.
Assert
(miExecute != null);
1479
System.Diagnostics.Debug.
Assert
(ci != null);
1511
System.Diagnostics.Debug.
Assert
(miRead != null);
1523
System.Diagnostics.Debug.
Assert
(miAdd != null);
1601
System.Diagnostics.Debug.
Assert
(miCast != null);
1608
System.Diagnostics.Debug.
Assert
(miConvert != null);
1616
System.Diagnostics.Debug.
Assert
(miFirst != null);
1646
System.Diagnostics.Debug.
Assert
(ci != null);
1652
System.Diagnostics.Debug.
Assert
(miFirst != null);
1655
System.Diagnostics.Debug.
Assert
(ci != null);
1668
System.Diagnostics.Debug.
Assert
(miAsQueryable != null);
1686
System.Diagnostics.Debug.
Assert
(miAsQueryable != null);
1702
System.Diagnostics.Debug.
Assert
(miCreateOrderedEnumerable != null);
1718
System.Diagnostics.Debug.
Assert
(ci != null);
1726
System.Diagnostics.Debug.
Assert
(miAssign != null);
1739
System.Diagnostics.Debug.
Assert
(ci != null);
1749
System.Diagnostics.Debug.
Assert
(miToArray != null);
1782
System.Diagnostics.Debug.
Assert
(miGetTypeFromHandle != null);
1785
System.Diagnostics.Debug.
Assert
(miChangeType != null);
1954
System.Diagnostics.Debug.
Assert
(vMatch != null);
1960
System.Diagnostics.Debug.
Assert
(i == n - 1);
1976
System.Diagnostics.Debug.
Assert
(dt.ClrType == typeof(Type));
1986
System.Diagnostics.Debug.
Assert
(targetType != null && locDiscriminator != null);
2065
System.Diagnostics.Debug.
Assert
(miEquals != null);
2094
System.Diagnostics.Debug.
Assert
(mi != null);
2137
System.Diagnostics.Debug.
Assert
(readerMethod != null);
2198
System.Diagnostics.Debug.
Assert
(meth != null);
2276
System.Diagnostics.Debug.
Assert
(address == false);
2286
System.Diagnostics.Debug.
Assert
(false);
2291
System.Diagnostics.Debug.
Assert
(tc == TypeCode.Int32);
2796
System.Diagnostics.Debug.
Assert
(false);
SqlClient\SqlProvider.cs (9)
136
System.Diagnostics.Debug.
Assert
(false);
710
System.Diagnostics.Debug.
Assert
(this.conManager.Connection.State == ConnectionState.Closed);
839
System.Diagnostics.Debug.
Assert
(qis.Length == 1);
1439
System.Diagnostics.Debug.
Assert
(resultType != null);
1440
System.Diagnostics.Debug.
Assert
(node != null);
1818
Debug.
Assert
(!useReturnValue);
1894
System.Diagnostics.Debug.
Assert
(enumerator != null);
1922
System.Diagnostics.Debug.
Assert
(enumerable != null);
1923
System.Diagnostics.Debug.
Assert
(executeResult != null);
SqlClient\SqlTypeSystemProvider.cs (1)
225
System.Diagnostics.Debug.
Assert
(scale <= precision);
System.Data.Services (1)
System\Data\Services\Parsing\WebConvert.cs (1)
710
Debug.
Assert
(IsCharHexDigit(c));
System.Data.Services.Client (3)
System\Data\Services\Client\ALinq\PathBox.cs (2)
82
Debug.
Assert
(parameterExpressions.Count > 0);
110
Debug.
Assert
(sb != null); // there should always be an expand path because must call StartNewPath first.
System\Data\Services\Client\ArraySet.cs (1)
53
Debug.
Assert
(index < this.count);
System.Data.Services.Design (11)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (2)
380
Debug.
Assert
(item != null);
411
Debug.
Assert
(item != null);
System\Data\EntityModel\Emitters\CommentEmitter.cs (8)
164
Debug.
Assert
(!string.IsNullOrEmpty(text));
200
Debug.
Assert
(start <= last);
292
Debug.
Assert
(commentCollection != null);
308
Debug.
Assert
(summaryComments != null);
309
Debug.
Assert
(commentCollection != null);
323
Debug.
Assert
(tag != null);
324
Debug.
Assert
(summaryComments != null);
325
Debug.
Assert
(commentCollection != null);
System\Data\EntityModel\Emitters\PropertyEmitter.cs (1)
513
Debug.
Assert
(Helper.IsComplexType(typeUsage.EdmType));
System.Data.SqlXml (862)
System\Xml\Xsl\IlGen\GenerateHelper.cs (10)
609
default: Debug.
Assert
(false); return;
825
Debug.
Assert
(!(methInfo is ConstructorBuilder));
1063
Debug.
Assert
(nameType == GenerateNameType.TagNameAndNamespace);
1380
Debug.
Assert
(this.isDebug && this.lastSourceInfo != null);
1381
Debug.
Assert
(sourceInfo != null);
1410
Debug.
Assert
(this.module.EmitSymbols);
1517
Debug.
Assert
(opcode.OperandType == OperandType.ShortInlineI);
1526
Debug.
Assert
(opcode.OperandType == OperandType.InlineI || opcode.OperandType == OperandType.InlineVar);
1535
Debug.
Assert
(opcode.OperandType == OperandType.InlineI8);
1645
Debug.
Assert
(opcode.Equals(OpCodes.Brtrue) || opcode.Equals(OpCodes.Brtrue_S) ||
System\Xml\Xsl\IlGen\IteratorDescriptor.cs (3)
289
Debug.
Assert
(this.hasNext);
351
Debug.
Assert
(this.storage.IsCached);
419
Debug.
Assert
(brctxt != BranchingContext.None);
System\Xml\Xsl\IlGen\OptimizerPatterns.cs (3)
222
Debug.
Assert
(Enum.IsDefined(typeof(OptimizerPatternName), pattern));
223
Debug.
Assert
((int) pattern < 32);
232
Debug.
Assert
(Enum.IsDefined(typeof(OptimizerPatternName), pattern));
System\Xml\Xsl\IlGen\StaticDataManager.cs (2)
119
Debug.
Assert
(ndNmspDecl != null);
120
Debug.
Assert
(ndNmspDecl.Left is QilLiteral && ndNmspDecl.Right is QilLiteral);
System\Xml\Xsl\IlGen\XmlILConstructAnalyzer.cs (12)
178
Debug.
Assert
(value);
199
Debug.
Assert
(value);
220
Debug.
Assert
(value);
402
Debug.
Assert
(ndContent != null);
444
case QilNodeType.NamespaceDecl: Debug.
Assert
(ndContent == null); break;
445
case QilNodeType.TextCtor: Debug.
Assert
(ndContent == null); break;
446
case QilNodeType.RawTextCtor: Debug.
Assert
(ndContent == null); break;
450
case QilNodeType.XsltCopyOf: Debug.
Assert
(ndContent == null); break;
654
Debug.
Assert
(!typ.IsSingleton);
688
Debug.
Assert
(!typ.IsSingleton);
733
Debug.
Assert
(ndElem.NodeType == QilNodeType.ElementCtor);
964
Debug.
Assert
(nd.NodeType == QilNodeType.NamespaceDecl);
System\Xml\Xsl\IlGen\XmlILModule.cs (1)
109
Debug.
Assert
(!(useLRE && emitSymbols));
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (1)
4205
Debug.
Assert
(left.NodeType == right.NodeType);
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (48)
85
Debug.
Assert
(iter.NodeType == QilNodeType.Let || iter.NodeType == QilNodeType.Parameter);
208
Debug.
Assert
(iter.NodeType == QilNodeType.Parameter);
706
Debug.
Assert
(this.iterCurr.CurrentBranchingContext == BranchingContext.None);
787
Debug.
Assert
(this.iterCurr.CurrentBranchingContext == BranchingContext.None);
846
Debug.
Assert
(info.ConstructMethod == XmlILConstructMethod.Iterator);
849
Debug.
Assert
(ndCond.Left.XmlType.TypeCode == XmlTypeCode.Boolean);
883
Debug.
Assert
(!ndCond.Center.XmlType.IsSingleton || !ndCond.Right.XmlType.IsSingleton);
917
Debug.
Assert
(itemStorageType == typeof(bool));
940
Debug.
Assert
(XmlILConstructInfo.Read(ndChoice).PushToWriterFirst);
1508
Debug.
Assert
(ndParsedTagName.Right.XmlType.IsSingleton);
1954
Debug.
Assert
(ndIter != null);
1965
Debug.
Assert
(ndIter.NodeType == QilNodeType.Let || ndIter.NodeType == QilNodeType.Parameter);
1966
Debug.
Assert
(!patt.MatchesPattern(OptimizerPatternName.IsPositional));
1982
Debug.
Assert
(ndFor.XmlType.IsSingleton);
2039
Debug.
Assert
(!ndLet.XmlType.IsSingleton);
2068
Debug.
Assert
(ndIter != null);
2081
Debug.
Assert
(ndIter.NodeType == QilNodeType.For);
2084
Debug.
Assert
(locPos != null);
2097
Debug.
Assert
(ndSort.Variable.NodeType == QilNodeType.For);
2118
Debug.
Assert
(!this.iterNested.Storage.IsCached);
2367
Debug.
Assert
(!XmlILConstructInfo.Read(ndInvoke).PushToWriterFirst || useWriter);
2915
Debug.
Assert
(false);
3137
Debug.
Assert
(this.iterCurr.CurrentBranchingContext == BranchingContext.None);
3312
Debug.
Assert
(XmlILConstructInfo.Read(ndInvoke).ConstructMethod != XmlILConstructMethod.Writer);
3474
Debug.
Assert
(XmlILConstructInfo.Read(ndCopy).PushToWriterFirst);
3480
Debug.
Assert
(ndCopy.Left.XmlType.IsNode);
3492
Debug.
Assert
(ndCopy.Left.XmlType.IsNode);
3699
Debug.
Assert
(ndDod.NodeType == QilNodeType.DocOrderDistinct && ndLoop != null);
3828
Debug.
Assert
(ValidateNames.ValidateName(prefix, localName, ns, nodeType, ValidateNames.Flags.AllExceptPrefixMapping));
3895
Debug.
Assert
(relOp == QilNodeType.Eq || relOp == QilNodeType.Ne);
3932
Debug.
Assert
(relOp == QilNodeType.Eq || relOp == QilNodeType.Ne);
3954
Debug.
Assert
(ndSecond.NodeType == QilNodeType.NameOf);
3992
default: Debug.
Assert
(false); opcode = OpCodes.Nop; break;
4004
default: Debug.
Assert
(false); opcode = OpCodes.Nop; break;
4019
default: Debug.
Assert
(false); opcode = OpCodes.Nop; break;
4026
Debug.
Assert
(this.iterCurr.CurrentBranchingContext == BranchingContext.None);
4036
default: Debug.
Assert
(false); opcode = OpCodes.Nop; break;
4056
Debug.
Assert
(relOp == QilNodeType.Eq || relOp == QilNodeType.Ne);
4075
Debug.
Assert
(this.iterCurr.CurrentBranchingContext == BranchingContext.None);
4242
Debug.
Assert
(xmlTypes == XmlNodeKindFlags.PI);
4271
Debug.
Assert
(xmlTypes == XmlNodeKindFlags.Element);
4277
Debug.
Assert
(!isXmlTypeUnion || (xmlTypes & XmlNodeKindFlags.Content) == XmlNodeKindFlags.Content);
4406
Debug.
Assert
(!XmlILConstructInfo.Read(nd).PushToWriterLast);
4419
Debug.
Assert
(!XmlILConstructInfo.Read(nd).PushToWriterLast);
4436
Debug.
Assert
(!XmlILConstructInfo.Read(nd).PushToWriterLast);
4445
Debug.
Assert
(!XmlILConstructInfo.Read(nd).PushToWriterLast);
4454
Debug.
Assert
(nd.XmlType.IsSingleton && !XmlILConstructInfo.Read(nd).PushToWriterLast);
4467
Debug.
Assert
(!XmlILConstructInfo.Read(nd).PushToWriterLast);
System\Xml\Xsl\QIL\QilPatternFactory.cs (5)
28
Debug.
Assert
(f != null);
533
Debug.
Assert
(args.NodeType == QilNodeType.FormalParameterList);
537
Debug.
Assert
(args.NodeType == QilNodeType.FormalParameterList);
542
Debug.
Assert
(args.NodeType == QilNodeType.ActualParameterList);
543
Debug.
Assert
(func.Arguments.Count == args.Count);
System\Xml\Xsl\QIL\QilValidationVisitor.cs (1)
42
Debug.
Assert
(node != null);
System\Xml\Xsl\QIL\SubstitutionList.cs (1)
60
Debug.
Assert
(s.Count % 2 == 0);
System\Xml\Xsl\QueryReaderSettings.cs (1)
28
Debug.
Assert
(xmlNameTable != null);
System\Xml\Xsl\Runtime\ContentIterators.cs (2)
107
Debug.
Assert
(nodeType != XPathNodeType.Attribute && nodeType != XPathNodeType.Namespace);
399
Debug.
Assert
(this.state == IteratorState.HaveCurrentHaveNext);
System\Xml\Xsl\Runtime\DecimalFormatter.cs (3)
44
Debug.
Assert
(formatPicture != null && decimalFormat != null);
225
Debug.
Assert
(i+1 < result.Length);
227
Debug.
Assert
('0' <= ch && ch <= '9' || ch == EscChar);
System\Xml\Xsl\Runtime\DocumentOrderComparer.cs (1)
41
Debug.
Assert
(GetDocumentIndex(navThis) != GetDocumentIndex(navThat));
System\Xml\Xsl\Runtime\EarlyBoundInfo.cs (1)
22
Debug.
Assert
(namespaceUri != null && ebType != null);
System\Xml\Xsl\Runtime\NumberFormatter.cs (3)
80
Debug.
Assert
(1 <= val && val <= MaxAlphabeticValue);
81
Debug.
Assert
(Math.Pow(totalChars, MaxAlphabeticLength) >= MaxAlphabeticValue);
104
Debug.
Assert
(1 <= val && val <= MaxRomanValue);
System\Xml\Xsl\Runtime\StringConcat.cs (1)
53
Debug.
Assert
(value != null);
System\Xml\Xsl\Runtime\TreeIterators.cs (3)
453
Debug.
Assert
(this.state == IteratorState.HaveCurrentHaveNext || this.state == IteratorState.HaveCurrentNoNext);
476
Debug.
Assert
(this.state == IteratorState.HaveCurrentHaveNext || this.state == IteratorState.HaveCurrentNoNext);
757
Debug.
Assert
(this.state == IteratorState.HaveCurrentHaveNext || this.state == IteratorState.HaveCurrentNoNext);
System\Xml\Xsl\Runtime\WhitespaceRuleLookup.cs (7)
38
Debug.
Assert
(rules != null);
82
Debug.
Assert
(this.nameTable != null && this.ruleTemp != null);
83
Debug.
Assert
(localName != null && (object) this.nameTable.Get(localName) == (object) localName);
84
Debug.
Assert
(namespaceName != null && (object) this.nameTable.Get(namespaceName) == (object) namespaceName);
153
Debug.
Assert
(obj is InternalWhitespaceRule);
156
Debug.
Assert
(LocalName != null && that.LocalName != null);
157
Debug.
Assert
(NamespaceName != null && that.NamespaceName != null);
System\Xml\Xsl\Runtime\WhitespaceRuleReader.cs (1)
48
Debug.
Assert
(wsRules != null);
System\Xml\Xsl\Runtime\XmlAttributeCache.cs (6)
85
Debug.
Assert
(localName != null && localName.Length != 0 && prefix != null && ns != null);
93
Debug.
Assert
(this.numEntries != 0);
136
Debug.
Assert
(text != null);
137
Debug.
Assert
(this.arrAttrs != null && this.numEntries != 0);
148
Debug.
Assert
(this.arrAttrs != null && this.numEntries != 0);
327
Debug.
Assert
(this.numEntries == this.arrAttrs.Length);
System\Xml\Xsl\Runtime\XmlCollation.cs (1)
95
Debug.
Assert
(((int)value & Mask) == 0);
System\Xml\Xsl\Runtime\XmlExtensionFunction.cs (2)
197
Debug.
Assert
(methMatch.ContainsGenericParameters == false);
274
Debug.
Assert
(that != null);
System\Xml\Xsl\Runtime\XmlNavigatorFilter.cs (2)
148
Debug.
Assert
(TypeFilters[(int) nodeType] != null);
156
Debug.
Assert
(nodeType != XPathNodeType.Attribute && nodeType != XPathNodeType.Namespace);
System\Xml\Xsl\Runtime\XmlNavigatorStack.cs (2)
53
Debug.
Assert
(!IsEmpty);
61
Debug.
Assert
(!IsEmpty);
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (14)
217
Debug.
Assert
(ValidateNames.ValidateName(prefix, localName, ns, XPathNodeType.Attribute, ValidateNames.Flags.All));
492
Debug.
Assert
(prefix != null && ns != null);
496
Debug.
Assert
(prefix.Length == 0 || ns.Length != 0);
636
Debug.
Assert
(prefix != null && ns != null);
944
Debug.
Assert
(navigator != null);
1080
Debug.
Assert
(false);
1092
Debug.
Assert
(navigator.NodeType == XPathNodeType.Element);
1139
Debug.
Assert
(rootType == XPathNodeType.Element || rootType == XPathNodeType.Comment || rootType == XPathNodeType.ProcessingInstruction);
1168
Debug.
Assert
(rootType == XPathNodeType.Attribute || rootType == XPathNodeType.Namespace);
1196
Debug.
Assert
(this.nsmgr != null);
1225
Debug.
Assert
(prefix.Length != 0 && ns.Length != 0);
1268
Debug.
Assert
(prefix != null && ns != null && ns.Length != 0);
1367
Debug.
Assert
(ValidateNames.ParseNCName(name.Name, 0) == name.Name.Length);
1413
Debug.
Assert
(this.stkNames != null);
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (9)
81
Debug.
Assert
(data != null);
322
Debug.
Assert
(this.atomizedNames != null);
330
Debug.
Assert
(this.filters != null);
379
Debug.
Assert
(this.prefixMappingsList != null);
450
Debug.
Assert
(this.types != null);
781
Debug.
Assert
(this.collations != null);
839
Debug.
Assert
(context != null);
871
Debug.
Assert
(context != null);
1014
Debug.
Assert
(node.NodeType == XPathNodeType.Namespace);
System\Xml\Xsl\Runtime\XmlQueryStaticData.cs (1)
41
Debug.
Assert
(defaultWriterSettings != null && staticData != null);
System\Xml\Xsl\Runtime\XmlSequenceWriter.cs (1)
294
Debug.
Assert
(false);
System\Xml\Xsl\Runtime\XmlSortKey.cs (6)
64
Debug.
Assert
(this.nextKey != null && that.nextKey != null);
68
Debug.
Assert
(this.priority != that.priority);
78
Debug.
Assert
(that != null && !(this is XmlEmptySortKey));
113
Debug.
Assert
(obj is XmlSortKey);
306
Debug.
Assert
(this.dblVal == Double.NegativeInfinity || this.dblVal == Double.PositiveInfinity);
311
Debug.
Assert
(that.dblVal == Double.NegativeInfinity || that.dblVal == Double.PositiveInfinity);
System\Xml\Xsl\Runtime\XslNumber.cs (5)
33
Debug.
Assert
(startIdx >= 0 && tokLen > 0);
48
Debug.
Assert
(startIdx >= 0 && tokLen > 0);
115
Debug.
Assert
(groupingSeparator.Length <= 1);
235
Debug.
Assert
(1 <= dblVal && dblVal < double.PositiveInfinity);
275
Debug.
Assert
(groupSeparator.Length == 1);
System\Xml\Xsl\Runtime\XsltFunctions.cs (6)
66
Debug.
Assert
(value.Length < startIndex || Double.IsNaN(startIndex));
84
Debug.
Assert
(0 <= startIndex && startIndex <= endIndex && endIndex <= value.Length);
87
Debug.
Assert
(endIndex <= startIndex || Double.IsNaN(endIndex));
242
Debug.
Assert
(item is XPathNavigator);
287
Debug.
Assert
(stringValue != null);
502
Debug.
Assert
(lang != null);
System\Xml\Xsl\Runtime\XsltLibrary.cs (7)
293
Debug.
Assert
(op == ComparisonOperator.Eq || op == ComparisonOperator.Ne);
297
Debug.
Assert
(compType == TypeCode.Boolean);
304
Debug.
Assert
(compType == TypeCode.Boolean || compType == TypeCode.Double || compType == TypeCode.String);
334
Debug.
Assert
(op == ComparisonOperator.Eq || op == ComparisonOperator.Ne);
373
Debug.
Assert
(ComparisonOperator.Lt <= op && op <= ComparisonOperator.Ge);
403
Debug.
Assert
(XPathNodeType.SignificantWhitespace == XPathNodeType.Text + 1);
404
Debug.
Assert
(XPathNodeType.Whitespace == XPathNodeType.Text + 2);
System\Xml\Xsl\SourceLineInfo.cs (3)
73
Debug.
Assert
(lineInfo.Start.Line == lineInfo.End.Line);
74
Debug.
Assert
(lineInfo.Start.Pos == 0 && lineInfo.End.Pos == 0);
84
Debug.
Assert
(uriString != null);
System\Xml\Xsl\XmlILCommand.cs (2)
29
Debug.
Assert
(delExec != null && staticData != null);
206
Debug.
Assert
(results != null);
System\Xml\Xsl\XmlIlGenerator.cs (2)
133
Debug.
Assert
(this.qil.Root != null);
200
Debug.
Assert
(ndParam.NodeType == QilNodeType.Parameter);
System\Xml\Xsl\XmlQueryCardinality.cs (1)
25
Debug.
Assert
(0x00 <= value && value <= 0x07);
System\Xml\Xsl\XmlQueryType.cs (1)
504
Debug.
Assert
(IsAtomicValue && baseType.IsAtomicValue);
System\Xml\Xsl\XmlQueryTypeFactory.cs (3)
63
Debug.
Assert
(schemaType.DerivedBy == XmlSchemaDerivationMethod.Union);
451
Debug.
Assert
(!isNillable);
493
Debug.
Assert
(!IsAtomicValue || schemaType.Datatype.Variety == XmlSchemaDatatypeVariety.Atomic);
System\Xml\Xsl\XPath\XPathBuilder.cs (16)
106
Debug.
Assert
(op != XPathOperator.Unknown);
121
Debug.
Assert
(op == XPathOperator.Or || op == XPathOperator.And);
131
Debug.
Assert
(compType == XmlTypeCode.Boolean || compType == XmlTypeCode.Double || compType == XmlTypeCode.String);
151
Debug.
Assert
(val.XmlType.IsSingleton);
188
Debug.
Assert
(op == XPathOperator.Eq || op == XPathOperator.Ne);
211
Debug.
Assert
(op == XPathOperator.Lt || op == XPathOperator.Le || op == XPathOperator.Gt || op == XPathOperator.Ge);
232
Debug.
Assert
(op == XPathOperator.UnaryMinus);
233
Debug.
Assert
(right == null);
253
Debug.
Assert
(op == XPathOperator.Union);
747
Debug.
Assert
(current != null);
759
Debug.
Assert
(environment != null);
781
Debug.
Assert
(unknown.NodeType == QilNodeType.Unknown);
807
Debug.
Assert
(this.last != null);
812
Debug.
Assert
(unknown != null);
860
Debug.
Assert
(maxArgs == 0 || maxArgs == Infinity || argTypes != null && argTypes.Length == maxArgs);
886
Debug.
Assert
(numArgs > maxArgs);
System\Xml\Xsl\XPath\XPathParser.cs (4)
29
Debug.
Assert
(this.scanner == null && this.builder == null);
30
Debug.
Assert
(scanner != null && builder != null);
229
Debug.
Assert
(scanner.Name == "processing-instruction");
446
Debug.
Assert
(IsPrimaryExpr());
System\Xml\Xsl\XPath\XPathQilFactory.cs (2)
123
Debug.
Assert
(op == QilNodeType.Eq || op == QilNodeType.Ne);
138
Debug.
Assert
(op == QilNodeType.Lt || op == QilNodeType.Le || op == QilNodeType.Gt || op == QilNodeType.Ge);
System\Xml\Xsl\XPath\XPathScanner.cs (17)
80
Debug.
Assert
(xpathExpr != null);
94
Debug.
Assert
(0 <= index && index <= xpathExpr.Length);
100
Debug.
Assert
(-1 <= curIndex && curIndex < xpathExpr.Length);
105
Debug.
Assert
(curIndex == xpathExpr.Length);
124
Debug.
Assert
(kind == LexKind.Name);
125
Debug.
Assert
(name != null);
132
Debug.
Assert
(kind == LexKind.Name);
133
Debug.
Assert
(prefix != null);
150
Debug.
Assert
(kind == LexKind.String);
151
Debug.
Assert
(stringValue != null);
163
Debug.
Assert
(kind == LexKind.Name);
170
Debug.
Assert
(kind == LexKind.Axis);
171
Debug.
Assert
(axis != XPathAxis.Unknown);
419
Debug.
Assert
(IsAsciiDigit(curChar) || curChar == '.');
484
Debug.
Assert
(LexKind.FirstStringable <= t);
496
Debug.
Assert
(LexKind.FirstStringable <= t);
499
Debug.
Assert
("()[].@,*/$}".IndexOf((char)t) >= 0);
System\Xml\Xsl\XPathConvert.cs (118)
143
Debug.
Assert
(0 != (u & 0x80000000));
198
Debug.
Assert
(dec.MantissaSize > 0);
209
Debug.
Assert
(dec[ib] > 0 && dec[ib] <= 9);
219
Debug.
Assert
(dec[ib] >= 0 && dec[ib] <= 9);
246
Debug.
Assert
(exponent > 0 && exponent < 512);
260
Debug.
Assert
(digit <= 9);
261
Debug.
Assert
(0 != (this.u2 & 0x80000000));
265
Debug.
Assert
(this.exp >= 4);
303
Debug.
Assert
(1 == rgu[4]);
326
Debug.
Assert
(this.IsZero);
382
Debug.
Assert
(0 != (this.u2 & 0x80000000));
383
Debug.
Assert
(0 != (numOp.u2 & 0x80000000));
396
Debug.
Assert
(uHi < 0xFFFFFFFF);
401
Debug.
Assert
(uHi < 0xFFFFFFFF);
408
Debug.
Assert
(uHi < 0xFFFFFFFF);
415
Debug.
Assert
(uHi < 0xFFFFFFFF);
422
Debug.
Assert
(uHi < 0xFFFFFFFF);
428
Debug.
Assert
(0 != uT);
430
Debug.
Assert
(uHi < 0xFFFFFFFF);
437
Debug.
Assert
(uHi < 0xFFFFFFFF);
444
Debug.
Assert
(uHi < 0xFFFFFFFF);
453
Debug.
Assert
(this.error <= 2 || numOp.error <= 2);
473
Debug.
Assert
(0 != (rgu5 & 0x40000000));
491
Debug.
Assert
(0 == rgu3);
492
Debug.
Assert
(0 == rgu4);
493
Debug.
Assert
(0 == rgu5);
517
Debug.
Assert
(0 != (bn.u2 & 0x80000000));
535
Debug.
Assert
(wT >= 12 && wT < 32);
548
Debug.
Assert
(wT > 0 && wT < 32);
578
Debug.
Assert
(this.exp <= 32);
587
Debug.
Assert
(this.error < 0xFFFFFFFF);
591
Debug.
Assert
(0 == this.u2 && 0 == this.u1);
601
Debug.
Assert
(this.error < 0xFFFFFFFF);
634
Debug.
Assert
(!IsSpecial(dbl));
635
Debug.
Assert
(0 < dbl);
701
Debug.
Assert
(iT >= 0 && iT < 16);
704
Debug.
Assert
(numHH.exp + tenPower.exp > 1);
712
Debug.
Assert
(iT > 0 && iT <= 32);
714
Debug.
Assert
(numHH.exp + tenPower.exp > 1);
721
Debug.
Assert
(iT >= 0 && iT < 16);
724
Debug.
Assert
(numHH.exp + tenPower.exp <= 32);
732
Debug.
Assert
(iT > 0 && iT <= 32);
734
Debug.
Assert
(numHH.exp + tenPower.exp <= 32);
741
Debug.
Assert
(numHH.exp > 0 && numHH.exp < 32);
754
Debug.
Assert
(uLL <= uLH && uLH <= uHL && uHL <= uHH);
776
Debug.
Assert
(uHH >= uScale && uHH / uScale < 10);
779
Debug.
Assert
(uLL <= uHH);
789
Debug.
Assert
(0 != uHH || !numHH.IsZero);
818
Debug.
Assert
(0 <= bLL && bLL < bHH && bHH <= 9);
855
Debug.
Assert
(dblInt == Math.Floor(dblInt) && 1 <= dblInt && dblInt <= 9007199254740991.0d);
870
Debug.
Assert
(iT >= 0 && iT <= 15);
871
Debug.
Assert
(dblInt >= C10toN[iT] && dblInt < C10toN[iT + 1]);
875
Debug.
Assert
(iT >= 0);
878
Debug.
Assert
(dblInt == Math.Floor(dblInt) && 0 <= dblInt && dblInt < C10toN[iT]);
938
Debug.
Assert
(!IsSpecial(dbl));
939
Debug.
Assert
(0 < dbl);
952
Debug.
Assert
(0 == (dblHi & 0x7FF00000));
961
Debug.
Assert
(0 != (DblHi(dblT) & 0x7FF00000));
998
Debug.
Assert
(1 <= dblT && dblT < 2);
1035
Debug.
Assert
(0 == c5Den);
1050
Debug.
Assert
(cu <= 2);
1066
Debug.
Assert
(c2Num > 0 && c2Den > 0);
1072
Debug.
Assert
(0 == (biDen[biDen.Length - 1] & 0xF0000000));
1073
Debug.
Assert
(0 != (biDen[biDen.Length - 1] & 0x08000000));
1521
Debug.
Assert
(0 <= idx && idx < length);
1528
Debug.
Assert
(capacity >= InitCapacity);
1529
Debug.
Assert
(length >= 0 && length <= capacity);
1535
Debug.
Assert
(0 == length || 0 != digits[length - 1]);
1561
Debug.
Assert
(cu >= 0);
1579
Debug.
Assert
(2 <= capacity);
1595
Debug.
Assert
((object)this != (object)biSrc);
1608
Debug.
Assert
(dec.MantissaSize >= 0);
1620
Debug.
Assert
(dec[ib] >= 0 && dec[ib] <= 9);
1629
Debug.
Assert
(1 < uMul);
1638
Debug.
Assert
(0 != uMul);
1658
Debug.
Assert
(c5 >= 0);
1685
Debug.
Assert
(cbit >= 0);
1740
Debug.
Assert
(cu >= 0);
1756
Debug.
Assert
(cbit >= 0);
1805
Debug.
Assert
(idx >= 0 && idx < length);
1806
Debug.
Assert
(digits[idx] != bi.digits[idx]);
1814
Debug.
Assert
((object)this != (object)bi);
1857
Debug.
Assert
((object)this != (object)bi);
1868
Debug.
Assert
(0 == wCarry || 1 == wCarry);
1909
Debug.
Assert
((object)this != (object)bi);
1917
Debug.
Assert
(length <= cu);
1924
Debug.
Assert
(uQuo >= 0 && uQuo <= 9);
1937
Debug.
Assert
(0 == wCarry || 1 == wCarry);
1948
Debug.
Assert
(1 == wCarry);
1949
Debug.
Assert
(idx == cu);
1967
Debug.
Assert
(CompareTo(bi) < 0);
2064
Debug.
Assert
(value <= MaxDigits);
2071
Debug.
Assert
(0 <= ib && ib < mantissaSize);
2184
Debug.
Assert
(0 != mantissaSize && 0 != dec[0] && 0 != dec[mantissaSize - 1]);
2194
Debug.
Assert
(dec[ib] >= 0 && dec[ib] <= 9);
2202
Debug.
Assert
(dec[ib] >= 0 && dec[ib] <= 9);
2295
Debug.
Assert
(Double.IsNaN(dblLowPrec) || dblLowPrec == dbl);
2393
Debug.
Assert
(c2Dbl < 32 || 0 != biDec[0]);
2407
Debug.
Assert
(0 == c2Dbl || 0 == c2Dec);
2408
Debug.
Assert
(0 == c5Dbl || 0 == c5Dec);
2541
Debug.
Assert
(Double.IsInfinity(dbl));
2547
Debug.
Assert
(0 != dec.MantissaSize);
2580
Debug.
Assert
(dec[ib] >= 0 && dec[ib] <= 9);
2593
Debug.
Assert
(0 != cntDigits);
2594
Debug.
Assert
(sizeFract == cntDigits || sizeFract > cntDigits && pch[-1] == '0');
2603
Debug.
Assert
(sizeFract == cntDigits);
2606
Debug.
Assert
(dec[ib] >= 0 && dec[ib] <= 9);
2612
Debug.
Assert
(0 == sizeInt && 0 == cntDigits);
2703
Debug.
Assert
(IsAsciiDigit(ch));
2716
Debug.
Assert
(ch == '.');
2747
Debug.
Assert
(pchFirstDig != null);
2754
Debug.
Assert
(pchFirstDig != pch);
2758
Debug.
Assert
(IsAsciiDigit(*pchFirstDig));
2765
Debug.
Assert
(expAdj < 0);
2777
Debug.
Assert
(IsAsciiDigit(*pchFirstDig) && *pchFirstDig != '0');
2783
Debug.
Assert
(IsAsciiDigit(*pch) && *pch != '0');
2788
Debug.
Assert
(pch - pchFirstDig == numDig || pch - pchFirstDig == numDig + 1);
2792
Debug.
Assert
(numDig > 0 && numDig <= FloatingDecimal.MaxDigits);
System\Xml\Xsl\XslException.cs (1)
153
Debug.
Assert
(lineInfo == null || lineInfo.Uri != null);
System\Xml\Xsl\Xslt\Compiler.cs (9)
92
Debug.
Assert
(stylesheet != null);
162
Debug.
Assert
(var.NodeType == XslNodeType.Variable || var.NodeType == XslNodeType.Param);
190
Debug.
Assert
(qname != null);
204
Debug.
Assert
(nameTest != null);
218
Debug.
Assert
(name != null);
254
Debug.
Assert
(value <= ErrorCount);
273
Debug.
Assert
((savedErrorCount = -1) < 0);
276
Debug.
Assert
((savedErrorCount = -1) < 0);
405
Debug.
Assert
(characters.Length == 8);
System\Xml\Xsl\Xslt\CompilerScopeManager.cs (6)
170
Debug.
Assert
(varName.LocalName != null && varName.NamespaceUri != null);
177
Debug.
Assert
(prefix != null);
210
Debug.
Assert
(nsUri != null);
216
Debug.
Assert
(recPrefix == null);
252
Debug.
Assert
(localName != null);
347
Debug.
Assert
(scope.records[currentRecord].IsNamespace);
System\Xml\Xsl\Xslt\Focus.cs (1)
47
Debug.
Assert
(focusType != SingletonFocusType.Iterator);
System\Xml\Xsl\Xslt\InvokeGenerator.cs (2)
95
Debug.
Assert
(argName != null);
134
Debug.
Assert
(invokeArgs[prevArg] is QilIterator);
System\Xml\Xsl\Xslt\KeyMatchBuilder.cs (4)
42
Debug.
Assert
(base.numFixupLast == 0);
43
Debug.
Assert
(base.numFixupPosition == 0);
68
Debug.
Assert
(node != null);
69
Debug.
Assert
(fixup != null);
System\Xml\Xsl\Xslt\MatcherBuilder.cs (6)
217
Debug.
Assert
(!double.IsNaN(x.priority));
218
Debug.
Assert
(!double.IsNaN(y.priority));
356
Debug.
Assert
(patternList.Count > 0);
376
Debug.
Assert
((int)(QilLiteral)matcher == NoMatch);
399
Debug.
Assert
(pattern.Priority > lastPriority);
462
Debug.
Assert
(priority == branches.Length - 1);
System\Xml\Xsl\Xslt\OutputScopeManager.cs (3)
53
Debug.
Assert
(prefix != null);
54
Debug.
Assert
(uri != null);
125
Debug.
Assert
(prefix != null);
System\Xml\Xsl\Xslt\QilGenerator.cs (36)
129
Debug.
Assert
(compiler != null);
208
Debug.
Assert
(IsDebug && curLoop.IsFocusSet);
380
Debug.
Assert
(var.XmlType.IsSubtypeOf(T.NamespaceS));
381
Debug.
Assert
(var.Binding is QilList);
388
Debug.
Assert
(nsList[i].NodeType == QilNodeType.NamespaceDecl);
389
Debug.
Assert
(varList[i].NodeType == QilNodeType.NamespaceDecl);
416
Debug.
Assert
(tmpl != null && tmpl.Function == null);
417
Debug.
Assert
(tmpl.NodeType == XslNodeType.AttributeSet || tmpl.NodeType == XslNodeType.Template);
441
Debug.
Assert
(tmpl.NodeType == XslNodeType.Template);
556
Debug.
Assert
(tmpl != null && tmpl.Function != null && tmpl.Function.Definition.NodeType == QilNodeType.Unknown);
603
Debug.
Assert
(instructions != null);
838
Debug.
Assert
(pos < source.Length);
866
Debug.
Assert
(i == source.Length || source[i] == '{');
909
Debug.
Assert
(avt != null);
950
Debug.
Assert
(curLoop.IsFocusSet);
999
Debug.
Assert
(withParam.NodeType == XslNodeType.WithParam);
1033
Debug.
Assert
(node.NodeType == XslNodeType.ApplyImports);
1196
Debug.
Assert
(when.NodeType == XslNodeType.If || when.NodeType == XslNodeType.Otherwise);
1232
Debug.
Assert
(node.NodeType == XslNodeType.Variable);
1240
Debug.
Assert
(node.NodeType == XslNodeType.Variable || node.NodeType == XslNodeType.Param || node.NodeType == XslNodeType.WithParam);
1266
Debug.
Assert
(varValue.SourceLine == null);
1271
Debug.
Assert
(withParam.NodeType == XslNodeType.WithParam);
1437
Debug.
Assert
(result.XmlType == T.StringX);
1443
Debug.
Assert
(sort.NodeType == XslNodeType.Sort);
1777
Debug.
Assert
(num.Level == NumberLevel.Any);
1796
Debug.
Assert
(sheet.TemplateMatches.Count == 0);
1866
Debug.
Assert
(varPar.NodeType == XslNodeType.Variable || varPar.NodeType == XslNodeType.Param);
1895
Debug.
Assert
(varPar.NodeType == XslNodeType.Variable || varPar.NodeType == XslNodeType.Param);
1966
Debug.
Assert
(expr != null);
1990
Debug.
Assert
(pttrn != null);
2011
Debug.
Assert
(pttrn != null);
2099
Debug.
Assert
(
2338
Debug.
Assert
(n.SourceLine == null);
2357
Debug.
Assert
(nsVar.XmlType.IsSubtypeOf(T.NamespaceS));
2394
Debug.
Assert
(let.NodeType == QilNodeType.Let);
2399
Debug.
Assert
(0 <= varScope && varScope <= vars.Count);
System\Xml\Xsl\Xslt\QilGeneratorEnv.cs (6)
73
Debug.
Assert
(ns != null);
128
Debug.
Assert
(ns != null);
343
Debug.
Assert
(name.XmlType == T.StringX && key.XmlType == T.StringX);
371
Debug.
Assert
(defList != null && defList.Count > 0);
385
Debug.
Assert
(defList != null && defList.Count > 0);
553
Debug.
Assert
(propValue.ValueType == XsltConvert.DoubleType);
System\Xml\Xsl\Xslt\QilStrConcatenator.cs (3)
28
Debug.
Assert
(! inUse);
57
Debug.
Assert
(value.XmlType.TypeCode == XmlTypeCode.String);
68
Debug.
Assert
(inUse); // If we want allow multiple calls to ToQil() this logic should be changed
System\Xml\Xsl\Xslt\Scripts.cs (1)
117
Debug.
Assert
(compilerInfo != null);
System\Xml\Xsl\Xslt\Stylesheet.cs (2)
80
Debug.
Assert
(var.NodeType == XslNodeType.Variable || var.NodeType == XslNodeType.Param);
95
Debug.
Assert
(template.ImportPrecedence == 0);
System\Xml\Xsl\Xslt\XPathPatternBuilder.cs (17)
29
Debug.
Assert
(environment != null);
51
Debug.
Assert
(filter.Variable.XmlType.IsSubtypeOf(T.NodeNotRtf));
52
Debug.
Assert
(filter.Variable.Binding.NodeType == QilNodeType.Unknown); // fixupNode
53
Debug.
Assert
(filter.Body.XmlType.IsSubtypeOf(T.Boolean));
77
Debug.
Assert
(op == XPathOperator.Union);
78
Debug.
Assert
(left != null);
79
Debug.
Assert
(right != null);
114
Debug.
Assert
(
173
Debug.
Assert
(left != null);
174
Debug.
Assert
(right != null);
177
Debug.
Assert
(nop.Child == this.fixupNode);
182
Debug.
Assert
(left.NodeType == QilNodeType.Filter);
189
Debug.
Assert
(nop.Child != null);
193
Debug.
Assert
(right.NodeType == QilNodeType.Filter);
261
Debug.
Assert
(prefix.Length == 0);
316
Debug.
Assert
(parent.NodeType == QilNodeType.Filter);
381
Debug.
Assert
(current != null);
System\Xml\Xsl\Xslt\XPathPatternParser.cs (7)
29
Debug.
Assert
(this.scanner == null && this.ptrnBuilder == null);
30
Debug.
Assert
(scanner != null && ptrnBuilder != null);
115
Debug.
Assert
(scanner.CanBeFunction);
116
Debug.
Assert
(scanner.Prefix.Length == 0);
117
Debug.
Assert
(scanner.Name == "id" || scanner.Name == "key");
232
Debug.
Assert
(scanner.Kind == LexKind.LBracket);
235
Debug.
Assert
(scanner.Kind == LexKind.RBracket);
System\Xml\Xsl\Xslt\XslAst.cs (5)
69
Debug.
Assert
(nsUri != null || Prefix == null);
114
Debug.
Assert
(node != null);
196
Debug.
Assert
(node != null && node.NodeType == XslNodeType.List);
273
Debug.
Assert
(list != null && list.Count > 0);
287
Debug.
Assert
(name != null);
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (8)
247
Debug.
Assert
(tmpl.Match != null);
422
Debug.
Assert
(target != null);
438
Debug.
Assert
(instr.NodeType == XslNodeType.WithParam);
916
Debug.
Assert
(op != XPathOperator.Unknown);
1249
Debug.
Assert
(split > 0);
1277
Debug.
Assert
(scoperecord.IsNamespace || scoperecord.ncName == null);
1278
Debug.
Assert
(!compiler.IsPhantomNamespace(scoperecord.nsUri));
1316
Debug.
Assert
(parent.Content.Count == split + 1);
System\Xml\Xsl\Xslt\XsltInput.cs (21)
47
Debug.
Assert
(reader != null);
48
Debug.
Assert
(atoms != null);
181
Debug.
Assert
(
219
Debug.
Assert
(reader.NodeType == XmlNodeType.EntityReference);
221
Debug.
Assert
(local[0] == '#' || local == "lt" || local == "gt" || local == "quot" || local == "apos");
232
Debug.
Assert
(reader.NodeType == XmlNodeType.Text || reader.NodeType == XmlNodeType.Whitespace || reader.NodeType == XmlNodeType.SignificantWhitespace);
235
Debug.
Assert
(reader.NodeType == XmlNodeType.EndEntity);
295
Debug.
Assert
(reader.NodeType != XmlNodeType.EntityReference);
386
Debug.
Assert
(nodeType == XmlNodeType.Text || nodeType == XmlNodeType.Whitespace || nodeType == XmlNodeType.SignificantWhitespace);
428
Debug.
Assert
(reader.NodeType == XmlNodeType.Element);
563
Debug.
Assert
(IsKeyword(atoms.Version));
618
Debug.
Assert
(NodeType == XmlNodeType.Element);
619
Debug.
Assert
(attributes.Length <= xsltAttributeNumber.Length);
722
Debug.
Assert
(NodeType == XmlNodeType.Element);
785
Debug.
Assert
(NodeType == XmlNodeType.Element && IsXsltNamespace());
807
Debug.
Assert
(extensions ? IsKeyword(atoms.ExtensionElementPrefixes) : IsKeyword(atoms.ExcludeResultPrefixes));
845
Debug.
Assert
(IsKeyword(atoms.XPathDefaultNamespace));
854
Debug.
Assert
(IsKeyword(atoms.DefaultCollation));
931
Debug.
Assert
(prefix != null);
1001
Debug.
Assert
(input.NodeType == XmlNodeType.EndElement);
1004
Debug.
Assert
(input.NodeType == XmlNodeType.Element || input.NodeType == XmlNodeType.Attribute);
System\Xml\Xsl\Xslt\XsltLoader.cs (31)
50
Debug.
Assert
(compiler != null);
87
Debug.
Assert
(compiler.Root != null);
258
Debug.
Assert
(input.NodeType == XmlNodeType.Element);
276
Debug.
Assert
(!input.IsXsltNamespace());
277
Debug.
Assert
(curTemplate == null);
305
Debug.
Assert
(input.IsXsltNamespace() && (input.IsKeyword(atoms.Stylesheet) || input.IsKeyword(atoms.Transform)));
380
Debug.
Assert
(input.NodeType == XmlNodeType.Text);
677
Debug.
Assert
(attSet != null);
687
Debug.
Assert
(attSet.CycleCheck == CycleCheck.Processing);
688
Debug.
Assert
(attSet.Content[0].SourceLine != null);
787
Debug.
Assert
(NumCharAttrs == DefaultValues.Length);
817
Debug.
Assert
(name.Equals(format.Name));
913
Debug.
Assert
(input.NodeType == XmlNodeType.Text);
923
Debug.
Assert
(curTemplate == null);
924
Debug.
Assert
(input.CanHaveApplyImports == false);
940
Debug.
Assert
(curTemplate == null);
1155
Debug.
Assert
(
1208
Debug.
Assert
(href != null);
1341
Debug.
Assert
(input.NodeType == XmlNodeType.Text);
1378
Debug.
Assert
(input.NodeType == XmlNodeType.Text);
1563
Debug.
Assert
(input.NodeType == XmlNodeType.Text);
1758
Debug.
Assert
(nodeType != XslNodeType.Unknown);
1865
Debug.
Assert
(input.NodeType == XmlNodeType.Element);
2310
Debug.
Assert
(input.NodeType == XmlNodeType.Element);
2345
Debug.
Assert
(content != null && withParam != null);
2346
Debug.
Assert
(withParam.NodeType == XslNodeType.WithParam);
2356
Debug.
Assert
(content != null);
2363
Debug.
Assert
(content != null);
2776
Debug.
Assert
(node != null);
2782
Debug.
Assert
(node != null);
2790
Debug.
Assert
(to != null);
System\Xml\Xsl\Xslt\XsltQilFactory.cs (2)
136
Debug.
Assert
(format != null);
148
Debug.
Assert
(format != null);
System\Xml\Xsl\XsltOld\ActionFrame.cs (7)
89
Debug.
Assert
(this.variables != null && index < this.variables.Length);
94
Debug.
Assert
(this.variables != null && index < this.variables.Length);
119
Debug.
Assert
(nodeSet != null);
124
Debug.
Assert
(nodeSet != null);
129
Debug.
Assert
(0 < sortarray.Count);
165
Debug.
Assert
(parent != null);
196
Debug.
Assert
(this.action is ContainerAction);
System\Xml\Xsl\XsltOld\ApplyImportsAction.cs (1)
29
Debug.
Assert
(processor != null && frame != null);
System\Xml\Xsl\XsltOld\ApplyTemplatesAction.cs (7)
34
Debug.
Assert
(s_BuiltInRule != null);
45
Debug.
Assert
(mode != null);
61
Debug.
Assert
(this.mode == null);
123
Debug.
Assert
(processor != null && frame != null);
153
Debug.
Assert
(frame.State == ProcessNextNode);
154
Debug.
Assert
(frame.NewNodeSet != null);
166
Debug.
Assert
(frame.State == PositionAdvanced);
System\Xml\Xsl\XsltOld\AttributeAction.cs (1)
102
Debug.
Assert
(processor != null && frame != null);
System\Xml\Xsl\XsltOld\AttributeSetAction.cs (1)
33
Debug.
Assert
(this.name == null);
System\Xml\Xsl\XsltOld\Avt.cs (6)
22
Debug.
Assert
(constAvt != null);
27
Debug.
Assert
(eventList != null);
40
Debug.
Assert
(constAvt != null);
44
Debug.
Assert
(processor != null && frame != null);
57
Debug.
Assert
(compiler != null);
58
Debug.
Assert
(avtText != null);
System\Xml\Xsl\XsltOld\AvtEvent.cs (2)
20
Debug.
Assert
(key != Compiler.InvalidQueryKey);
25
Debug.
Assert
(key != Compiler.InvalidQueryKey);
System\Xml\Xsl\XsltOld\BeginEvent.cs (2)
28
Debug.
Assert
(input != null);
29
Debug.
Assert
(input.NodeType != XPathNodeType.Namespace);
System\Xml\Xsl\XsltOld\CallTemplateAction.cs (2)
30
Debug.
Assert
(this.name == null);
76
Debug.
Assert
(processor != null && frame != null);
System\Xml\Xsl\XsltOld\CommentAction.cs (1)
26
Debug.
Assert
(processor != null && frame != null);
System\Xml\Xsl\XsltOld\Compiler.cs (33)
106
Debug.
Assert
(this.atoms != null);
125
Debug.
Assert
(Document != null);
130
Debug.
Assert
(Document != null);
135
Debug.
Assert
(Document != null);
146
Debug.
Assert
(this.rootAction == null);
148
Debug.
Assert
(this.currentTemplate == null);
168
Debug.
Assert
(input != null);
169
Debug.
Assert
(xmlResolver != null);
171
Debug.
Assert
(this.input == null && this.atoms == null);
182
Debug.
Assert
(this.input != null && this.atoms != null);
211
Debug.
Assert
(this.rootAction != null);
212
Debug.
Assert
(this.stylesheet != null);
213
Debug.
Assert
(this.queryStore != null);
214
Debug.
Assert
(this.input == null && this.atoms == null);
302
Debug.
Assert
(this.rootAction != null);
306
Debug.
Assert
(this.currentTemplate != null);
307
Debug.
Assert
(variable.VarType == VariableType.LocalVariable || variable.VarType == VariableType.LocalParameter || variable.VarType == VariableType.WithParameter);
420
Debug.
Assert
(value != null);
421
Debug.
Assert
((object)value == (object)Input.Value); // this is always true. Why we passing value to this function.
508
Debug.
Assert
(this.xmlResolver != null);
519
Debug.
Assert
(this.xmlResolver != null);
539
Debug.
Assert
(newInput != null);
551
Debug.
Assert
(this.input != null);
552
Debug.
Assert
(this.input.Atoms == this.atoms);
580
Debug.
Assert
(this.stylesheets != null);
587
Debug.
Assert
(this.stylesheet == this.stylesheets.Peek());
598
Debug.
Assert
(this.stylesheet == this.stylesheets.Peek());
607
Debug.
Assert
(this.stylesheet == this.stylesheets.Peek());
612
Debug.
Assert
(this.currentTemplate != null);
619
Debug.
Assert
(this.currentTemplate != null);
635
Debug.
Assert
(this.queryStore != null);
926
Debug.
Assert
(start <= avt.Length);
947
Debug.
Assert
(avtText != null);
System\Xml\Xsl\XsltOld\ContainerAction.cs (7)
145
Debug.
Assert
(compiler.Input.NodeType == XPathNodeType.Element);
196
Debug.
Assert
(uri != null);
562
Debug.
Assert
(Ref.Equal(input.NamespaceURI, input.Atoms.UriXsl));
627
Debug.
Assert
(action != null);
711
Debug.
Assert
((object) this == (object) compiler.RootAction);
794
Debug.
Assert
(processor != null && frame != null);
818
Debug.
Assert
(actionIndex == 0 || this.containedActions != null);
System\Xml\Xsl\XsltOld\CopyAction.cs (1)
54
Debug.
Assert
(processor != null && frame != null);
System\Xml\Xsl\XsltOld\CopyAttributesAction.cs (13)
24
Debug.
Assert
(s_Action != null);
29
Debug.
Assert
(processor != null && frame != null);
43
Debug.
Assert
(frame.State == BeginEvent);
44
Debug.
Assert
(frame.Node.NodeType == XPathNodeType.Attribute);
54
Debug.
Assert
(frame.State == TextEvent);
55
Debug.
Assert
(frame.Node.NodeType == XPathNodeType.Attribute);
65
Debug.
Assert
(frame.State == EndEvent);
66
Debug.
Assert
(frame.Node.NodeType == XPathNodeType.Attribute);
76
Debug.
Assert
(frame.State == Advance);
77
Debug.
Assert
(frame.Node.NodeType == XPathNodeType.Attribute);
94
Debug.
Assert
(node.NodeType == XPathNodeType.Attribute);
99
Debug.
Assert
(node.NodeType == XPathNodeType.Attribute);
104
Debug.
Assert
(node.NodeType == XPathNodeType.Attribute);
System\Xml\Xsl\XsltOld\CopyCodeAction.cs (6)
31
Debug.
Assert
(copyEvents != null);
43
Debug.
Assert
(processor != null && frame != null);
44
Debug.
Assert
(this.copyEvents != null && this.copyEvents.Count > 0);
53
Debug.
Assert
(frame.State == Outputting);
56
Debug.
Assert
(frame.Counter < this.copyEvents.Count);
77
Debug.
Assert
(frame.Counter < this.copyEvents.Count);
System\Xml\Xsl\XsltOld\CopyNamespacesAction.cs (8)
24
Debug.
Assert
(s_Action != null);
29
Debug.
Assert
(processor != null && frame != null);
43
Debug.
Assert
(frame.State == BeginEvent);
44
Debug.
Assert
(frame.Node.NodeType == XPathNodeType.Namespace);
54
Debug.
Assert
(frame.State == EndEvent);
55
Debug.
Assert
(frame.Node.NodeType == XPathNodeType.Namespace);
65
Debug.
Assert
(frame.State == Advance);
66
Debug.
Assert
(frame.Node.NodeType == XPathNodeType.Namespace);
System\Xml\Xsl\XsltOld\CopyNodesetAction.cs (5)
26
Debug.
Assert
(s_Action != null);
31
Debug.
Assert
(processor != null && frame != null);
44
Debug.
Assert
(frame.State == BeginEvent);
54
Debug.
Assert
(frame.State == Contents);
90
Debug.
Assert
(frame.State == EndEvent);
System\Xml\Xsl\XsltOld\CopyOfAction.cs (4)
42
Debug.
Assert
(processor != null && frame != null);
46
Debug.
Assert
(frame.NodeSet != null);
75
Debug.
Assert
(frame.StoredOutput != null);
81
Debug.
Assert
(frame.State == NodeSetCopied);
System\Xml\Xsl\XsltOld\DbgCompiler.cs (4)
62
Debug.
Assert
(this.Debugger != null);
71
Debug.
Assert
(this.Debugger != null);
80
Debug.
Assert
(this.Debugger != null);
553
Debug.
Assert
(compiler.Debugger != null);
System\Xml\Xsl\XsltOld\DocumentScope.cs (4)
28
Debug.
Assert
(prefix != null && prefix.Length > 0);
32
Debug.
Assert
(scope.Uri != null);
41
Debug.
Assert
(prefix != null && prefix.Length > 0);
45
Debug.
Assert
(scope.Uri != null);
System\Xml\Xsl\XsltOld\ElementAction.cs (2)
64
Debug.
Assert
(this.empty == false);
91
Debug.
Assert
(processor != null && frame != null);
System\Xml\Xsl\XsltOld\EndEvent.cs (1)
19
Debug.
Assert
(nodeType != XPathNodeType.Namespace);
System\Xml\Xsl\XsltOld\ForeachAction.cs (4)
51
Debug.
Assert
(processor != null && frame != null);
65
Debug.
Assert
(processor.SortArray.Count != 0);
72
Debug.
Assert
(frame.State == ProcessNextNode);
73
Debug.
Assert
(frame.NewNodeSet != null);
System\Xml\Xsl\XsltOld\IfAction.cs (3)
58
Debug.
Assert
(processor != null && frame != null);
63
Debug.
Assert
(this.testKey != Compiler.InvalidQueryKey);
77
Debug.
Assert
(frame.Container != null);
System\Xml\Xsl\XsltOld\InputScope.cs (1)
85
Debug.
Assert
(variable != null);
System\Xml\Xsl\XsltOld\InputScopeManager.cs (9)
31
Debug.
Assert
(this.scopeStack != null);
32
Debug.
Assert
(this.scopeStack.Parent != null);
68
Debug.
Assert
(prefix != null);
69
Debug.
Assert
(nspace != null);
85
Debug.
Assert
(!string.IsNullOrEmpty(prefix));
103
Debug.
Assert
(prefix != null);
111
Debug.
Assert
(prefix != null);
120
Debug.
Assert
(nsList != null);
138
Debug.
Assert
(nsList != null);
System\Xml\Xsl\XsltOld\MessageAction.cs (2)
43
Debug.
Assert
(processor != null && frame != null);
54
Debug.
Assert
(recOutput != null);
System\Xml\Xsl\XsltOld\NamespaceEvent.cs (4)
20
Debug.
Assert
(input != null);
21
Debug.
Assert
(input.NodeType == XPathNodeType.Namespace);
41
Debug.
Assert
(res); // Namespace node as any other attribute can't fail because it doesn't signal record change
43
Debug.
Assert
(res);
System\Xml\Xsl\XsltOld\NavigatorInput.cs (2)
179
Debug.
Assert
(navigator.NameTable != null);
201
Debug.
Assert
(_Navigator != null);
System\Xml\Xsl\XsltOld\NavigatorOutput.cs (2)
33
Debug.
Assert
(record != null);
42
Debug.
Assert
(record.AttributeList[attrib] is BuilderInfo);
System\Xml\Xsl\XsltOld\NewInstructionAction.cs (1)
47
Debug.
Assert
(processor != null && frame != null);
System\Xml\Xsl\XsltOld\NumberAction.cs (12)
81
Debug.
Assert
(dblVal >= 1);
234
Debug.
Assert
(
302
Debug.
Assert
(nav.NodeType != XPathNodeType.Attribute && nav.NodeType != XPathNodeType.Namespace);
303
Debug.
Assert
(MatchCountKey(processor, contextNode, nav));
326
Debug.
Assert
(!(value is int));
344
Debug.
Assert
(processor != null && frame != null);
348
Debug.
Assert
(frame != null);
349
Debug.
Assert
(frame.NodeSet != null);
388
Debug.
Assert
(frame.StoredOutput != null);
449
Debug.
Assert
(prefix == null || prefix.isSeparator);
466
Debug.
Assert
(thisSeparator.isSeparator);
471
Debug.
Assert
(!thisFormat.isSeparator);
System\Xml\Xsl\XsltOld\OutKeywords.cs (1)
20
Debug.
Assert
(nameTable != null);
System\Xml\Xsl\XsltOld\OutputScope.cs (1)
72
Debug.
Assert
(urn != null);
System\Xml\Xsl\XsltOld\OutputScopeManager.cs (14)
30
Debug.
Assert
(this.elementScopesStack.Peek() != null); // We adding rootElementScope to garantee this
44
Debug.
Assert
(nameTable != null);
45
Debug.
Assert
(atoms != null);
63
Debug.
Assert
(prefix != null);
64
Debug.
Assert
(nspace != null);
73
Debug.
Assert
(name != null);
74
Debug.
Assert
(nspace != null);
75
Debug.
Assert
(prefix != null);
84
Debug.
Assert
(elementScope != null);
91
Debug.
Assert
(elementScope != null); // We adding rootElementScope to garantee this
104
Debug.
Assert
(prefix != null);
119
Debug.
Assert
(this.elementScopesStack[i] is OutputScope);
134
Debug.
Assert
(nspace != null);
136
Debug.
Assert
(this.elementScopesStack[i] is OutputScope);
System\Xml\Xsl\XsltOld\PrefixQname.cs (1)
32
Debug.
Assert
(qname != null);
System\Xml\Xsl\XsltOld\ProcessingInstructionAction.cs (2)
65
Debug.
Assert
(processor != null && frame != null);
87
Debug.
Assert
(frame.StoredOutput != null);
System\Xml\Xsl\XsltOld\Processor.cs (27)
127
Debug.
Assert
(this.execResult == ExecResult.Continue);
398
Debug.
Assert
(this.actionStack != null);
404
Debug.
Assert
(this.builder != null);
432
Debug.
Assert
(frame != null);
456
Debug.
Assert
(this.templateLookup != null);
462
Debug.
Assert
(key != Compiler.InvalidQueryKey);
467
Debug.
Assert
(key != Compiler.InvalidQueryKey);
480
Debug.
Assert
(key != Compiler.InvalidQueryKey);
550
Debug.
Assert
(nav.NodeType == XPathNodeType.Element);
651
Debug.
Assert
(this.builder != null);
659
Debug.
Assert
(this.xsm != null);
671
Debug.
Assert
(StateMachine.StateOnly(stateOutlook) == this.xsm.State);
672
Debug.
Assert
(ExecutionResult == ExecResult.Continue);
676
Debug.
Assert
(StateMachine.StateOnly(stateOutlook) == this.xsm.State);
698
Debug.
Assert
(this.xsm != null);
709
Debug.
Assert
(StateMachine.StateOnly(stateOutlook) == this.xsm.State);
710
Debug.
Assert
(ExecutionResult == ExecResult.Continue);
714
Debug.
Assert
(StateMachine.StateOnly(stateOutlook) == this.xsm.State);
730
Debug.
Assert
(this.xsm != null);
742
Debug.
Assert
(StateMachine.StateOnly(stateOutlook) == this.xsm.State);
845
Debug.
Assert
(navigator != null);
864
Debug.
Assert
(output != null);
874
Debug.
Assert
(this.builder != null);
915
Debug.
Assert
(saveStackSize == this.actionStack.Length);
925
Debug.
Assert
(1 < actionStack.Length);
936
Debug.
Assert
(2 < actionStack.Length);
973
Debug.
Assert
(2 <= this.debuggerStack.Length);
System\Xml\Xsl\XsltOld\ReaderOutput.cs (28)
48
Debug.
Assert
(processor != null);
49
Debug.
Assert
(processor.NameTable != null);
164
Debug.
Assert
(ordinal >= 0);
168
Debug.
Assert
(ordinal == -1);
176
Debug.
Assert
(ordinal >= 0);
180
Debug.
Assert
(ordinal == -1);
205
Debug.
Assert
(ordinal >= 0);
210
Debug.
Assert
(ordinal == -1);
218
Debug.
Assert
(ordinal >= 0);
223
Debug.
Assert
(ordinal == -1);
237
Debug.
Assert
(this.attributeCount == 0);
265
Debug.
Assert
(this.processor != null || this.state == ReadState.Closed);
306
Debug.
Assert
(this.processor.ExecutionDone);
378
Debug.
Assert
(this.builder != null);
382
Debug.
Assert
(NodeType == XmlNodeType.EndElement);
410
Debug.
Assert
(this.builder != null);
439
Debug.
Assert
(this.nameTable != null);
454
Debug.
Assert
(NodeType != XmlNodeType.EntityReference);
512
Debug.
Assert
(0 <= attrib && attrib < this.attributeCount);
513
Debug.
Assert
(0 <= attrib && attrib < this.attributeList.Count);
514
Debug.
Assert
(this.attributeList[attrib] is BuilderInfo);
525
Debug.
Assert
(this.attributeList[attrib] is BuilderInfo);
539
Debug.
Assert
(this.attributeList[index] is BuilderInfo);
558
Debug.
Assert
(this.attributeList[index] is BuilderInfo);
580
Debug.
Assert
(this.currentInfo != null);
581
Debug.
Assert
(this.attributeCount == 0 || this.attributeList != null);
582
Debug.
Assert
((this.currentIndex == -1) == (this.currentInfo == this.mainNode));
583
Debug.
Assert
((this.currentIndex == -1) || (this.currentInfo == this.attributeValue || this.attributeList[this.currentIndex] is BuilderInfo && this.attributeList[this.currentIndex] == this.currentInfo));
System\Xml\Xsl\XsltOld\RecordBuilder.cs (24)
59
Debug.
Assert
(output != null);
105
Debug.
Assert
(this.recordState != HaveRecord);
125
Debug.
Assert
(this.recordState == NoRecord || (state & StateMachine.BeginRecord) == 0);
173
Debug.
Assert
(this.recordState == NoRecord || (state & StateMachine.BeginRecord) == 0);
233
Debug.
Assert
(this.attributeCount <= this.attributeList.Count);
236
Debug.
Assert
(this.attributeList[attrib] != null && this.attributeList[attrib] is BuilderInfo);
256
Debug.
Assert
(this.attributeCount == 0);
269
Debug.
Assert
(this.attributeCount == 0);
281
Debug.
Assert
(this.attributeCount == this.attributeList.Count);
294
Debug.
Assert
(this.attributeList[attrib] != null && this.attributeList[attrib] is BuilderInfo);
365
Debug.
Assert
(this.recordState == NoRecord || this.recordState == SomeRecord);
388
Debug.
Assert
(this.recordState == NoRecord || this.recordState == SomeRecord);
403
Debug.
Assert
(this.recordState == NoRecord || this.recordState == SomeRecord);
418
Debug.
Assert
(this.mainNode != null);
427
Debug.
Assert
(this.mainNode.NodeType == XmlNodeType.Element);
430
Debug.
Assert
(this.attributeList[attr] is BuilderInfo);
447
Debug.
Assert
(this.mainNode.NodeType == XmlNodeType.Element);
485
Debug.
Assert
(this.attributeList[attr] is BuilderInfo);
525
Debug.
Assert
(this.mainNode.NodeType == XmlNodeType.Comment);
526
Debug.
Assert
((object) this.currentInfo == (object) this.mainNode);
568
Debug.
Assert
(this.mainNode.NodeType == XmlNodeType.ProcessingInstruction || this.mainNode.NodeType == XmlNodeType.XmlDeclaration);
630
Debug.
Assert
(this.namespaceCount == this.namespaceList.Count);
639
Debug.
Assert
(this.namespaceList[index] != null && this.namespaceList[index] is BuilderInfo);
665
Debug.
Assert
(prefix != null && prefix.Length > 0);
System\Xml\Xsl\XsltOld\RootAction.cs (5)
173
Debug.
Assert
(mark == null);
226
Debug.
Assert
(processor != null && frame != null);
241
Debug.
Assert
(frame.State == QueryInitialized);
243
Debug.
Assert
(Processor.IsRoot(frame.Node));
255
Debug.
Assert
(frame.State == RootProcessed);
System\Xml\Xsl\XsltOld\SequentialOutput.cs (11)
111
Debug.
Assert
(record.MainNode.NodeType == XmlNodeType.Element);
361
Debug.
Assert
(this.outputCache[record] is BuilderInfo);
479
Debug.
Assert
(value != null);
484
Debug.
Assert
(value != null);
511
Debug.
Assert
(value != null);
512
Debug.
Assert
(this.isHtmlOutput);
558
Debug.
Assert
(value != null);
559
Debug.
Assert
(find.Length == replace.Length);
600
Debug.
Assert
(value != null);
605
Debug.
Assert
(count <= list.Count);
607
Debug.
Assert
(list[attrib] is BuilderInfo);
System\Xml\Xsl\XsltOld\SortAction.cs (2)
146
Debug.
Assert
(processor != null && frame != null);
147
Debug.
Assert
(frame.State == Initialized);
System\Xml\Xsl\XsltOld\StateMachine.cs (4)
96
Debug.
Assert
(newState != Assrt);
102
Debug.
Assert
(newState != Assrt);
112
Debug.
Assert
(newState != Assrt);
118
Debug.
Assert
(newState != Assrt);
System\Xml\Xsl\XsltOld\Stylesheet.cs (20)
128
Debug.
Assert
(attributeSet.Name != null);
132
Debug.
Assert
(this.attributeSetTable != null);
150
Debug.
Assert
(this.templateNameTable != null);
166
Debug.
Assert
(this.modeManagers != null);
180
Debug.
Assert
(this.templates == null);
184
Debug.
Assert
(manager != null);
195
Debug.
Assert
(enumerator.Value is TemplateManager);
203
Debug.
Assert
(this.imports[importIndex] is Stylesheet);
205
Debug.
Assert
(stylesheet != null);
246
Debug.
Assert
(processor != null && navigator != null);
247
Debug.
Assert
(mode != null);
257
Debug.
Assert
(manager.Mode.Equals(mode));
282
Debug.
Assert
(this.imports[importIndex] is Stylesheet);
284
Debug.
Assert
(stylesheet != null);
302
Debug.
Assert
(processor != null && navigator != null);
303
Debug.
Assert
(this.templates == null && this.modeManagers == null || this.templates == this.modeManagers[XmlQualifiedName.Empty]);
345
Debug.
Assert
(this.imports[importIndex] is Stylesheet);
347
Debug.
Assert
(stylesheet != null);
373
Debug.
Assert
(this.imports[importIndex] is Stylesheet);
375
Debug.
Assert
(stylesheet != null);
System\Xml\Xsl\XsltOld\TemplateAction.cs (6)
45
Debug.
Assert
(this.templateId == 0);
85
Debug.
Assert
(this.matchKey == Compiler.InvalidQueryKey);
89
Debug.
Assert
(this.name == null);
93
Debug.
Assert
(Double.IsNaN(this.priority));
100
Debug.
Assert
(this.mode == null);
202
Debug.
Assert
(processor != null && frame != null);
System\Xml\Xsl\XsltOld\TemplateLookupAction.cs (7)
25
Debug.
Assert
(processor != null && frame != null);
26
Debug.
Assert
(frame.State == Initialized);
56
Debug.
Assert
(node != null);
92
Debug.
Assert
(processor != null && frame != null);
93
Debug.
Assert
(frame.State == Initialized);
94
Debug.
Assert
(processor.Debugger != null);
101
Debug.
Assert
(this.mode != Compiler.BuiltInMode);
System\Xml\Xsl\XsltOld\Templatemanager.cs (8)
23
Debug.
Assert
(x != null && x is TemplateAction);
24
Debug.
Assert
(y != null && y is TemplateAction);
29
Debug.
Assert
(! Double.IsNaN(tx.Priority));
30
Debug.
Assert
(! Double.IsNaN(ty.Priority));
33
Debug.
Assert
(tx.TemplateId != ty.TemplateId || tx == ty);
54
Debug.
Assert
(template != null);
55
Debug.
Assert
(
79
Debug.
Assert
(this.templates != null);
System\Xml\Xsl\XsltOld\TextAction.cs (1)
64
Debug.
Assert
(processor != null && frame != null);
System\Xml\Xsl\XsltOld\TextEvent.cs (2)
21
Debug.
Assert
(text != null);
27
Debug.
Assert
(input.NodeType == XPathNodeType.Text || input.NodeType == XPathNodeType.SignificantWhitespace);
System\Xml\Xsl\XsltOld\UseAttributesetsAction.cs (2)
27
Debug.
Assert
(Ref.Equal(compiler.Input.LocalName, compiler.Atoms.UseAttributeSets));
30
Debug.
Assert
(this.useAttributeSets == null);
System\Xml\Xsl\XsltOld\ValueOfAction.cs (9)
24
Debug.
Assert
(s_BuiltInRule != null);
52
Debug.
Assert
(processor != null && frame != null);
56
Debug.
Assert
(frame != null);
57
Debug.
Assert
(frame.NodeSet != null);
71
Debug.
Assert
(frame.StoredOutput != null);
86
Debug.
Assert
(processor != null && frame != null);
90
Debug.
Assert
(frame != null);
91
Debug.
Assert
(frame.NodeSet != null);
105
Debug.
Assert
(frame.StoredOutput != null);
System\Xml\Xsl\XsltOld\VariableAction.cs (4)
86
Debug.
Assert
(this.name == null && this.nameStr == null);
101
Debug.
Assert
(processor != null && frame != null && frame.State != ValueCalculated);
145
Debug.
Assert
(recOutput is NavigatorOutput);
150
Debug.
Assert
(value != null);
System\Xml\Xsl\XsltOld\WithParamAction.cs (2)
33
Debug.
Assert
(processor != null && frame != null);
56
Debug.
Assert
(recOutput is NavigatorOutput);
System\Xml\Xsl\XsltOld\WriterOutput.cs (2)
93
Debug.
Assert
(list.Count >= count);
95
Debug.
Assert
(list[attrib] is BuilderInfo);
System\Xml\Xsl\XsltOld\XsltCompileContext.cs (7)
214
Debug.
Assert
(thisUri != null && baseUri != null);
551
Debug.
Assert
(it != null);
755
Debug.
Assert
(resultCollection.Count != 0);
756
Debug.
Assert
(newList.Count != 0);
759
Debug.
Assert
(resultCollection[0] is XPathNavigator);
791
Debug.
Assert
(extension != null);
792
Debug.
Assert
(method != null);
System\Xml\Xsl\XsltOld\XsltOutput.cs (2)
128
Debug.
Assert
(this.encoding != null);
186
Debug.
Assert
(false);
System.Drawing (3)
commonui\System\Drawing\BufferedGraphicsContext.cs (1)
549
Debug.
Assert
(oldBitmap == IntPtr.Zero);
commonui\System\Drawing\SystemFonts.cs (1)
335
Debug.
Assert
(defaultFont == null);
misc\GDI\DeviceContext.cs (1)
630
Debug.
Assert
(clip.HRegion != IntPtr.Zero);
System.Management (1)
managementpath.cs (1)
672
Debug.
Assert
(nsPath != null);
System.Messaging (1)
System\Messaging\MessageQueue.cs (1)
3984
Debug.
Assert
(this.owner.OutstandingAsyncRequests.Contains(this));
System.Runtime.Remoting (1)
metadata\wsdlparser.cs (1)
5504
Debug.
Assert
(bAnonymous == false || _bSUDSType == false);
System.Security (11)
system\security\cryptography\pkcs\envelopedpkcs7.cs (2)
995
Debug.
Assert
(false);
1036
Debug.
Assert
(index == totalSize / (uint)Marshal.SizeOf(typeof(IntPtr)));
system\security\cryptography\pkcs\pkcsutils.cs (1)
560
Debug.
Assert
(certificates.Count == 1);
system\security\cryptography\pkcs\signerinfo.cs (4)
47
Debug.
Assert
(signedCms != null && pbCmsgSignerInfo != null && !pbCmsgSignerInfo.IsInvalid);
61
Debug.
Assert
(signedCms != null && encodedSignerInfo != null && encodedSignerInfo.Length > 0);
285
Debug.
Assert
(signer != null);
795
Debug.
Assert
(m_signerInfos[index] != null);
system\security\cryptography\xml\signedxml.cs (4)
539
System.Diagnostics.Debug.
Assert
(cloneElem != null);
916
System.Diagnostics.Debug.
Assert
(a != null);
917
System.Diagnostics.Debug.
Assert
(b != null);
918
System.Diagnostics.Debug.
Assert
(count > 0);
System.Transactions (20)
System\Transactions\DurableEnlistmentState.cs (1)
372
Debug.
Assert
( enlistment.PromotableSinglePhaseNotification != null );
System\Transactions\Enlistment.cs (2)
322
Debug.
Assert
(this.Transaction.phase0Volatiles.preparedVolatileEnlistments <=
522
Debug.
Assert
(this.transaction.phase1Volatiles.preparedVolatileEnlistments <=
System\Transactions\Oletx\OletxVolatileEnlistment.cs (1)
357
Debug.
Assert
( ( 0 == phase ) && ( 0 == this.outstandingNotifications ) );
System\Transactions\Trace\PlainXmlWriter.cs (3)
116
Debug.
Assert
( localName != null && localName.Length > 0 );
133
Debug.
Assert
(!this.writingAttribute);
143
Debug.
Assert
(this.writingAttribute);
System\Transactions\Transaction.cs (2)
824
Debug.
Assert
(this.internalTransaction.State != null);
862
Debug.
Assert
(this.internalTransaction.State != null);
System\Transactions\TransactionScope.cs (2)
651
Debug.
Assert
( rollbackTransaction != null );
901
Debug.
Assert
( rollbackTransaction != null );
System\Transactions\TransactionState.cs (9)
1257
Debug.
Assert
( tx.phase0Volatiles.dependentClones >= 0 );
1260
Debug.
Assert
( tx.phase0Volatiles.preparedVolatileEnlistments <=
1279
Debug.
Assert
( tx.phase1Volatiles.dependentClones >= 0 );
2643
Debug.
Assert
( tx.phase0Volatiles.preparedVolatileEnlistments <=
2657
Debug.
Assert
( tx.phase0WaveDependentCloneCount >= 0 );
2695
Debug.
Assert
( tx.phase1Volatiles.dependentClones >= 0 );
2702
Debug.
Assert
( 0 <= tx.abortingDependentCloneCount );
4366
Debug.
Assert
(tx.phase0Volatiles.preparedVolatileEnlistments <=
4385
Debug.
Assert
(tx.phase1Volatiles.dependentClones >= 0);
System.Web (53)
Abstractions\HttpFileCollectionWrapper.cs (1)
95
Debug.
Assert
(files != null);
Configuration\HttpCapabilitiesEvaluator.cs (1)
267
Debug.
Assert
(UserAgentCacheKeyLength != 0);
Configuration\SessionStateSection.cs (1)
506
Debug.
Assert
(value is SessionStateSection);
Configuration\SqlCacheDependencyDatabase.cs (1)
90
Debug.
Assert
(value is SqlCacheDependencyDatabase);
Configuration\SqlCacheDependencySection.cs (1)
97
Debug.
Assert
(value is SqlCacheDependencySection);
Configuration\StrongNameUtility.cs (2)
37
Debug.
Assert
(keyBlob != IntPtr.Zero);
40
Debug.
Assert
(generatedSize > 0 && generatedSize <= Int32.MaxValue);
DataAccess\ADConnectionHelper.cs (2)
21
Debug.
Assert
((objectDN != null) && (objectDN.Length != 0));
47
Debug.
Assert
(entry != null);
Routing\ParsedRoute.cs (1)
11
Debug.
Assert
(pathSegments != null);
Security\ADMembershipUser.cs (2)
184
Debug.
Assert
(sidBinaryForm != null);
187
Debug.
Assert
((providerUserKey != null) && (providerUserKey is SecurityIdentifier));
Security\AntiXss\CodeCharts\CodeChartHelper.cs (1)
15
Debug.
Assert
(min <= max);
Security\AntiXss\Utf16StringReader.cs (1)
53
Debug.
Assert
(input != null);
UI\DesignTimeTemplateParser.cs (1)
80
System.Diagnostics.Debug.
Assert
(controlBuilder.CurrentFilterResolutionService == null);
UI\WebControls\FileUpload.cs (1)
212
Debug.
Assert
(result != null);
UI\WebControls\MethodParametersDictionary.cs (1)
50
Debug.
Assert
(savedState is Pair);
UI\WebParts\AppearanceEditorPart.cs (2)
68
Debug.
Assert
(webPart != null);
273
Debug.
Assert
(webPart != null);
UI\WebParts\BehaviorEditorPart.cs (2)
101
Debug.
Assert
(webPart != null);
410
Debug.
Assert
(webPart != null);
UI\WebParts\EditorPart.cs (3)
154
Debug.
Assert
(propertyDisplayNames.Length == propertyEditors.Length);
155
Debug.
Assert
(propertyDisplayNames.Length == errorMessages.Length);
156
Debug.
Assert
(propertyDescriptions == null || (propertyDescriptions.Length == propertyDisplayNames.Length));
UI\WebParts\LayoutEditorPart.cs (2)
230
Debug.
Assert
(webPart != null);
242
Debug.
Assert
(manager != null);
UI\WebParts\PageCatalogPart.cs (1)
92
Debug.
Assert
(WebPartManager != null);
UI\WebParts\PropertyGridEditorPart.cs (5)
100
Debug.
Assert
(editableObject != null);
108
Debug.
Assert
(count > 0);
248
Debug.
Assert
(editableObject != null);
314
Debug.
Assert
(propertyDisplayNames.Length == editorControls.Length && propertyDisplayNames.Length == _errorMessages.Length);
322
Debug.
Assert
(editableObject != null);
UI\WebParts\ProxyWebPartManager.cs (1)
116
Debug.
Assert
(page != null);
UI\WebParts\RowToFieldTransformer.cs (4)
43
Debug.
Assert
(_callback != null);
100
Debug.
Assert
(owner != null);
119
Debug.
Assert
(WizardSteps.Count == 0);
153
Debug.
Assert
(_fieldName != null);
UI\WebParts\RowToParametersTransformer.cs (6)
99
Debug.
Assert
(_callback != null);
217
Debug.
Assert
(owner != null);
235
Debug.
Assert
(WizardSteps.Count == 0);
325
Debug.
Assert
(WizardSteps.Count > 0);
334
Debug.
Assert
(_consumerFieldNames != null);
335
Debug.
Assert
(oldProviderNamesLength == 2 * _consumerFieldNames.Length);
UI\WebParts\TransformerConfigurationWizardBase.cs (1)
141
Debug.
Assert
(WizardSteps.Count > 0);
UI\WebParts\WebPartCollection.cs (1)
38
Debug.
Assert
(value != null);
UI\WebParts\WebPartConnection.cs (5)
252
Debug.
Assert
(_webPartManager != null);
258
Debug.
Assert
(providerWebPart != null);
262
Debug.
Assert
(consumerWebPart != null);
269
Debug.
Assert
(providerConnectionPoint != null);
278
Debug.
Assert
(consumerConnectionPoint != null);
UI\WebParts\WebPartTracker.cs (1)
61
Debug.
Assert
(Count >= 1);
UI\WebParts\WebPartTransformerAttribute.cs (1)
85
Debug.
Assert
(attributes.Length == 0 || attributes.Length == 1);
UI\WebParts\WebPartUtil.cs (1)
28
Debug.
Assert
(constructor != null);
System.Web.DataVisualization (1)
WebForm\General\ChartHttpHandler.cs (1)
1787
System.Diagnostics.Debug.
Assert
(!String.IsNullOrEmpty(keyFormat));
System.Web.DynamicData (48)
DynamicData\ControlFilterExpression.cs (2)
123
Debug.
Assert
(names.Count == columns.Count);
137
Debug.
Assert
(target != null);
DynamicData\DynamicControl.cs (1)
187
Debug.
Assert
(FieldTemplate == null);
DynamicData\DynamicControlParameter.cs (2)
36
Debug.
Assert
(dataSource != null);
135
Debug.
Assert
(column.ForeignKeyNames.Count == parentTable.PrimaryKeyColumns.Count);
DynamicData\DynamicDataExtensions.cs (1)
105
Debug.
Assert
(context != null);
DynamicData\DynamicDataRoute.cs (1)
57
Debug.
Assert
(Model != null);
DynamicData\DynamicDataRouteHandler.cs (4)
151
Debug.
Assert
(httpContext != null);
184
Debug.
Assert
(httpContext != null);
198
Debug.
Assert
(httpContext != null);
206
Debug.
Assert
(requestContext.HttpContext.Items[s_requestContextKey] == null);
DynamicData\DynamicField.cs (1)
248
Debug.
Assert
(control != null);
DynamicData\DynamicFilter.cs (2)
125
Debug.
Assert
(dataSource != null);
142
Debug.
Assert
(_dataSource != null);
DynamicData\DynamicHyperLink.cs (1)
253
Debug.
Assert
(!String.IsNullOrEmpty(tableName));
DynamicData\DynamicRouteExpression.cs (1)
38
Debug.
Assert
(DataSource != null);
DynamicData\EntityTemplateFactory.cs (1)
125
Debug.
Assert
(model != null);
DynamicData\FieldTemplateFactory.cs (1)
303
Debug.
Assert
(false);
DynamicData\FieldTemplateUserControl.cs (3)
236
Debug.
Assert
(Mode == DataBoundControlMode.Insert);
312
Debug.
Assert
(enumType != null);
479
Debug.
Assert
(errorMessage != null);
DynamicData\FilterFactory.cs (3)
36
Debug.
Assert
(model != null);
63
Debug.
Assert
(filterTemplatePath != null);
73
Debug.
Assert
(column != null);
DynamicData\FilterUserControlBase.cs (1)
76
Debug.
Assert
(keyStrings.Length == keyNames.Length);
DynamicData\MetaChildrenColumn.cs (1)
112
Debug.
Assert
(fkColumn.ForeignKeyNames.Count == pkValues.Count);
DynamicData\MetaColumn.cs (1)
544
Debug.
Assert
(column != null);
DynamicData\MetaForeignKeyColumn.cs (1)
84
Debug.
Assert
(fkValues.Length == ForeignKeyNames.Count);
DynamicData\MetaModel.cs (6)
582
Debug.
Assert
(contextType != null);
583
Debug.
Assert
(tableName != null);
616
Debug.
Assert
(contextType != null);
617
Debug.
Assert
(model != null);
629
Debug.
Assert
(entityType != null);
630
Debug.
Assert
(table != null);
DynamicData\MetaTable.cs (4)
379
Debug.
Assert
(false);
792
Debug.
Assert
(column != null);
893
Debug.
Assert
(rowCollection.Count == 1);
988
Debug.
Assert
(table != null);
DynamicData\QueryableFilterRepeater.cs (1)
100
Debug.
Assert
(_dataSource != null);
DynamicData\QueryableFilterUserControl.cs (2)
51
Debug.
Assert
(enumType != null);
125
Debug.
Assert
(_context != null);
DynamicData\Util\DefaultValueMapping.cs (2)
21
Debug.
Assert
(defaultValues != null);
28
Debug.
Assert
(_defaultValues != null);
DynamicData\Util\MetaTableHelper.cs (1)
113
Debug.
Assert
(model != null);
DynamicData\Util\Misc.cs (2)
143
Debug.
Assert
(enumType != null);
144
Debug.
Assert
(enumType.IsEnum);
DynamicData\Util\RouteParametersHelper.cs (1)
34
Debug.
Assert
(fkColumn.ForeignKeyNames.Count == fkColumn.ParentTable.PrimaryKeyColumns.Count);
DynamicData\Util\TemplateFactory.cs (1)
30
Debug.
Assert
(!String.IsNullOrEmpty(defaultLocation));
System.Web.Entity (11)
System\Data\WebControls\EntityDataSource.cs (1)
1102
Debug.
Assert
(Page != null);
System\Data\WebControls\EntityDataSourceView.cs (7)
119
Debug.
Assert
(context != null);
120
Debug.
Assert
(entitySet != null);
121
Debug.
Assert
(mode != ManagerMode.None);
134
Debug.
Assert
(entity != null);
135
Debug.
Assert
(Mode != ManagerMode.None);
299
Debug.
Assert
(_collectionManager.FlattenedEntityCollection != null);
1767
Debug.
Assert
(asmPublicKeyToken != null);
System\Data\WebControls\WebControlParameterProxy.cs (3)
28
Debug.
Assert
(null != entityDataSource);
29
Debug.
Assert
(!String.IsNullOrEmpty(propertyName));
38
Debug.
Assert
(null != entityDataSource);
System.Web.Entity.Design (2)
System\Data\WebControls\Design\Util\DesignerForm.cs (1)
42
Debug.
Assert
(serviceProvider != null);
System\Data\WebControls\Design\Util\WizardPanel.cs (1)
79
Debug.
Assert
(_parentWizard != null);
System.Web.Extensions (76)
Compilation\WCFModel\MetadataFile.cs (1)
643
Debug.
Assert
(fileType == MetadataType.Xml || fileType == MetadataType.Policy || fileType == MetadataType.Edmx);
Compilation\WCFModel\SchemaMerger.cs (1)
414
Debug.
Assert
(differentItem1 == null && differentItem2 == null);
Compilation\WCFModel\VSWCFServiceContractGenerator.cs (12)
142
System.Diagnostics.Debug.
Assert
(bindingCollection != null);
154
System.Diagnostics.Debug.
Assert
(proxyGeneratedContractTypes != null);
168
System.Diagnostics.Debug.
Assert
(proxyGenerationErrors != null);
182
System.Diagnostics.Debug.
Assert
(importErrors != null);
196
System.Diagnostics.Debug.
Assert
(contractCollection != null);
211
System.Diagnostics.Debug.
Assert
(serviceEndpointList != null);
224
System.Diagnostics.Debug.
Assert
(serviceEndpointToChannelEndpointElementMap != null);
250
System.Diagnostics.Debug.
Assert
(targetCompileUnit != null);
1055
Debug.
Assert
(originalNamespace.Length == 0 || originalNamespace.EndsWith(".", StringComparison.Ordinal));
1056
Debug.
Assert
(replacementNamespace.Length == 0 || replacementNamespace.EndsWith(".", StringComparison.Ordinal));
1057
Debug.
Assert
(typeName != null);
1388
Debug.
Assert
(wsdlImportExtensions != null);
Handlers\ScriptResourceHandler.cs (2)
128
Debug.
Assert
(!String.IsNullOrEmpty(assemblyName));
432
Debug.
Assert
(!String.IsNullOrEmpty(decryptedData[i + 1]));
HttpResponseInternalWrapper.cs (1)
19
Debug.
Assert
(httpResponse != null);
Profile\ProfileService.cs (1)
29
Debug.
Assert
(_javaScriptSerializer != null);
Script\Serialization\JavaScriptSerializer.cs (2)
213
Debug.
Assert
(serializationFormat == SerializationFormat.JSON || serializationFormat == SerializationFormat.JavaScript);
472
Debug.
Assert
(false);
Script\Services\ClientProxyGenerator.cs (1)
349
Debug.
Assert
(enumNames.Length == enumValues.Length);
Script\Services\WebServiceEnumData.cs (6)
56
System.Diagnostics.Debug.
Assert
(names != null);
57
System.Diagnostics.Debug.
Assert
(values != null);
58
System.Diagnostics.Debug.
Assert
(names.Length == values.Length);
65
System.Diagnostics.Debug.
Assert
(names != null);
66
System.Diagnostics.Debug.
Assert
(values != null);
67
System.Diagnostics.Debug.
Assert
(names.Length == values.Length);
Script\Services\WebServiceMethodData.cs (5)
96
Debug.
Assert
(_webMethodAttribute != null); // If fails: WebserviceMethodData corrosponding to WCF is being used by ASMX JSON handler
103
Debug.
Assert
(_webMethodAttribute != null); // If fails: WebserviceMethodData corrosponding to WCF is being used by ASMX JSON handler
110
Debug.
Assert
(_methodInfo != null); // If fails: WebserviceMethodData corrosponding to WCF is being used by ASMX JSON handler
117
Debug.
Assert
(_methodInfo != null); // If fails: WebserviceMethodData corrosponding to WCF is being used by ASMX JSON handler
181
Debug.
Assert
(ParameterDataDictionary != null);
Script\Services\WebServiceTypeData.cs (6)
261
Debug.
Assert
(nameAttribute != null);
262
Debug.
Assert
(nameAttribute.Value != null);
266
Debug.
Assert
(nsAttribute != null);
267
Debug.
Assert
(nsAttribute.Value != null);
300
Debug.
Assert
(enumFacet != null);
301
Debug.
Assert
(enumFacet.Value != null);
UI\AssemblyCache.cs (3)
46
Debug.
Assert
(assembly != null);
57
Debug.
Assert
(!String.IsNullOrEmpty(assemblyName));
78
Debug.
Assert
(assembly != null);
UI\AuthenticationServiceManager.cs (1)
87
Debug.
Assert
(sb != null);
UI\ClientScriptManagerWrapper.cs (1)
19
Debug.
Assert
(clientScriptManager != null);
UI\CustomErrorsSectionWrapper.cs (1)
16
Debug.
Assert
(customErrorsSection != null);
UI\HtmlFormWrapper.cs (1)
18
Debug.
Assert
(form != null);
UI\PageRequestManager.cs (5)
83
Debug.
Assert
(owner != null);
495
Debug.
Assert
(_owner.IsInAsyncPostBack);
496
Debug.
Assert
(_updatePanelsToRefresh == null);
640
Debug.
Assert
(updatePanel != null);
916
Debug.
Assert
(updatePanel != null);
UI\PageWrapper.cs (1)
20
Debug.
Assert
(page != null);
UI\RegisteredArrayDeclaration.cs (1)
16
Debug.
Assert
(arrayName != null);
UI\RegisteredDisposeScript.cs (3)
16
Debug.
Assert
(control != null);
17
Debug.
Assert
(disposeScript != null);
18
Debug.
Assert
(parentUpdatePanel != null);
UI\RegisteredExpandoAttribute.cs (3)
27
Debug.
Assert
(control != null);
28
Debug.
Assert
(!String.IsNullOrEmpty(controlId));
29
Debug.
Assert
(!String.IsNullOrEmpty(name));
UI\RegisteredHiddenField.cs (2)
16
Debug.
Assert
(control != null);
17
Debug.
Assert
(hiddenFieldName != null);
UI\RegisteredScript.cs (5)
21
Debug.
Assert
(control != null);
22
Debug.
Assert
(type != null);
23
Debug.
Assert
(!String.IsNullOrEmpty(url));
39
Debug.
Assert
(control != null);
43
Debug.
Assert
(type != null);
UI\ScriptComponentDescriptor.cs (1)
154
Debug.
Assert
(value != null);
UI\ScriptControlManager.cs (1)
209
Debug.
Assert
(targetControls != null && targetControls.Count > 0);
UI\ScriptReference.cs (4)
157
Debug.
Assert
(!String.IsNullOrEmpty(resourceName));
223
Debug.
Assert
(scriptManager != null);
391
Debug.
Assert
(!String.IsNullOrEmpty(EffectiveResourceName));
527
Debug.
Assert
(debugName != null);
UI\ScriptReferenceBase.cs (1)
191
Debug.
Assert
(pathOrName.EndsWith(".js", StringComparison.Ordinal));
UI\UpdatePanel.cs (1)
410
Debug.
Assert
(!_rendered);
UI\WebControls\Expressions\OfTypeExpression.cs (1)
74
Debug.
Assert
(type != null);
UI\WebControls\QueryableDataSourceHelper.cs (2)
174
Debug.
Assert
((whereParameters != null) && (whereParameters.Count > 0));
202
Debug.
Assert
((orderByParameters != null) && (orderByParameters.Count > 0));
System.Web.Mobile (177)
Mobile\ConfigurationSectionHelper.cs (4)
53
Debug.
Assert
(null != _currentNode);
132
Debug.
Assert
(null != _currentNode);
145
Debug.
Assert
(null != _currentNode);
154
Debug.
Assert
(null != _currentNode);
Mobile\DeviceFilterDictionary.cs (1)
25
Debug.
Assert
(name != null);
Mobile\DeviceFiltersSection.cs (1)
328
Debug.
Assert
((value != null) && (value is DeviceFilterElement));
Mobile\UrlPath.cs (2)
226
Debug.
Assert
(IsRooted(from));
227
Debug.
Assert
(IsRooted(to));
UI\MobileControls\Adapters\ChtmlCalendarAdapter.cs (2)
349
Debug.
Assert
(NotSecondaryUI == NotSecondaryUIInit);
591
Debug.
Assert
(NotSecondaryUI == NotSecondaryUIInit);
UI\MobileControls\Adapters\HtmlCalendarAdapter.cs (1)
60
Debug.
Assert
(tagEndIndex >= 0);
UI\MobileControls\Adapters\HtmlObjectListAdapter.cs (1)
128
Debug.
Assert
(Control.VisibleItemCount <= Control.Items.Count);
UI\MobileControls\Adapters\UpWmlMobileTextWriter.cs (2)
145
Debug.
Assert
(!AnalyzeMode);
987
Debug.
Assert
(AnalyzeMode);
UI\MobileControls\Adapters\WmlCalendarAdapter.cs (2)
336
Debug.
Assert
(NotSecondaryUI == NotSecondaryUIInit);
572
Debug.
Assert
(NotSecondaryUI == NotSecondaryUIInit);
UI\MobileControls\Adapters\WmlMobileTextWriter.cs (1)
1559
Debug.
Assert
(_postBackEventTargetVarName.ToLower(CultureInfo.InvariantCulture) == _postBackEventTargetVarName &&
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicCalendarAdapter.cs (2)
304
Debug.
Assert
(NotSecondaryUI == NotSecondaryUIInit);
527
Debug.
Assert
(NotSecondaryUI == NotSecondaryUIInit);
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicControlAdapter.cs (1)
223
Debug.
Assert
(target.StartsWith (prefix, StringComparison.Ordinal));
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicPageAdapter.cs (1)
327
Debug.
Assert
(StyleSheetLocationAttributeValue != null);
UI\MobileControls\Command.cs (1)
51
Debug.
Assert
(ImageUrl != null);
UI\MobileControls\CompileLiteralTextParser.cs (1)
51
Debug.
Assert
(_tagInnerTextElements == null);
UI\MobileControls\Design\Adapters\DesignerAdapterUtil.cs (7)
48
Debug.
Assert
(null != component);
90
Debug.
Assert
(null != component);
159
Debug.
Assert
(propertyName != null &&
163
Debug.
Assert
(prop != null);
180
Debug.
Assert
(propertyName != null &&
184
Debug.
Assert
(prop != null);
331
Debug.
Assert
(control.Parent is MobileControl);
UI\MobileControls\Design\Adapters\MSHTMLHostUtil.cs (6)
61
Debug.
Assert
(null != htmlDoc3);
65
Debug.
Assert
(null != _htmlDivOuter && null != _htmlDivInner);
82
Debug.
Assert
(null != _htmlDivOuter && null != _htmlDivInner);
85
Debug.
Assert
(null != htmlElement2);
91
Debug.
Assert
(null != _htmlDivOuter && null != _htmlDivInner);
94
Debug.
Assert
(null != htmlElement2);
UI\MobileControls\Design\AppliedDeviceFiltersDialog.cs (1)
1070
Debug.
Assert
(value != null);
UI\MobileControls\Design\BaseValidatorDesigner.cs (1)
83
Debug.
Assert
(_baseValidator.Text != null);
UI\MobileControls\Design\CommandDesigner.cs (1)
71
Debug.
Assert
(null != _command.Text);
UI\MobileControls\Design\Converters\ChoiceConverter.cs (1)
99
Debug.
Assert
(deviceSpecific.Choices != null);
UI\MobileControls\Design\Converters\DataFieldConverter.cs (2)
123
Debug.
Assert
(dataMember != null);
128
Debug.
Assert
(dataMember != null);
UI\MobileControls\Design\Converters\DefaultCommandConverter.cs (1)
80
Debug.
Assert
(objectList != null);
UI\MobileControls\Design\Converters\FormConverter.cs (4)
60
Debug.
Assert
(list.Length > 0);
64
Debug.
Assert
(obj is MobileControl);
112
Debug.
Assert
(container is IDesignerHost &&
124
Debug.
Assert
(site != null);
UI\MobileControls\Design\Converters\StyleReferenceConverter.cs (2)
77
Debug.
Assert
(array.Length > 0);
86
Debug.
Assert
(null != styleSheet);
UI\MobileControls\Design\Converters\ValidatedMobileControlConverter.cs (2)
52
Debug.
Assert
(controlList.Length > 0);
96
Debug.
Assert
(container != null);
UI\MobileControls\Design\DesignerForm.cs (1)
48
Debug.
Assert
(serviceProvider != null);
UI\MobileControls\Design\DeviceFilterEditorDialog.cs (3)
353
Debug.
Assert
(row1.Length == row2.Length);
509
Debug.
Assert
(site != null);
732
Debug.
Assert
(DeviceFilter.Name == base.Text);
UI\MobileControls\Design\DeviceSpecificDesigner.cs (4)
74
Debug.
Assert
(_parentContainer != null);
155
Debug.
Assert
(null != _ds);
319
Debug.
Assert
(index == 0);
328
Debug.
Assert
(prop != null);
UI\MobileControls\Design\FormDesigner.cs (1)
200
Debug.
Assert
(prop != null);
UI\MobileControls\Design\ImageDesigner.cs (1)
48
Debug.
Assert
(wfServices != null);
UI\MobileControls\Design\LabelDesigner.cs (1)
74
Debug.
Assert
(null != _label.Text);
UI\MobileControls\Design\LinkDesigner.cs (1)
74
Debug.
Assert
(null != _link.Text);
UI\MobileControls\Design\ListComponentEditorPage.cs (2)
149
Debug.
Assert
(null != e);
150
Debug.
Assert
(e.CancelEdit == false);
UI\MobileControls\Design\ListDesigner.cs (3)
184
Debug.
Assert
(_designerVerbs.Count == 2);
337
Debug.
Assert
(_dummyDataTable != null && _dummyDataTable.Columns.Count > 1);
443
Debug.
Assert
(index >= 0 & index <= _templateFrameNames.Length);
UI\MobileControls\Design\ListGeneralPage.cs (1)
85
Debug.
Assert
(GetBaseControl() != null);
UI\MobileControls\Design\ListItemsPage.cs (2)
79
Debug.
Assert
(GetBaseControl() != null);
254
Debug.
Assert
(!_isBaseControlList);
UI\MobileControls\Design\MobileComponentEditorPage.cs (2)
74
Debug.
Assert
(_helpService != null);
88
Debug.
Assert
(selectedComponent is MobileControl);
UI\MobileControls\Design\MobileContainerDesigner.cs (6)
116
Debug.
Assert
(_iWebFormsDocumentService != null);
149
Debug.
Assert
(style != null);
307
Debug.
Assert
(_cachedBehavior == null);
552
Debug.
Assert
(Behavior != null && _behaviorAttributes != null);
572
Debug.
Assert
(_behaviorAttributes != null);
595
Debug.
Assert
(_behaviorAttributes != null);
UI\MobileControls\Design\MobileControlDesigner.cs (4)
152
Debug.
Assert
(_host != null);
180
Debug.
Assert
(_iWebFormsDocumentService != null);
588
Debug.
Assert
(_defaultDeviceSpecificIdentifier == deviceSpecificParentID);
595
Debug.
Assert
(_defaultDeviceSpecificIdentifier == deviceSpecificParentID);
UI\MobileControls\Design\MobileControlPersister.cs (3)
876
Debug.
Assert
((tagName != null) && (tagName.Length != 0));
965
Debug.
Assert
(((IDataBindingsAccessor)control).HasDataBindings == true);
979
Debug.
Assert
(control.Text != null);
UI\MobileControls\Design\MobileTemplatedControlDesigner.cs (12)
217
Debug.
Assert
(_host != null);
245
Debug.
Assert
(_iWebFormsDocumentService != null);
315
Debug.
Assert
(CurrentDeviceSpecific.Choices != null);
372
Debug.
Assert
(_control is DeviceSpecific);
388
Debug.
Assert
(
633
Debug.
Assert
(AllowTemplateEditing);
711
Debug.
Assert
(choice != null);
845
Debug.
Assert
(Behavior != null);
854
Debug.
Assert
(AllowTemplateEditing);
1016
Debug.
Assert
(_defaultDeviceSpecificIdentifier == deviceSpecificParentID);
1023
Debug.
Assert
(_defaultDeviceSpecificIdentifier == deviceSpecificParentID);
1035
Debug.
Assert
(_control is DeviceSpecific);
UI\MobileControls\Design\ObjectListDesigner.cs (2)
86
Debug.
Assert
(index >= 0 & index <= _templateFrameNames.Length);
503
Debug.
Assert
(_designerVerbs.Count == 2);
UI\MobileControls\Design\ObjectListFieldsPage.cs (1)
314
Debug.
Assert
(fieldNode.RuntimeField != null);
UI\MobileControls\Design\PhoneCallDesigner.cs (1)
75
Debug.
Assert
(_call.Text != null);
UI\MobileControls\Design\PropertyOverridesDialog.cs (3)
564
Debug.
Assert
(deviceSpecificParentID == _currentDeviceSpecificID);
582
Debug.
Assert
(_currentDeviceSpecificID != null);
818
Debug.
Assert
(_site != null);
UI\MobileControls\Design\StylesEditorDialog.cs (12)
72
Debug.
Assert
(_tvDefinedStyles != null);
77
Debug.
Assert
(_tvDefinedStyles != null);
399
Debug.
Assert
(_lvAvailableStyles.Items.Count > 0);
673
Debug.
Assert
(null != e);
674
Debug.
Assert
(e.CancelEdit == false);
762
Debug.
Assert
(newStyle != null);
808
Debug.
Assert
(direction == 1 || direction == -1);
811
Debug.
Assert
(node != null);
851
Debug.
Assert
(SelectedStyle != null);
1186
Debug.
Assert
(property != null);
1223
Debug.
Assert
(property != null);
1232
Debug.
Assert
(styleSheet != null);
UI\MobileControls\Design\StyleSheetComponentEditor.cs (1)
33
Debug.
Assert
(component is StyleSheet);
UI\MobileControls\Design\StyleSheetDesigner.cs (10)
197
Debug.
Assert
(_iWebFormsDocumentService != null);
263
Debug.
Assert
(RootControl != null);
281
Debug.
Assert
(designer != null);
292
Debug.
Assert
(index >= 0 & index <= _templateFrameNames.Length);
545
Debug.
Assert
(errorMsg != null && errorIconUrl != null);
678
Debug.
Assert
(style != null);
870
Debug.
Assert
(style != null);
877
Debug.
Assert
(null != CurrentStyle);
1005
Debug.
Assert
(_currentStyle != null);
1162
Debug.
Assert
(_designerVerbs.Count == 2);
UI\MobileControls\Design\TableFieldsEditor.cs (3)
49
Debug.
Assert
(context != null);
52
Debug.
Assert
(objectList != null);
55
Debug.
Assert
(designer != null);
UI\MobileControls\Design\TemplatingOptionsDialog.cs (6)
176
Debug.
Assert
(_dsd != null);
226
Debug.
Assert
(_cmbChoices.Items.Count > 0);
408
Debug.
Assert
(ds.Choices != null);
485
Debug.
Assert
(_ds != null);
486
Debug.
Assert
(_cmbChoices.SelectedIndex >= 0);
502
Debug.
Assert
(previousSchemaOccurrences > 0);
UI\MobileControls\Design\TextViewDesigner.cs (1)
79
Debug.
Assert
(_textView.Text != null);
UI\MobileControls\Design\Util\DesignerUtility.cs (1)
58
Debug.
Assert
(choice != null);
UI\MobileControls\Design\Util\EditableTreeList.cs (1)
194
Debug.
Assert
(direction == 1 || direction == -1);
UI\MobileControls\Design\Util\ImageCreator.cs (1)
66
Debug.
Assert
(showMessage || showTitle);
UI\MobileControls\Design\Util\WebConfigManager.cs (6)
39
Debug.
Assert
(site != null);
163
Debug.
Assert
(node != null);
212
Debug.
Assert
(Document != null);
263
Debug.
Assert
(_xmlNode.Attributes != null);
301
Debug.
Assert
(_xmlNode != null);
311
Debug.
Assert
(_xmlNode != null);
UI\MobileControls\DeviceSpecific.cs (2)
160
Debug.
Assert
(Owner is MobileControl);
199
Debug.
Assert
(_closestTemplateControl != null);
UI\MobileControls\DeviceSpecificChoice.cs (1)
57
Debug.
Assert
(_deviceFilter != null);
UI\MobileControls\IndividualDeviceConfig.cs (7)
116
Debug.
Assert
(typeof(IPageAdapter).IsAssignableFrom(value));
180
Debug.
Assert
(factory != null);
207
Debug.
Assert
(_parentConfigName == null);
300
Debug.
Assert
(referrer != null);
311
Debug.
Assert
(ParentConfigName.Length != 0 && ParentConfig == null);
337
Debug.
Assert
(PageAdapterType != null);
338
Debug.
Assert
(DeviceQualifiesPredicate != null);
UI\MobileControls\List.cs (1)
353
Debug.
Assert
(Items.Count >= 0);
UI\MobileControls\ListDataHelper.cs (1)
163
Debug.
Assert
(dataSource != null);
UI\MobileControls\MobileCategoryAttribute.cs (1)
50
Debug.
Assert
(value != null);
UI\MobileControls\MobileControl.cs (3)
268
Debug.
Assert
(this is ITemplateable);
326
Debug.
Assert
(control == null ||
666
Debug.
Assert
(state != null);
UI\MobileControls\MobileControlsSection.cs (4)
452
Debug.
Assert
( ( value != null ) && ( value is DeviceElement ) );
694
Debug.
Assert
( ( value != null ) && ( value is ControlElement ) );
718
Debug.
Assert
(targetType != null);
730
Debug.
Assert
(data is string);
UI\MobileControls\MobileControlsSectionHelper.cs (1)
62
Debug.
Assert
(!String.IsNullOrEmpty(device.PredicateMethod));
UI\MobileControls\MobilePage.cs (1)
320
Debug.
Assert
(pageAdapter != null);
UI\MobileControls\ObjectList.cs (2)
318
Debug.
Assert
(Items[selectedIndex].Selected);
1194
Debug.
Assert
(ItemCount > 0 || Items.BaseIndex == 0);
UI\MobileControls\ObjectListItemCollection.cs (1)
136
Debug.
Assert
(changes.Length == 2);
UI\MobileControls\PhoneCall.cs (1)
153
Debug.
Assert
(PhoneNumber != null);
UI\MobileControls\Style.cs (2)
312
Debug.
Assert
(stylesheet == StyleSheet.Default);
679
Debug.
Assert
(Control == null);
UI\MobileControls\StyleSheet.cs (1)
138
Debug.
Assert
(value.Name != null);
UI\MobileControls\TextView.cs (1)
449
Debug.
Assert
(false);
System.Windows.Forms (1419)
misc\GDI\DeviceContext.cs (1)
630
Debug.
Assert
(clip.HRegion != IntPtr.Zero);
misc\GDI\WindowsGraphics2.cs (2)
57
Debug.
Assert
( Enum.IsDefined(typeof(TextPaddingOptions), this.paddingFlags));
64
Debug.
Assert
( Enum.IsDefined(typeof(TextPaddingOptions), value));
winforms\Managed\System\WinForms\Application.cs (2)
1405
Debug.
Assert
(process != null);
1449
Debug.
Assert
(arguments != null && arguments.Length > 0);
winforms\Managed\System\WinForms\BindToObject.cs (1)
71
Debug.
Assert
(this.waitingOnDataSource);
winforms\Managed\System\WinForms\ButtonBase.cs (1)
170
Debug.
Assert
(pd != null);
winforms\Managed\System\WinForms\ComboBox.cs (6)
1130
Debug.
Assert
(childEdit != null);
2224
Debug.
Assert
((ModifierKeys & Keys.Alt) == 0);
2237
Debug.
Assert
((ModifierKeys & Keys.Alt) == 0);
3210
Debug.
Assert
(DropDownStyle == ComboBoxStyle.DropDownList);
5764
Debug.
Assert
(!ACWindows.ContainsKey(acHandle));
5811
Debug.
Assert
(ACWindows.ContainsKey(this.Handle));
winforms\Managed\System\WinForms\ContainerControl.cs (3)
466
Debug.
Assert
(control != null);
909
Debug.
Assert
(this is Form);
1415
Debug.
Assert
(ccAncestor != null);
winforms\Managed\System\WinForms\Control.cs (2)
7047
Debug.
Assert
(hWnd == IntPtr.Zero || UnsafeNativeMethods.IsWindow(new HandleRef(null, hWnd)));
15036
Debug.
Assert
(owner != null);
winforms\Managed\System\WinForms\DataGrid.cs (1)
1573
Debug.
Assert
(this.Controls.Contains(this.toBeDisposedEditingControl));
winforms\Managed\System\WinForms\DataGridView.cs (38)
1483
Debug.
Assert
(dataGridViewCell != null);
2184
Debug.
Assert
(this.ptCurrentCell.X >= 0 && ptCurrentCell.Y >= 0);
2185
Debug.
Assert
(this.ptCurrentCell.X < this.Columns.Count);
2186
Debug.
Assert
(this.ptCurrentCell.Y < this.Rows.Count);
2249
Debug.
Assert
(this.ptCurrentCell.X >= 0 && this.ptCurrentCell.X < this.Columns.Count);
2250
Debug.
Assert
(this.ptCurrentCell.Y >= 0 && this.ptCurrentCell.Y < this.Rows.Count);
2252
Debug.
Assert
(dataGridViewRow != null);
2254
Debug.
Assert
(this.IsSharedCellVisible(dataGridViewCell, this.ptCurrentCell.Y));
2267
Debug.
Assert
(this.ptCurrentCell.Y != -1);
2285
Debug.
Assert
(this.ptCurrentCell.Y != -1);
2303
Debug.
Assert
(this.ptCurrentCell.Y != -1);
2324
Debug.
Assert
(this.ptCurrentCell.Y >= 0);
2325
Debug.
Assert
(this.ptCurrentCell.Y < this.Rows.Count);
2927
Debug.
Assert
(firstDisplayedCell.RowIndex >= 0 &&
2961
Debug.
Assert
(this.displayedBandsInfo.NumTotallyDisplayedFrozenRows == 0);
3121
Debug.
Assert
(totalVisibleFrozenWidth > 0);
3143
Debug.
Assert
(success);
3145
Debug.
Assert
(this.displayedBandsInfo.FirstDisplayedScrollingCol >= 0);
3146
Debug.
Assert
(this.displayedBandsInfo.FirstDisplayedScrollingCol == value ||
3197
Debug.
Assert
(totalVisibleFrozenHeight > 0);
3219
Debug.
Assert
(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0);
3224
Debug.
Assert
(rowsToScroll != 0);
3230
Debug.
Assert
(success);
3464
Debug.
Assert
(this.Columns.DisplayInOrder(this.displayedBandsInfo.FirstDisplayedScrollingCol, oldFirstVisibleScrollingCol));
3518
Debug.
Assert
(this.horizontalOffset == 0);
3729
Debug.
Assert
(dataGridViewCell != null);
3730
Debug.
Assert
(rowIndex >= 0);
3740
Debug.
Assert
(dataGridViewCell != null);
3741
Debug.
Assert
(rowIndex >= 0);
3750
Debug.
Assert
(dataGridViewCell != null);
3751
Debug.
Assert
(rowIndex >= 0);
3846
Debug.
Assert
(value >= 0);
4332
Debug.
Assert
(this.rowHeadersWidth != value);
4333
Debug.
Assert
(value >= minimumRowHeadersWidth);
4590
Debug.
Assert
(this.HorizontalOffset == 0);
4591
Debug.
Assert
(this.VerticalOffset == 0);
4900
Debug.
Assert
(this.ptCurrentCell.Y >= 0);
4907
Debug.
Assert
(this.ptCurrentCell.Y >= 0);
winforms\Managed\System\WinForms\DataGridViewAccessibleObject.cs (1)
100
System.Diagnostics.Debug.
Assert
(this.GetChildCount() == 0);
winforms\Managed\System\WinForms\DataGridViewAutoSizeColumnModeEventArgs.cs (1)
21
Debug.
Assert
(dataGridViewColumn != null);
winforms\Managed\System\WinForms\DataGridViewBand.cs (22)
210
Debug.
Assert
(!this.bandIsRow);
222
Debug.
Assert
(value != this.Displayed);
289
Debug.
Assert
(!this.bandIsRow);
369
Debug.
Assert
(dataGridViewColumnHeaderCell != null);
408
Debug.
Assert
(value.OwningRow == null);
423
Debug.
Assert
(dataGridViewColumnHeaderCell.SortGlyphDirection == SortOrder.None);
424
Debug.
Assert
(value.OwningColumn == null);
427
Debug.
Assert
(value.DataGridView == null);
545
Debug.
Assert
(!this.bandIsRow);
573
Debug.
Assert
(this.bandIndex >= 0);
609
Debug.
Assert
(value != this.ReadOnly);
618
Debug.
Assert
(this.DataGridView != null);
631
Debug.
Assert
(!this.bandIsRow);
684
Debug.
Assert
(!this.bandIsRow);
705
Debug.
Assert
(this.bandIndex >= 0);
724
Debug.
Assert
(value != this.Selected);
840
Debug.
Assert
(this.thickness != value);
841
Debug.
Assert
(value >= this.minimumThickness);
842
Debug.
Assert
(value <= maxBandThickness);
860
Debug.
Assert
(!this.bandIsRow);
958
Debug.
Assert
(this.bandIsRow);
963
Debug.
Assert
(rowIndex > -1);
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (10)
65
Debug.
Assert
((value & ~(ButtonState.Normal | ButtonState.Pushed | ButtonState.Checked)) == 0);
118
Debug.
Assert
(value >= FlatStyle.Flat && value <= FlatStyle.System);
553
Debug.
Assert
(this.RowIndex >= 0); // Cell is not in a shared row.
567
Debug.
Assert
(this.DataGridView.CellMouseDownInContentBounds);
706
Debug.
Assert
(paint || computeContentBounds || computeErrorIconBounds);
707
Debug.
Assert
(!paint || !computeContentBounds || !computeErrorIconBounds);
708
Debug.
Assert
(!computeContentBounds || !computeErrorIconBounds || !paint);
709
Debug.
Assert
(!computeErrorIconBounds || !paint || !computeContentBounds);
710
Debug.
Assert
(cellStyle != null);
929
Debug.
Assert
(valBounds.Height <= 0 || valBounds.Width <= 0);
winforms\Managed\System\WinForms\DataGridViewCell.cs (73)
226
Debug.
Assert
((this.State & DataGridViewElementStates.Displayed) == 0);
236
Debug.
Assert
(this.DataGridView.Rows.GetRowState(this.RowIndex) == this.DataGridView.Rows.SharedRow(this.RowIndex).State);
257
Debug.
Assert
(this.RowIndex >= -1);
351
Debug.
Assert
(this.RowIndex >= -1);
397
Debug.
Assert
((this.State & DataGridViewElementStates.Frozen) == 0);
401
Debug.
Assert
(this.DataGridView.Rows.GetRowState(this.RowIndex) == this.DataGridView.Rows.SharedRow(this.RowIndex).State);
590
Debug.
Assert
(this.DataGridView.Rows.GetRowState(this.RowIndex) == this.DataGridView.Rows.SharedRow(this.RowIndex).State);
603
Debug.
Assert
(this.ColumnIndex >= 0);
633
Debug.
Assert
(value != this.ReadOnly);
657
Debug.
Assert
((this.State & DataGridViewElementStates.Resizable) == 0);
666
Debug.
Assert
(this.DataGridView.Rows.GetRowState(this.RowIndex) == this.DataGridView.Rows.SharedRow(this.RowIndex).State);
714
Debug.
Assert
(this.DataGridView.Rows.GetRowState(this.RowIndex) == this.DataGridView.Rows.SharedRow(this.RowIndex).State);
728
Debug.
Assert
(this.ColumnIndex >= 0);
743
Debug.
Assert
(value != this.Selected);
906
Debug.
Assert
(this.RowIndex >= -1);
911
Debug.
Assert
(this.RowIndex >= -1);
973
Debug.
Assert
((this.State & DataGridViewElementStates.Visible) == 0);
977
Debug.
Assert
(this.DataGridView.Rows.GetRowState(this.RowIndex) == this.DataGridView.Rows.SharedRow(this.RowIndex).State);
1118
Debug.
Assert
(this.DataGridView != null);
1119
Debug.
Assert
(this.ColumnIndex >= 0);
1191
Debug.
Assert
(this.DataGridView != null);
1212
Debug.
Assert
(rowIndex == -1);
1225
Debug.
Assert
(this is DataGridViewRowHeaderCell);
1236
Debug.
Assert
(this.OwningColumn == null);
1237
Debug.
Assert
(this.OwningRow == null);
1238
Debug.
Assert
(rowIndex == -1);
1333
Debug.
Assert
(dgv.EditingControl.ParentInternal == dgv.EditingPanel);
1334
Debug.
Assert
(dgv.EditingPanel.Controls.Contains(dgv.EditingControl));
1336
Debug.
Assert
(dgv.EditingControl.ParentInternal == null);
1358
Debug.
Assert
(dgv.EditingPanel.ParentInternal == dgv);
1359
Debug.
Assert
(dgv.Controls.Contains(dgv.EditingPanel));
1361
Debug.
Assert
(dgv.EditingPanel.ParentInternal == null);
1364
Debug.
Assert
(dgv.EditingControl.ParentInternal == null);
1365
Debug.
Assert
(dgv.EditingPanel.ParentInternal == null);
1366
Debug.
Assert
(dgv.EditingPanel.Controls.Count == 0);
1632
Debug.
Assert
(csv);
1681
Debug.
Assert
(this.DataGridView != null);
1797
Debug.
Assert
(this.DataGridView != null);
1829
Debug.
Assert
(this.DataGridView != null);
2008
Debug.
Assert
(this.owningRow != null);
2025
Debug.
Assert
(this.ColumnIndex < this.DataGridView.Columns.Count);
2069
Debug.
Assert
(this.RowIndex == -1);
2091
Debug.
Assert
(this.owningColumn != null);
2092
Debug.
Assert
(this.owningRow != null);
2093
Debug.
Assert
(this.ColumnIndex >= 0);
2168
Debug.
Assert
(this.ColumnIndex < this.DataGridView.Columns.Count);
2191
Debug.
Assert
(cellStyle != null);
2198
Debug.
Assert
(rowStyle != null);
2205
Debug.
Assert
(columnStyle != null);
2209
Debug.
Assert
(dataGridViewStyle != null);
2473
Debug.
Assert
(dataGridViewStyle.Alignment != DataGridViewContentAlignment.NotSet);
2500
Debug.
Assert
(dataGridViewStyle.WrapMode != DataGridViewTriState.NotSet);
2566
Debug.
Assert
(width > 0);
2606
Debug.
Assert
(maxWidth > 0);
2623
Debug.
Assert
(height > 0);
2648
Debug.
Assert
(this.owningColumn != null);
2649
Debug.
Assert
(this.owningRow != null);
2678
Debug.
Assert
(this.ColumnIndex < dataGridView.Columns.Count);
2706
Debug.
Assert
(rowIndex >= 0);
2707
Debug.
Assert
(this.ColumnIndex >= 0);
2736
Debug.
Assert
(!dgv.EditingPanel.ContainsFocus);
2738
Debug.
Assert
(dgv.EditingPanel.ParentInternal == null);
2741
Debug.
Assert
(dgv.IsSharedCellVisible(this, rowIndex));
2743
Debug.
Assert
(dgv.EditingControl.ParentInternal == dgv.EditingPanel);
2744
Debug.
Assert
(dgv.EditingPanel.ParentInternal == dgv);
2990
Debug.
Assert
(textSize.Height <= maxHeight);
3095
Debug.
Assert
(this.DataGridView != null);
3108
Debug.
Assert
(this.DataGridView.IsCurrentCellInEditMode);
3141
Debug.
Assert
(this is DataGridViewHeaderCell);
3411
Debug.
Assert
(this.CurrentMouseLocation != DATAGRIDVIEWCELL_flagAreaNotSet);
4395
Debug.
Assert
(this.DataGridView != null);
4676
Debug.
Assert
(rowIndex >= 0);
4677
Debug.
Assert
(this.ColumnIndex >= 0);
winforms\Managed\System\WinForms\DataGridViewCellCollection.cs (7)
141
Debug.
Assert
(dataGridViewRow != null);
276
Debug.
Assert
(!dataGridViewCell.ReadOnly);
282
Debug.
Assert
(!dataGridViewCell.Selected);
339
Debug.
Assert
(!dataGridViewCell.Selected);
395
Debug.
Assert
(!dataGridViewCell.ReadOnly);
396
Debug.
Assert
(!dataGridViewCell.Selected);
404
Debug.
Assert
(!dataGridViewCell.Selected);
winforms\Managed\System\WinForms\DataGridViewCellLinkedList.cs (11)
42
Debug.
Assert
(index >= 0);
43
Debug.
Assert
(index < this.count);
83
Debug.
Assert
(this.headElement != null);
91
Debug.
Assert
(dataGridViewCell != null);
92
Debug.
Assert
(dataGridViewCell.DataGridView.SelectionMode == DataGridViewSelectionMode.CellSelect ||
118
Debug.
Assert
(dataGridViewCell != null);
138
Debug.
Assert
(dataGridViewCell != null);
242
Debug.
Assert
(this.current != null); // Since this is for internal use only.
252
Debug.
Assert
(this.current == null);
258
Debug.
Assert
(this.current != null); // Since this is for internal use only.
284
Debug.
Assert
(dataGridViewCell != null);
winforms\Managed\System\WinForms\DataGridViewCellPaintingEventArgs.cs (3)
77
Debug.
Assert
(dataGridView != null);
279
Debug.
Assert
(graphics != null);
280
Debug.
Assert
(cellStyle != null);
winforms\Managed\System\WinForms\DataGridViewCellStyle.cs (10)
132
Debug.
Assert
(Enum.IsDefined(typeof(DataGridViewContentAlignment), value));
201
Debug.
Assert
((oldDataSourceNullValue == null && this.DataSourceNullValue != null) ||
409
Debug.
Assert
((oldNullValue == null && this.NullValue != null) ||
433
Debug.
Assert
(value.All < -1);
452
Debug.
Assert
(value.Left >= 0);
453
Debug.
Assert
(value.Right >= 0);
454
Debug.
Assert
(value.Top >= 0);
455
Debug.
Assert
(value.Bottom >= 0);
584
Debug.
Assert
(value >= DataGridViewTriState.NotSet && value <= DataGridViewTriState.False);
681
Debug.
Assert
(dgvcs != null);
winforms\Managed\System\WinForms\DataGridViewCellValueEventArgs.cs (2)
71
Debug.
Assert
(columnIndex >= -1);
72
Debug.
Assert
(rowIndex >= -1);
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (14)
216
Debug.
Assert
((value & ~(ButtonState.Normal | ButtonState.Pushed | ButtonState.Checked)) == 0);
307
Debug.
Assert
(value >= FlatStyle.Flat && value <= FlatStyle.System);
739
Debug.
Assert
(retCheckState == CheckState.Indeterminate);
985
Debug.
Assert
(this.RowIndex >= 0); // Cell is not in a shared row.
999
Debug.
Assert
(this.DataGridView.CellMouseDownInContentBounds);
1084
Debug.
Assert
((position.X >= 0) && (position.X < this.DataGridView.Columns.Count));
1085
Debug.
Assert
((position.Y >= 0) && (position.Y < this.DataGridView.Rows.Count));
1159
Debug.
Assert
(paint || computeContentBounds || computeErrorIconBounds);
1160
Debug.
Assert
(!paint || !computeContentBounds || !computeErrorIconBounds);
1161
Debug.
Assert
(!computeContentBounds || !computeErrorIconBounds || !paint);
1162
Debug.
Assert
(!computeErrorIconBounds || !paint || !computeContentBounds);
1163
Debug.
Assert
(cellStyle != null);
1461
Debug.
Assert
(this.FlatStyle == FlatStyle.Popup);
1639
Debug.
Assert
(formattedValue == null || this.FormattedValueType == null || this.FormattedValueType.IsAssignableFrom(formattedValue.GetType()));
winforms\Managed\System\WinForms\DataGridViewColumn.cs (12)
432
Debug.
Assert
(value >= -1);
433
Debug.
Assert
(value < Int32.MaxValue);
513
Debug.
Assert
(value > 0);
620
Debug.
Assert
(this.Index > -1);
624
Debug.
Assert
(columnStyle != null);
634
Debug.
Assert
(dataGridViewStyle != null);
723
Debug.
Assert
(dataGridViewStyle.Alignment != DataGridViewContentAlignment.NotSet);
733
Debug.
Assert
(dataGridViewStyle.WrapMode != DataGridViewTriState.NotSet);
1038
Debug.
Assert
(value > 0);
1225
Debug.
Assert
(dataGridView == null || this.Index > -1);
1233
Debug.
Assert
(autoSizeColumnCriteriaInternal == DataGridViewAutoSizeColumnCriteriaInternal.Header ||
1241
Debug.
Assert
(dataGridView.ColumnHeadersVisible || autoSizeColumnCriteriaInternal != DataGridViewAutoSizeColumnCriteriaInternal.Header);
winforms\Managed\System\WinForms\DataGridViewColumnCollection.cs (27)
280
Debug.
Assert
(this.DataGridView != null);
314
Debug.
Assert
(this.DataGridView != null);
356
Debug.
Assert
(smallestIndex >= 0);
587
Debug.
Assert
((includeFilter & ~(DataGridViewElementStates.Displayed | DataGridViewElementStates.Frozen | DataGridViewElementStates.Resizable |
589
Debug.
Assert
((includeFilter & DataGridViewElementStates.Resizable) == 0);
590
Debug.
Assert
(DisplayInOrder(fromColumnIndex, toColumnIndex));
591
Debug.
Assert
(((DataGridViewColumn) this.items[toColumnIndex]).StateIncludes(includeFilter));
600
Debug.
Assert
(dataGridViewColumn != null);
611
Debug.
Assert
(dataGridViewColumn != null);
612
Debug.
Assert
(this.itemsSorted != null);
613
Debug.
Assert
(this.lastAccessedSortedIndex == -1 ||
640
Debug.
Assert
((includeFilter & ~(DataGridViewElementStates.Displayed | DataGridViewElementStates.Frozen | DataGridViewElementStates.Resizable |
965
Debug.
Assert
(this.DataGridView != null);
1007
Debug.
Assert
(includeFilter == DataGridViewElementStates.Displayed ||
1036
Debug.
Assert
(includeFilter == DataGridViewElementStates.Displayed ||
1079
Debug.
Assert
(this.DataGridView != null);
1085
Debug.
Assert
(this.DataGridView != null);
1183
Debug.
Assert
(index >= 0 && index < this.Count);
1184
Debug.
Assert
(this.DataGridView != null);
1185
Debug.
Assert
(!this.DataGridView.NoDimensionChangeAllowed);
1186
Debug.
Assert
(!this.DataGridView.InDisplayIndexAdjustments);
1222
Debug.
Assert
(columnWidthIncrement != 0);
1230
Debug.
Assert
(columnWidthIncrement != 0);
1290
Debug.
Assert
(x != null);
1291
Debug.
Assert
(y != null);
1296
Debug.
Assert
(dataGridViewColumn1 != null);
1297
Debug.
Assert
(dataGridViewColumn2 != null);
winforms\Managed\System\WinForms\DataGridViewColumnEventArgs.cs (1)
24
Debug.
Assert
(dataGridViewColumn.Index >= -1);
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (12)
106
Debug.
Assert
(value >= SortOrder.None && value <= SortOrder.Descending);
160
Debug.
Assert
(inFirstRow);
203
Debug.
Assert
(csv);
319
Debug.
Assert
(this.DataGridView != null);
327
Debug.
Assert
(cellStyle != null);
331
Debug.
Assert
(columnHeadersStyle != null);
334
Debug.
Assert
(dataGridViewStyle != null);
466
Debug.
Assert
(dataGridViewStyle.Alignment != DataGridViewContentAlignment.NotSet);
480
Debug.
Assert
(dataGridViewStyle.WrapMode != DataGridViewTriState.NotSet);
783
Debug.
Assert
(cellStyle != null);
833
Debug.
Assert
(this.ButtonState == ButtonState.Pushed);
1105
Debug.
Assert
(this.SortGlyphDirection == SortOrder.Descending);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (33)
209
Debug.
Assert
(this.DisplayMember != null && this.DisplayMember.Length > 0);
223
Debug.
Assert
(this.ValueMember != null && this.ValueMember.Length > 0);
348
Debug.
Assert
(value >= DataGridViewComboBoxDisplayStyle.ComboBox && value <= DataGridViewComboBoxDisplayStyle.Nothing);
517
Debug.
Assert
(value >= FlatStyle.Flat && value <= FlatStyle.System);
740
Debug.
Assert
(this.EditingComboBox != null);
807
Debug.
Assert
(this.DataGridView != null);
808
Debug.
Assert
(this.EditingComboBox != null);
839
Debug.
Assert
(cachedDropDownWidth >= 1);
917
Debug.
Assert
(sender == this.DataSource);
918
Debug.
Assert
(this.DataSource is ISupportInitializeNotification);
919
Debug.
Assert
((this.flags & DATAGRIDVIEWCOMBOBOXCELL_dataSourceInitializedHookedUp) != 0x00);
1246
Debug.
Assert
(item != null);
1495
Debug.
Assert
(this.EditingComboBox != null);
1498
Debug.
Assert
(rowIndex > -1);
1506
Debug.
Assert
(this.DataGridView != null &&
1509
Debug.
Assert
(!this.ReadOnly);
1666
Debug.
Assert
(property != null);
1667
Debug.
Assert
(this.DataManager != null);
1698
Debug.
Assert
(!string.IsNullOrEmpty(field));
1781
Debug.
Assert
(value != null);
1782
Debug.
Assert
(this.ValueMemberProperty != null || this.DisplayMemberProperty != null ||
1824
Debug.
Assert
(this.DisplayMemberProperty != null || this.ValueMemberProperty != null ||
1879
Debug.
Assert
(this.TemplateComboBoxColumn.CellTemplate == this);
1910
Debug.
Assert
(e.ColumnIndex == this.ColumnIndex);
2112
Debug.
Assert
(paint || computeContentBounds || computeErrorIconBounds || computeDropDownButtonRect);
2113
Debug.
Assert
(!paint || !computeContentBounds || !computeErrorIconBounds || !computeDropDownButtonRect);
2114
Debug.
Assert
(!paint || !computeContentBounds || !computeDropDownButtonRect || !computeErrorIconBounds);
2115
Debug.
Assert
(!computeContentBounds || !computeErrorIconBounds || !paint || !computeDropDownButtonRect);
2116
Debug.
Assert
(!computeContentBounds || !computeErrorIconBounds || !computeDropDownButtonRect || !paint);
2117
Debug.
Assert
(!computeErrorIconBounds || !paint || !computeContentBounds || !computeDropDownButtonRect);
2118
Debug.
Assert
(!computeErrorIconBounds || !paint || !computeDropDownButtonRect || !computeContentBounds);
2119
Debug.
Assert
(cellStyle != null);
2762
Debug.
Assert
(owner != null);
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (17)
244
Debug.
Assert
(this.dataConnectionState[DATACONNECTIONSTATE_cancellingRowEdit]);
372
Debug.
Assert
(this.props != null);
415
Debug.
Assert
(sortProperty == null);
431
Debug.
Assert
(this.props != null);
604
Debug.
Assert
(this.currencyManager.List.Count == 1);
609
Debug.
Assert
(this.dataConnectionState[DATACONNECTIONSTATE_finishedAddNew]);
765
Debug.
Assert
(this.owner.CurrentCellAddress.X == -1);
869
Debug.
Assert
(sender == this.dataSource);
870
Debug.
Assert
(this.dataSource is ISupportInitializeNotification);
871
Debug.
Assert
(this.dataConnectionState[DATACONNECTIONSTATE_dataSourceInitializedHookedUp]);
885
Debug.
Assert
(this.currencyManager != null);
892
Debug.
Assert
(this.currencyManager != null);
923
Debug.
Assert
(this.owner.newRowIndex == this.currencyManager.List.Count - 1);
1244
Debug.
Assert
(rowIndex >= 0);
1278
Debug.
Assert
(rowIndex >= 0);
1326
Debug.
Assert
(dataGridViewColumn != null);
1333
Debug.
Assert
(rowIndex >= -1);
winforms\Managed\System\WinForms\DataGridViewDataErrorEventArgs.cs (1)
27
Debug.
Assert
(rowIndex > -1);
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (6)
62
Debug.
Assert
(Enum.IsDefined(typeof(ButtonState), value));
105
Debug.
Assert
(!this.DataGridView.LayoutInfo.dirty);
601
Debug.
Assert
(this.ButtonState == ButtonState.Pushed);
602
Debug.
Assert
(this.ColumnIndex == this.DataGridView.MouseDownCellAddress.X);
603
Debug.
Assert
(rowIndex == this.DataGridView.MouseDownCellAddress.Y);
677
Debug.
Assert
(this.DataGridView != null);
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (10)
180
Debug.
Assert
(value >= DataGridViewImageCellLayout.NotSet && value <= DataGridViewImageCellLayout.Zoom);
237
Debug.
Assert
(this.DataGridView.AllowUserToAddRowsInternal);
635
Debug.
Assert
(imageLayout != DataGridViewImageCellLayout.Stretch);
805
Debug.
Assert
(paint || computeContentBounds || computeErrorIconBounds);
806
Debug.
Assert
(!paint || !computeContentBounds || !computeErrorIconBounds);
807
Debug.
Assert
(!computeContentBounds || !computeErrorIconBounds || !paint);
808
Debug.
Assert
(!computeErrorIconBounds || !paint || !computeContentBounds);
809
Debug.
Assert
(cellStyle != null);
859
Debug.
Assert
(imageLayout != DataGridViewImageCellLayout.NotSet);
973
Debug.
Assert
(valBounds.Height <= 0 || valBounds.Width <= 0);
winforms\Managed\System\WinForms\DataGridViewIntLinkedList.cs (9)
40
Debug.
Assert
(source != null);
53
Debug.
Assert
(index >= 0);
54
Debug.
Assert
(index < this.count);
80
Debug.
Assert
(index >= 0);
84
Debug.
Assert
(index == this.lastAccessedIndex);
104
Debug.
Assert
(this.headElement != null);
243
Debug.
Assert
(this.current != null); // Since this is for internal use only.
253
Debug.
Assert
(this.current == null);
259
Debug.
Assert
(this.current != null); // Since this is for internal use only.
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (7)
180
Debug.
Assert
(value >= LinkBehavior.SystemDefault && value <= LinkBehavior.NeverUnderline);
997
Debug.
Assert
(paint || computeContentBounds || computeErrorIconBounds);
998
Debug.
Assert
(!paint || !computeContentBounds || !computeErrorIconBounds);
999
Debug.
Assert
(!computeContentBounds || !computeErrorIconBounds || !paint);
1000
Debug.
Assert
(!computeErrorIconBounds || !paint || !computeContentBounds);
1001
Debug.
Assert
(cellStyle != null);
1126
Debug.
Assert
(computeContentBounds);
winforms\Managed\System\WinForms\DataGridViewMethods.cs (821)
82
Debug.
Assert
(this.Columns.Count > 0);
83
Debug.
Assert
(this.newRowIndex == -1);
315
Debug.
Assert
(dataGridViewColumn != null);
316
Debug.
Assert
(rowIndex > -1);
317
Debug.
Assert
(rowIndex < this.Rows.Count);
346
Debug.
Assert
(this.noAutoSizeCount > 0);
355
Debug.
Assert
(autoSizeColumnCriteriaFilter != DataGridViewAutoSizeColumnCriteriaInternal.None);
356
Debug.
Assert
((autoSizeColumnCriteriaFilter & DataGridViewAutoSizeColumnCriteriaInternal.Fill) == 0);
377
Debug.
Assert
(columnIndex >= -1 && columnIndex < this.Columns.Count);
378
Debug.
Assert
(rowIndex >= 0 && rowIndex < this.Rows.Count);
379
Debug.
Assert
(this.autoSizeRowsMode == DataGridViewAutoSizeRowsMode.DisplayedHeaders ||
397
Debug.
Assert
(columnIndex == -1);
398
Debug.
Assert
((((DataGridViewAutoSizeRowsModeInternal) autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.Header) != 0);
402
Debug.
Assert
(this.RowHeadersWidth > 0);
403
Debug.
Assert
(this.RowHeadersVisible);
422
Debug.
Assert
(preferredThickness >= minimumHeight);
429
Debug.
Assert
(this.autoSizeRowsMode != DataGridViewAutoSizeRowsMode.None);
476
Debug.
Assert
((((DataGridViewAutoSizeRowsModeInternal) this.autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.Header) != 0);
480
Debug.
Assert
(this.RowHeadersWidth > 0);
481
Debug.
Assert
(this.RowHeadersVisible);
507
Debug.
Assert
((((DataGridViewAutoSizeRowsModeInternal) this.autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.DisplayedRows) != 0);
548
Debug.
Assert
(dataGridViewColumn != null);
549
Debug.
Assert
(dataGridViewColumn.Visible);
550
Debug.
Assert
(!dataGridViewColumn.Frozen);
551
Debug.
Assert
(dataGridViewColumn.MinimumWidth <= width);
552
Debug.
Assert
(dataGridViewColumn.InheritedAutoSizeMode == DataGridViewAutoSizeColumnMode.Fill);
553
Debug.
Assert
(!this.layout.dirty);
559
Debug.
Assert
(dataGridViewColumn.MinimumWidth == dataGridViewColumn.Width);
584
Debug.
Assert
(!dataGridViewColumnTmp.Frozen);
724
Debug.
Assert
(!dataGridViewColumnTmp.Frozen);
766
Debug.
Assert
(newWeightSum > 0);
912
Debug.
Assert
(!dataGridViewColumn.Frozen);
932
Debug.
Assert
(this.layout.Data.Width == this.layout.Inside.Width - this.layout.RowHeaders.Width - (this.SingleVerticalBorderAdded ? 1 : 0));
994
Debug.
Assert
(weightSum > 0);
1159
Debug.
Assert
(oldDesiredWidth >= mostDeservingDataGridViewColumn.DesiredFillWidth);
1170
Debug.
Assert
(widthLoss >= 0);
1307
Debug.
Assert
((((DataGridViewAutoSizeRowsModeInternal) autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.DisplayedRows) != 0);
1462
Debug.
Assert
(this.selectedBandIndexes.Contains(rowIndex) ==
1605
Debug.
Assert
(finalClonedColumns[clonedColIndex].IsDataBound);
1629
Debug.
Assert
(finalClonedColumns[k].IsDataBound);
1637
Debug.
Assert
(autoSizeColumnCriteriaFilter != DataGridViewAutoSizeColumnCriteriaInternal.None);
1638
Debug.
Assert
((autoSizeColumnCriteriaFilter & DataGridViewAutoSizeColumnCriteriaInternal.Fill) == 0);
1782
Debug.
Assert
(this.noAutoSizeCount > 0);
1855
Debug.
Assert
(this.noAutoSizeCount > 0);
1862
Debug.
Assert
(autoSizeColumnCriteriaInternal == DataGridViewAutoSizeColumnCriteriaInternal.Header ||
1867
Debug.
Assert
(columnIndex >= 0 && columnIndex < this.Columns.Count);
1868
Debug.
Assert
(autoSizeColumnCriteriaInternal != DataGridViewAutoSizeColumnCriteriaInternal.Header || this.ColumnHeadersVisible);
1910
Debug.
Assert
(this.noAutoSizeCount > 0);
2118
Debug.
Assert
(this.noAutoSizeCount > 0);
2291
Debug.
Assert
(this.noAutoSizeCount > 0);
2298
Debug.
Assert
(rowIndex >= 0 && rowIndex < this.Rows.Count);
2299
Debug.
Assert
(((DataGridViewAutoSizeRowCriteriaInternal) autoSizeRowMode & invalidDataGridViewAutoSizeRowCriteriaInternalMask) == 0);
2351
Debug.
Assert
(this.noAutoSizeCount > 0);
2472
Debug.
Assert
(this.lastRowSplitBar == -1);
2615
Debug.
Assert
(this.ptCurrentCell.X >= 0 && this.ptCurrentCell.X < this.Columns.Count);
2616
Debug.
Assert
(this.ptCurrentCell.Y >= 0 && this.ptCurrentCell.Y < this.Rows.Count);
2617
Debug.
Assert
(!this.IsCurrentCellInEditMode);
2620
Debug.
Assert
(dataGridViewCell != null);
2645
Debug.
Assert
(!this.IsCurrentCellInEditMode);
2699
Debug.
Assert
(((IDataGridViewEditingControl)this.editingControl).EditingControlDataGridView == this);
2703
Debug.
Assert
(this.editingControl == null);
2705
Debug.
Assert
(this.editingControl != null);
2715
Debug.
Assert
(this.editingControl != null);
2728
Debug.
Assert
(this.editingControl != null);
2729
Debug.
Assert
(this.editingPanel != null);
2732
Debug.
Assert
(dgvese.CellStyle != null);
2796
Debug.
Assert
(this.lastColSplitBar == -1);
2819
Debug.
Assert
(this.lastRowSplitBar == -1);
2826
Debug.
Assert
(inheritedCellStyle != null);
2832
Debug.
Assert
(cellStyle != null);
2836
Debug.
Assert
(columnHeadersStyle != null);
2839
Debug.
Assert
(dataGridViewStyle != null);
2968
Debug.
Assert
(dataGridViewStyle.Alignment != DataGridViewContentAlignment.NotSet);
2982
Debug.
Assert
(dataGridViewStyle.WrapMode != DataGridViewTriState.NotSet);
3073
Debug.
Assert
(this.ptCurrentCell.Y != -1);
3105
Debug.
Assert
(success);
3121
Debug.
Assert
(this.dataGridViewState1[DATAGRIDVIEWSTATE1_currentCellInEditMode]);
3123
Debug.
Assert
(dataGridViewEditingCell != null);
3157
Debug.
Assert
(dataGridViewEditingCell != null);
3165
Debug.
Assert
((this.AllowUserToAddRowsInternal && this.Rows.Count == 1) ||
3181
Debug.
Assert
(success);
3223
Debug.
Assert
(this.dataGridViewState1[DATAGRIDVIEWSTATE1_currentCellInEditMode]);
3254
Debug.
Assert
(0 == this.Rows.GetFirstRow(DataGridViewElementStates.Visible));
3293
Debug.
Assert
(this.dataGridViewState1[DATAGRIDVIEWSTATE1_currentCellInEditMode]);
3358
Debug.
Assert
(dataGridViewCurrentCell.OwningColumn != null);
3489
Debug.
Assert
(this.noDimensionChangeCount >= 0);
3627
Debug.
Assert
(this.noDimensionChangeCount >= 0);
3650
Debug.
Assert
(dataGridViewColumn != null);
3660
Debug.
Assert
(firstVisibleFrozenColumn != null);
3665
Debug.
Assert
(this.Columns.DisplayInOrder(firstVisibleFrozenColumn.Index, dataGridViewColumn.Index));
3696
Debug.
Assert
(hti.col != -1);
3742
Debug.
Assert
(hti.col != -1);
3800
Debug.
Assert
(this.ptCurrentCell.X > -1);
3886
Debug.
Assert
(
3900
Debug.
Assert
(this.ptCurrentCell.X > -1);
3929
Debug.
Assert
(this.dataGridViewState1[DATAGRIDVIEWSTATE1_currentCellInEditMode]);
3962
Debug.
Assert
(this.dataGridViewState1[DATAGRIDVIEWSTATE1_currentCellInEditMode]);
4031
Debug.
Assert
(this.ptCurrentCell.X > -1);
4130
Debug.
Assert
(columnIndex < this.Columns.Count);
4147
Debug.
Assert
(success);
4162
Debug.
Assert
(dataGridViewRow != null);
4218
Debug.
Assert
(cx <= this.horizontalOffset);
4304
Debug.
Assert
(rowIndex < this.displayedBandsInfo.FirstDisplayedScrollingRow);
4361
Debug.
Assert
(insideLeft.Height >= 0);
4382
Debug.
Assert
(insideLeft.Width >= 0);
4400
Debug.
Assert
(colHeaders.Width >= 0);
4440
Debug.
Assert
(newLayout.Data.X >= 0);
4441
Debug.
Assert
(newLayout.Data.Y >= 0);
4442
Debug.
Assert
(newLayout.Data.Width >= 0);
4443
Debug.
Assert
(newLayout.Data.Height >= 0);
4451
Debug.
Assert
(!this.layout.dirty);
4511
Debug.
Assert
(this.vertScrollBar.Maximum > 0);
4523
Debug.
Assert
(this.verticalOffset == this.vertScrollBar.Value);
4599
Debug.
Assert
(cx <= this.Columns.GetColumnsWidth(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen));
4639
Debug.
Assert
(firstDisplayedScrollingCol >= 0);
4660
Debug.
Assert
(this.negOffset == 0);
4679
Debug.
Assert
(this.negOffset == 0);
4683
Debug.
Assert
(dataGridViewColumn != null);
4684
Debug.
Assert
(dataGridViewColumn.Thickness > displayWidth - cx);
4691
Debug.
Assert
(this.negOffset == GetNegOffsetFromHorizontalOffset(this.horizontalOffset));
4711
Debug.
Assert
(jumpFromFirstVisibleScrollingCol >= -1);
4719
Debug.
Assert
(firstDisplayedScrollingCol >= 0);
4726
Debug.
Assert
(dataGridViewColumn != null);
4740
Debug.
Assert
((this.displayedBandsInfo.NumDisplayedScrollingCols > 0 && this.displayedBandsInfo.FirstDisplayedScrollingCol != -1) ||
4773
Debug.
Assert
(cy < displayHeight);
4875
Debug.
Assert
(lastDisplayedScrollingRow == -1);
4940
Debug.
Assert
(dataGridViewColumn != null);
4941
Debug.
Assert
(dataGridViewColumn.DataGridView == null);
4942
Debug.
Assert
(dataGridViewColumn.Index >= 0);
4943
Debug.
Assert
(dataGridViewColumn.DisplayIndex >= 0);
4974
Debug.
Assert
(dataGridViewColumn != null);
4975
Debug.
Assert
(dataGridViewColumn.DataGridView == this);
4977
Debug.
Assert
(dataGridViewColumn.DisplayIndex >= 0);
4978
Debug.
Assert
(dataGridViewColumn.DisplayIndex < this.Columns.Count);
5009
Debug.
Assert
(dataGridViewColumn != null);
5010
Debug.
Assert
(anticipatedColumnIndex >= 0 && anticipatedColumnIndex <= this.Columns.Count);
5019
Debug.
Assert
(dataGridViewColumn.DisplayIndex >= 0 && dataGridViewColumn.DisplayIndex <= this.Columns.Count);
5073
Debug.
Assert
(dataGridViewColumn != null);
5135
Debug.
Assert
(dataGridViewColumn != null);
5136
Debug.
Assert
(newDisplayIndex != dataGridViewColumn.DisplayIndex);
5137
Debug.
Assert
(!this.dataGridViewOper[DATAGRIDVIEWOPER_inDisplayIndexAdjustments]);
5195
Debug.
Assert
(dataGridViewColumn != null);
5199
Debug.
Assert
(this.Columns[columnIndex].Index == columnIndex);
5205
Debug.
Assert
(dataGridViewColumn != null);
5206
Debug.
Assert
(insertionCount > 0);
5217
Debug.
Assert
(this.CurrentCellInternal != null);
5225
Debug.
Assert
(dataGridViewRow != null);
5226
Debug.
Assert
(anticipatedRowIndex >= 0 && anticipatedRowIndex <= this.Rows.Count);
5290
Debug.
Assert
(dataGridViewRow != null);
5349
Debug.
Assert
(rowIndexDeleted >= 0);
5357
Debug.
Assert
(dataGridViewRow.Index == rowIndex);
5374
Debug.
Assert
(rowIndexInserted >= 0);
5375
Debug.
Assert
(insertionCount > 0);
5383
Debug.
Assert
(dataGridViewRow.Index == rowIndex);
5464
Debug.
Assert
(this.Rows.Count > 1);
5465
Debug.
Assert
(this.newRowIndex != -1);
5475
Debug.
Assert
(this.newRowIndex == this.Rows.Count - 1);
5478
Debug.
Assert
(dataGridViewRow.Index == -1);
5482
Debug.
Assert
(this.newRowIndex == -1);
5487
Debug.
Assert
((this.Rows.GetRowState(this.newRowIndex) & DataGridViewElementStates.Visible) != 0);
5488
Debug.
Assert
(this.ptCurrentCell.Y == this.newRowIndex);
5555
Debug.
Assert
(dataGridViewColumn.Visible && !dataGridViewColumn.Frozen);
5663
Debug.
Assert
(this.noSelectionChangeCount == 0);
5799
Debug.
Assert
(this.ptCurrentCell.X != -1);
5984
Debug.
Assert
(sender == this.editingControl || sender == this.editingPanel);
5985
Debug.
Assert
(this.ptCurrentCell.X != -1);
5995
Debug.
Assert
(sender == this.editingControl || sender == this.editingPanel);
5996
Debug.
Assert
(this.ptCurrentCell.X != -1);
6006
Debug.
Assert
(sender == this.editingControl || sender == this.editingPanel);
6012
Debug.
Assert
(sender == this.editingControl || sender == this.editingPanel);
6018
Debug.
Assert
(sender == this.editingControl || sender == this.editingPanel);
6024
Debug.
Assert
(sender == this.editingControl || sender == this.editingPanel);
6027
Debug.
Assert
(this.editingControl != null);
6028
Debug.
Assert
(!this.dataGridViewState1[DATAGRIDVIEWSTATE1_customCursorSet]);
6043
Debug.
Assert
(sender == this.editingControl || sender == this.editingPanel);
6046
Debug.
Assert
(this.editingControl != null);
6065
Debug.
Assert
(sender == this.editingControl || sender == this.editingPanel);
6071
Debug.
Assert
(sender == this.editingControl || sender == this.editingPanel);
6162
Debug.
Assert
(proposed >= this.Columns[this.trackColumn].MinimumThickness);
6163
Debug.
Assert
(proposed <= DataGridViewBand.maxBandThickness);
6271
Debug.
Assert
(this.editingPanel == null || this.editingPanel.Controls.Count == 0);
6280
Debug.
Assert
(success);
6292
Debug.
Assert
(this.dataGridViewState1[DATAGRIDVIEWSTATE1_currentCellInEditMode]);
6368
Debug.
Assert
(this.autoSizeRowsMode == DataGridViewAutoSizeRowsMode.None);
6416
Debug.
Assert
(rowIndex >= 0);
6417
Debug.
Assert
(rowIndex < this.Rows.Count);
6418
Debug.
Assert
((this.Rows.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0);
6419
Debug.
Assert
((this.Rows.GetRowState(rowIndex) & DataGridViewElementStates.Frozen) == 0);
6455
Debug.
Assert
(numDisplayedScrollingRows > 0);
6458
Debug.
Assert
(rowIndexTmp != -1);
6470
Debug.
Assert
(this.displayedBandsInfo.FirstDisplayedScrollingRow != -1);
6497
Debug.
Assert
(rowIndexTmp != -1);
6520
Debug.
Assert
(firstDisplayedFrozenRowIndex != -1);
6656
Debug.
Assert
(numDisplayedScrollingCols > 0);
6660
Debug.
Assert
(dataGridViewColumnTmp != null);
6672
Debug.
Assert
(this.displayedBandsInfo.FirstDisplayedScrollingCol != -1);
6699
Debug.
Assert
(dataGridViewColumnTmp != null);
7041
Debug.
Assert
(dataGridViewCell != null);
7042
Debug.
Assert
(rowIndex >= 0);
7181
Debug.
Assert
(columnIndex >= -1 && columnIndex < this.Columns.Count);
7182
Debug.
Assert
(rowIndex >= -1 && rowIndex < this.Rows.Count);
7186
Debug.
Assert
(dataGridViewRow != null);
7372
Debug.
Assert
(rowIndex != -1);
7543
Debug.
Assert
(dataGridViewColumn != null);
7605
Debug.
Assert
(dataGridViewColumn != null);
7908
Debug.
Assert
(firstVisibleColumn != null);
7909
Debug.
Assert
(lastVisibleColumn != null);
7931
Debug.
Assert
(firstVisibleRowIndex != -1);
7932
Debug.
Assert
(lastVisibleRowIndex != -1);
7975
Debug.
Assert
(lRowIndex != -1);
7976
Debug.
Assert
(uRowIndex != -1);
7977
Debug.
Assert
(lColumn != null);
7978
Debug.
Assert
(uColumn != null);
7979
Debug.
Assert
(lColumn.Index == uColumn.Index || this.Columns.DisplayInOrder(lColumn.Index, uColumn.Index));
7980
Debug.
Assert
(lRowIndex <= uRowIndex);
8007
Debug.
Assert
(dataGridViewColumn != null);
8013
Debug.
Assert
(prevDataGridViewColumn != null);
8062
Debug.
Assert
(dataGridViewColumn != null);
8068
Debug.
Assert
(nextDataGridViewColumn != null);
8092
Debug.
Assert
(rowIndex != -1);
8098
Debug.
Assert
(nextRowIndex != -1);
8109
Debug.
Assert
(dataGridViewColumn != null);
8115
Debug.
Assert
(prevDataGridViewColumn != null);
8169
Debug.
Assert
(dataGridViewColumn != null);
8175
Debug.
Assert
(nextDataGridViewColumn != null);
8255
Debug.
Assert
(columnIndex >= 0 && columnIndex < this.Columns.Count);
8348
Debug.
Assert
(dataGridViewColumn != null);
8463
Debug.
Assert
(dataGridViewColumn.Visible && !dataGridViewColumn.Frozen);
8494
Debug.
Assert
(xOffset > 0);
8525
Debug.
Assert
(index < this.Columns.Count);
8526
Debug.
Assert
(this.Columns[index].Visible);
8577
Debug.
Assert
(dataGridViewColumn.Visible && !dataGridViewColumn.Frozen);
8649
Debug.
Assert
(!this.vertScrollBar.Enabled ||
8680
Debug.
Assert
(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0);
8713
Debug.
Assert
(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0);
8731
Debug.
Assert
(mouseY > rectScrollingArea.Bottom);
8777
Debug.
Assert
(this.displayedBandsInfo.FirstDisplayedScrollingCol >= 0);
8831
Debug.
Assert
((!this.RightToLeftInternal && mouseX > rectScrollingArea.Right) || (this.RightToLeftInternal && mouseX < rectScrollingArea.Left));
8897
Debug.
Assert
(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0);
9117
Debug.
Assert
(rowIndex >= 0 && rowIndex < this.Rows.Count);
9231
Debug.
Assert
((this.Rows.GetRowState(indexTmp) & DataGridViewElementStates.Visible) != 0 &&
9254
Debug.
Assert
(yOffset > 0);
9283
Debug.
Assert
(index >= 0 && index < this.Rows.Count);
9284
Debug.
Assert
((this.Rows.GetRowState(index) & DataGridViewElementStates.Visible) != 0);
9319
Debug.
Assert
(indexTmp != -1);
9324
Debug.
Assert
((this.Rows.GetRowState(indexTmp) & DataGridViewElementStates.Visible) != 0 &&
9340
Debug.
Assert
(this.displayedBandsInfo.FirstDisplayedScrollingRow != -1);
9449
Debug.
Assert
(xColumnLeftEdge == GetColumnXFromIndex(hti.col));
9551
Debug.
Assert
(yRowTopEdge == GetRowYFromIndex(hti.row));
9628
Debug.
Assert
(xColumnLeftEdge == GetColumnXFromIndex(hti.col));
9629
Debug.
Assert
(yRowTopEdge == GetRowYFromIndex(hti.row));
9706
Debug.
Assert
(dataGridViewColumn != null);
9765
Debug.
Assert
(rowIndex >= 0);
9786
Debug.
Assert
(this.dataGridViewOper[DATAGRIDVIEWOPER_trackColSelect] || this.dataGridViewOper[DATAGRIDVIEWOPER_trackCellSelect]);
9847
Debug.
Assert
(dataGridViewEditingCell != null);
9853
Debug.
Assert
(this.ptCurrentCell.X == dataGridViewCell.ColumnIndex);
9889
Debug.
Assert
(dataGridViewCell != null);
9890
Debug.
Assert
(this.editingControl != null);
9947
Debug.
Assert
(dataGridViewCell != null);
9948
Debug.
Assert
(dataGridViewCell.DataGridView == this);
9993
Debug.
Assert
(columnIndex >= 0 && columnIndex < this.Columns.Count);
10039
Debug.
Assert
(rowIndex >= 0 && rowIndex < this.Rows.Count);
10063
Debug.
Assert
(lo <= hi);
10064
Debug.
Assert
(lo < this.Rows.Count);
10065
Debug.
Assert
(hi < this.Rows.Count);
10095
Debug.
Assert
(lo <= hi);
10096
Debug.
Assert
(lo > -1);
10354
Debug.
Assert
(this.layout.Data.Height >= 0);
10376
Debug.
Assert
(this.layout.RowHeaders.Height >= 0);
10397
Debug.
Assert
(this.layout.Data.Width >= 0);
10405
Debug.
Assert
(this.layout.ColumnHeaders.Width >= 0);
10438
Debug.
Assert
(this.layout.Data.Height >= 0);
10449
Debug.
Assert
(this.layout.Data.Width >= 0);
10457
Debug.
Assert
(this.layout.ColumnHeaders.Width >= 0);
10491
Debug.
Assert
(this.horizScrollBar.Maximum > 0);
10533
Debug.
Assert
(this.vertScrollBar.Maximum > 0);
10581
Debug.
Assert
(success);
10693
Debug.
Assert
(this.ptCurrentCell.X >= 0 && this.ptCurrentCell.X < this.Columns.Count);
10694
Debug.
Assert
(this.ptCurrentCell.Y >= 0 && this.ptCurrentCell.Y < this.Rows.Count);
10711
Debug.
Assert
(dataGridViewColumn.Index >= 0);
10712
Debug.
Assert
(dataGridViewColumn.Index < this.Columns.Count);
10713
Debug.
Assert
(dataGridViewColumn.DataGridView == this);
10732
Debug.
Assert
(autoSizeColumnMode != DataGridViewAutoSizeColumnMode.NotSet);
10759
Debug.
Assert
(rowIndex >= 0);
10765
Debug.
Assert
(rowIndex == this.Rows.Count - 1);
10797
Debug.
Assert
(rowIndex >= 0);
10988
Debug.
Assert
(dataGridViewRow.Cells.Count < newColumnCount);
11004
Debug.
Assert
(weightSum <= (float)ushort.MaxValue);
11007
Debug.
Assert
(dataGridViewColumns != null);
11061
Debug.
Assert
(weightSum <= (float)ushort.MaxValue);
11084
Debug.
Assert
(dataGridViewColumn.CellType != null);
11101
Debug.
Assert
(dataGridViewColumn.CellType != null);
11176
Debug.
Assert
(dataGridViewRows != null);
11216
Debug.
Assert
(!this.AllowUserToAddRowsInternal);
11339
Debug.
Assert
(dataGridViewColumn != null);
11353
Debug.
Assert
(autoSizeColumnMode != DataGridViewAutoSizeColumnMode.NotSet);
11436
Debug.
Assert
(autoSizeColumnMode != DataGridViewAutoSizeColumnMode.NotSet);
11486
Debug.
Assert
(autoSizeColumnMode != DataGridViewAutoSizeColumnMode.NotSet);
11770
Debug.
Assert
(dataGridViewCell != null);
11856
Debug.
Assert
(dataGridViewCell != null);
11892
Debug.
Assert
(dataGridViewCell != null);
11974
Debug.
Assert
(dataGridViewCell != null);
12022
Debug.
Assert
(rowIndex < this.Rows.Count && columnIndex < this.Columns.Count);
12053
Debug.
Assert
(this.noDimensionChangeCount >= 0);
12059
Debug.
Assert
(dataGridViewCell.RowIndex >= -1);
12060
Debug.
Assert
(dataGridViewCell.ColumnIndex >= -1);
12088
Debug.
Assert
(columnIndex >= 0);
12089
Debug.
Assert
(rowIndex >= 0);
12155
Debug.
Assert
(rowIndex < this.Rows.Count && columnIndex < this.Columns.Count);
12186
Debug.
Assert
(this.noDimensionChangeCount >= 0);
12203
Debug.
Assert
(dataGridViewCell != null);
12235
Debug.
Assert
(dataGridViewCell != null);
12268
Debug.
Assert
(dataGridViewCell != null);
12282
Debug.
Assert
(hti.Type != DataGridViewHitTestType.None &&
12285
Debug.
Assert
(this.ptMouseDownCell.X == hti.col);
12286
Debug.
Assert
(this.ptMouseDownCell.Y == hti.row);
12337
Debug.
Assert
(this.Columns[columnIndex].Resizable == DataGridViewTriState.True);
12438
Debug.
Assert
(hti.Type == DataGridViewHitTestType.Cell);
12510
Debug.
Assert
(this.MultiSelect || this.individualSelectedCells.Count <= 1);
12545
Debug.
Assert
(success);
12569
Debug.
Assert
(this.MultiSelect || this.selectedBandIndexes.Count <= 1);
12622
Debug.
Assert
(this.selectedBandIndexes.Contains(hti.col));
12626
Debug.
Assert
(success);
12642
Debug.
Assert
(this.selectedBandIndexes.Count <= 1);
12705
Debug.
Assert
(this.selectedBandIndexes.Count <= 1);
12721
Debug.
Assert
(success);
12746
Debug.
Assert
(this.MultiSelect || this.selectedBandIndexes.Count <= 1);
12794
Debug.
Assert
(this.selectedBandIndexes.Contains(hti.row) ==
12801
Debug.
Assert
(this.selectedBandIndexes.Contains(hti.row));
12805
Debug.
Assert
(success);
12822
Debug.
Assert
(this.selectedBandIndexes.Count <= 1);
12885
Debug.
Assert
(this.selectedBandIndexes.Count <= 1);
12932
Debug.
Assert
(dataGridViewCell != null);
12966
Debug.
Assert
(dataGridViewCell != null);
12997
Debug.
Assert
(dataGridViewCell != null);
13028
Debug.
Assert
(hti.Type != DataGridViewHitTestType.None &&
13040
Debug.
Assert
(!this.dataGridViewState2[DATAGRIDVIEWSTATE2_messageFromEditingCtrls]);
13065
Debug.
Assert
(dataGridViewCell != null);
13133
Debug.
Assert
(this.MultiSelect);
13154
Debug.
Assert
(success);
13171
Debug.
Assert
(dataGridViewCell.RowIndex >= 0);
13233
Debug.
Assert
(dataGridViewCellStyle != null);
13452
Debug.
Assert
(rowIndex < this.Rows.Count && columnIndex < this.Columns.Count);
13484
Debug.
Assert
(this.noDimensionChangeCount >= 0);
13504
Debug.
Assert
(rowIndex < this.Rows.Count && columnIndex < this.Columns.Count);
13538
Debug.
Assert
(this.noDimensionChangeCount >= 0);
13828
Debug.
Assert
(dataGridViewColumn != null);
13835
Debug.
Assert
(dataGridViewColumn != null);
13836
Debug.
Assert
(newDisplayIndex != dataGridViewColumn.DisplayIndex);
13895
Debug.
Assert
(this.dataGridViewOper[DATAGRIDVIEWOPER_inDisplayIndexAdjustments]);
13908
Debug.
Assert
(this.dataGridViewOper[DATAGRIDVIEWOPER_inDisplayIndexAdjustments]);
14003
Debug.
Assert
(columnIndex >= 0 && columnIndex < this.Columns.Count);
14086
Debug.
Assert
(autoSizeColumnCriteriaInternal != DataGridViewAutoSizeColumnCriteriaInternal.None);
14087
Debug.
Assert
(autoSizeColumnCriteriaInternal != DataGridViewAutoSizeColumnCriteriaInternal.Fill);
14119
Debug.
Assert
(this.sortOrder != SortOrder.None);
14156
Debug.
Assert
(hti.Type == DataGridViewHitTestType.ColumnHeader);
14243
Debug.
Assert
(this.MultiSelect || this.selectedBandIndexes.Count <= 1);
14271
Debug.
Assert
(this.individualSelectedCells.Count == 0);
14311
Debug.
Assert
(success);
14317
Debug.
Assert
(success);
14323
Debug.
Assert
(success);
14328
Debug.
Assert
(this.CurrentCellAddress == new Point(-1, -1));
14333
Debug.
Assert
(this.selectedBandIndexes.Contains(hti.col));
14475
Debug.
Assert
(dataGridViewColumn != null);
14499
Debug.
Assert
(dataGridViewColumn.Width == minimumWidth);
14525
Debug.
Assert
(dataGridViewColumn != null);
14579
Debug.
Assert
(dataGridViewColumn != null);
14580
Debug.
Assert
(dataGridViewColumn.DataGridView == null);
14596
Debug.
Assert
(hti.col >= 0);
14597
Debug.
Assert
(this.MultiSelect);
14617
Debug.
Assert
(dataGridViewColumn != null);
14624
Debug.
Assert
(dataGridViewColumn != null);
14631
Debug.
Assert
(dataGridViewColumn != null);
14638
Debug.
Assert
(dataGridViewColumn != null);
14645
Debug.
Assert
(dataGridViewColumn != null);
14652
Debug.
Assert
(dataGridViewColumn != null);
14659
Debug.
Assert
(dataGridViewColumn != null);
14662
Debug.
Assert
(dataGridViewColumn != null);
14669
Debug.
Assert
(dataGridViewColumn != null);
14672
Debug.
Assert
(dataGridViewColumn != null);
14693
Debug.
Assert
(success);
14723
Debug.
Assert
(dataGridViewColumn != null);
14806
Debug.
Assert
(this.Columns.DisplayInOrder(dataGridViewColumn.Index, this.displayedBandsInfo.FirstDisplayedScrollingCol));
14849
Debug.
Assert
(autoSizeColumnMode != DataGridViewAutoSizeColumnMode.NotSet);
15041
Debug.
Assert
(this.ptCurrentCell.Y >= 0);
15046
Debug.
Assert
(this.newRowIndex != -1);
15047
Debug.
Assert
(this.AllowUserToAddRowsInternal);
15233
Debug.
Assert
(!this.ReadOnly);
15269
Debug.
Assert
((this.Rows.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0);
15273
Debug.
Assert
(this.dataConnection != null);
15274
Debug.
Assert
(this.dataConnection.CurrencyManager != null);
15275
Debug.
Assert
(this.dataConnection.CurrencyManager.Position == this.ptCurrentCell.Y);
15330
Debug.
Assert
(!this.Columns[dataGridViewCell.ColumnIndex].ReadOnly);
15331
Debug.
Assert
(!this.Rows[dataGridViewCell.RowIndex].ReadOnly);
15332
Debug.
Assert
(!this.ReadOnly);
15772
Debug.
Assert
(this.ptCurrentCell.X == -1);
15780
Debug.
Assert
(success);
15786
Debug.
Assert
(rowIndex >= 0);
15787
Debug.
Assert
(insertionCount > 0);
15801
Debug.
Assert
(rowIndex >= 0);
15809
Debug.
Assert
(this.ptCurrentCell.X == -1);
15817
Debug.
Assert
(success);
15823
Debug.
Assert
(rowIndex >= 0);
15824
Debug.
Assert
(dataGridViewRows != null);
15825
Debug.
Assert
(dataGridViewRows.Length > 0);
15839
Debug.
Assert
(dataGridViewRows != null);
15840
Debug.
Assert
(dataGridViewRows.Length > 0);
15848
Debug.
Assert
(this.ptCurrentCell.X == -1);
15850
Debug.
Assert
(success);
15856
Debug.
Assert
(dataGridViewColumn != null);
15953
Debug.
Assert
(dataGridViewRow.Cells.Count < newColumnCount);
16015
Debug.
Assert
(success);
16077
Debug.
Assert
(dataGridViewRows != null);
16145
Debug.
Assert
(dataGridViewCell != null);
16203
Debug.
Assert
(dataGridViewCell != null);
16237
Debug.
Assert
(dataGridViewCell != null);
16372
Debug.
Assert
(dgvcme != null);
16382
Debug.
Assert
(dgvcme != null);
16437
Debug.
Assert
(dgvcme != null);
16453
Debug.
Assert
(this.Columns[columnIndex].Resizable == DataGridViewTriState.True);
16466
Debug.
Assert
(this.columnHeadersHeightSizeMode == DataGridViewColumnHeadersHeightSizeMode.EnableResizing);
16473
Debug.
Assert
(dgvcme != null);
16489
Debug.
Assert
(this.Rows[rowIndex].Resizable == DataGridViewTriState.True);
16502
Debug.
Assert
(this.rowHeadersWidthSizeMode == DataGridViewRowHeadersWidthSizeMode.EnableResizing);
16530
Debug.
Assert
(this.ptMouseDownCell.Y != -2);
16924
Debug.
Assert
(this.cumulativeVerticalWheelDelta > -NativeMethods.WHEEL_DELTA);
16925
Debug.
Assert
(this.cumulativeVerticalWheelDelta < NativeMethods.WHEEL_DELTA);
16926
Debug.
Assert
(this.cumulativeHorizontalWheelDelta > -NativeMethods.WHEEL_DELTA);
16927
Debug.
Assert
(this.cumulativeHorizontalWheelDelta < NativeMethods.WHEEL_DELTA);
17020
Debug.
Assert
(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0);
17028
Debug.
Assert
(totalVisibleFrozenHeight == this.Rows.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen));
17029
Debug.
Assert
(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0);
17326
Debug.
Assert
(dataGridViewColumn.Index >= 0);
17327
Debug.
Assert
(dataGridViewColumn.DataGridView == null);
17351
Debug.
Assert
(this.ptCurrentCell.X == -1);
17359
Debug.
Assert
(success);
17375
Debug.
Assert
(autoSizeColumnMode != DataGridViewAutoSizeColumnMode.NotSet);
17401
Debug.
Assert
(this.ptCurrentCell.X == -1);
17409
Debug.
Assert
(success);
17474
Debug.
Assert
(dataGridViewColumn != null);
17475
Debug.
Assert
(dataGridViewColumn.Index >= 0 && dataGridViewColumn.Index < this.Columns.Count);
17533
Debug.
Assert
(success);
17541
Debug.
Assert
(success);
17557
Debug.
Assert
(columnIndex == 0);
17641
Debug.
Assert
(this.horizontalOffset >= dataGridViewColumn.Thickness);
17690
Debug.
Assert
(rowIndexDeleted >= 0 && rowIndexDeleted < this.Rows.Count);
17705
Debug.
Assert
(this.newRowIndex != -1);
17706
Debug.
Assert
(this.newRowIndex == this.Rows.Count-1);
17733
Debug.
Assert
(rowIndexDeleted < this.ptCurrentCell.Y);
17741
Debug.
Assert
(success);
17749
Debug.
Assert
(success);
17992
Debug.
Assert
(rowIndex >= 0);
18114
Debug.
Assert
(columnIndex >= 0 && rowIndex >= 0);
18187
Debug.
Assert
(rowIndex < this.Rows.Count && columnIndex < this.Columns.Count);
18211
Debug.
Assert
(this.noDimensionChangeCount >= 0);
18239
Debug.
Assert
(rowIndex >= 0);
18410
Debug.
Assert
(hti.Type == DataGridViewHitTestType.RowHeader);
18501
Debug.
Assert
(success);
18523
Debug.
Assert
(this.MultiSelect || this.selectedBandIndexes.Count <= 1);
18552
Debug.
Assert
(this.individualSelectedCells.Count == 0);
18580
Debug.
Assert
(this.selectedBandIndexes.Contains(hti.row) ==
18594
Debug.
Assert
(success);
18600
Debug.
Assert
(success);
18609
Debug.
Assert
(success);
18614
Debug.
Assert
(this.CurrentCellAddress == new Point(-1, -1));
18619
Debug.
Assert
(this.selectedBandIndexes.Contains(hti.row));
18795
Debug.
Assert
(rowIndex != -1);
18796
Debug.
Assert
(this.autoSizeRowsMode == DataGridViewAutoSizeRowsMode.None);
18822
Debug.
Assert
(columnIndex >= 0 && rowIndex >= 0);
18835
Debug.
Assert
(rowIndex < this.Rows.Count && columnIndex < this.Columns.Count);
18859
Debug.
Assert
(this.noDimensionChangeCount >= 0);
18938
Debug.
Assert
(hti.row >= 0);
18939
Debug.
Assert
(this.MultiSelect);
19030
Debug.
Assert
(success);
19099
Debug.
Assert
(rowIndex >= -1);
19294
Debug.
Assert
(this.noDimensionChangeCount >= 0);
19318
Debug.
Assert
(rowIndex < this.Rows.Count && columnIndex < this.Columns.Count);
19341
Debug.
Assert
(this.noDimensionChangeCount >= 0);
19492
Debug.
Assert
(dataGridViewColumnHeaderCell != null);
19541
Debug.
Assert
(success);
19658
Debug.
Assert
(success);
19666
Debug.
Assert
(success);
19697
Debug.
Assert
(rowIndexTmp != -1);
19725
Debug.
Assert
((this.Rows.GetRowState(rowIndexTmp) & DataGridViewElementStates.Visible) != 0);
19727
Debug.
Assert
(numDisplayedScrollingRows > 0);
19730
Debug.
Assert
(rowIndexTmp != -1);
19830
Debug.
Assert
(bounds.Left == 0);
19831
Debug.
Assert
(bounds.Top == 0);
19912
Debug.
Assert
(cellBounds.Width > 0);
19981
Debug.
Assert
(dataGridViewColumn.Visible && !dataGridViewColumn.Frozen);
19989
Debug.
Assert
(cellBounds.Width > 0);
20030
Debug.
Assert
(clipRegion != null);
20094
Debug.
Assert
(this.dataGridViewOper[DATAGRIDVIEWOPER_trackColHeadersResize] || this.dataGridViewOper[DATAGRIDVIEWOPER_trackRowResize]);
20099
Debug.
Assert
(this.dataGridViewOper[DATAGRIDVIEWOPER_trackRowHeadersResize] ||
20170
Debug.
Assert
((this.Rows.GetRowState(indexTmp) & DataGridViewElementStates.Frozen) == 0);
20171
Debug.
Assert
((this.Rows.GetRowState(indexTmp) & DataGridViewElementStates.Visible) != 0);
20307
Debug.
Assert
(this.inPerformLayoutCount >= 0);
20338
Debug.
Assert
(this.editingControl != null);
20392
Debug.
Assert
(this.editingControl != null);
20481
Debug.
Assert
(rowIndex >= 0);
20549
Debug.
Assert
(dataGridViewRow.Index == -1);
20561
Debug.
Assert
(dataGridViewRow.Index == -1);
20738
Debug.
Assert
(success);
20764
Debug.
Assert
(this.ptAnchorCell.Y >= 0);
20811
Debug.
Assert
(success);
20853
Debug.
Assert
(success);
20913
Debug.
Assert
(success);
20967
Debug.
Assert
(success);
20994
Debug.
Assert
(this.ptAnchorCell.Y >= 0);
21030
Debug.
Assert
(success);
21072
Debug.
Assert
(success);
21135
Debug.
Assert
(success);
21185
Debug.
Assert
(success);
21205
Debug.
Assert
(this.ptAnchorCell.Y >= 0);
21268
Debug.
Assert
(success);
21318
Debug.
Assert
(success);
21405
Debug.
Assert
(success);
21461
Debug.
Assert
(success);
21498
Debug.
Assert
(success);
21955
Debug.
Assert
(this.ptCurrentCell.Y != -1);
21956
Debug.
Assert
(this.CurrentCellInternal != null);
21957
Debug.
Assert
(this.EditMode != DataGridViewEditMode.EditOnEnter ||
21965
Debug.
Assert
(success);
22311
Debug.
Assert
(dataGridViewCell != null);
22334
Debug.
Assert
(success);
22546
Debug.
Assert
(success);
22552
Debug.
Assert
(success);
22570
Debug.
Assert
(this.ptAnchorCell.X >= 0);
22587
Debug.
Assert
(success);
22597
Debug.
Assert
(success);
22603
Debug.
Assert
(success);
22622
Debug.
Assert
(success);
22642
Debug.
Assert
(success);
22648
Debug.
Assert
(success);
22685
Debug.
Assert
(success);
22695
Debug.
Assert
(success);
22701
Debug.
Assert
(success);
22720
Debug.
Assert
(success);
22740
Debug.
Assert
(success);
22746
Debug.
Assert
(success);
22803
Debug.
Assert
(success);
22813
Debug.
Assert
(success);
22819
Debug.
Assert
(success);
22846
Debug.
Assert
(success);
22864
Debug.
Assert
(success);
22870
Debug.
Assert
(success);
22887
Debug.
Assert
(success);
22920
Debug.
Assert
(success);
22926
Debug.
Assert
(success);
22937
Debug.
Assert
(this.ptAnchorCell.X >= 0);
22949
Debug.
Assert
(success);
22965
Debug.
Assert
(success);
22976
Debug.
Assert
(success);
22982
Debug.
Assert
(success);
22997
Debug.
Assert
(success);
23010
Debug.
Assert
(success);
23016
Debug.
Assert
(success);
23032
Debug.
Assert
(this.ptAnchorCell.X >= 0);
23035
Debug.
Assert
(success);
23050
Debug.
Assert
(success);
23061
Debug.
Assert
(success);
23067
Debug.
Assert
(success);
23082
Debug.
Assert
(success);
23095
Debug.
Assert
(success);
23101
Debug.
Assert
(success);
23116
Debug.
Assert
(this.ptAnchorCell.X >= 0);
23132
Debug.
Assert
(success);
23156
Debug.
Assert
(success);
23167
Debug.
Assert
(success);
23173
Debug.
Assert
(success);
23196
Debug.
Assert
(success);
23207
Debug.
Assert
(success);
23213
Debug.
Assert
(success);
23226
Debug.
Assert
(success);
23270
Debug.
Assert
(firstDisplayedScrollingRowIndex != -1);
23288
Debug.
Assert
(nextScreenVisibleRowIndexTmp != -1);
23324
Debug.
Assert
(success);
23351
Debug.
Assert
(this.ptAnchorCell.Y >= 0);
23367
Debug.
Assert
(success);
23382
Debug.
Assert
(this.ptAnchorCell.Y >= 0);
23415
Debug.
Assert
(this.ptAnchorCell.Y >= 0);
23519
Debug.
Assert
(previousScreenVisibleRowIndexTmp != -1);
23543
Debug.
Assert
(previousScreenVisibleRowIndex != -1);
23566
Debug.
Assert
(success);
23590
Debug.
Assert
(this.ptAnchorCell.Y >= 0);
23621
Debug.
Assert
(this.ptAnchorCell.Y >= 0);
23654
Debug.
Assert
(this.ptAnchorCell.Y >= 0);
23785
Debug.
Assert
(success);
23791
Debug.
Assert
(success);
23825
Debug.
Assert
(success);
23835
Debug.
Assert
(success);
23841
Debug.
Assert
(success);
23860
Debug.
Assert
(success);
23880
Debug.
Assert
(success);
23886
Debug.
Assert
(success);
23923
Debug.
Assert
(success);
23933
Debug.
Assert
(success);
23939
Debug.
Assert
(success);
23958
Debug.
Assert
(success);
23978
Debug.
Assert
(success);
23984
Debug.
Assert
(success);
24044
Debug.
Assert
(success);
24054
Debug.
Assert
(success);
24060
Debug.
Assert
(success);
24087
Debug.
Assert
(success);
24105
Debug.
Assert
(success);
24111
Debug.
Assert
(success);
24128
Debug.
Assert
(success);
24161
Debug.
Assert
(success);
24167
Debug.
Assert
(success);
24181
Debug.
Assert
(this.ptAnchorCell.X >= 0);
24191
Debug.
Assert
(success);
24198
Debug.
Assert
(success);
24209
Debug.
Assert
(success);
24215
Debug.
Assert
(success);
24230
Debug.
Assert
(success);
24243
Debug.
Assert
(success);
24249
Debug.
Assert
(success);
24268
Debug.
Assert
(this.ptAnchorCell.X >= 0);
24271
Debug.
Assert
(success);
24278
Debug.
Assert
(success);
24289
Debug.
Assert
(success);
24295
Debug.
Assert
(success);
24310
Debug.
Assert
(success);
24323
Debug.
Assert
(success);
24329
Debug.
Assert
(success);
24343
Debug.
Assert
(this.ptAnchorCell.X >= 0);
24363
Debug.
Assert
(success);
24378
Debug.
Assert
(success);
24389
Debug.
Assert
(success);
24395
Debug.
Assert
(success);
24418
Debug.
Assert
(success);
24429
Debug.
Assert
(success);
24435
Debug.
Assert
(success);
24448
Debug.
Assert
(success);
24481
Debug.
Assert
(this.MultiSelect || this.selectedBandIndexes.Count <= 1);
24498
Debug.
Assert
(!this.selectedBandIndexes.Contains(this.ptCurrentCell.X));
24506
Debug.
Assert
(this.MultiSelect || this.selectedBandIndexes.Count <= 1);
24523
Debug.
Assert
(!this.selectedBandIndexes.Contains(this.ptCurrentCell.Y));
24772
Debug.
Assert
(success);
24797
Debug.
Assert
(this.ptAnchorCell.Y >= 0);
24831
Debug.
Assert
(success);
24865
Debug.
Assert
(success);
24889
Debug.
Assert
(this.ptAnchorCell.Y >= 0);
24916
Debug.
Assert
(success);
24957
Debug.
Assert
(success);
24979
Debug.
Assert
(this.ptAnchorCell.Y >= 0);
25008
Debug.
Assert
(success);
25042
Debug.
Assert
(success);
25095
Debug.
Assert
(success);
25136
Debug.
Assert
(success);
25157
Debug.
Assert
(this.ptAnchorCell.Y >= 0);
25207
Debug.
Assert
(success);
25249
Debug.
Assert
(success);
25322
Debug.
Assert
(success);
25369
Debug.
Assert
(success);
25398
Debug.
Assert
(success);
25443
Debug.
Assert
(dataGridViewCell != null);
25450
Debug.
Assert
(success);
25462
Debug.
Assert
(dataGridViewCurrentCell != null);
25475
Debug.
Assert
(this.dataGridViewState1[DATAGRIDVIEWSTATE1_currentCellInEditMode]);
25477
Debug.
Assert
(dataGridViewEditingCell != null);
25503
Debug.
Assert
(this.newRowIndex == this.Rows.Count - 1);
25510
Debug.
Assert
(this.IsCurrentCellInEditMode);
25556
Debug.
Assert
(dgvcme.Clicks == 1);
25639
Debug.
Assert
(this.ptCurrentCell.Y != -1);
25659
Debug.
Assert
(this.dataGridViewState1[DATAGRIDVIEWSTATE1_currentCellInEditMode]);
25663
Debug.
Assert
(dataGridViewEditingCell != null);
25715
Debug.
Assert
(list.Count == rowsCount);
25793
Debug.
Assert
(this.noSelectionChangeCount > 0);
25819
Debug.
Assert
(this.noSelectionChangeCount > 0);
25840
Debug.
Assert
(dataGridViewCell.ColumnIndex != columnIndexException || dataGridViewCell.RowIndex != rowIndexException);
25858
Debug.
Assert
(this.noSelectionChangeCount > 0);
25910
Debug.
Assert
(this.noSelectionChangeCount > 0);
26080
Debug.
Assert
(rowIndex >= 0);
26081
Debug.
Assert
(rowIndex < this.Rows.Count);
26124
Debug.
Assert
(columnIndex >= 0 && columnIndex < this.Columns.Count);
26248
Debug.
Assert
(this.displayedBandsInfo.FirstDisplayedScrollingCol >= 0);
26264
Debug.
Assert
(this.displayedBandsInfo.FirstDisplayedScrollingCol >= 0);
26309
Debug.
Assert
(columnIndex >= 0 && columnIndex < this.Columns.Count);
26310
Debug.
Assert
(this.displayedBandsInfo.FirstDisplayedScrollingCol >= -1 && this.displayedBandsInfo.FirstDisplayedScrollingCol < this.Columns.Count);
26311
Debug.
Assert
(this.displayedBandsInfo.LastTotallyDisplayedScrollingCol >= -1 && this.displayedBandsInfo.LastTotallyDisplayedScrollingCol < this.Columns.Count);
26312
Debug.
Assert
(rowIndex >= 0 && rowIndex < this.Rows.Count);
26313
Debug.
Assert
(this.displayedBandsInfo.FirstDisplayedScrollingRow >= -1 && this.displayedBandsInfo.FirstDisplayedScrollingRow < this.Rows.Count);
26314
Debug.
Assert
(this.Columns[columnIndex].Visible);
26315
Debug.
Assert
((this.Rows.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0);
26371
Debug.
Assert
(rowIndex >= 0 && rowIndex < this.Rows.Count);
26402
Debug.
Assert
(firstDisplayedScrollingRow != -1);
26424
Debug.
Assert
(rowCount != 0);
26425
Debug.
Assert
(deltaY != 0);
26426
Debug.
Assert
(this.displayedBandsInfo.FirstDisplayedScrollingRow >= this.Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen));
26447
Debug.
Assert
(rowsRect.X > 0);
26453
Debug.
Assert
(rowsRect.Height >= 0);
26458
Debug.
Assert
(this.displayedBandsInfo.FirstDisplayedScrollingRow > -1);
26482
Debug.
Assert
(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0);
26484
Debug.
Assert
(firstVisibleScrollingRow != -1);
26486
Debug.
Assert
(newScrolledOffRowCount >= rowCount);
26493
Debug.
Assert
(rows != 0);
26494
Debug.
Assert
((rows > 0 && (scrollEventType == ScrollEventType.SmallIncrement || scrollEventType == ScrollEventType.LargeIncrement)) ||
26498
Debug.
Assert
(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0);
26508
Debug.
Assert
(newFirstVisibleScrollingRow != -1);
26525
Debug.
Assert
(this.displayedBandsInfo.FirstDisplayedScrollingRow == oldFirstVisibleScrollingRow);
26546
Debug.
Assert
(this.displayedBandsInfo.FirstDisplayedScrollingRow == newFirstVisibleScrollingRow);
26560
Debug.
Assert
(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0);
26585
Debug.
Assert
(newFirstVisibleScrollingRow != -1);
26706
Debug.
Assert
(this.noDimensionChangeCount >= 0);
26707
Debug.
Assert
(this.noSelectionChangeCount >= 0);
26734
Debug.
Assert
(index >= 0);
26803
Debug.
Assert
(this.columnHeadersHeight != columnHeadersHeight);
26804
Debug.
Assert
(columnHeadersHeight >= minimumColumnHeadersHeight);
26805
Debug.
Assert
(columnHeadersHeight <= maxHeadersThickness);
26863
Debug.
Assert
(rowIndex >= 0 &&
26926
Debug.
Assert
(oldCurrentCellX == this.ptCurrentCell.X);
26927
Debug.
Assert
(oldCurrentCellY == this.ptCurrentCell.Y);
27022
Debug.
Assert
(oldCurrentCellY >= 0);
27118
Debug.
Assert
(oldCurrentCellX == this.ptCurrentCell.X);
27119
Debug.
Assert
(oldCurrentCellY == this.ptCurrentCell.Y);
27163
Debug.
Assert
(oldCurrentCellY >= 0);
27193
Debug.
Assert
(columnIndexFrom >= 0 && columnIndexTo >= 0);
27194
Debug.
Assert
((this.Columns[columnIndexFrom]).DisplayIndex <= (this.Columns[columnIndexTo]).DisplayIndex);
27195
Debug.
Assert
(rowIndexFrom >= 0 && rowIndexTo >= 0);
27196
Debug.
Assert
(rowIndexFrom <= rowIndexTo);
27197
Debug.
Assert
(this.noSelectionChangeCount > 0);
27223
Debug.
Assert
(dataGridViewColumn != null);
27251
Debug.
Assert
(dataGridViewColumn != null);
27277
Debug.
Assert
(this.noSelectionChangeCount > 0);
27307
Debug.
Assert
(columnIndexFrom >= 0 && columnIndexTo >= 0);
27308
Debug.
Assert
((this.Columns[columnIndexFrom]).DisplayIndex <= (this.Columns[columnIndexTo]).DisplayIndex);
27309
Debug.
Assert
(this.noSelectionChangeCount > 0);
27323
Debug.
Assert
(this.selectedBandIndexes.Contains(columnIndex));
27331
Debug.
Assert
(dataGridViewColumn != null);
27348
Debug.
Assert
(this.selectedBandIndexes.Contains(columnIndexTo));
27356
Debug.
Assert
(rowIndexFrom >= 0 && rowIndexTo >= 0);
27357
Debug.
Assert
(rowIndexFrom <= rowIndexTo);
27358
Debug.
Assert
(this.noSelectionChangeCount > 0);
27376
Debug.
Assert
(!this.selectedBandIndexes.Contains(rowIndex));
27385
Debug.
Assert
(this.selectedBandIndexes.Contains(rowIndex));
27486
Debug.
Assert
(columnIndex >= 0 && rowIndex >= 0 &&
27558
Debug.
Assert
(columnIndex >= 0 && columnIndex < this.Columns.Count);
27593
Debug.
Assert
(rowIndex >= 0 && rowIndex < this.Rows.Count);
27662
Debug.
Assert
(this.individualSelectedCells.Contains(dataGridViewCell));
27678
Debug.
Assert
(this.selectedBandIndexes.Contains(columnIndex));
27712
Debug.
Assert
(this.selectedBandIndexes.Contains(rowIndex));
27774
Debug.
Assert
(this.individualSelectedCells.Count <= 1);
27787
Debug.
Assert
(this.selectedBandIndexes.Count <= 1);
27823
Debug.
Assert
(this.selectedBandIndexes.Count <= 1);
27839
Debug.
Assert
(this.selectedBandIndexes.Count <= 1);
27863
Debug.
Assert
(this.selectedBandIndexes.Count <= 1);
27880
Debug.
Assert
(this.selectedBandIndexes.Contains(rowIndex) ==
27889
Debug.
Assert
(this.selectedBandIndexes.Contains(rowIndex) ==
27903
Debug.
Assert
(this.selectedBandIndexes.Count <= 1);
27919
Debug.
Assert
(this.selectedBandIndexes.Count <= 1);
27946
Debug.
Assert
(success);
27970
Debug.
Assert
(!this.selectedBandIndexes.Contains(columnIndex));
27976
Debug.
Assert
(this.selectedBandIndexes.Contains(columnIndex));
27989
Debug.
Assert
(this.MultiSelect || this.selectedBandIndexes.Count <= 1);
28001
Debug.
Assert
(this.selectedBandIndexes.Count <= 1);
28085
Debug.
Assert
(!this.selectedBandIndexes.Contains(rowIndex));
28092
Debug.
Assert
(this.selectedBandIndexes.Contains(rowIndex));
28105
Debug.
Assert
(this.MultiSelect || this.selectedBandIndexes.Count <= 1);
28117
Debug.
Assert
(this.selectedBandIndexes.Count <= 1);
28231
Debug.
Assert
(!(comparer != null && this.DataSource != null));
28232
Debug.
Assert
(direction == ListSortDirection.Ascending || direction == ListSortDirection.Descending);
28252
Debug.
Assert
(rowVFIndex != -1);
28254
Debug.
Assert
(0 == this.Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen));
28266
Debug.
Assert
(dataGridViewColumn != null);
28310
Debug.
Assert
(rowVIndex != -1);
28314
Debug.
Assert
(rowVIndex != -1);
28323
Debug.
Assert
(this.dataGridViewOper[DATAGRIDVIEWOPER_inSort]);
28345
Debug.
Assert
(rowIndex1 != this.newRowIndex);
28346
Debug.
Assert
(rowIndex2 != this.newRowIndex);
28492
Debug.
Assert
(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0);
28512
Debug.
Assert
(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0);
28671
Debug.
Assert
(success);
28729
Debug.
Assert
(dataGridViewColumn != null);
28732
Debug.
Assert
(lastVisibleRowIndex != -1);
28837
Debug.
Assert
(success);
28866
Debug.
Assert
(this.editingPanel != null);
28877
Debug.
Assert
(this.editingControl != null);
28947
Debug.
Assert
(dataGridViewColumnTmp != null);
28951
Debug.
Assert
(ColumnNeedsDisplayedState(dataGridViewColumnTmp));
28963
Debug.
Assert
(numDisplayedScrollingCols > 0);
28967
Debug.
Assert
(dataGridViewColumnTmp != null);
28971
Debug.
Assert
(ColumnNeedsDisplayedState(dataGridViewColumnTmp));
29105
Debug.
Assert
(rowVisible);
29161
Debug.
Assert
(rowIndexTmp != -1);
29176
Debug.
Assert
(numDisplayedScrollingRows > 0);
29179
Debug.
Assert
(rowIndexTmp != -1);
29252
Debug.
Assert
(anchorColumnIndex >= 0);
29253
Debug.
Assert
(anchorRowIndex >= 0);
29254
Debug.
Assert
(newEdgeColumnIndex >= 0);
29255
Debug.
Assert
(newEdgeRowIndex >= 0);
29256
Debug.
Assert
(this.noSelectionChangeCount > 0);
29279
Debug.
Assert
(dataGridViewColumn != null);
29296
Debug.
Assert
(dataGridViewColumn != null);
29359
Debug.
Assert
(dataGridViewColumn != null);
29374
Debug.
Assert
(dataGridViewColumn != null);
29396
Debug.
Assert
(dataGridViewColumn != null);
29397
Debug.
Assert
(oldEdgeRowIndex < anchorRowIndex);
29415
Debug.
Assert
(dataGridViewColumn != null);
29429
Debug.
Assert
(dataGridViewColumn != null);
29430
Debug.
Assert
(oldEdgeRowIndex <= anchorRowIndex);
29452
Debug.
Assert
(dataGridViewColumn != null);
29468
Debug.
Assert
(dataGridViewColumn != null);
29492
Debug.
Assert
(dataGridViewColumn != null);
29505
Debug.
Assert
(dataGridViewColumn != null);
29529
Debug.
Assert
(dataGridViewColumn != null);
29545
Debug.
Assert
(dataGridViewColumn != null);
29565
Debug.
Assert
(oldEdgeRowIndex >= anchorRowIndex);
29566
Debug.
Assert
(dataGridViewColumn != null);
29585
Debug.
Assert
(dataGridViewColumn != null);
29619
Debug.
Assert
(dataGridViewColumn != null);
29658
Debug.
Assert
(dataGridViewColumn != null);
29678
Debug.
Assert
(oldEdgeRowIndex >= anchorRowIndex);
29753
Debug.
Assert
(this.dataGridViewOper[DATAGRIDVIEWOPER_trackRowSelect] || this.dataGridViewOper[DATAGRIDVIEWOPER_trackCellSelect]);
29807
Debug.
Assert
(this.editingPanel != null);
29818
Debug.
Assert
(this.editingControl != null);
29875
Debug.
Assert
(hti.row == -1);
29879
Debug.
Assert
(hti.col == -1);
29883
Debug.
Assert
(hti.row == -1);
29884
Debug.
Assert
(hti.col == -1);
winforms\Managed\System\WinForms\DataGridViewRow.cs (30)
202
Debug.
Assert
(this.Index >= -1);
682
Debug.
Assert
(inheritedCellStyle != null);
688
Debug.
Assert
(cellStyle != null);
692
Debug.
Assert
(rowHeadersStyle != null);
695
Debug.
Assert
(dataGridViewStyle != null);
824
Debug.
Assert
(dataGridViewStyle.Alignment != DataGridViewContentAlignment.NotSet);
838
Debug.
Assert
(dataGridViewStyle.WrapMode != DataGridViewTriState.NotSet);
871
Debug.
Assert
(inheritedRowStyle != null);
872
Debug.
Assert
(rowIndex >= 0);
873
Debug.
Assert
(this.DataGridView != null);
879
Debug.
Assert
(rowStyle != null);
883
Debug.
Assert
(dataGridViewStyle != null);
886
Debug.
Assert
(rowsDefaultCellStyle != null);
889
Debug.
Assert
(alternatingRowsDefaultCellStyle != null);
1061
Debug.
Assert
(dataGridViewStyle.Alignment != DataGridViewContentAlignment.NotSet);
1079
Debug.
Assert
(dataGridViewStyle.WrapMode != DataGridViewTriState.NotSet);
1227
Debug.
Assert
(this.Cells.Count == dataGridView.Columns.Count);
1265
Debug.
Assert
(this.Index == -1);
1266
Debug.
Assert
(!this.Selected);
1368
Debug.
Assert
(rowIndex >= -1);
1376
Debug.
Assert
(rowIndex >= -1);
1499
Debug.
Assert
(this.DataGridView != null);
1507
Debug.
Assert
(this.DataGridView != null);
1624
Debug.
Assert
(cellBounds.Width > 0);
1701
Debug.
Assert
(dataGridViewColumn.Visible && !dataGridViewColumn.Frozen);
1711
Debug.
Assert
(cellBounds.Width > 0);
1799
Debug.
Assert
(cellBounds.Width > 0);
1829
Debug.
Assert
(this.Index == -1);
1873
Debug.
Assert
(values != null);
2182
Debug.
Assert
(index >= 0);
winforms\Managed\System\WinForms\DataGridViewRowCancelEventArgs.cs (2)
24
Debug.
Assert
(dataGridViewRow != null);
25
Debug.
Assert
(dataGridViewRow.Index >= 0);
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (111)
340
Debug.
Assert
(this.DataGridView != null);
353
Debug.
Assert
(dataGridViewRow.Cells.Count == this.DataGridView.Columns.Count);
356
Debug.
Assert
(values == null);
358
Debug.
Assert
((dataGridViewRow.State & (DataGridViewElementStates.Selected | DataGridViewElementStates.Displayed)) == 0);
374
Debug.
Assert
(this.DataGridView.AllowUserToAddRowsInternal);
375
Debug.
Assert
(this.DataGridView.NewRowIndex == this.Count - 1);
389
Debug.
Assert
(dataGridViewCell.OwningRow == dataGridViewRow);
401
Debug.
Assert
((rowState & (DataGridViewElementStates.Selected | DataGridViewElementStates.Displayed)) == 0);
411
Debug.
Assert
(dataGridViewRow.State == SharedRowState(index));
421
Debug.
Assert
(this.DataGridView != null);
488
Debug.
Assert
(this.DataGridView != null);
516
Debug.
Assert
(rowTemplate.Cells.Count == this.DataGridView.Columns.Count);
518
Debug.
Assert
((rowTemplateState & (DataGridViewElementStates.Selected | DataGridViewElementStates.Displayed)) == 0);
524
Debug.
Assert
(dataGridViewCell.OwningRow == rowTemplate);
536
Debug.
Assert
(this.DataGridView.AllowUserToAddRowsInternal);
537
Debug.
Assert
(this.DataGridView.NewRowIndex == this.Count - 1);
548
Debug.
Assert
(this.DataGridView != null);
574
Debug.
Assert
(this.DataGridView.AllowUserToAddRowsInternal);
575
Debug.
Assert
(this.DataGridView.NewRowIndex == this.Count - 1);
582
Debug.
Assert
(dataGridViewRow.Cells.Count == this.DataGridView.Columns.Count);
589
Debug.
Assert
(dataGridViewCell.OwningRow == dataGridViewRow);
604
Debug.
Assert
((dataGridViewRow.State & (DataGridViewElementStates.Selected | DataGridViewElementStates.Displayed)) == 0);
606
Debug.
Assert
(this.rowStates.Count == this.SharedList.Count);
617
Debug.
Assert
(dataGridViewRow.State == SharedRowState(index));
641
Debug.
Assert
(this.DataGridView != null);
645
Debug.
Assert
(this.DataGridView.AllowUserToAddRowsInternal);
646
Debug.
Assert
(this.DataGridView.NewRowIndex == this.Count - 1);
647
Debug.
Assert
(!newRow);
662
Debug.
Assert
(this.DataGridView != null);
709
Debug.
Assert
(this.DataGridView.AllowUserToAddRowsInternal);
710
Debug.
Assert
(this.DataGridView.NewRowIndex == this.Count - 1);
818
Debug.
Assert
(this.DataGridView != null);
849
Debug.
Assert
(dataGridViewRow.Index == -1);
863
Debug.
Assert
(this.DataGridView != null);
877
Debug.
Assert
(this.DataGridView.AllowUserToAddRowsInternal);
878
Debug.
Assert
(this.DataGridView.NewRowIndex == this.Count - 1);
895
Debug.
Assert
(dataGridViewRow.Cells.Count == this.DataGridView.Columns.Count);
900
Debug.
Assert
(dataGridViewCell.OwningRow == dataGridViewRow);
912
Debug.
Assert
((dataGridViewRow.State & (DataGridViewElementStates.Selected | DataGridViewElementStates.Displayed)) == 0);
920
Debug.
Assert
(dataGridViewRow.State == SharedRowState(index));
923
Debug.
Assert
(this.rowStates.Count == this.SharedList.Count);
1003
Debug.
Assert
(visibleRowIndex < GetRowCount(DataGridViewElementStates.Visible));
1159
Debug.
Assert
(skipRows >= 0);
1339
Debug.
Assert
(toRowIndex >= fromRowIndex);
1340
Debug.
Assert
((GetRowState(toRowIndex) & includeFilter) == includeFilter);
1407
Debug.
Assert
(toRowIndex >= fromRowIndex);
1408
Debug.
Assert
((GetRowState(toRowIndex) & includeFilter) == includeFilter);
1424
Debug.
Assert
(toRowIndex >= fromRowIndex);
1425
Debug.
Assert
(toRowIndex == this.items.Count || (GetRowState(toRowIndex) & includeFilter) == includeFilter);
1456
Debug.
Assert
(dataGridViewRow.Index == rowIndex);
1470
Debug.
Assert
(this.DataGridView != null);
1554
Debug.
Assert
(this.DataGridView.AllowUserToAddRowsInternal);
1559
Debug.
Assert
(rowTemplate.Cells.Count == this.DataGridView.Columns.Count);
1561
Debug.
Assert
((rowTemplateState & (DataGridViewElementStates.Selected | DataGridViewElementStates.Displayed)) == 0);
1567
Debug.
Assert
(dataGridViewCell.OwningRow == rowTemplate);
1582
Debug.
Assert
(this.DataGridView != null);
1601
Debug.
Assert
(this.DataGridView.AllowUserToAddRowsInternal);
1625
Debug.
Assert
(this.DataGridView != null);
1626
Debug.
Assert
(rowIndex >= 0 && rowIndex <= this.Count);
1627
Debug.
Assert
(dataGridViewRow != null);
1628
Debug.
Assert
(dataGridViewRow.DataGridView == null);
1629
Debug.
Assert
(!this.DataGridView.NoDimensionChangeAllowed);
1630
Debug.
Assert
(this.DataGridView.NewRowIndex == -1 || rowIndex != this.Count);
1631
Debug.
Assert
(!dataGridViewRow.Selected);
1647
Debug.
Assert
(dataGridViewRow.Cells.Count == this.DataGridView.Columns.Count);
1654
Debug.
Assert
(dataGridViewCell.OwningRow == dataGridViewRow);
1669
Debug.
Assert
((dataGridViewRow.State & (DataGridViewElementStates.Selected | DataGridViewElementStates.Displayed)) == 0);
1671
Debug.
Assert
(this.rowStates.Count == this.SharedList.Count);
1682
Debug.
Assert
(dataGridViewRow.State == SharedRowState(rowIndex));
1711
Debug.
Assert
(this.DataGridView != null);
1731
Debug.
Assert
(this.DataGridView.AllowUserToAddRowsInternal);
1783
Debug.
Assert
(this.rowStates.Count == this.SharedList.Count);
1812
Debug.
Assert
(this.rowStates.Count == this.SharedList.Count);
1836
Debug.
Assert
(this.DataGridView != null);
1858
Debug.
Assert
(dataGridViewRow.Index == -1);
1861
Debug.
Assert
(this.rowStates.Count == this.SharedList.Count);
1875
Debug.
Assert
(this.DataGridView != null);
1901
Debug.
Assert
(this.DataGridView.AllowUserToAddRowsInternal);
1923
Debug.
Assert
(dataGridViewRow.Cells.Count == this.DataGridView.Columns.Count);
1928
Debug.
Assert
(dataGridViewCell.OwningRow == dataGridViewRow);
1943
Debug.
Assert
((dataGridViewRow.State & (DataGridViewElementStates.Selected | DataGridViewElementStates.Displayed)) == 0);
1945
Debug.
Assert
(this.rowStates.Count == this.SharedList.Count);
1953
Debug.
Assert
(dataGridViewRow.State == SharedRowState(rowIndexInserted));
1965
Debug.
Assert
(includeFilter == DataGridViewElementStates.Displayed ||
2000
Debug.
Assert
(includeFilter == DataGridViewElementStates.Displayed ||
2042
Debug.
Assert
(e.Action != CollectionChangeAction.Remove);
2090
Debug.
Assert
(this.DataGridView != null);
2148
Debug.
Assert
(rowCount == 1);
2214
Debug.
Assert
(this.DataGridView != null);
2297
Debug.
Assert
(this.DataGridView.AllowUserToAddRowsInternal);
2328
Debug.
Assert
(index >= 0 && index < this.Count);
2329
Debug.
Assert
(this.DataGridView != null);
2330
Debug.
Assert
(!this.DataGridView.NoDimensionChangeAllowed);
2341
Debug.
Assert
(this.DataGridView != null);
2358
Debug.
Assert
(dataGridViewRow != null);
2359
Debug.
Assert
(dataGridViewRow.Index == -1);
2374
Debug.
Assert
(index >= 0);
2375
Debug.
Assert
(index < this.Count);
2398
Debug.
Assert
(state == DataGridViewElementStates.Displayed || state == DataGridViewElementStates.Selected || state == DataGridViewElementStates.ReadOnly || state == DataGridViewElementStates.Resizable || state == DataGridViewElementStates.Frozen || state == DataGridViewElementStates.Visible);
2557
Debug.
Assert
(rowHeightIncrement != 0);
2569
Debug.
Assert
(rowHeightIncrement != 0);
2672
Debug.
Assert
(rowComparer != null);
2673
Debug.
Assert
(this.Count > 0);
2789
Debug.
Assert
(customComparer != null);
2804
Debug.
Assert
(this.dataGridView.AllowUserToAddRowsInternal);
2813
Debug.
Assert
(dataGridViewRow != null);
2814
Debug.
Assert
(this.sortedColumnIndex >= 0);
2879
Debug.
Assert
(value1 is DataGridViewRow);
2880
Debug.
Assert
(value2 is DataGridViewRow);
2881
Debug.
Assert
(value1 != null);
2882
Debug.
Assert
(value2 != null);
winforms\Managed\System\WinForms\DataGridViewRowErrorTextNeededEventArgs.cs (1)
20
Debug.
Assert
(rowIndex >= -1);
winforms\Managed\System\WinForms\DataGridViewRowEventArgs.cs (1)
24
Debug.
Assert
(dataGridViewRow.Index >= -1);
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (17)
233
Debug.
Assert
((!this.DataGridView.RightToLeftInternal && firstCell) || (this.DataGridView.RightToLeftInternal && lastCell));
278
Debug.
Assert
(csv);
445
Debug.
Assert
(this.DataGridView != null);
453
Debug.
Assert
(cellStyle != null);
457
Debug.
Assert
(rowHeadersStyle != null);
460
Debug.
Assert
(dataGridViewStyle != null);
592
Debug.
Assert
(dataGridViewStyle.Alignment != DataGridViewContentAlignment.NotSet);
606
Debug.
Assert
(dataGridViewStyle.WrapMode != DataGridViewTriState.NotSet);
767
Debug.
Assert
(paint || computeContentBounds || computeErrorIconBounds);
768
Debug.
Assert
(!paint || !computeContentBounds || !computeErrorIconBounds);
769
Debug.
Assert
(!computeContentBounds || !computeErrorIconBounds || !paint);
770
Debug.
Assert
(!computeErrorIconBounds || !paint || !computeContentBounds);
771
Debug.
Assert
(cellStyle != null);
820
Debug.
Assert
(this.ButtonState == ButtonState.Pushed);
964
Debug.
Assert
(valBounds.Width >= 0);
965
Debug.
Assert
(valBounds.Height >= 0);
1398
Debug.
Assert
(this.Owner.DataGridView.TopLeftHeaderCell.AccessibilityObject == this.Owner.DataGridView.AccessibilityObject.GetChild(0).GetChild(0));
winforms\Managed\System\WinForms\DataGridViewRowHeightInfoNeededEventArgs.cs (4)
80
Debug.
Assert
(rowIndex >= -1);
81
Debug.
Assert
(height > 0);
82
Debug.
Assert
(minimumHeight > 0);
83
Debug.
Assert
(height >= minimumHeight);
winforms\Managed\System\WinForms\DataGridViewRowHeightInfoPushedEventArgs.cs (1)
22
Debug.
Assert
(rowIndex >= -1);
winforms\Managed\System\WinForms\DataGridViewRowPostPaintEventArgs.cs (3)
66
Debug.
Assert
(dataGridView != null);
265
Debug.
Assert
(graphics != null);
266
Debug.
Assert
(inheritedRowStyle != null);
winforms\Managed\System\WinForms\DataGridViewRowPrePaintEventArgs.cs (3)
68
Debug.
Assert
(dataGridView != null);
284
Debug.
Assert
(graphics != null);
285
Debug.
Assert
(inheritedRowStyle != null);
winforms\Managed\System\WinForms\DataGridViewRowsAddedEventArgs.cs (2)
23
Debug.
Assert
(rowIndex >= 0);
24
Debug.
Assert
(rowCount >= 1);
winforms\Managed\System\WinForms\DataGridViewSelectedCellCollection.cs (3)
164
Debug.
Assert
(!Contains(dataGridViewCell));
196
Debug.
Assert
(dataGridViewCells != null);
199
Debug.
Assert
(!Contains(dataGridViewCell));
winforms\Managed\System\WinForms\DataGridViewSortCompareEventArgs.cs (2)
27
Debug.
Assert
(dataGridViewColumn != null);
28
Debug.
Assert
(dataGridViewColumn.Index >= 0);
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (12)
192
Debug.
Assert
(cellStyle.WrapMode != DataGridViewTriState.NotSet);
193
Debug.
Assert
(this.DataGridView != null);
532
Debug.
Assert
(this.DataGridView != null &&
535
Debug.
Assert
(!this.ReadOnly);
602
Debug.
Assert
(e.ColumnIndex == this.ColumnIndex);
679
Debug.
Assert
(paint || computeContentBounds || computeErrorIconBounds);
680
Debug.
Assert
(!paint || !computeContentBounds || !computeErrorIconBounds);
681
Debug.
Assert
(!computeContentBounds || !computeErrorIconBounds || !paint);
682
Debug.
Assert
(!computeErrorIconBounds || !paint || !computeContentBounds);
683
Debug.
Assert
(cellStyle != null);
793
Debug.
Assert
(cellEdited || formattedString == null);
794
Debug.
Assert
(paint || computeContentBounds);
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (7)
262
Debug.
Assert
(paint || computeContentBounds || computeErrorIconBounds);
263
Debug.
Assert
(!paint || !computeContentBounds || !computeErrorIconBounds);
264
Debug.
Assert
(!computeContentBounds || !computeErrorIconBounds || !paint);
265
Debug.
Assert
(!computeErrorIconBounds || !paint || !computeContentBounds);
266
Debug.
Assert
(cellStyle != null);
291
Debug.
Assert
(this.ButtonState == ButtonState.Pushed);
372
Debug.
Assert
(computeContentBounds);
winforms\Managed\System\WinForms\DataGridViewTopRowAccessibleObject.cs (1)
156
Debug.
Assert
(index >= 0);
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (1)
517
Debug.
Assert
(activePage != -1);
winforms\Managed\System\WinForms\ErrorProvider.cs (1)
1100
Debug.
Assert
(timer != null);
winforms\Managed\System\WinForms\Form.cs (2)
6401
Debug.
Assert
(cc != null);
7753
Debug.
Assert
(lParam != IntPtr.Zero);
winforms\Managed\System\WinForms\KeysConverter.cs (2)
95
Debug.
Assert
(displayOrder == null);
105
Debug.
Assert
(keyNames == null);
winforms\Managed\System\WinForms\ListView.cs (1)
4700
Debug.
Assert
(retval != 0);
winforms\Managed\System\WinForms\MenuItem.cs (3)
919
Debug.
Assert
(uniqueID >= firstUniqueID); // ...check for ID range exhaustion (unlikely!)
1054
Debug.
Assert
(((uint) (ulong) msaaMenuInfoPtr) < firstUniqueID); // ...check for incursion into menu item ID range (unlikely!)
1059
Debug.
Assert
(msaaMenuInfoPtr != IntPtr.Zero);
winforms\Managed\System\WinForms\PictureBox.cs (1)
1426
Debug.
Assert
(pictureBoxState[PICTUREBOXSTATE_inInitialization]);
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
4191
Debug.
Assert
(oldObject != null && newObject != null && oldObject.GetType() == newObject.GetType());
winforms\Managed\System\WinForms\PropertyGridInternal\SingleSelectRootGridEntry.cs (1)
314
Debug.
Assert
(pe != null);
winforms\Managed\System\WinForms\PropertyStore.cs (5)
339
Debug.
Assert
(index < length);
398
Debug.
Assert
(length > 0);
438
Debug.
Assert
(index < length);
515
Debug.
Assert
(intEntries.Length - index - 1 > 0);
584
Debug.
Assert
(objEntries.Length - index - 1 > 0);
winforms\Managed\System\WinForms\TableLayoutStyle.cs (1)
74
Debug.
Assert
(size >= 0);
winforms\Managed\System\WinForms\TabPage.cs (1)
136
Debug.
Assert
(pd != null);
winforms\Managed\System\WinForms\TrustManager.cs (20)
130
Debug.
Assert
(matchingTrusts != null && matchingTrusts.Count > 0);
137
Debug.
Assert
(matchingTrusts != null && matchingTrusts.Count > 0);
176
Debug.
Assert
(!permissionElevationRequired);
307
Debug.
Assert
(signedManifest != null);
308
Debug.
Assert
(signedManifest.AuthenticodeSignerInfo != null);
342
Debug.
Assert
(parsedData != null);
343
Debug.
Assert
(ms != null);
424
Debug.
Assert
(info != null);
442
Debug.
Assert
(permSetDefaultZone != null);
443
Debug.
Assert
(permSetRequested != null);
549
Debug.
Assert
(info != null);
550
Debug.
Assert
(matchingTrusts != null);
577
Debug.
Assert
(permSetGranted != null);
578
Debug.
Assert
(permSetRequested != null);
657
Debug.
Assert
(info != null);
672
Debug.
Assert
(info != null);
732
Debug.
Assert
(hostContextInternal != null);
733
Debug.
Assert
(zoneName != null);
734
Debug.
Assert
(parsedData != null);
949
Debug.
Assert
(matchingTrusts != null);
winforms\Managed\System\WinForms\TrustManagerMoreInformation.cs (3)
126
Debug.
Assert
((options & TrustManagerPromptOptions.InternetSource) != 0);
179
Debug.
Assert
((options & TrustManagerPromptOptions.UntrustedSitesSource) != 0);
384
Debug.
Assert
(warningLevel == TrustManagerWarningLevel.Red);
winforms\Managed\System\WinForms\TrustManagerPromptUI.cs (6)
489
Debug.
Assert
(this.m_certificate != null);
598
Debug.
Assert
(m_certificate != null);
674
Debug.
Assert
(warningLevel == TrustManagerWarningLevel.Red);
780
Debug.
Assert
(m_certificate != null);
796
Debug.
Assert
(this.m_defaultBrowserExePath != null);
797
Debug.
Assert
(this.m_certificate != null);
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (2)
1679
Debug.
Assert
(regionDataSize == pRgnDataHeader->cbSizeOfStruct + pRgnDataHeader->nCount * pRgnDataHeader->nRgnSize);
1680
Debug.
Assert
(Marshal.SizeOf(typeof(NativeMethods.RECT)) == pRgnDataHeader->nRgnSize || pRgnDataHeader->nRgnSize == 0);
winforms\Managed\System\WinForms\WindowsFormsSynchronizationContext.cs (1)
40
Debug.
Assert
(context != null);
System.Workflow.Activities (104)
ConstrainedGroup.cs (13)
222
Debug.
Assert
(currentActivity != null);
243
Debug.
Assert
(cag != null);
326
Debug.
Assert
(cag != null);
327
Debug.
Assert
(context != null);
426
Debug.
Assert
(cag != null);
427
Debug.
Assert
(context != null);
453
Debug.
Assert
(cag != null);
454
Debug.
Assert
(childActivity != null);
455
Debug.
Assert
(context != null);
456
Debug.
Assert
(childActivity.ExecutionStatus == ActivityExecutionStatus.Initialized);
635
Debug.
Assert
(context != null);
636
Debug.
Assert
(childActivity != null);
637
Debug.
Assert
(childActivity.ExecutionStatus == ActivityExecutionStatus.Closed);
Delay.cs (2)
287
System.Diagnostics.Debug.
Assert
(this.SubscriptionID != Guid.Empty);
336
System.Diagnostics.Debug.
Assert
(this.SubscriptionID != Guid.Empty);
Designers\ConditionalDesigner.cs (1)
89
Debug.
Assert
(compositeDesignerTheme != null);
Designers\ListenDesigner.cs (1)
69
Debug.
Assert
(compositeDesignerTheme != null);
Designers\SetStateDesigner.cs (3)
261
Debug.
Assert
(activity != null);
304
Debug.
Assert
(dropDownList != null);
305
Debug.
Assert
(activity != null);
Designers\StateDesigner.cs (11)
514
Debug.
Assert
((value == null) || (value != null && _activeDesigner == null));
597
Debug.
Assert
(this.IsRootStateDesigner);
954
Debug.
Assert
(currentState != null);
1155
Debug.
Assert
(targetDesignerLayoutConnectionPoint != null);
1162
Debug.
Assert
(targetDesignerLayoutConnectionPoint == null);
1471
Debug.
Assert
(!this.HasActiveDesigner && this.NeedsAutoLayout);
1493
Debug.
Assert
(IsRootDesigner && InvokingDesigner == null);
1664
Debug.
Assert
(this.IsRootStateDesigner);
1665
Debug.
Assert
(this.ActiveDesigner == null);
1756
Debug.
Assert
(eventHandler != null);
1780
Debug.
Assert
(targetState != null);
Designers\StateDesigner.Layouts.cs (2)
32
Debug.
Assert
(designerEdges == DesignerEdges.Left || designerEdges == DesignerEdges.Right);
42
Debug.
Assert
(this.DesignerEdges == DesignerEdges.Left || this.DesignerEdges == DesignerEdges.Right);
Designers\StateMachineDesignerPaint.cs (3)
79
Debug.
Assert
(points.Length >= 2);
208
Debug.
Assert
(points.Length >= 2);
350
Debug.
Assert
(start.X == end.X || start.Y == end.Y);
Designers\WhileDesigner.cs (2)
37
Debug.
Assert
(compositeDesignerTheme != null);
73
Debug.
Assert
(designerTheme != null);
InvokeWebService.cs (1)
117
System.Diagnostics.Debug.
Assert
(proxy != null);
LocalService\CorrelationResolver.cs (1)
416
Debug.
Assert
(aliasAttribute.Name != null);
Role\DirectoryLocalQuery.cs (1)
59
System.Diagnostics.Debug.
Assert
(false);
Role\DirectoryRedirect.cs (1)
85
System.Diagnostics.Debug.
Assert
(values.Count == 1);
Role\DirectoryRootQuery.cs (1)
59
System.Diagnostics.Debug.
Assert
(false);
Rules\Expressions.cs (3)
1589
System.Diagnostics.Debug.
Assert
(arrayType.IsArray);
2540
System.Diagnostics.Debug.
Assert
(arrayType.IsArray);
3095
System.Diagnostics.Debug.
Assert
(arrayType.IsArray);
Rules\Parser\Parser.cs (10)
697
System.Diagnostics.Debug.
Assert
(namespaces.Length > 0);
947
System.Diagnostics.Debug.
Assert
(parserContext.NextToken().TokenID == TokenID.EndOfInput);
1423
System.Diagnostics.Debug.
Assert
(parserContext.CurrentToken.TokenID == TokenID.LBracket);
1494
System.Diagnostics.Debug.
Assert
(parserContext.CurrentToken.TokenID == TokenID.Dot);
1529
System.Diagnostics.Debug.
Assert
(parserContext.CurrentToken.TokenID == TokenID.LParen);
1666
System.Diagnostics.Debug.
Assert
(parserContext.CurrentToken.TokenID == TokenID.LParen);
1912
System.Diagnostics.Debug.
Assert
(parserContext.CurrentToken.TokenID == TokenID.LParen);
2228
System.Diagnostics.Debug.
Assert
(parserContext.CurrentToken.TokenID == TokenID.Dot);
2315
System.Diagnostics.Debug.
Assert
(parserContext.CurrentToken.TokenID == TokenID.Less);
2333
System.Diagnostics.Debug.
Assert
(parserContext.CurrentToken.TokenID == TokenID.Less);
Rules\Parser\Symbol.cs (1)
102
System.Diagnostics.Debug.
Assert
(typeSymbol != null);
Rules\RuleValidation.cs (2)
2740
System.Diagnostics.Debug.
Assert
(arguments.Count == this.signature.Count);
2741
System.Diagnostics.Debug.
Assert
(arguments.Count == other.signature.Count);
SetState.cs (3)
100
Debug.
Assert
(enclosingState != null); // this should be caught by the SetStateContainment.Validate call above
151
Debug.
Assert
(activity != null);
169
Debug.
Assert
(activity != null);
State.cs (6)
197
Debug.
Assert
(StateMachineHelpers.IsLeafState(state));
278
Debug.
Assert
(executionContext.Activity == this);
322
Debug.
Assert
(!executionState.SchedulerBusy);
349
Debug.
Assert
(!executionState.SchedulerBusy);
435
Debug.
Assert
(!executionState.HasEnqueuedActions);
459
Debug.
Assert
(!executionState.HasEnqueuedActions);
StateMachineAction.cs (5)
79
Debug.
Assert
(context.Activity.QualifiedName.Equals(this.StateName));
127
Debug.
Assert
(childState.Enabled);
155
Debug.
Assert
(eventDriven.Enabled);
183
Debug.
Assert
(eventDriven.Enabled);
211
Debug.
Assert
(eventDriven.Enabled);
StateMachineExecutionState.cs (3)
142
Debug.
Assert
(!this._queueLocked);
260
Debug.
Assert
(StateMachineHelpers.IsRootState(state));
262
Debug.
Assert
(executionState != null);
StateMachineHelpers.cs (13)
66
Debug.
Assert
(activity != null);
67
Debug.
Assert
(activity.Parent != activity);
86
Debug.
Assert
(state != null);
87
Debug.
Assert
(state.Parent != state);
102
Debug.
Assert
(state != null);
113
Debug.
Assert
(state != null);
130
Debug.
Assert
(state != null);
172
Debug.
Assert
(currentState == null || IsLeafState(currentState));
204
Debug.
Assert
(state != null);
205
Debug.
Assert
(qualifiedName != null);
217
Debug.
Assert
(compositeActivity != null);
243
Debug.
Assert
(eventDriven.EnabledActivities.Count > 0);
245
Debug.
Assert
(eventActivity != null);
StateMachineSubscription.cs (2)
143
Debug.
Assert
(!executionState.HasEnqueuedActions);
235
Debug.
Assert
(!executionState.HasEnqueuedActions);
StateMachineSubscriptionManager.cs (4)
167
Debug.
Assert
(!this.Subscriptions.ContainsKey(queueName));
173
Debug.
Assert
(IsEventDrivenSubscribed(eventDriven));
188
Debug.
Assert
(subscription.QueueName != null);
223
Debug.
Assert
(subscription.QueueName != null);
StateMachineWorkflowInstance.cs (2)
209
Debug.
Assert
(queueInfo.SubscribedActivityNames.Count == 1);
234
Debug.
Assert
(eventDriven != null);
Task.cs (5)
500
Debug.
Assert
(this.ActivityState.Contains(e.ChildStateInfo));
501
Debug.
Assert
(e.ChildStateInfo.Status == ChildRunStatus.PendingExecute);
509
System.Diagnostics.Debug.
Assert
(childStateInfo.MarkedForRemoval);
527
System.Diagnostics.Debug.
Assert
(childStateInfo.Status != ChildRunStatus.Running);
612
System.Diagnostics.Debug.
Assert
(this.ExecutionType == ExecutionType.Parallel);
WebServiceFault.cs (1)
156
System.Diagnostics.Debug.
Assert
(responseMessage != null);
While.cs (1)
130
System.Diagnostics.Debug.
Assert
(false);
System.Workflow.ComponentModel (76)
AuthoringOM\ActivityExecutionContext.cs (1)
241
Debug.
Assert
(activity.ExecutionStatus == ActivityExecutionStatus.Executing);
AuthoringOM\DependencyProperty.cs (1)
365
Debug.
Assert
(this.name != null && this.ownerType != null);
AuthoringOM\Design\ActivityDesigner.cs (1)
2117
Debug.
Assert
(serviceProvider != null);
AuthoringOM\Design\ActivityPreviewDesigner.cs (1)
980
Debug.
Assert
(item.UserData[DesignerUserDataKeys.Activity] is Activity);
AuthoringOM\Design\CommandSet.cs (1)
48
Debug.
Assert
(serviceProvider != null);
AuthoringOM\Design\CompositeActivityDesigner.cs (1)
924
Debug.
Assert
(activity.Parent != null);
AuthoringOM\Design\Connector.cs (6)
1101
Debug.
Assert
(validEditPoints);
1110
Debug.
Assert
(false);
1205
Debug.
Assert
(false);
1231
Debug.
Assert
(false);
1243
Debug.
Assert
(validEditPoints);
1288
Debug.
Assert
(false);
AuthoringOM\Design\DesignerHelpers.cs (1)
1879
Debug.
Assert
(segments.Length > 0);
AuthoringOM\Design\DesignerWidgets.cs (3)
267
Debug.
Assert
(serviceProvider != null);
582
Debug.
Assert
(serviceProvider != null);
2432
Debug.
Assert
(parentDesigner != null);
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (6)
811
Debug.
Assert
(parentCatagoryTreeNode != null);
935
Debug.
Assert
(host != null);
980
Debug.
Assert
(host != null);
983
Debug.
Assert
(rootDecl != null);
1062
Debug.
Assert
(host != null);
1067
Debug.
Assert
(dummyActivity != null);
AuthoringOM\Design\FreeFormDesigner.cs (1)
901
Debug.
Assert
(false);
AuthoringOM\Design\MessageFilters\ConnectionManager.cs (1)
327
Debug.
Assert
(false);
AuthoringOM\Design\MessageFilters\DragDropManager.cs (8)
77
Debug.
Assert
(this.draggedDesigner == null);
78
Debug.
Assert
(this.dropTargetDesigner == null);
99
Debug.
Assert
(this.dropTargetDesigner == null);
150
Debug.
Assert
(this.dropTargetDesigner == null);
205
Debug.
Assert
(this.dropTargetDesigner == null);
220
Debug.
Assert
(this.dropTargetDesigner == null);
235
Debug.
Assert
(this.dropTargetDesigner == null);
269
Debug.
Assert
(this.dragImage == null);
AuthoringOM\Design\MessageFilters\DragSelectionMessageFilter.cs (1)
47
Debug.
Assert
(this.dragStarted == false);
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (3)
164
Debug.
Assert
(locations.Length == DraggedActivities.Count);
165
Debug.
Assert
(this.draggedDesignerImages.Count == DraggedActivities.Count);
239
Debug.
Assert
(false);
AuthoringOM\Design\MessageFilters\ResizingMessageFilter.cs (1)
231
Debug.
Assert
(false);
AuthoringOM\Design\MessageFilters\ZoomingMessageFilter.cs (1)
165
Debug.
Assert
(this.currentState == ZoomState.In && CanContinueZooming && this.fastZoomingMessageFilter != null);
AuthoringOM\Design\SecondaryViewProvider.cs (3)
38
Debug.
Assert
(designer.Activity != null);
114
Debug.
Assert
(activityType != null);
182
Debug.
Assert
(activityType != null);
AuthoringOM\Design\Themes.cs (7)
320
Debug.
Assert
(path != null && path.Length > 0);
425
Debug.
Assert
(standardThemeParams != null);
833
Debug.
Assert
(item.ApplyTo != null && item.ApplyTo.Length > 0);
3065
Debug.
Assert
(this.fontName != null && this.fontName.Length > 0);
3070
Debug.
Assert
(supportedFonts.Contains(this.fontName));
3088
Debug.
Assert
(this.fontName != null && this.fontName.Length > 0);
3093
Debug.
Assert
(supportedFonts.Contains(this.fontName));
AuthoringOM\Design\WorkflowLayouts.cs (10)
25
Debug.
Assert
(serviceProvider != null);
32
Debug.
Assert
(this.parentView != null);
135
Debug.
Assert
(graphics != null);
139
Debug.
Assert
(memoryBitmap != null);
190
Debug.
Assert
(graphics != null);
194
Debug.
Assert
(memoryBitmap != null);
515
Debug.
Assert
(graphics != null);
520
Debug.
Assert
(memoryBitmap != null);
585
Debug.
Assert
(graphics != null);
587
Debug.
Assert
(memoryBitmap != null);
AuthoringOM\Design\WorkflowView.cs (5)
151
Debug.
Assert
(serviceProvider != null);
698
Debug.
Assert
(value != null);
1558
Debug.
Assert
(memoryBitmap != null);
1971
Debug.
Assert
(filters.Count == 0);
1980
Debug.
Assert
(this.rootDesigner != null);
AuthoringOM\ScheduleChanges.cs (1)
523
Debug.
Assert
(serviceProvider != null);
AuthoringOM\Serializer\ActivityMarkupSerializer.cs (3)
51
Debug.
Assert
(false);
98
Debug.
Assert
(false);
162
Debug.
Assert
(false);
AuthoringOM\Serializer\ActivitySurrogate.cs (2)
47
Debug.
Assert
(members[0].Name == "dependencyPropertyValues" && members[1].Name == "disposed");
265
Debug.
Assert
(members[0].Name == "dependencyPropertyValues" && members[1].Name == "disposed");
AuthoringOM\Serializer\DependencyObjectCodeDomSerializer.cs (1)
222
System.Diagnostics.Debug.
Assert
(pushedActivity == activity);
AuthoringOM\Serializer\SynchronizationHandlesCodeDomSerializer.cs (1)
28
System.Diagnostics.Debug.
Assert
(statements != null);
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (4)
1239
Debug.
Assert
(genericType != null);
1807
Debug.
Assert
(false);
1927
Debug.
Assert
(false);
1952
Debug.
Assert
(false);
AuthoringOM\Serializer\XamlInterfaces.cs (1)
174
Debug.
Assert
(false);
System.Workflow.Runtime (28)
AmbientEnvironment.cs (5)
46
Debug.
Assert
(null != threadData);
70
Debug.
Assert
(_rc >= 0);
79
Debug.
Assert
(_rc > 0);
84
Debug.
Assert
(false);
91
Debug.
Assert
(_rc > 0);
PerformanceCounterManager.cs (5)
276
System.Diagnostics.Debug.
Assert
(this.m_actionStatements != null);
430
System.Diagnostics.Debug.
Assert
(!String.IsNullOrEmpty(name));
431
System.Diagnostics.Debug.
Assert
(!String.IsNullOrEmpty(description));
432
System.Diagnostics.Debug.
Assert
(mappings != null && mappings.Length != 0);
462
System.Diagnostics.Debug.
Assert
(counters != null);
WorkflowExecutor.cs (6)
181
Debug.
Assert
(invokeActivityID != null && invokeActivityID.Length > 0);
1716
Debug.
Assert
(this.IsInstanceValid);
2066
Debug.
Assert
(activity != null);
3676
Debug.
Assert
(ScheduleWork.scheduleInfo != null);
3677
Debug.
Assert
(value == true || ScheduleWork.scheduleInfo.scheduleWork == false); // never go from true to false
3690
Debug.
Assert
(ScheduleWork.scheduleInfo != null);
WorkflowQueuingService.cs (5)
366
Debug.
Assert
(contextActivity != null);
682
Debug.
Assert
(rootWorkflowExecutor.CurrentAtomicActivity != null);
683
Debug.
Assert
(pendingQueueStateSnapshot != null);
684
Debug.
Assert
(persistedQueueStatesSnapshot != null);
687
Debug.
Assert
(transactionalProperties != null);
WorkflowRuntime.cs (4)
693
Debug.
Assert
(schedule != null);
785
Debug.
Assert
(sched != null);
1409
Debug.
Assert
(runtime != null);
1452
Debug.
Assert
(runtime != null);
WorkflowStateRollbackService.cs (3)
89
Debug.
Assert
(clonedRootActivity != null);
127
Debug.
Assert
(this.completedContextActivities != null);
131
Debug.
Assert
(this.workflowExecutor.IsInstanceValid);
System.Xml (1193)
System\Xml\Base64Decoder.cs (5)
111
Debug.
Assert
( buffer != null );
112
Debug.
Assert
( count >= 0 );
113
Debug.
Assert
( index >= 0 );
114
Debug.
Assert
( buffer.Length - index >= count );
115
Debug.
Assert
( ( buffer as byte[] ) != null );
System\Xml\BinaryXml\SqlUtils.cs (10)
129
Debug.
Assert
(rguiData.Length == 4);
152
Debug.
Assert
(rgulU.Length == x_cNumeMax);
305
Debug.
Assert
(dwlAccum < x_ulInt32Base);
371
Debug.
Assert
(dwlAccum < dwlDivisor);
373
Debug.
Assert
((dwlAccum / dwlDivisor) < x_ulInt32Base);
397
Debug.
Assert
(dwlAccum < x_ulInt32Base);
420
Debug.
Assert
(uiDigit < 10);
588
Debug.
Assert
(val >= 0 && val < 100);
593
Debug.
Assert
(val > -10000 && val < 10000);
603
Debug.
Assert
(val >= 0 && val < 1000);
System\Xml\BinaryXml\XmlBinaryReader.cs (12)
351
Debug.
Assert
(len >= 2 && (data[0] == 0xdf && data[1] == 0xff));
804
Debug.
Assert
(decl != null);
1780
Debug.
Assert
((this.attributes[i].contentPos >= 0) && (this.attributes[i].contentPos <= (end)));
1787
Debug.
Assert
(this.attrCount == 0);
1804
Debug.
Assert
((this.pos + require) >= this.end);
1839
Debug.
Assert
(0 != (b & 0x80));
2042
Debug.
Assert
(pos >= 0 && cch >= 0);
2058
Debug.
Assert
((offset & 1) == 0);
2605
Debug.
Assert
(this.mark < 0);
2720
Debug.
Assert
(this.pos >= 3);
2724
Debug.
Assert
(this.pos >= 1);
2729
Debug.
Assert
(this.pos >= 2);
System\Xml\BinHexDecoder.cs (5)
107
Debug.
Assert
( buffer != null );
108
Debug.
Assert
( count >= 0 );
109
Debug.
Assert
( index >= 0 );
110
Debug.
Assert
( buffer.Length - index >= count );
111
Debug.
Assert
( ( buffer as byte[] ) != null );
System\Xml\Cache\XPathDocumentBuilder.cs (17)
141
Debug.
Assert
(prefix != null && localName != null && ns != null && localName.Length != 0 && baseUri != null);
196
Debug.
Assert
(this.pageParent[this.idxParent].NodeType == XPathNodeType.Element);
263
Debug.
Assert
(!prefix.Equals("xmlns"));
264
Debug.
Assert
(this.idxParent == 0 || this.pageParent[this.idxParent].NodeType == XPathNodeType.Element);
265
Debug.
Assert
(this.idxSibling == 0 || this.pageSibling[this.idxSibling].NodeType == XPathNodeType.Attribute);
280
Debug.
Assert
(this.pageSibling[this.idxSibling].NodeType == XPathNodeType.Attribute);
433
Debug.
Assert
(this.pageParent[this.idxParent].NodeType == XPathNodeType.Element);
443
Debug.
Assert
(this.idxSibling == 0 || this.pageSibling[this.idxSibling].NodeType == XPathNodeType.Attribute);
444
Debug.
Assert
(!prefix.Equals("xmlns") && !namespaceName.Equals(XmlReservedNs.NsXmlNs));
445
Debug.
Assert
(this.idxParent == 0 || this.idxNmsp != 0);
446
Debug.
Assert
(this.idxParent == 0 || this.pageParent[this.idxParent].NodeType == XPathNodeType.Element);
566
Debug.
Assert
(pageElem == null || pageElem[idxElem].NodeType == XPathNodeType.Element);
595
Debug.
Assert
(xptyp != XPathNodeType.Namespace);
659
Debug.
Assert
(xptyp != XPathNodeType.Root && xptyp != XPathNodeType.Namespace);
673
Debug.
Assert
(this.idxParent + 1 == idxNew || idxNew == 1);
807
Debug.
Assert
((int) XPathNodeType.Text < (int) XPathNodeType.SignificantWhitespace);
808
Debug.
Assert
((int) XPathNodeType.SignificantWhitespace < (int) XPathNodeType.Whitespace);
System\Xml\Cache\XPathDocumentNavigator.cs (8)
40
Debug.
Assert
(pageCurrent != null && idxCurrent != 0);
41
Debug.
Assert
((pageParent == null) == (idxParent == 0));
95
Debug.
Assert
(this.pageCurrent[this.idxCurrent].NodeType == XPathNodeType.Text);
112
Debug.
Assert
(page[idx].NodeType == XPathNodeType.Element || page[idx].IsText);
409
Debug.
Assert
(this.pageParent != null);
446
Debug.
Assert
(page[idx].NodeType == XPathNodeType.Element);
622
Debug.
Assert
(page[idx].HasCollapsedText);
629
Debug.
Assert
(page[idx].IsText);
System\Xml\Cache\XPathNode.cs (3)
326
Debug.
Assert
(info != null && idxParent <= UInt16.MaxValue);
361
Debug.
Assert
(NodeType == XPathNodeType.Element);
371
Debug.
Assert
(NodeType == XPathNodeType.Element);
System\Xml\Cache\XPathNodeHelper.cs (9)
30
Debug.
Assert
(pageElem[idxElem].NodeType == XPathNodeType.Element);
73
Debug.
Assert
(pageNode[idxNode].NodeType == XPathNodeType.Attribute);
112
Debug.
Assert
(idx != 0);
166
Debug.
Assert
(idxNode <= UInt16.MaxValue);
167
Debug.
Assert
(pageNode[0].PageInfo.PageNumber <= Int16.MaxValue);
184
Debug.
Assert
(idx != 0);
282
Debug.
Assert
(typ != XPathNodeType.Attribute && typ != XPathNodeType.Namespace);
301
Debug.
Assert
(pageNode[idxNode].NodeType != XPathNodeType.Attribute);
333
Debug.
Assert
(idxAnc != 0 && pageAnc != null);
System\Xml\Cache\XPathNodeInfoAtom.cs (4)
117
Debug.
Assert
(localName != null && namespaceUri != null && prefix != null && doc != null);
262
Debug.
Assert
(that != null);
263
Debug.
Assert
((object) this.doc == (object) that.doc);
264
Debug.
Assert
(this.pageInfo == null);
System\Xml\Core\CharEntityEncoderFallback.cs (2)
139
Debug.
Assert
( charEntityIndex < charEntity.Length );
151
Debug.
Assert
(charEntityIndex <= charEntity.Length);
System\Xml\Core\HtmlEncodedRawTextWriter.cs (20)
108
Debug.
Assert
( name != null && name.Length > 0 );
149
Debug.
Assert
( localName != null && localName.Length != 0 && prefix != null && ns != null );
154
Debug.
Assert
( prefix.Length == 0 );
188
Debug.
Assert
( prefix.Length == 0 );
209
Debug.
Assert
( prefix.Length == 0 );
326
Debug.
Assert
( localName != null && localName.Length != 0 && prefix != null && ns != null );
329
Debug.
Assert
( prefix.Length == 0 );
383
Debug.
Assert
( target != null && target.Length != 0 && text != null );
403
Debug.
Assert
( text != null );
431
Debug.
Assert
( buffer != null );
432
Debug.
Assert
( index >= 0 );
433
Debug.
Assert
( count >= 0 && index + count <= buffer.Length );
452
Debug.
Assert
( (int)ElementProperties.URI_PARENT == (int)AttributeProperties.URI );
453
Debug.
Assert
( (int)ElementProperties.BOOL_PARENT == (int)AttributeProperties.BOOLEAN );
454
Debug.
Assert
( (int)ElementProperties.NAME_PARENT == (int)AttributeProperties.NAME );
570
Debug.
Assert
( pSrc <= pSrcEnd );
646
Debug.
Assert
( pSrc <= pSrcEnd );
801
Debug.
Assert
( localName != null && localName.Length != 0 && prefix != null && ns != null );
808
Debug.
Assert
( prefix.Length == 0 );
856
Debug.
Assert
( localName != null && localName.Length != 0 && prefix != null && ns != null );
System\Xml\Core\HtmlUtf8RawTextWriter.cs (20)
108
Debug.
Assert
( name != null && name.Length > 0 );
149
Debug.
Assert
( localName != null && localName.Length != 0 && prefix != null && ns != null );
154
Debug.
Assert
( prefix.Length == 0 );
188
Debug.
Assert
( prefix.Length == 0 );
209
Debug.
Assert
( prefix.Length == 0 );
326
Debug.
Assert
( localName != null && localName.Length != 0 && prefix != null && ns != null );
329
Debug.
Assert
( prefix.Length == 0 );
383
Debug.
Assert
( target != null && target.Length != 0 && text != null );
403
Debug.
Assert
( text != null );
431
Debug.
Assert
( buffer != null );
432
Debug.
Assert
( index >= 0 );
433
Debug.
Assert
( count >= 0 && index + count <= buffer.Length );
452
Debug.
Assert
( (int)ElementProperties.URI_PARENT == (int)AttributeProperties.URI );
453
Debug.
Assert
( (int)ElementProperties.BOOL_PARENT == (int)AttributeProperties.BOOLEAN );
454
Debug.
Assert
( (int)ElementProperties.NAME_PARENT == (int)AttributeProperties.NAME );
570
Debug.
Assert
( pSrc <= pSrcEnd );
646
Debug.
Assert
( pSrc <= pSrcEnd );
801
Debug.
Assert
( localName != null && localName.Length != 0 && prefix != null && ns != null );
808
Debug.
Assert
( prefix.Length == 0 );
856
Debug.
Assert
( localName != null && localName.Length != 0 && prefix != null && ns != null );
System\Xml\Core\IncrementalReadDecoders.cs (15)
62
Debug.
Assert
( chars != null );
63
Debug.
Assert
( len >= 0 );
64
Debug.
Assert
( startPos >= 0 );
65
Debug.
Assert
( chars.Length - startPos >= len );
67
Debug.
Assert
( len > 0 );
80
Debug.
Assert
( str != null );
81
Debug.
Assert
( len >= 0 );
82
Debug.
Assert
( startPos >= 0 );
83
Debug.
Assert
( str.Length - startPos >= len );
85
Debug.
Assert
( len > 0 );
101
Debug.
Assert
( buffer != null );
102
Debug.
Assert
( count >= 0 );
103
Debug.
Assert
( index >= 0 );
104
Debug.
Assert
( buffer.Length - index >= count );
106
Debug.
Assert
( ( buffer as char[] ) != null );
System\Xml\Core\QueryOutputWriter.cs (2)
123
Debug.
Assert
(!this.outputDocType);
307
Debug.
Assert
(!this.inCDataSection);
System\Xml\Core\QueryOutputWriterV1.cs (2)
116
Debug.
Assert
(!this.outputDocType);
271
Debug.
Assert
(!this.inCDataSection);
System\Xml\Core\ReadContentAsBinaryHelper.cs (11)
96
Debug.
Assert
( false );
100
Debug.
Assert
( state == State.InReadContent );
143
Debug.
Assert
( false );
147
Debug.
Assert
( state == State.InReadContent );
190
Debug.
Assert
( false );
194
Debug.
Assert
( state == State.InReadElementContent );
237
Debug.
Assert
( false );
241
Debug.
Assert
( state == State.InReadElementContent );
284
Debug.
Assert
( reader.NodeType == XmlNodeType.Element );
328
Debug.
Assert
( decoder != null );
347
Debug.
Assert
( valueOffset == valueChunkLength );
System\Xml\Core\ReadContentAsBinaryHelperAsync.cs (11)
46
Debug.
Assert
( false );
50
Debug.
Assert
( state == State.InReadContent );
93
Debug.
Assert
( false );
97
Debug.
Assert
( state == State.InReadContent );
140
Debug.
Assert
( false );
144
Debug.
Assert
( state == State.InReadElementContent );
187
Debug.
Assert
( false );
191
Debug.
Assert
( state == State.InReadElementContent );
228
Debug.
Assert
( reader.NodeType == XmlNodeType.Element );
252
Debug.
Assert
( decoder != null );
271
Debug.
Assert
( valueOffset == valueChunkLength );
System\Xml\Core\XmlAsyncCheckReader.cs (3)
32
Debug.
Assert
(!(reader is IXmlSchemaInfo));
38
Debug.
Assert
(!(reader is IXmlSchemaInfo));
43
Debug.
Assert
(!(reader is IXmlSchemaInfo));
System\Xml\Core\XmlAutoDetectWriter.cs (6)
35
Debug.
Assert
(writerSettings.OutputMethod == XmlOutputMethod.AutoDetect);
98
Debug.
Assert
(this.wrapped != null);
270
Debug.
Assert
(this.wrapped != null);
275
Debug.
Assert
(this.wrapped != null);
280
Debug.
Assert
(this.wrapped != null);
361
Debug.
Assert
(this.wrapped == null);
System\Xml\Core\XmlCharCheckingReader.cs (3)
57
Debug.
Assert
( checkCharacters || ignoreWhitespace || ignoreComments || ignorePis || (int)dtdProcessing != -1 );
173
Debug.
Assert
( false );
575
Debug.
Assert
( readerAsNSResolver != null );
System\Xml\Core\XmlCharCheckingReaderAsync.cs (1)
41
Debug.
Assert
( false );
System\Xml\Core\XmlCharCheckingWriter.cs (1)
66
Debug.
Assert
( checkValues || replaceNewLines );
System\Xml\Core\XmlEncodedRawTextWriter.cs (45)
135
Debug.
Assert
( writer != null && settings != null );
155
Debug.
Assert
( stream != null && settings != null );
261
Debug.
Assert
( name != null && name.Length > 0 );
296
Debug.
Assert
( localName != null && localName.Length > 0 );
297
Debug.
Assert
( prefix != null );
325
Debug.
Assert
( localName != null && localName.Length > 0 );
326
Debug.
Assert
( prefix != null );
353
Debug.
Assert
( localName != null && localName.Length > 0 );
354
Debug.
Assert
( prefix != null );
371
Debug.
Assert
( localName != null && localName.Length > 0 );
372
Debug.
Assert
( prefix != null );
401
Debug.
Assert
( prefix != null && namespaceName != null );
415
Debug.
Assert
( prefix != null );
448
Debug.
Assert
( text != null );
454
Debug.
Assert
( bufPos >= 4 );
482
Debug.
Assert
( text != null );
500
Debug.
Assert
( name != null && name.Length > 0 );
501
Debug.
Assert
( text != null );
520
Debug.
Assert
( name != null && name.Length > 0 );
562
Debug.
Assert
( ws != null );
580
Debug.
Assert
( text != null );
612
Debug.
Assert
( buffer != null );
613
Debug.
Assert
( index >= 0 );
614
Debug.
Assert
( count >= 0 && index + count <= buffer.Length );
633
Debug.
Assert
( buffer != null );
634
Debug.
Assert
( index >= 0 );
635
Debug.
Assert
( count >= 0 && index + count <= buffer.Length );
649
Debug.
Assert
( data != null );
728
Debug.
Assert
( stream != null || writer != null );
744
Debug.
Assert
( textContentMarks[0] == 1 );
798
Debug.
Assert
( bufPos == 1 );
833
Debug.
Assert
( pSrc <= pSrcEnd );
930
Debug.
Assert
( pSrc <= pSrcEnd );
1010
Debug.
Assert
( s != null );
1036
Debug.
Assert
( pSrc <= pSrcEnd );
1081
Debug.
Assert
( pSrc <= pSrcEnd );
1176
Debug.
Assert
( pSrc <= pSrcEnd );
1297
Debug.
Assert
( pSrc <= pSrcEnd );
1381
Debug.
Assert
( XmlCharType.IsSurrogate( *pSrc ) );
1404
Debug.
Assert
( !xmlCharType.IsWhiteSpace( (char)ch ) );
1405
Debug.
Assert
( !xmlCharType.IsAttributeValueChar( (char)ch ) );
1431
Debug.
Assert
( inTextContent != value );
1432
Debug.
Assert
( inTextContent || ((lastMarkPos & 1) == 0) );
1441
Debug.
Assert
( lastMarkPos + 1 == textContentMarks.Length );
1679
Debug.
Assert
( localName != null && localName.Length != 0 && prefix != null && ns != null );
System\Xml\Core\XmlEncodedRawTextWriterAsync.cs (36)
68
Debug.
Assert
( name != null && name.Length > 0 );
104
Debug.
Assert
( localName != null && localName.Length > 0 );
105
Debug.
Assert
( prefix != null );
127
Debug.
Assert
(localName != null && localName.Length > 0);
128
Debug.
Assert
(prefix != null);
158
Debug.
Assert
( localName != null && localName.Length > 0 );
159
Debug.
Assert
( prefix != null );
177
Debug.
Assert
( localName != null && localName.Length > 0 );
178
Debug.
Assert
( prefix != null );
214
Debug.
Assert
( prefix != null && namespaceName != null );
223
Debug.
Assert
( prefix != null );
266
Debug.
Assert
( text != null );
272
Debug.
Assert
( bufPos >= 4 );
301
Debug.
Assert
( text != null );
320
Debug.
Assert
( name != null && name.Length > 0 );
321
Debug.
Assert
( text != null );
341
Debug.
Assert
( name != null && name.Length > 0 );
385
Debug.
Assert
( ws != null );
401
Debug.
Assert
( text != null );
432
Debug.
Assert
( buffer != null );
433
Debug.
Assert
( index >= 0 );
434
Debug.
Assert
( count >= 0 && index + count <= buffer.Length );
452
Debug.
Assert
( buffer != null );
453
Debug.
Assert
( index >= 0 );
454
Debug.
Assert
( count >= 0 && index + count <= buffer.Length );
467
Debug.
Assert
( data != null );
500
Debug.
Assert
( stream != null || writer != null );
516
Debug.
Assert
( textContentMarks[0] == 1 );
570
Debug.
Assert
( bufPos == 1 );
608
Debug.
Assert
( pSrc <= pSrcEnd );
778
Debug.
Assert
( pSrc <= pSrcEnd );
982
Debug.
Assert
( pSrc <= pSrcEnd );
1071
Debug.
Assert
( pSrc <= pSrcEnd );
1244
Debug.
Assert
( pSrc <= pSrcEnd );
1404
Debug.
Assert
( pSrc <= pSrcEnd );
1538
Debug.
Assert
( localName != null && localName.Length != 0 && prefix != null && ns != null );
System\Xml\Core\XmlEventCache.cs (2)
118
Debug.
Assert
(idxPage + 1 == this.pages.Count);
272
Debug.
Assert
(idxPage + 1 == this.pages.Count);
System\Xml\Core\XmlReader.cs (5)
919
Debug.
Assert
(parentDepth == 0);
939
Debug.
Assert
(NodeType == XmlNodeType.EndElement || NodeType == XmlNodeType.None || ReadState == ReadState.Error);
956
Debug.
Assert
(parentDepth == 0);
977
Debug.
Assert
(NodeType == XmlNodeType.EndElement);
1080
Debug.
Assert
(xtw is XmlTextWriter);
System\Xml\Core\XmlReaderAsync.cs (1)
209
Debug.
Assert
(xtw is XmlTextWriter);
System\Xml\Core\XmlSubtreeReader.cs (27)
347
Debug.
Assert
(reader.NodeType == XmlNodeType.Element);
366
Debug.
Assert
( curNode.type == XmlNodeType.Attribute );
386
Debug.
Assert
( reader.Depth >= initialDepth );
394
Debug.
Assert
( reader.NodeType == XmlNodeType.Element && !reader.IsEmptyElement );
434
Debug.
Assert
( false );
447
Debug.
Assert
( reader.Depth >= initialDepth );
478
Debug.
Assert
( reader.Depth >= initialDepth );
488
Debug.
Assert
( reader.NodeType == XmlNodeType.EndElement ||
502
Debug.
Assert
( reader.Depth >= initialDepth );
536
Debug.
Assert
( false );
716
Debug.
Assert
( AttributeCount > 0 );
719
Debug.
Assert
( false );
741
Debug.
Assert
( false );
791
Debug.
Assert
( false );
834
Debug.
Assert
( AttributeCount > 0 );
837
Debug.
Assert
( false );
859
Debug.
Assert
( false );
908
Debug.
Assert
( false );
960
Debug.
Assert
( false );
1102
Debug.
Assert
( state == State.ClearNsAttributes || state == State.Interactive || state == State.PopNamespaceScope );
1125
Debug.
Assert
( index >= 0 && index <= nsAttrCount );
1154
Debug.
Assert
( state == State.Interactive );
1160
Debug.
Assert
( state == State.ReadElementContentAsBase64 || state == State.ReadElementContentAsBinHex );
1189
Debug.
Assert
( state == State.ReadContentAsBase64 || state == State.ReadContentAsBinHex );
1250
Debug.
Assert
( tmpNode.localName == string.Empty && tmpNode.prefix == string.Empty && tmpNode.name == string.Empty && tmpNode.namespaceUri == string.Empty );
1290
Debug.
Assert
( false );
1297
Debug.
Assert
( state == State.Interactive ||
System\Xml\Core\XmlSubtreeReaderAsync.cs (19)
36
Debug.
Assert
( reader.Depth >= initialDepth );
44
Debug.
Assert
( reader.NodeType == XmlNodeType.Element && !reader.IsEmptyElement );
84
Debug.
Assert
( false );
99
Debug.
Assert
( reader.Depth >= initialDepth );
109
Debug.
Assert
( reader.NodeType == XmlNodeType.EndElement ||
123
Debug.
Assert
( reader.Depth >= initialDepth );
157
Debug.
Assert
( false );
240
Debug.
Assert
( AttributeCount > 0 );
243
Debug.
Assert
( false );
265
Debug.
Assert
( false );
315
Debug.
Assert
( false );
358
Debug.
Assert
( AttributeCount > 0 );
361
Debug.
Assert
( false );
383
Debug.
Assert
( false );
432
Debug.
Assert
( false );
478
Debug.
Assert
( false );
505
Debug.
Assert
( state == State.Interactive );
511
Debug.
Assert
( state == State.ReadElementContentAsBase64 || state == State.ReadElementContentAsBinHex );
540
Debug.
Assert
( state == State.ReadContentAsBase64 || state == State.ReadContentAsBinHex );
System\Xml\Core\XmlTextEncoder.cs (2)
194
Debug.
Assert
( ( ch < 0x20 && !xmlCharType.IsWhiteSpace( ch ) ) || ( ch > 0xFFFD ) );
325
Debug.
Assert
( ( ch < 0x20 && !xmlCharType.IsWhiteSpace( ch ) ) || ( ch > 0xFFFD ) );
System\Xml\Core\XmlTextReaderImpl.cs (167)
349
Debug.
Assert
( nt != null );
369
Debug.
Assert
( index == 0 );
412
Debug.
Assert
( nameTableFromSettings == false );
431
Debug.
Assert
( index == 0 );
485
Debug.
Assert
( false );
635
Debug.
Assert
( baseUri == null );
720
Debug.
Assert
( baseUri == null );
823
Debug.
Assert
(xmlFragment != null);
846
default: Debug.
Assert
(false); goto case XmlNodeType.None;
1170
Debug.
Assert
( nextParsingFunction == ParsingFunction.DocumentContent );
1174
Debug.
Assert
( !ps.appendMode );
1201
Debug.
Assert
( parsingFunction == ParsingFunction.ElementContent ||
1206
Debug.
Assert
( curNode.type == XmlNodeType.Element );
1274
Debug.
Assert
( false );
1297
Debug.
Assert
( false );
1329
Debug.
Assert
( curNode.type == XmlNodeType.EndElement );
1330
Debug.
Assert
( parsingFunction != ParsingFunction.Eof );
1434
Debug.
Assert
( parsingMode == ParsingMode.Full );
1450
Debug.
Assert
( false );
1472
Debug.
Assert
( false );
1487
Debug.
Assert
( value is XmlTextReader );
1502
Debug.
Assert
( outerReader is XmlTextReaderImpl );
2027
Debug.
Assert
( stringBuilder.Length == 0 );
2063
Debug.
Assert
( outerReader is XmlTextReader );
2097
Debug.
Assert
( outerReader is XmlTextReader );
2127
Debug.
Assert
( outerReader is XmlTextReader );
2235
Debug.
Assert
( value >= 0 && value <= ps.charsUsed );
2305
Debug.
Assert
( parsingMode == ParsingMode.Full );
2391
Debug.
Assert
( parsingStatesStackTop == -1 );
2392
Debug.
Assert
( ( systemId != null && systemId.Length > 0 ) || ( publicId != null && publicId.Length > 0 ) );
2405
Debug.
Assert
( ps.appendMode );
2418
Debug.
Assert
( parsingStatesStackTop == -1 );
2419
Debug.
Assert
(internalDtd != null);
2553
Debug.
Assert
( InAttributeValueIterator );
2584
Debug.
Assert
( baseUriStr != null );
2590
Debug.
Assert
( baseUri != null );
2602
Debug.
Assert
( ps.charPos == 0 && ps.charsUsed == 0 && ps.textReader == null );
2603
Debug.
Assert
( baseUriStr != null );
2604
Debug.
Assert
( baseUri == null || ( baseUri.ToString().Equals( baseUriStr ) ) );
2683
Debug.
Assert
( ps.charPos == 0 && ps.charsUsed == 0 && ps.stream == null );
2684
Debug.
Assert
( baseUriStr != null );
2712
Debug.
Assert
( ps.stream == null && ps.textReader == null );
2713
Debug.
Assert
( ps.charPos == 0 && ps.charsUsed == 0 );
2714
Debug.
Assert
( baseUriStr != null );
2715
Debug.
Assert
(str != null);
2766
Debug.
Assert
( parsingFunction == ParsingFunction.SwitchToInteractiveXmlDecl );
2770
Debug.
Assert
( parsingFunction == ParsingFunction.SwitchToInteractiveXmlDecl );
2771
Debug.
Assert
( nextParsingFunction == ParsingFunction.DocumentContent );
2793
Debug.
Assert
( context != null && context.HasDtdInfo );
2816
Debug.
Assert
( url != null && url.Length > 0 );
2817
Debug.
Assert
( compressedStack != null );
2822
Debug.
Assert
(xmlResolver != null || !System.Xml.XmlReaderSettings.EnableLegacyXmlSettings());
2853
Debug.
Assert
( ps.bytes != null );
2854
Debug.
Assert
( ps.bytePos == 0 );
2941
Debug.
Assert
( ps.charPos == 0 );
2969
Debug.
Assert
( ps.stream != null );
3021
Debug.
Assert
( newEncoding.EncodingName != "UTF-8" );
3036
Debug.
Assert
( ps.stream != null && ps.decoder != null && ps.bytes != null );
3186
Debug.
Assert
( ps.charsUsed < ps.chars.Length );
3195
Debug.
Assert
( ps.stream != null && ps.decoder != null && ps.bytes != null );
3196
Debug.
Assert
( maxCharsCount <= ps.chars.Length - ps.charsUsed - 1 );
3217
Debug.
Assert
( maxCharsCount >= charsCount );
3295
Debug.
Assert
( stringBuilder.Length == 0 || isTextDecl );
3486
Debug.
Assert
( !isTextDecl );
3495
Debug.
Assert
( false );
3708
Debug.
Assert
( pos == ps.charsUsed && !ps.isEof );
3731
Debug.
Assert
( index == 0 );
4057
Debug.
Assert
( curNode.type == XmlNodeType.Element );
4221
Debug.
Assert
( index > 0 );
4226
Debug.
Assert
( curNode == startTagNode );
4250
Debug.
Assert
( startTag.type == XmlNodeType.EntityReference );
4261
Debug.
Assert
( attrCount == 0 );
4318
Debug.
Assert
( curNode.type == XmlNodeType.Element );
4325
Debug.
Assert
( curNode.type == XmlNodeType.Element );
4548
Debug.
Assert
( curNode.type == XmlNodeType.Element );
4661
Debug.
Assert
( stringBuilder.Length == 0 );
4857
Debug.
Assert
( ps.isEof );
4873
Debug.
Assert
( false );
4912
Debug.
Assert
( attr.nextAttrValueChunk == null );
4939
Debug.
Assert
( stringBuilder.Length == 0 );
4950
Debug.
Assert
( endPos - startPos > 0 );
4968
Debug.
Assert
( stringBuilder.Length > 0 );
4986
Debug.
Assert
( endPos - startPos > 0 );
5221
Debug.
Assert
( ps.isEof );
5262
Debug.
Assert
( stringBuilder.Length == 0 );
5263
Debug.
Assert
( parsingFunction == ParsingFunction.PartialTextValue ||
5276
Debug.
Assert
( stringBuilder.Length > 0 );
5322
Debug.
Assert
( parsingFunction == ParsingFunction.PartialTextValue || parsingFunction == ParsingFunction.InReadValueChunk ||
5333
Debug.
Assert
( parsingFunction == ParsingFunction.InReadValueChunk );
5337
Debug.
Assert
( ( index > 0 ) ? nextParsingFunction == ParsingFunction.ElementContent : nextParsingFunction == ParsingFunction.DocumentContent );
5347
Debug.
Assert
( parsingFunction == ParsingFunction.InReadContentAsBinary || parsingFunction == ParsingFunction.InReadElementContentAsBinary );
5351
Debug.
Assert
( ( index > 0 ) ? nextParsingFunction == ParsingFunction.ElementContent : nextParsingFunction == ParsingFunction.DocumentContent );
5374
Debug.
Assert
( stringBuilder.Length == 0 );
5408
Debug.
Assert
( ps.chars[ps.charPos] == '&' );
5417
Debug.
Assert
( ps.chars[ps.charPos] == '&' );
5429
Debug.
Assert
( entityType == EntityType.CharacterDec || entityType == EntityType.CharacterHex );
5574
Debug.
Assert
( false );
5613
Debug.
Assert
( lastEntity != null );
5619
Debug.
Assert
( curNode.depth == index );
5630
Debug.
Assert
( curNode.type == XmlNodeType.EntityReference );
5631
Debug.
Assert
( Ref.Equal( lastEntity.Name, curNode.localName ) );
5648
Debug.
Assert
( stringBuilder.Length == 0 );
5670
Debug.
Assert
( ps.charPos < ps.charsUsed );
5703
Debug.
Assert
( stringBuilder.Length == 0 );
5757
Debug.
Assert
( !ps.eolNormalized );
5880
Debug.
Assert
( stringBuilder.Length == 0 );
5935
Debug.
Assert
( !ps.eolNormalized );
6083
Debug.
Assert
(dtdProcessing == DtdProcessing.Ignore);
6369
Debug.
Assert
( ps.isEof );
6455
Debug.
Assert
( ps.isEof );
6463
Debug.
Assert
( ps.chars[startPos] == '&' );
6489
Debug.
Assert
( ps.chars[ps.charPos] == '&' );
6507
Debug.
Assert
( ps.chars[startPos] == '&' && ps.chars[startPos + 1] == '#' );
6602
Debug.
Assert
( pos > 0 );
6632
Debug.
Assert
( ps.chars[ps.charPos] == '&' );
6650
Debug.
Assert
( startPos < ps.charsUsed );
6651
Debug.
Assert
( ps.chars[startPos] == '&' );
6652
Debug.
Assert
( ps.chars[startPos + 1] != '#' );
6741
Debug.
Assert
( pos > 0 );
6882
Debug.
Assert
( nodeIndex < nodes.Length );
6883
Debug.
Assert
( nodes[nodes.Length - 1] == null );
6894
Debug.
Assert
( nodeIndex < nodes.Length );
6900
Debug.
Assert
( nodeIndex < nodes.Length );
6961
Debug.
Assert
( attr.type == XmlNodeType.Attribute );
6990
Debug.
Assert
( ps.isEof );
7070
Debug.
Assert
( curNode.xmlContextPushed );
7154
Debug.
Assert
( xmlResolver != null );
7189
Debug.
Assert
( entity.IsExternal );
7201
Debug.
Assert
( ps.appendMode );
7226
Debug.
Assert
( !entity.IsExternal );
7285
Debug.
Assert
( parsingStatesStackTop == -1 );
7299
Debug.
Assert
( parsingStatesStackTop >= 0 );
7385
Debug.
Assert
( XmlConvert.StrEqual( ps.chars, ps.charPos - 2, 2, "?>" ) );
7392
Debug.
Assert
( XmlConvert.StrEqual( ps.chars, ps.charPos - 3, 3, "-->" ) );
7399
Debug.
Assert
( XmlConvert.StrEqual( ps.chars, ps.charPos - 3, 3, "]]>" ) );
7422
Debug.
Assert
( false );
7425
Debug.
Assert
( incReadState == IncrementalReadState.Text ||
7517
Debug.
Assert
( ps.charPos - pos == 0 );
7518
Debug.
Assert
( ps.charPos - startPos == 0);
7553
Debug.
Assert
( ps.charPos - pos == 0 );
7554
Debug.
Assert
( ps.charPos - startPos == 0 );
7659
Debug.
Assert
( fragmentType == XmlNodeType.Attribute );
7673
Debug.
Assert
( parsingFunction == ParsingFunction.InReadAttributeValue );
7699
Debug.
Assert
( stringBuilder.Length == 0 );
7874
Debug.
Assert
( ps.charPos < ps.charsUsed );
7931
Debug.
Assert
( dtdInfo == null && fragmentParserContext != null && fragmentParserContext.HasDtdInfo );
7949
Debug.
Assert
( parsingFunction != ParsingFunction.InReadContentAsBinary );
7970
Debug.
Assert
( parsingFunction != ParsingFunction.InReadElementContentAsBinary );
7971
Debug.
Assert
( curNode.type == XmlNodeType.Element );
8038
Debug.
Assert
( context != null );
8057
Debug.
Assert
( nt != null );
8071
Debug.
Assert
( nameTableFromSettings == false );
8096
Debug.
Assert
( dtdInfo == null );
8230
Debug.
Assert
(attr != null);
8255
Debug.
Assert
( prefix != null );
8273
Debug.
Assert
(attr != null);
8301
Debug.
Assert
( nodes[index].type == XmlNodeType.Element );
8315
Debug.
Assert
( nodes[index].type == XmlNodeType.Element );
8344
Debug.
Assert
( incReadDecoder != null );
8438
Debug.
Assert
( parsingFunction != ParsingFunction.InReadElementContentAsBinary );
8489
Debug.
Assert
(characters >= 0);
8525
Debug.
Assert
(startPos >= 0);
8526
Debug.
Assert
(endPos < chars.Length);
8527
Debug.
Assert
(startPos <= endPos);
8538
Debug.
Assert
(startPos >= 0);
8539
Debug.
Assert
(endPos < str.Length);
8540
Debug.
Assert
(startPos <= endPos);
System\Xml\Core\XmlTextReaderImplAsync.cs (74)
161
Debug.
Assert
(false);
165
Debug.
Assert
(!ps.appendMode);
185
Debug.
Assert
(parsingFunction == ParsingFunction.ElementContent ||
190
Debug.
Assert
(curNode.type == XmlNodeType.Element);
253
Debug.
Assert
(false);
301
Debug.
Assert
( false );
333
Debug.
Assert
( curNode.type == XmlNodeType.EndElement );
334
Debug.
Assert
( parsingFunction != ParsingFunction.Eof );
723
Debug.
Assert
( parsingMode == ParsingMode.Full );
788
Debug.
Assert
( parsingStatesStackTop == -1 );
789
Debug.
Assert
( ( systemId != null && systemId.Length > 0 ) || ( publicId != null && publicId.Length > 0 ) );
804
Debug.
Assert
( ps.appendMode );
817
Debug.
Assert
( baseUri != null );
828
Debug.
Assert
( ps.charPos == 0 && ps.charsUsed == 0 && ps.textReader == null );
829
Debug.
Assert
( baseUriStr != null );
830
Debug.
Assert
( baseUri == null || ( baseUri.ToString().Equals( baseUriStr ) ) );
906
Debug.
Assert
( ps.charPos == 0 && ps.charsUsed == 0 && ps.stream == null );
907
Debug.
Assert
( baseUriStr != null );
937
Debug.
Assert
( context != null && context.HasDtdInfo );
965
Debug.
Assert
( ps.stream != null );
1096
Debug.
Assert
( ps.charsUsed < ps.chars.Length );
1127
Debug.
Assert
( stringBuilder.Length == 0 || isTextDecl );
1319
Debug.
Assert
( !isTextDecl );
1328
Debug.
Assert
( false );
1481
Debug.
Assert
(pos == ps.charsUsed && !ps.isEof);
1580
Debug.
Assert
(index == 0);
2080
Debug.
Assert
(index > 0);
2085
Debug.
Assert
(curNode == startTagNode);
2124
Debug.
Assert
( startTag.type == XmlNodeType.EntityReference );
2135
Debug.
Assert
( attrCount == 0 );
2193
Debug.
Assert
( curNode.type == XmlNodeType.Element );
2200
Debug.
Assert
( curNode.type == XmlNodeType.Element );
2443
Debug.
Assert
( stringBuilder.Length == 0 );
2644
Debug.
Assert
( ps.isEof );
2660
Debug.
Assert
( false );
2707
Debug.
Assert
(stringBuilder.Length == 0);
2732
Debug.
Assert
(endPos - startPos > 0);
2771
Debug.
Assert
( stringBuilder.Length == 0 );
2790
Debug.
Assert
( endPos - startPos > 0 );
2817
Debug.
Assert
( stringBuilder.Length > 0 );
2835
Debug.
Assert
( endPos - startPos > 0 );
3237
Debug.
Assert
(ps.isEof);
3287
Debug.
Assert
( stringBuilder.Length == 0 );
3288
Debug.
Assert
( parsingFunction == ParsingFunction.PartialTextValue ||
3314
Debug.
Assert
( stringBuilder.Length > 0 );
3360
Debug.
Assert
( parsingFunction == ParsingFunction.PartialTextValue || parsingFunction == ParsingFunction.InReadValueChunk ||
3380
Debug.
Assert
( parsingFunction == ParsingFunction.InReadValueChunk );
3384
Debug.
Assert
( ( index > 0 ) ? nextParsingFunction == ParsingFunction.ElementContent : nextParsingFunction == ParsingFunction.DocumentContent );
3397
Debug.
Assert
( parsingFunction == ParsingFunction.InReadContentAsBinary || parsingFunction == ParsingFunction.InReadElementContentAsBinary );
3401
Debug.
Assert
( ( index > 0 ) ? nextParsingFunction == ParsingFunction.ElementContent : nextParsingFunction == ParsingFunction.DocumentContent );
3424
Debug.
Assert
( stringBuilder.Length == 0 );
3458
Debug.
Assert
( ps.chars[ps.charPos] == '&' );
3469
Debug.
Assert
( ps.chars[ps.charPos] == '&' );
3486
Debug.
Assert
( entityType == EntityType.CharacterDec || entityType == EntityType.CharacterHex );
3639
Debug.
Assert
( stringBuilder.Length == 0 );
3661
Debug.
Assert
( ps.charPos < ps.charsUsed );
3708
Debug.
Assert
( stringBuilder.Length == 0 );
3774
Debug.
Assert
( !ps.eolNormalized );
3901
Debug.
Assert
( stringBuilder.Length == 0 );
3983
Debug.
Assert
( !ps.eolNormalized );
4135
Debug.
Assert
(dtdProcessing == DtdProcessing.Ignore);
4426
Debug.
Assert
( ps.isEof );
4512
Debug.
Assert
( ps.isEof );
4537
Debug.
Assert
( ps.chars[ps.charPos] == '&' );
4567
Debug.
Assert
( ps.chars[ps.charPos] == '&' );
4798
Debug.
Assert
( xmlResolver != null );
4833
Debug.
Assert
( entity.IsExternal );
4846
Debug.
Assert
( ps.appendMode );
4886
Debug.
Assert
( dtdInfo == null && fragmentParserContext != null && fragmentParserContext.HasDtdInfo );
4903
Debug.
Assert
( parsingFunction != ParsingFunction.InReadContentAsBinary );
4924
Debug.
Assert
( parsingFunction != ParsingFunction.InReadElementContentAsBinary );
4925
Debug.
Assert
( curNode.type == XmlNodeType.Element );
4979
Debug.
Assert
( incReadDecoder != null );
5079
Debug.
Assert
( parsingFunction != ParsingFunction.InReadElementContentAsBinary );
System\Xml\Core\XmlTextReaderImplHelpers.cs (17)
276
Debug.
Assert
(internalDtd != null);
402
Debug.
Assert
( type == XmlNodeType.Element );
412
Debug.
Assert
( type == XmlNodeType.Attribute );
469
Debug.
Assert
( value != null );
492
Debug.
Assert
( localName != null );
493
Debug.
Assert
( localName.Length > 0 );
518
Debug.
Assert
( valueStartPos != -1 );
519
Debug.
Assert
( chars != null );
527
Debug.
Assert
( valueStartPos != -1 );
528
Debug.
Assert
( chars != null );
543
Debug.
Assert
( valueStartPos != -1 );
544
Debug.
Assert
( chars != null );
564
Debug.
Assert
( valueStartPos != -1 );
565
Debug.
Assert
( chars != null );
596
Debug.
Assert
( nameWPrefix == null );
641
Debug.
Assert
(x == null || x is NodeData || x is IDtdDefaultAttributeInfo);
642
Debug.
Assert
(y == null || y is NodeData || y is IDtdDefaultAttributeInfo);
System\Xml\Core\XmlTextWriter.cs (3)
832
Debug.
Assert
( false );
1268
Debug.
Assert
(useNsHashtable);
1270
Debug.
Assert
(nsHashtable.ContainsKey(nsStack[i].prefix));
System\Xml\Core\XmlUtf8RawTextWriter.cs (40)
122
Debug.
Assert
( stream != null && settings != null );
217
Debug.
Assert
( name != null && name.Length > 0 );
250
Debug.
Assert
( localName != null && localName.Length > 0 );
251
Debug.
Assert
( prefix != null );
277
Debug.
Assert
( localName != null && localName.Length > 0 );
278
Debug.
Assert
( prefix != null );
303
Debug.
Assert
( localName != null && localName.Length > 0 );
304
Debug.
Assert
( prefix != null );
319
Debug.
Assert
( localName != null && localName.Length > 0 );
320
Debug.
Assert
( prefix != null );
347
Debug.
Assert
( prefix != null && namespaceName != null );
361
Debug.
Assert
( prefix != null );
392
Debug.
Assert
( text != null );
396
Debug.
Assert
( bufPos >= 4 );
424
Debug.
Assert
( text != null );
440
Debug.
Assert
( name != null && name.Length > 0 );
441
Debug.
Assert
( text != null );
458
Debug.
Assert
( name != null && name.Length > 0 );
496
Debug.
Assert
( ws != null );
513
Debug.
Assert
( text != null );
544
Debug.
Assert
( buffer != null );
545
Debug.
Assert
( index >= 0 );
546
Debug.
Assert
( count >= 0 && index + count <= buffer.Length );
563
Debug.
Assert
( buffer != null );
564
Debug.
Assert
( index >= 0 );
565
Debug.
Assert
( count >= 0 && index + count <= buffer.Length );
577
Debug.
Assert
( data != null );
635
Debug.
Assert
( stream != null);
693
Debug.
Assert
( pSrc <= pSrcEnd );
790
Debug.
Assert
( pSrc <= pSrcEnd );
870
Debug.
Assert
( s != null );
896
Debug.
Assert
( pSrc <= pSrcEnd );
941
Debug.
Assert
( pSrc <= pSrcEnd );
1036
Debug.
Assert
( pSrc <= pSrcEnd );
1157
Debug.
Assert
( pSrc <= pSrcEnd );
1247
Debug.
Assert
( XmlCharType.IsSurrogate( *pSrc ) );
1276
Debug.
Assert
( !xmlCharType.IsWhiteSpace( (char)ch ) );
1277
Debug.
Assert
( !xmlCharType.IsAttributeValueChar( (char)ch ) );
1310
Debug.
Assert
( ch >= 0x80 && !XmlCharType.IsSurrogate( ch ) );
1575
Debug.
Assert
( localName != null && localName.Length != 0 && prefix != null && ns != null );
System\Xml\Core\XmlUtf8RawTextWriterAsync.cs (34)
66
Debug.
Assert
( name != null && name.Length > 0 );
100
Debug.
Assert
( localName != null && localName.Length > 0 );
101
Debug.
Assert
( prefix != null );
123
Debug.
Assert
( localName != null && localName.Length > 0 );
124
Debug.
Assert
( prefix != null );
151
Debug.
Assert
( localName != null && localName.Length > 0 );
152
Debug.
Assert
( prefix != null );
168
Debug.
Assert
(localName != null && localName.Length > 0);
169
Debug.
Assert
(prefix != null);
202
Debug.
Assert
( prefix != null && namespaceName != null );
211
Debug.
Assert
( prefix != null );
252
Debug.
Assert
( text != null );
256
Debug.
Assert
( bufPos >= 4 );
285
Debug.
Assert
( text != null );
302
Debug.
Assert
( name != null && name.Length > 0 );
303
Debug.
Assert
( text != null );
321
Debug.
Assert
( name != null && name.Length > 0 );
361
Debug.
Assert
( ws != null );
376
Debug.
Assert
( text != null );
406
Debug.
Assert
( buffer != null );
407
Debug.
Assert
( index >= 0 );
408
Debug.
Assert
( count >= 0 && index + count <= buffer.Length );
424
Debug.
Assert
( buffer != null );
425
Debug.
Assert
( index >= 0 );
426
Debug.
Assert
( count >= 0 && index + count <= buffer.Length );
437
Debug.
Assert
( data != null );
465
Debug.
Assert
( stream != null);
526
Debug.
Assert
( pSrc <= pSrcEnd );
695
Debug.
Assert
( pSrc <= pSrcEnd );
899
Debug.
Assert
( pSrc <= pSrcEnd );
988
Debug.
Assert
( pSrc <= pSrcEnd );
1161
Debug.
Assert
( pSrc <= pSrcEnd );
1321
Debug.
Assert
( pSrc <= pSrcEnd );
1455
Debug.
Assert
( localName != null && localName.Length != 0 && prefix != null && ns != null );
System\Xml\Core\XmlValidatingReaderImpl.cs (5)
493
Debug.
Assert
( false );
633
Debug.
Assert
( value is XmlValidatingReader );
845
Debug.
Assert
( parserContext != null );
846
Debug.
Assert
( coreReaderImpl.DtdInfo == null );
879
Debug.
Assert
( coreReader.NodeType == XmlNodeType.EntityReference );
System\Xml\Core\XmlValidatingReaderImplAsync.cs (4)
62
Debug.
Assert
( false );
213
Debug.
Assert
( parserContext != null );
214
Debug.
Assert
( coreReaderImpl.DtdInfo == null );
229
Debug.
Assert
( coreReader.NodeType == XmlNodeType.EntityReference );
System\Xml\Core\XmlWellFormedWriter.cs (14)
250
Debug.
Assert
(writer != null);
251
Debug.
Assert
(settings != null);
252
Debug.
Assert
(MaxNamespacesWalkCount <= 3);
437
Debug.
Assert
(prefix.Length == 0);
1118
Debug.
Assert
(i >= 0);
1127
Debug.
Assert
(i >= 0);
1385
Debug.
Assert
(stateTable == StateTableAuto);
1419
Debug.
Assert
(prefix == "xmlns");
1572
Debug.
Assert
(useNsHashtable);
1573
Debug.
Assert
(indexFrom <= indexTo);
1575
Debug.
Assert
(nsHashtable.ContainsKey(nsStack[i].prefix));
1775
Debug.
Assert
(ncname != null && ncname.Length > 0);
1861
Debug.
Assert
(attrHashTable.Count == 0);
1896
Debug.
Assert
(prev >= 0 && attrStack[prev].localName == localName);
System\Xml\Core\XmlWellFormedWriterAsync.cs (1)
189
Debug.
Assert
(prefix.Length == 0);
System\Xml\Core\XmlWellFormedWriterHelpers.cs (3)
89
Debug.
Assert
(kind == NamespaceKind.NeedToWrite);
431
Debug.
Assert
(singleStringValue != null);
432
Debug.
Assert
(lastItem == -1);
System\Xml\Core\XmlWellFormedWriterHelpersAsync.cs (1)
27
Debug.
Assert
(kind == NamespaceKind.NeedToWrite);
System\Xml\Core\XmlWrappingReader.cs (1)
29
Debug.
Assert
( baseReader != null );
System\Xml\Core\XmlWrappingWriter.cs (1)
61
Debug.
Assert
(baseWriter != null);
System\Xml\Core\XmlWriter.cs (1)
493
Debug.
Assert
(false);
System\Xml\Core\XmlWriterAsync.cs (1)
445
Debug.
Assert
(false);
System\Xml\Core\XmlWriterSettings.cs (2)
330
Debug.
Assert
(cdataSections != null);
498
Debug.
Assert
(Encoding.UTF8.WebName == "utf-8");
System\Xml\Core\XsdCachingReader.cs (8)
418
Debug.
Assert
(coreReader.NodeType == XmlNodeType.EndElement || (coreReader.NodeType == XmlNodeType.Element && coreReader.IsEmptyElement));
423
Debug.
Assert
(endElementNode.NodeType == XmlNodeType.EndElement);
430
Debug.
Assert
(coreReader.NodeType == XmlNodeType.EndElement || (coreReader.NodeType == XmlNodeType.Element && coreReader.IsEmptyElement));
485
Debug.
Assert
(cacheState == CachingReaderState.Replay);
510
Debug.
Assert
(cacheState == CachingReaderState.Replay);
560
Debug.
Assert
(attIndex <= attributeEvents.Length);
580
Debug.
Assert
(contentIndex <= contentEvents.Length);
602
Debug.
Assert
(coreReader.NodeType == XmlNodeType.Element);
System\Xml\Core\XsdCachingReaderAsync.cs (1)
113
Debug.
Assert
(cacheState == CachingReaderState.Replay);
System\Xml\Core\XsdValidatingReader.cs (17)
925
Debug.
Assert
(attNode != null);
968
Debug.
Assert
(attributePSVI != null);
1054
Debug.
Assert
(moveTo);
1545
Debug.
Assert
(attributePSVI != null);
1668
Debug.
Assert
(atomicValue != null);
1744
Debug.
Assert
(coreReaderNameTable.Get(localName) != null);
1745
Debug.
Assert
(coreReaderNameTable.Get(ns) != null);
1779
Debug.
Assert
(coreReaderNameTable.Get(attrLocalName) != null);
1780
Debug.
Assert
(coreReaderNameTable.Get(ns) != null);
1796
Debug.
Assert
(attIndex <= attributePSVINodes.Length);
1820
Debug.
Assert
(inlineSchemaParser != null);
1921
Debug.
Assert
(this.NodeType == XmlNodeType.Element);
2030
Debug.
Assert
(coreReader.NodeType == XmlNodeType.EndElement);
2038
Debug.
Assert
(false); //Should not happen as the caching reader does not cache elements in simple content
2083
Debug.
Assert
(false); //Should not happen as the caching reader does not cache elements in simple content
2134
Debug.
Assert
(xmlType != null && xmlType.Datatype != null);
2145
Debug.
Assert
(NodeType != XmlNodeType.Attribute);
System\Xml\Core\XsdValidatingReaderAsync.cs (3)
515
Debug.
Assert
(atomicValue != null);
529
Debug.
Assert
(inlineSchemaParser != null);
643
Debug.
Assert
(this.NodeType == XmlNodeType.Element);
System\Xml\Dom\DocumentSchemaValidator.cs (16)
71
Debug.
Assert
(schemas != null && schemas.Count > 0);
91
Debug.
Assert
(nodeToValidate.SchemaInfo != null);
113
Debug.
Assert
(schemaElement.ElementSchemaType == schemaInfo.SchemaType);
302
Debug.
Assert
(elementNode != null);
315
Debug.
Assert
(nameTable.Get(attr.NamespaceURI) != null);
316
Debug.
Assert
(nameTable.Get(attr.LocalName) != null);
384
Debug.
Assert
(schemaAttribute != null);
399
Debug.
Assert
(attributeSchemaInfo != null);
410
Debug.
Assert
(simpleValue != null);
441
Debug.
Assert
(elementToValidate.ParentNode.NodeType != XmlNodeType.Document); //Handle if it is the documentElement seperately
550
Debug.
Assert
(nodeSequenceToValidate[0] == elementToValidate.ParentNode);
604
Debug.
Assert
(elementNode != null);
617
Debug.
Assert
(nameTable.Get(attr.NamespaceURI) != null);
618
Debug.
Assert
(nameTable.Get(attr.LocalName) != null);
675
Debug.
Assert
(child == childToStopAt);
701
Debug.
Assert
(ex != null);
System\Xml\Dom\DocumentXmlWriter.cs (3)
359
Debug.
Assert
(elem != null);
363
Debug.
Assert
(attr != null);
372
Debug.
Assert
(attr != null);
System\Xml\Dom\DocumentXPathNavigator.cs (30)
435
Debug.
Assert
(false);
442
Debug.
Assert
(attributes != null);
458
Debug.
Assert
(attributes != null && attributes.parent != null);
484
Debug.
Assert
(namespaceParent != null);
529
Debug.
Assert
(false);
536
Debug.
Assert
(attributes != null);
537
Debug.
Assert
(0 <= index && index < attributes.Count);
553
Debug.
Assert
(attributes != null && attributes.parent != null);
602
Debug.
Assert
(parent != null);
630
Debug.
Assert
(parent != null);
653
Debug.
Assert
(sibling != null);
1078
Debug.
Assert
( node1 != null );
1079
Debug.
Assert
( node2 != null );
1082
Debug.
Assert
( OwnerNode(node1) == OwnerNode(node2) );
1149
Debug.
Assert
(node1 != node2);
1182
Debug.
Assert
(node1 != node2);
1201
Debug.
Assert
( this.NodeType != XPathNodeType.Attribute && this.NodeType != XPathNodeType.Namespace && this.NodeType != XPathNodeType.All );
1876
Debug.
Assert
( ((XmlNode)nav.UnderlyingObject).NodeType != XmlNodeType.Attribute );
1886
Debug.
Assert
( node != null );
1918
Debug.
Assert
( ((XmlNode)nav.UnderlyingObject).NodeType != XmlNodeType.Attribute );
1919
Debug.
Assert
( Ref.Equal(nav.NameTable.Get( nsAtom ), nsAtom) );
1930
Debug.
Assert
( node != null );
1931
Debug.
Assert
( node.NodeType == XmlNodeType.Element );
1965
Debug.
Assert
( ((XmlNode)nav.UnderlyingObject).NodeType != XmlNodeType.Attribute );
1966
Debug.
Assert
( Ref.Equal(nav.NameTable.Get( localNameAtom ), localNameAtom) );
1967
Debug.
Assert
( Ref.Equal(nav.NameTable.Get( nsAtom ), nsAtom) );
1968
Debug.
Assert
( localNameAtom.Length > 0 ); // Use DocumentXPathNodeIterator_ElemChildren_NoLocalName class for special magic value of localNameAtom
1984
Debug.
Assert
( node != null );
1985
Debug.
Assert
( node.NodeType == XmlNodeType.Element );
1994
Debug.
Assert
( localNameAtom.Length > 0 ); // Use DocumentXPathNodeIterator_ElemChildren_AndSelf_NoLocalName if localName == String.Empty
System\Xml\Dom\DomNameTable.cs (1)
28
Debug.
Assert
( ( entries.Length & mask ) == 0 ); // entries.Length must be a power of two
System\Xml\Dom\XmlAttribute.cs (3)
21
Debug.
Assert
(name!=null);
22
Debug.
Assert
(doc!=null);
49
Debug.
Assert
( OwnerDocument != null );
System\Xml\Dom\XmlAttributeCollection.cs (10)
167
Debug.
Assert
( offset != -1 ); // the if statement above guarantees that the ref node is in the collection
195
Debug.
Assert
( offset != -1 ); // the if statement above guarantees that the ref node is in the collection
260
Debug.
Assert
( retNode is XmlAttribute );
274
Debug.
Assert
(retNode is XmlAttribute);
332
Debug.
Assert
( parentElem != null );
334
Debug.
Assert
( doc != null );
346
Debug.
Assert
( parentElem != null );
348
Debug.
Assert
( doc != null );
360
Debug.
Assert
( -1 == FindNodeOffset( node ));
363
Debug.
Assert
( retNode is XmlAttribute );
System\Xml\Dom\XmlCDataSection.cs (1)
63
Debug.
Assert
( OwnerDocument != null );
System\Xml\Dom\XmlCharacterData.cs (1)
176
Debug.
Assert
(XmlDocument.IsTextNode(node.NodeType) || (node.ParentNode != null && node.ParentNode.NodeType == XmlNodeType.EntityReference));
System\Xml\Dom\XmlComment.cs (1)
34
Debug.
Assert
( OwnerDocument != null );
System\Xml\Dom\XmlDeclaration.cs (1)
134
Debug.
Assert
( OwnerDocument != null );
System\Xml\Dom\XmlDocument.cs (12)
137
Debug.
Assert
( (prefix == null) ? (n.Prefix.Length == 0) : (prefix == n.Prefix) );
138
Debug.
Assert
( n.LocalName == localName );
139
Debug.
Assert
( (namespaceURI == null) ? (n.NamespaceURI.Length == 0) : (n.NamespaceURI == namespaceURI) );
145
Debug.
Assert
(n == null || ((prefix == null) ? (n.Prefix.Length == 0) : (prefix == n.Prefix)));
146
Debug.
Assert
(n == null || n.LocalName == localName);
147
Debug.
Assert
(n == null || ((namespaceURI == null) ? (n.NamespaceURI.Length == 0) : (n.NamespaceURI == namespaceURI)));
153
Debug.
Assert
( (prefix == null) ? (xmlName.Prefix.Length == 0) : (prefix == xmlName.Prefix) );
154
Debug.
Assert
( xmlName.LocalName == localName );
155
Debug.
Assert
( (namespaceURI == null) ? (xmlName.NamespaceURI.Length == 0) : (xmlName.NamespaceURI == namespaceURI) );
802
Debug.
Assert
( ((XmlAttribute)node).Specified );
864
Debug.
Assert
( toNode.NodeType != XmlNodeType.EntityReference );
1482
Debug.
Assert
( doc == this );
System\Xml\Dom\XmlDocumentFragment.cs (3)
102
Debug.
Assert
( OwnerDocument != null );
143
Debug.
Assert
(newChild != null); //should be checked that newChild is not null before this function call
155
Debug.
Assert
(newChild != null); //should be checked that newChild is not null before this function call
System\Xml\Dom\XmlDocumentType.cs (2)
32
Debug.
Assert
( doc != null );
58
Debug.
Assert
( OwnerDocument != null );
System\Xml\Dom\XmlElement.cs (5)
23
Debug.
Assert
(name!=null);
48
Debug.
Assert
( OwnerDocument != null );
404
Debug.
Assert
(n != null);
415
Debug.
Assert
(n != null);
421
Debug.
Assert
(n != null);
System\Xml\Dom\XmlElementList.cs (11)
31
Debug.
Assert
( parent != null );
32
Debug.
Assert
( parent.NodeType == XmlNodeType.Element || parent.NodeType == XmlNodeType.Document );
34
Debug.
Assert
( parent.Document != null );
67
Debug.
Assert
( parent.Document != null );
69
Debug.
Assert
( nt != null );
77
Debug.
Assert
( parent.Document != null );
79
Debug.
Assert
( nt != null );
98
Debug.
Assert
( curNode != null );
122
Debug.
Assert
( curNode != null );
160
Debug.
Assert
( n!= null );
172
Debug.
Assert
( n!= null );
System\Xml\Dom\XmlEntityReference.cs (1)
76
Debug.
Assert
( OwnerDocument != null );
System\Xml\Dom\XmlLoader.cs (18)
53
Debug.
Assert
( this.reader != null );
54
Debug.
Assert
( parentDoc != null );
132
Debug.
Assert
( parent.NodeType == XmlNodeType.Element );
151
Debug.
Assert
( parent == null );
203
Debug.
Assert
( node != null );
223
Debug.
Assert
(reader.NodeType == XmlNodeType.Attribute);
256
Debug.
Assert
( node != null );
264
Debug.
Assert
( reader.IsDefault );
308
Debug.
Assert
( node != null );
315
Debug.
Assert
( reader.NodeType == XmlNodeType.EntityReference );
334
Debug.
Assert
( reader.NodeType == XmlNodeType.XmlDeclaration );
355
Debug.
Assert
( false );
369
Debug.
Assert
( reader.NodeType == XmlNodeType.DocumentType );
434
Debug.
Assert
( parent.NodeType == XmlNodeType.Element );
485
Debug.
Assert
( node != null );
658
Debug.
Assert
( parentNode.NodeType != XmlNodeType.Document );
660
Debug.
Assert
( this.doc != null );
822
Debug.
Assert
( tr.EntityHandling == EntityHandling.ExpandCharEntities );
System\Xml\Dom\XmlName.cs (2)
74
Debug.
Assert
( prefix != null );
91
Debug.
Assert
( Ref.Equal( name, ownerDoc.NameTable.Get( name ) ) );
System\Xml\Dom\XmlNode.cs (8)
39
Debug.
Assert
( doc != null );
103
Debug.
Assert
(parentNode != null);
150
Debug.
Assert
( parentNode != null );
674
Debug.
Assert
( firstNode.NodeType == XmlNodeType.Text
1185
Debug.
Assert
(prevNode.IsText);
1186
Debug.
Assert
(nextNode.IsText);
1192
Debug.
Assert
(prevNode.IsText);
1193
Debug.
Assert
(nextNode.IsText);
System\Xml\Dom\XmlNodeReader.cs (11)
104
Debug.
Assert
( nt == XmlNodeType.XmlDeclaration || nt == XmlNodeType.DocumentType );
121
Debug.
Assert
( curNode.NodeType == XmlNodeType.XmlDeclaration || curNode.NodeType == XmlNodeType.DocumentType );
125
Debug.
Assert
( nAttrInd >= 0 && nAttrInd < AttributeCount );
207
Debug.
Assert
( curNode.NodeType == XmlNodeType.XmlDeclaration || curNode.NodeType == XmlNodeType.DocumentType );
208
Debug.
Assert
( nAttrInd >= 0 && nAttrInd < AttributeCount );
224
Debug.
Assert
( nt == XmlNodeType.XmlDeclaration || nt == XmlNodeType.DocumentType );
225
Debug.
Assert
( nAttrInd >= 0 && nAttrInd < AttributeCount );
531
Debug.
Assert
( IsOnDeclOrDocType );
889
Debug.
Assert
( curNode.NodeType == XmlNodeType.XmlDeclaration || curNode.NodeType == XmlNodeType.DocumentType );
914
Debug.
Assert
( curNode != null );
1378
Debug.
Assert
( curDepth == 0 );
System\Xml\Dom\XmlProcessingInstruction.cs (1)
80
Debug.
Assert
( OwnerDocument != null );
System\Xml\Dom\XmlSignificantWhiteSpace.cs (1)
65
Debug.
Assert
( OwnerDocument != null );
System\Xml\Dom\XmlText.cs (1)
66
Debug.
Assert
( OwnerDocument != null );
System\Xml\Dom\XmlWhitespace.cs (1)
78
Debug.
Assert
( OwnerDocument != null );
System\Xml\Resolvers\XmlPreloadedResolver.cs (2)
191
Debug.
Assert
(Rss091_Dtd.Length == 1);
337
Debug.
Assert
(uri != null);
System\Xml\Schema\BaseProcessor.cs (2)
26
Debug.
Assert
(nameTable != null);
128
Debug.
Assert
(item is XmlSchemaElement);
System\Xml\Schema\BaseValidator.cs (2)
49
Debug.
Assert
(schemaCollection == null || schemaCollection.NameTable == reader.NameTable);
155
Debug.
Assert
(names.Count > 0);
System\Xml\Schema\BitSet.cs (1)
68
Debug.
Assert
(startFrom >= -1 && startFrom <= count);
System\Xml\Schema\Chameleonkey.cs (1)
61
Debug.
Assert
((chameleonLocation.OriginalString.Length == 0 && originalSchema != null)
System\Xml\Schema\CompiledidEntityConstraint.cs (1)
57
Debug.
Assert
(fields.Count > 0);
System\Xml\Schema\ConstraintStruct.cs (3)
190
Debug.
Assert
(this.dstruct != null);
196
Debug.
Assert
(this.dstruct != null);
343
Debug.
Assert
(dim > 0);
System\Xml\Schema\ContentValidator.cs (15)
84
Debug.
Assert
(particles.Count == last + 1);
117
Debug.
Assert
(particles.Count == last + 1);
854
Debug.
Assert
(parent is SequenceNode);
855
Debug.
Assert
(this == parent.RightChild);
1126
Debug.
Assert
(ContentType == XmlSchemaContentType.ElementOnly || ContentType == XmlSchemaContentType.Mixed);
1135
Debug.
Assert
(!IsOpen);
1226
Debug.
Assert
(lrNode != null);
1240
Debug.
Assert
(lrNode1 != null);
1340
Debug.
Assert
(state == (int)stateTable[statePosSet]); // just make sure that statePosSet is for correct state
1668
Debug.
Assert
(minMaxNodesCount != 0);
1761
Debug.
Assert
(minMaxNodesCount > 0);
1783
Debug.
Assert
(lrNode != null);
1865
Debug.
Assert
(runningPositions[i].curpos != null);
1900
Debug.
Assert
(runningPositions[i].curpos != null);
1949
Debug.
Assert
(elements.Count > 0);
System\Xml\Schema\DataTypeImplementation.cs (7)
163
Debug.
Assert
(qname != null && dataType != null);
178
Debug.
Assert
(derivedType != null && baseType != null);
331
Debug.
Assert
(currentType != null);
877
Debug.
Assert
(arr1 != null && arr2 != null);
885
Debug.
Assert
(atomicValues2 != null);
940
Debug.
Assert
(valuesToCheck != null);
1023
Debug.
Assert
(array.GetType() == ListValueType);
System\Xml\Schema\DtdParser.cs (25)
247
Debug.
Assert
(readerAdapter != null);
481
Debug.
Assert
( ParsingInternalSubset );
486
Debug.
Assert
( externalEntitiesDepth == 0 );
567
Debug.
Assert
( curPos > 0 && chars[curPos-1] == ']' );
595
Debug.
Assert
( false );
599
Debug.
Assert
( scanningFunction == ScanningFunction.SubsetContent );
1533
Debug.
Assert
( idTokenType == Token.PUBLIC );
1672
Debug.
Assert
( false );
2303
Debug.
Assert
( chars[curPos] == '"' || chars[curPos] == '\'' );
2500
Debug.
Assert
( curPos - tokenStartPos == 0 );
2975
Debug.
Assert
( chars[curPos] == 'P' );
2991
Debug.
Assert
( chars[curPos] == 'S' );
3010
Debug.
Assert
( curPos - tokenStartPos > 0 );
3027
Debug.
Assert
( curPos - tokenStartPos > 0 );
3045
Debug.
Assert
( curPos == 0 || chars[curPos-1] == '"' || chars[curPos-1] == '\'' );
3073
Debug.
Assert
( internalSubsetValueSb != null );
3087
Debug.
Assert
( chars[curPos] == '&' || chars[curPos] == '%' );
3095
Debug.
Assert
( chars[curPos-1] == ';' );
3151
Debug.
Assert
( !ParsingInternalSubset || freeFloatingDtd );
3152
Debug.
Assert
( currentEntityId == 0 );
3172
Debug.
Assert
( chars[curPos-1] == ';' );
3221
Debug.
Assert
( validate );
3226
Debug.
Assert
( validate );
3231
Debug.
Assert
( validate );
3335
Debug.
Assert
( startPos < charsUsed );
System\Xml\Schema\DtdParserAsync.cs (13)
126
Debug.
Assert
( ParsingInternalSubset );
131
Debug.
Assert
( externalEntitiesDepth == 0 );
212
Debug.
Assert
( curPos > 0 && chars[curPos-1] == ']' );
240
Debug.
Assert
( false );
244
Debug.
Assert
( scanningFunction == ScanningFunction.SubsetContent );
1147
Debug.
Assert
( idTokenType == Token.PUBLIC );
1289
Debug.
Assert
( false );
1760
Debug.
Assert
( chars[curPos] == '"' || chars[curPos] == '\'' );
1957
Debug.
Assert
( curPos - tokenStartPos == 0 );
2408
Debug.
Assert
( chars[curPos] == 'P' );
2424
Debug.
Assert
( chars[curPos] == 'S' );
2453
Debug.
Assert
( chars[curPos] == '&' || chars[curPos] == '%' );
2461
Debug.
Assert
( chars[curPos-1] == ';' );
System\Xml\Schema\DtdValidator.cs (2)
42
Debug.
Assert
(reader != null);
129
Debug.
Assert
(reader.NodeType == XmlNodeType.Element);
System\Xml\Schema\FacetChecker.cs (2)
378
Debug.
Assert
(false);
1341
Debug.
Assert
(values != null);
System\Xml\Schema\Inference\Infer.cs (6)
302
Debug.
Assert
(compiledAttributes != null); //AttributeUses is never null
1016
Debug.
Assert
(elem.ElementDecl == null);
1216
Debug.
Assert
(xtr.NodeType == XmlNodeType.Attribute);
1256
Debug.
Assert
(ct != null);
1267
Debug.
Assert
(ct != null); //either the user-defined type itself is a complex type or we switched from a simple type to a complex type
1271
Debug.
Assert
(sce != null);
System\Xml\Schema\NamespaceList.cs (7)
29
Debug.
Assert
(targetNamespace != null);
60
Debug.
Assert
(set != null);
96
Debug.
Assert
(false);
132
Debug.
Assert
(false);
148
Debug.
Assert
(super.type == ListType.Set);
163
Debug.
Assert
(o1 != o2);
251
Debug.
Assert
(o1 != o2); //clause 1
System\Xml\Schema\Parser.cs (8)
89
Debug.
Assert
(schemaType == SchemaType.XDR);
130
Debug.
Assert
(false);
211
Debug.
Assert
(parentNode != null);
287
Debug.
Assert
(currentNode != null);
288
Debug.
Assert
(parentNode != null);
295
Debug.
Assert
( reader.NodeType == XmlNodeType.Element );
364
Debug.
Assert
(reader.NodeType == XmlNodeType.Attribute);
387
Debug.
Assert
(reader.NodeType == XmlNodeType.EntityReference);
System\Xml\Schema\ParserAsync.cs (1)
49
Debug.
Assert
(schemaType == SchemaType.XDR);
System\Xml\Schema\Preprocessor.cs (4)
274
Debug.
Assert
(import != null);
616
Debug.
Assert
(false);
719
Debug.
Assert
(currentSchema != null);
846
Debug.
Assert
((currentSchemaObject as XmlSchema) == null); //The current object should not be schema
System\Xml\Schema\SchemaCollectionCompiler.cs (8)
48
Debug.
Assert
(!members.Contains(element));
403
Debug.
Assert
(group.CanonicalParticle != null);
812
Debug.
Assert
(baseType.ElementDecl.ContentValidator != null);
1110
Debug.
Assert
(false);
1474
Debug.
Assert
(attribute.Use != XmlSchemaUse.Prohibited);
1849
Debug.
Assert
(xe.ElementSchemaType != null);
2078
Debug.
Assert
(!p.IsEmpty);
2093
Debug.
Assert
(false);
System\Xml\Schema\SchemaInfo.cs (1)
276
Debug.
Assert
(false);
System\Xml\Schema\SchemaSetCompiler.cs (12)
98
Debug.
Assert
(schemaForSchema != null);
388
Debug.
Assert
(examplar != null); //Headelement presence is checked while building subst groups
467
Debug.
Assert
(group.CanonicalParticle != null);
1286
Debug.
Assert
(false);
1756
Debug.
Assert
(attribute.Use != XmlSchemaUse.Prohibited);
2195
Debug.
Assert
(xe.ElementSchemaType != null);
2212
Debug.
Assert
(decl != null);
2434
Debug.
Assert
(!((XmlSchemaParticle)particles[i]).IsEmpty);
2449
Debug.
Assert
(false);
2572
Debug.
Assert
(baseFixedValue != null);
2576
Debug.
Assert
(derivedFixedValue != null);
2588
Debug.
Assert
(simpleFixedValue != null);
System\Xml\Schema\XdrBuilder.cs (1)
578
Debug.
Assert
(_GroupDef != null);
System\Xml\Schema\XmlAtomicValue.cs (1)
137
Debug.
Assert
(qname != null); //string representation is handled in a different overload
System\Xml\Schema\XmlSchema.cs (2)
253
Debug.
Assert
(this.isPreprocessed);
624
Debug.
Assert
(extList != null && schema != null);
System\Xml\Schema\XmlSchemaObject.cs (4)
86
get { Debug.
Assert
(false); return null; }
87
set { Debug.
Assert
(false); }
95
get { Debug.
Assert
(false); return null; }
96
set { Debug.
Assert
(false); }
System\Xml\Schema\XmlSchemaObjectTable.cs (8)
32
Debug.
Assert
(oldValue != null);
34
Debug.
Assert
(matchedIndex >= 0);
36
Debug.
Assert
(entries[matchedIndex].qname == name);
49
Debug.
Assert
(oldValue != null);
51
Debug.
Assert
(entries[matchedIndex].qname == name);
66
Debug.
Assert
(matchedIndex >= 0);
67
Debug.
Assert
(entries[matchedIndex].qname == name);
84
Debug.
Assert
(table.Count == entries.Count);
System\Xml\Schema\XmlSchemaSet.cs (2)
878
Debug.
Assert
(ns != null);
887
Debug.
Assert
(schema.BaseUri.Equals(schemaUri));
System\Xml\Schema\XmlSchemaSimpleType.cs (1)
26
Debug.
Assert
(SchemaContentType == XmlSchemaContentType.TextOnly);
System\Xml\Schema\XmlSchemaValidator.cs (27)
309
Debug.
Assert
(validatedNamespaces != null);
545
Debug.
Assert
(currentState == ValidatorState.TopLevelAttribute); //Re-set state back to start on error with partial validation type
554
Debug.
Assert
(currentElementDecl != null);
556
Debug.
Assert
(ct != null);
570
Debug.
Assert
(attributeDef != null);
586
Debug.
Assert
(simpleValue != null);
710
Debug.
Assert
(names.Count > 0);
817
Debug.
Assert
(context.Validity != XmlSchemaValidity.Valid);
920
Debug.
Assert
(attSchemaInfo != null);
1216
Debug.
Assert
(currentElementDecl.Datatype != null);
1266
Debug.
Assert
(simpleValue != null);
1277
Debug.
Assert
(decl != null && decl.SchemaType != null);
1312
Debug.
Assert
(validationStack.Length > 1);
1372
Debug.
Assert
(partialValidationType is XmlSchemaAttribute);
1400
Debug.
Assert
(elementDecl.DefaultValueTyped != null);
1527
Debug.
Assert
(elementDecl.ContentValidator.ContentType == XmlSchemaContentType.Mixed && elementDecl.DefaultValueTyped != null);
1537
Debug.
Assert
(decl != null);
1548
Debug.
Assert
(xmlResolver != null);
1625
Debug.
Assert
(dtype != null);
1657
Debug.
Assert
(dtype != null);
1762
Debug.
Assert
(currentElementDecl != null);
1934
Debug.
Assert
(datatype != null);
2107
Debug.
Assert
(contentValidator is DfaContentValidator || contentValidator is NfaContentValidator || contentValidator is RangeContentValidator || contentValidator is AllElementsContentValidator);
2125
Debug.
Assert
(names.Count > 0);
2164
Debug.
Assert
(names.Count > 0);
2195
Debug.
Assert
(builder.Length != 0);
2282
Debug.
Assert
(nsList.Length > 0);
System\Xml\Schema\XmlValueConverter.cs (1)
3317
Debug.
Assert
(schemaType.DerivedBy == XmlSchemaDerivationMethod.Union);
System\Xml\Schema\XsdBuilder.cs (5)
698
Debug.
Assert
(this.currentEntry.InitFunc != null);
701
Debug.
Assert
(xso != null);
1265
Debug.
Assert
(false);
2173
Debug.
Assert
(false);
2216
Debug.
Assert
(false);
System\Xml\Schema\XsdDuration.cs (1)
109
Debug.
Assert
(durationType == DurationType.Duration || durationType == DurationType.DayTimeDuration);
System\Xml\Schema\XsdValidator.cs (1)
409
Debug.
Assert
(attnDef.SchemaType != null);
System\Xml\Serialization\CodeExporter.cs (1)
161
Debug.
Assert
(comments != null);
System\Xml\Serialization\CodeGenerator.cs (28)
59
System.Diagnostics.Debug.
Assert
(typeBuilder != null);
138
System.Diagnostics.Debug.
Assert
(argList != null && argList.ContainsKey(name));
143
System.Diagnostics.Debug.
Assert
(currentScope != null && currentScope.ContainsKey(name));
183
System.Diagnostics.Debug.
Assert
(false);
222
Debug.
Assert
(this.currentScope.parent != null);
230
Debug.
Assert
(freeLocals != null);
249
Debug.
Assert
(!currentScope.ContainsKey(name));
265
Debug.
Assert
(local.LocalType == type);
303
Debug.
Assert
(forState != null);
610
Debug.
Assert
(methodInfo != null);
618
Debug.
Assert
(ctor != null);
623
Debug.
Assert
(constructorInfo != null);
741
System.Diagnostics.Debug.
Assert
(memberInfo.MemberType == MemberTypes.Property);
752
System.Diagnostics.Debug.
Assert
(getMethod != null);
773
System.Diagnostics.Debug.
Assert
(memberInfo.MemberType == MemberTypes.Property);
784
System.Diagnostics.Debug.
Assert
(getMethod != null);
807
System.Diagnostics.Debug.
Assert
(memberInfo.MemberType == MemberTypes.Property);
817
System.Diagnostics.Debug.
Assert
(setMethod != null);
1215
Debug.
Assert
(currentScope.ContainsKey(name));
1225
Debug.
Assert
(local.LocalType == type);
1234
Debug.
Assert
(currentScope.ContainsKey(name));
1236
Debug.
Assert
(local.LocalType == type);
1439
Debug.
Assert
(!opCode.Equals(OpCodes.Nop));
1727
Debug.
Assert
(ifState != null);
1958
Debug.
Assert
(initElseIfStack == -1);
1967
Debug.
Assert
(initIfStack == -1);
1984
Debug.
Assert
(initIfStack == -1 && initElseIfStack == -1);
2002
Debug.
Assert
(initIfStack == -1 && initElseIfStack == -1);
System\Xml\Serialization\SourceInfo.cs (4)
105
Debug.
Assert
(get_Item != null);
169
Debug.
Assert
(match.Groups["arg"].Value == Arg);
170
Debug.
Assert
(match.Groups["cast"].Value == CodeIdentifier.GetCSharpName(Type));
192
System.Diagnostics.Debug.
Assert
(targetType == nullableType || targetType.IsAssignableFrom(nullableType.GetGenericArguments()[0]));
System\Xml\Serialization\Types.cs (2)
976
Debug.
Assert
(propertyInfo != null);
977
Debug.
Assert
(typeDesc != null);
System\Xml\Serialization\XmlSerializationILGen.cs (5)
46
System.Diagnostics.Debug.
Assert
(access == "public");
60
get { System.Diagnostics.Debug.
Assert
(moduleBuilder != null); return moduleBuilder; }
61
set { System.Diagnostics.Debug.
Assert
(moduleBuilder == null && value != null); moduleBuilder = value; }
99
System.Diagnostics.Debug.
Assert
(methodBuilders.ContainsKey(methodName));
567
System.Diagnostics.Debug.
Assert
(memberInfos.ContainsKey(source.Substring(3)));
System\Xml\Serialization\XmlSerializationReaderILGen.cs (20)
254
Debug.
Assert
(idNameFields.ContainsKey(id));
311
Debug.
Assert
(node == "null" || node == "(object)p");
699
System.Diagnostics.Debug.
Assert
(source == "Reader.ReadElementString()" || source == "Reader.ReadString()"
831
System.Diagnostics.Debug.
Assert
(source == "Reader.Value" || source == "Reader.ReadElementString()");
939
System.Diagnostics.Debug.
Assert
(source == "false");
1080
Debug.
Assert
(get_TableName != null);
1777
System.Diagnostics.Debug.
Assert
(source == "Reader");
2069
System.Diagnostics.Debug.
Assert
(elseCall == "UnknownNode");
2363
Debug.
Assert
(anyText != null);
2665
Debug.
Assert
(!soapRefs);
2735
Debug.
Assert
(match.Groups["locA1"].Value == match.Groups["locA2"].Value);
2736
Debug.
Assert
(match.Groups["locA1"].Value == match.Groups["locA3"].Value);
2737
Debug.
Assert
(match.Groups["locI1"].Value == match.Groups["locI2"].Value);
2781
System.Diagnostics.Debug.
Assert
(ilg.GetVariableType(ilg.GetVariable(match.Groups["a"].Value)).IsArray);
2800
Debug.
Assert
(elementType != null && variable is LocalBuilder);
2809
Debug.
Assert
(memberInfos.ContainsKey(source.Substring(3)));
2834
Debug.
Assert
(!localA.LocalType.IsGenericType || (localA.LocalType.GetGenericArguments().Length == 1 && localA.LocalType.GetGenericArguments()[0].IsAssignableFrom(elementType)));
2842
Debug.
Assert
(Add != null);
2855
System.Diagnostics.Debug.
Assert
(varType.IsArray);
2881
Debug.
Assert
(memberInfos.ContainsKey(source.Substring(3)));
System\Xml\Serialization\XmlSerializationWriterILGen.cs (11)
1008
System.Diagnostics.Debug.
Assert
(xmlnsSource.StartsWith("o.@", StringComparison.Ordinal));
1327
System.Diagnostics.Debug.
Assert
(parent == "o" || parent == "p");
2121
Debug.
Assert
(!local.LocalType.IsValueType);
2300
Debug.
Assert
(type.IsValueType);
2377
Debug.
Assert
(initValue.MemberInfo != null);
2378
Debug.
Assert
(initValue.MemberInfo.Name == initValue.Arg.Substring(3));
2418
Debug.
Assert
(typeName == arrayTypeDesc.CSharpName || typeName == arrayTypeDesc.CSharpName + "[]");
2428
Debug.
Assert
(type != null);
2429
Debug.
Assert
(ilg != null);
2436
Debug.
Assert
(arrayType != null);
2437
Debug.
Assert
(ilg != null);
System\Xml\ValidateNames.cs (7)
49
Debug.
Assert
(s != null && offset <= s.Length);
86
Debug.
Assert
(s != null && offset <= s.Length);
128
Debug.
Assert
(s != null && offset <= s.Length);
184
Debug.
Assert
(s != null && offset <= s.Length);
383
Debug.
Assert
(offsetBadChar < s.Length);
409
Debug.
Assert
(offsetBadChar < s.Length);
473
Debug.
Assert
(prefix != null && localName != null && ns != null);
System\Xml\XmlCharType.cs (9)
429
Debug.
Assert
( memStream.Length == CharPropertiesSize );
478
Debug.
Assert
( s_CharProperties != null );
712
Debug.
Assert
(str != null);
713
Debug.
Assert
(startPos + len <= str.Length);
714
Debug.
Assert
(startPos <= str.Length);
725
Debug.
Assert
( chars != null );
726
Debug.
Assert
( startPos + len <= chars.Length );
727
Debug.
Assert
( startPos <= chars.Length );
750
Debug.
Assert
(start <= end);
System\Xml\XmlEncoding.cs (2)
351
Debug.
Assert
( i == 1 );
395
Debug.
Assert
( i == 1 );
System\Xml\XmlException.cs (3)
244
Debug.
Assert
(invCharIndex < data.Length);
245
Debug.
Assert
(invCharIndex < length);
246
Debug.
Assert
(length <= data.Length);
System\Xml\XmlNamespacemanager.cs (4)
116
Debug.
Assert
( decl >= 2 );
170
Debug.
Assert
( hashTable == null );
222
Debug.
Assert
( i >= 2 );
232
Debug.
Assert
( prefix != null );
System\Xml\XmlQualifiedName.cs (3)
221
Debug.
Assert
(name != null && ns != null);
228
Debug.
Assert
(ns != null);
240
Debug.
Assert
(name != null);
System\Xml\XPath\Internal\AttributeQuery.cs (1)
42
Debug.
Assert
(! currentNode.NamespaceURI.Equals(XmlReservedNs.NsXmlNs));
System\Xml\XPath\Internal\Axis.cs (2)
42
Debug.
Assert
(prefix != null);
43
Debug.
Assert
(name != null);
System\Xml\XPath\Internal\BaseAxisQuery.cs (3)
37
Debug.
Assert
(qyInput != null);
64
Debug.
Assert
(context != null);
109
Debug.
Assert
(this is AttributeQuery || this is ChildrenQuery);
System\Xml\XPath\Internal\BooleanExpr.cs (2)
22
Debug.
Assert
(op == Operator.Op.AND || op == Operator.Op.OR);
23
Debug.
Assert
(opnd1 != null && opnd2 != null);
System\Xml\XPath\Internal\CacheAxisQuery.cs (2)
39
Debug.
Assert
(0 <= count && count <= outputBuffer.Count);
48
Debug.
Assert
(0 <= count && count <= outputBuffer.Count);
System\Xml\XPath\Internal\CacheOutputQuery.cs (2)
48
Debug.
Assert
(0 <= count && count <= outputBuffer.Count);
57
Debug.
Assert
(0 <= count && count <= outputBuffer.Count);
System\Xml\XPath\Internal\CompiledXPathExpr.cs (1)
101
Debug.
Assert
(prefix != null);
System\Xml\XPath\Internal\ForwardPositionQuery.cs (1)
17
Debug.
Assert
(input != null);
System\Xml\XPath\Internal\LogicalExpr.cs (3)
22
Debug.
Assert
(
85
Debug.
Assert
(op == Operator.Op.EQ || op == Operator.Op.NE);
112
Debug.
Assert
(
System\Xml\XPath\Internal\NamespaceQuery.cs (1)
52
Debug.
Assert
(e.NodeType == XPathNodeType.Namespace);
System\Xml\XPath\Internal\NumericExpr.cs (3)
22
Debug.
Assert
(
27
Debug.
Assert
(opnd1 != null && opnd2 != null);
56
Debug.
Assert
(op == Operator.Op.PLUS || op == Operator.Op.MINUS || op == Operator.Op.MOD || op == Operator.Op.DIV || op == Operator.Op.MUL);
System\Xml\XPath\Internal\Operator.cs (1)
51
Debug.
Assert
(Op.EQ <= op && op <= Op.GE);
System\Xml\XPath\Internal\Query.cs (1)
140
Debug.
Assert
(0 <= l && l < r);
System\Xml\XPath\Internal\SortQuery.cs (6)
75
Debug.
Assert
(0 <= count && count <= results.Count);
84
Debug.
Assert
(0 <= count && count <= results.Count);
148
Debug.
Assert
(this.expressions.Length == this.comparers.Length);
149
Debug.
Assert
(0 < this.expressions.Length);
150
Debug.
Assert
(0 <= numSorts && numSorts <= this.expressions.Length);
162
Debug.
Assert
(numSorts < this.expressions.Length);
System\Xml\XPath\Internal\StringFunctions.cs (1)
82
Debug.
Assert
(GetXPathType(argVal) == XPathResultType.Number);
System\Xml\XPath\Internal\XPathArrayIterator.cs (2)
48
Debug.
Assert
(index <= list.Count);
61
Debug.
Assert
(index <= list.Count);
System\Xml\XPath\Internal\XPathMultyIterator.cs (1)
92
Debug.
Assert
(firstNotEmpty <= item && item < arr.Length);
System\Xml\XPath\Internal\XPathParser.cs (4)
364
Debug.
Assert
(nodeType != XPathNodeType.Root);
411
Debug.
Assert
(IsPrimaryExpr(this.scanner));
572
Debug.
Assert
(this.scanner.CanBeFunction);
762
Debug.
Assert
(scaner.Kind == XPathScanner.LexKind.Axe);
System\Xml\XPath\Internal\XPathScanner.cs (15)
43
Debug.
Assert
(0 <= xpathExprIndex && xpathExprIndex <= xpathExpr.Length);
71
Debug.
Assert
(this.kind == LexKind.Name || this.kind == LexKind.Axe);
72
Debug.
Assert
(this.name != null);
79
Debug.
Assert
(this.kind == LexKind.Name);
80
Debug.
Assert
(this.prefix != null);
87
Debug.
Assert
(this.kind == LexKind.String);
88
Debug.
Assert
(this.stringValue != null);
95
Debug.
Assert
(this.kind == LexKind.Number);
96
Debug.
Assert
(this.numberValue != double.NaN);
105
Debug.
Assert
(this.kind == LexKind.Name);
243
Debug.
Assert
(this.CurerntChar == '.' || XmlCharType.IsDigit(this.CurerntChar));
259
Debug.
Assert
(XmlCharType.IsDigit(this.CurerntChar));
261
Debug.
Assert
(0 <= start && this.xpathExpr[start] == '.');
280
Debug.
Assert
(this.CurerntChar == endChar);
286
Debug.
Assert
(xmlCharType.IsStartNCNameSingleChar(this.CurerntChar)
System\Xml\XPath\Internal\XPathSingletonIterator.cs (1)
20
Debug.
Assert
(nav != null);
System\Xml\XPath\XPathDocument.cs (4)
195
Debug.
Assert
(reader.LocalName == "xmlns");
199
Debug.
Assert
(reader.Prefix == "xmlns");
357
Debug.
Assert
(pageElem[idxElem].NodeType == XPathNodeType.Element && pageNmsp[idxNmsp].NodeType == XPathNodeType.Namespace);
370
Debug.
Assert
(pageElem[idxElem].NodeType == XPathNodeType.Element);
System\Xml\XPath\XPathNavigator.cs (5)
962
Debug.
Assert
( args != null );
1805
Debug.
Assert
(reader.LocalName == "xmlns");
1809
Debug.
Assert
(reader.Prefix == "xmlns");
1861
Debug.
Assert
(reader.LocalName == "xmlns");
1865
Debug.
Assert
(reader.Prefix == "xmlns");
System\Xml\XPath\XPathNavigatorReader.cs (2)
448
Debug.
Assert
( value == null );
554
Debug.
Assert
( XPathNodeType.Namespace == this.nav.NodeType );
System\Xml\Xslt\XslTransform.cs (4)
258
Debug.
Assert
(stylesheet != null);
264
Debug.
Assert
(compiler.CompiledStylesheet != null);
265
Debug.
Assert
(compiler.QueryStore != null);
266
Debug.
Assert
(compiler.QueryStore != null);
System.Xml.Linq (1)
System\Xml\Linq\XLinq.cs (1)
726
Debug.
Assert
((object)entries[entryIdx].Value == (object)newValue);
UIAutomationClient (9)
MS\Internal\Automation\HwndProxyElementProvider.cs (1)
56
Debug.
Assert
( hwnd != NativeMethods.HWND.NULL );
MS\Internal\Automation\UiaCoreAPI.cs (1)
469
Debug.
Assert
(offsets.Length == treeStructures.Length);
System\Windows\Automation\AutomationElement.cs (1)
816
Debug.
Assert
(responses.Length == 1);
System\Windows\Automation\BasePattern.cs (1)
37
Debug.
Assert
(el != null);
System\Windows\Automation\CacheRequest.cs (1)
559
Debug.
Assert
( _request != null );
System\Windows\Automation\Text\TextRange.cs (2)
72
Debug.
Assert
(!hTextRange.IsInvalid);
73
Debug.
Assert
(pattern != null);
System\Windows\Automation\TextPattern.cs (2)
44
Debug.
Assert
(el != null);
45
Debug.
Assert
(!hPattern.IsInvalid);
UIAutomationClientsideProviders (38)
MS\Internal\AutomationProxies\Accessible.cs (7)
331
Debug.
Assert
(parent != null);
342
Debug.
Assert
(false);
358
Debug.
Assert
(parent != null);
369
Debug.
Assert
(false);
761
Debug.
Assert
(_idChild == NativeMethods.CHILD_SELF);
822
Debug.
Assert
(false);
1034
Debug.
Assert
(_accessibleChildrenIndex < 0);
MS\Internal\AutomationProxies\CommonXSendMessage.cs (1)
103
System.Diagnostics.Debug.
Assert
(remoteTextArea.ToInt32() == remoteTextArea.ToInt64());
MS\Internal\AutomationProxies\Misc.cs (2)
2004
Debug.
Assert
(System.Environment.OSVersion.Version.Major < 6);
2075
Debug.
Assert
(System.Environment.OSVersion.Version.Major >= 6);
MS\Internal\AutomationProxies\MSAAEventDispatcher.cs (2)
134
Debug.
Assert
(refcount >= 0);
371
Debug.
Assert
(eventId == NativeMethods.EVENT_OBJECT_REORDER);
MS\Internal\AutomationProxies\MSAANativeProvider.cs (5)
66
Debug.
Assert
(hwnd != IntPtr.Zero);
238
Debug.
Assert
(_hwnd == UnsafeNativeMethods.WindowFromPhysicalPoint((int)x, (int)y));
354
Debug.
Assert
(false);
1057
Debug.
Assert
(!IsRoot);
1110
Debug.
Assert
(_hwnd != IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsEditBox.cs (4)
580
Debug.
Assert
(!IsMultiline);
587
Debug.
Assert
(IsMultiline);
1025
Debug.
Assert
(floor >= 0);
1036
Debug.
Assert
(i >= floor);
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (1)
53
Debug.
Assert
(provider != null);
MS\Internal\AutomationProxies\WindowsListView.cs (1)
1973
System.Diagnostics.Debug.
Assert
(el is ListViewItemCheckbox);
MS\Internal\AutomationProxies\WindowsRichEdit.cs (4)
243
Debug.
Assert
(_document != null);
283
Debug.
Assert
(_document != null);
290
Debug.
Assert
(range.Start == range.End);
326
Debug.
Assert
(_document != null);
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (11)
35
Debug.
Assert
(range != null);
36
Debug.
Assert
(pattern != null);
267
Debug.
Assert
(text == null || text.Length == maxLength);
1143
Debug.
Assert
(charMoved == 0 || charMoved == 1);
1146
Debug.
Assert
(paraMoved == 0 || paraMoved == 1);
1172
Debug.
Assert
(charMoved == 0 || charMoved == -1);
1175
Debug.
Assert
(paraMoved == 0 || paraMoved == -1);
1201
Debug.
Assert
(charMoved == 0 || charMoved == 1);
1204
Debug.
Assert
(paraMoved == 0 || paraMoved == 1);
1230
Debug.
Assert
(charMoved == 0 || charMoved == -1);
1233
Debug.
Assert
(paraMoved == 0 || paraMoved == -1);
WindowsBase (328)
Base\MS\Internal\ComponentModel\DependencyObjectPropertyDescriptor.cs (2)
45
Debug.
Assert
(property != null && dp != null);
266
Debug.
Assert
(attrs != null);
Base\MS\Internal\ComponentModel\PropertyChangeTracker.cs (1)
21
Debug.
Assert
(obj != null && property != null);
Base\MS\Internal\ContentType.cs (3)
282
Debug.
Assert
(String.CompareOrdinal(_type, String.Empty) != 0
399
Debug.
Assert
(!IsLinearWhiteSpaceChar(contentType[0]) && !IsLinearWhiteSpaceChar(contentType[contentType.Length - 1]));
494
Debug.
Assert
(s != null);
Base\MS\Internal\FreezableDefaultValueFactory.cs (1)
54
Debug.
Assert
(_defaultValuePrototype.IsFrozen);
Base\MS\Internal\InheritanceContextChangedEventManager.cs (1)
57
Debug.
Assert
(listener is Expression);
Base\MS\Internal\Interop\ErrorCodes.cs (3)
428
Debug.
Assert
(e != null);
433
Debug.
Assert
(!(e is ArgumentNullException));
468
Debug.
Assert
(e != null);
Base\MS\Internal\IO\Packaging\CompoundFile\RightsManagementEncryptedStream.cs (20)
305
Debug.
Assert
(baseStream != null);
306
Debug.
Assert
(cryptoProvider != null);
325
Debug.
Assert
(BitConverter.IsLittleEndian);
422
Debug.
Assert
(writeCacheStartOftheNextBlock > start);
446
Debug.
Assert
(readCacheStartOftheNextBlock > start);
460
Debug.
Assert
(cacheReadResult > 0);
471
Debug.
Assert
(cache != null);
472
Debug.
Assert
(start >=0);
499
Debug.
Assert
(overlapBlockOffset == start);
559
Debug.
Assert
(start >= 0);
560
Debug.
Assert
(cache != null);
634
Debug.
Assert
(readCryptoBlockCount >=1); // we must have at least 1
844
Debug.
Assert
(streamPosition >= 0);
845
Debug.
Assert
(buffer != null);
846
Debug.
Assert
(count >= 0);
847
Debug.
Assert
(checked(offset + count <= buffer.Length));
874
Debug.
Assert
(buffer != null);
875
Debug.
Assert
(buffer.Length > 0);
876
Debug.
Assert
(count >= 0);
877
Debug.
Assert
(checked(offset + count <= buffer.Length));
Base\MS\Internal\IO\Packaging\CompoundFile\RightsManagementEncryptionTransform.cs (3)
80
Debug.
Assert
(transformEnvironment != null);
614
Debug.
Assert
(this.IsReady);
821
Debug.
Assert
(userDesired != null);
Base\MS\Internal\IO\Packaging\CompoundFile\VersionedStreamOwner.cs (1)
388
Debug.
Assert
(_dataOffset == 0);
Base\MS\Internal\IO\Packaging\CompressStream.cs (3)
608
Debug.
Assert
(dataLength >= 0);
707
Debug.
Assert
(_baseStream.Position == 0);
753
Debug.
Assert
(s.Position == 0);
Base\MS\Internal\IO\Packaging\InterleavedZipPartStream.cs (1)
231
Debug.
Assert
(newLength - _dir.GetStartOffset(lastPieceNumber) >= 0);
Base\MS\Internal\IO\Packaging\PartBasedPackageProperties.cs (2)
450
Debug.
Assert
(!initializing || reader != null);
866
Debug.
Assert
(entry.Value != null || _package.InStreamingCreation);
Base\MS\Internal\IO\Packaging\PieceNameHelper.cs (3)
50
Debug.
Assert
(zipFileInfo != null);
51
Debug.
Assert
(prefixName != null && prefixName != String.Empty);
52
Debug.
Assert
(pieceNumber >= 0);
Base\MS\Internal\IO\Packaging\SparseMemoryStream.cs (15)
190
Debug.
Assert
(_currentStreamPosition >= 0);
208
Debug.
Assert
(bytesToRead > 0);
270
Debug.
Assert
(_currentStreamPosition >= 0);
502
Debug.
Assert
(gap >= 0);
560
Debug.
Assert
(prevMemStreamBlock.Stream.Length > 0);
567
Debug.
Assert
(prevMemStreamBlock.Stream.Length > 0);
631
Debug.
Assert
(memStreamBlock.Stream.Length > 0);
644
Debug.
Assert
(!_isolatedStorageMode);
659
Debug.
Assert
(_memoryStreamList.Count ==0); // it must be empty in isolated storage mode
681
Debug.
Assert
(newMemStreamBlock.Stream.Length > 0);
742
Debug.
Assert
(!_isolatedStorageMode);
761
Debug.
Assert
(trackingPosition == _currentStreamLength);
777
Debug.
Assert
(toSkip >= 0);
859
Debug.
Assert
(offset >=0);
881
Debug.
Assert
(value >= 0);
Base\MS\Internal\IO\Packaging\TrackingMemoryStream.cs (2)
35
Debug.
Assert
(memoryStreamFactory != null);
42
Debug.
Assert
(memoryStreamFactory != null);
Base\MS\Internal\IO\Packaging\XmlDigitalSignatureProcessor.cs (3)
175
Debug.
Assert
(_manager.Package.PartExists(partEntry.Uri));
947
Debug.
Assert
(partEntry.IsRelationshipEntry);
1244
Debug.
Assert
(references != null);
Base\MS\Internal\IO\Packaging\XmlSignatureManifest.cs (5)
193
Debug.
Assert
(reader != null);
245
Debug.
Assert
(reader != null);
489
Debug.
Assert
(manager != null);
490
Debug.
Assert
(xDoc != null);
491
Debug.
Assert
(hashAlgorithm != null);
Base\MS\Internal\IO\Packaging\XmlSignatureProperties.cs (2)
285
Debug.
Assert
(reader.NodeType == XmlNodeType.EndElement);
306
Debug.
Assert
(reader.NodeType == XmlNodeType.EndElement);
Base\MS\Internal\IO\Zip\Crc32.cs (4)
55
Debug.
Assert
(stream != null);
75
Debug.
Assert
((offset >=0) && (count >=0) && (offset+count <= buffer.Length));
120
Debug.
Assert
(bitOrdinal < 32);
128
Debug.
Assert
(bitOrdinal < 32);
Base\MS\Internal\IO\Zip\ProgressiveCrcCalculatingStream.cs (2)
240
Debug.
Assert
(underlyingStream != null);
241
Debug.
Assert
(blockManager != null);
Base\MS\Internal\IO\Zip\ZipFileInfo.cs (1)
162
Debug.
Assert
((fileBlock != null) && (zipArchive != null));
Base\MS\Internal\IO\Zip\ZipIOBlockManager.cs (31)
263
Debug.
Assert
(_openStreaming || _archiveStream.Length == 0);
266
Debug.
Assert
(_endOfCentralDirectoryBlock == null);
279
Debug.
Assert
(_endOfCentralDirectoryBlock == null);
320
Debug.
Assert
(CentralDirectoryBlock.FileExists(zipFileName)); // it must be in the central directory
354
Debug.
Assert
(moveBlockSize >=0);
471
Debug.
Assert
(archiveStream != null);
565
Debug.
Assert
(checked(buffer.Length-offset) >= sizeof(Int16));
575
Debug.
Assert
(checked(buffer.Length-offset) >= sizeof(Int32));
585
Debug.
Assert
(checked(buffer.Length-offset) >= sizeof(Int64));
595
Debug.
Assert
(checked(buffer.Length-offset) >= sizeof(UInt16));
605
Debug.
Assert
(checked(buffer.Length-offset) >= sizeof(UInt32));
615
Debug.
Assert
(checked(buffer.Length-offset) >= sizeof(UInt64));
664
Debug.
Assert
(size >=0);
665
Debug.
Assert
(offset >=0);
666
Debug.
Assert
(onDiskSize >=0);
667
Debug.
Assert
(onDiskOffset >=0);
681
Debug.
Assert
(onDiskSize >=0);
719
Debug.
Assert
(blockSizeToCache >0); // there must be a non empty block at this point that needs to be cached
836
Debug.
Assert
(_centralDirectoryBlock != null
1057
Debug.
Assert
(_zip64EndOfCentralDirectoryBlock != null);
1060
Debug.
Assert
(!IsCentralDirectoryBlockLoaded);
1065
Debug.
Assert
(blockPosition >= 0);
1076
Debug.
Assert
(_centralDirectoryBlock == null);
1090
Debug.
Assert
((_zip64EndOfCentralDirectoryBlock == null) &&
1116
Debug.
Assert
(_zip64EndOfCentralDirectoryBlock == null);
1131
Debug.
Assert
(_zip64EndOfCentralDirectoryBlock == null);
1143
Debug.
Assert
(_zip64EndOfCentralDirectoryLocatorBlock == null);
1157
Debug.
Assert
(_zip64EndOfCentralDirectoryLocatorBlock == null);
1170
Debug.
Assert
(!block.GetDirtyFlag(true)); // closingFlag==true used as a more conservative option
1214
Debug.
Assert
(block.GetDirtyFlag(true) || // closingFlag==true used as a more conservative option
1223
Debug.
Assert
(block.GetDirtyFlag(true) || // closingFlag==true used as a more conservative option
Base\MS\Internal\IO\Zip\ZipIOCentralDirectoryBlock.cs (3)
94
Debug.
Assert
(_offset >=0);
195
Debug.
Assert
(CentralDirectoryDictionary.Contains(localFileBlock.FileName));
487
Debug.
Assert
(! (_blockManager.Zip64EndOfCentralDirectoryBlock.Size==0)
Base\MS\Internal\IO\Zip\ZipIOCentralDirectoryFileHeader.cs (4)
137
Debug.
Assert
(_fileNameLength > 0); // we validate this for both parsing and API entry points
345
Debug.
Assert
((compressedSize >= 0) && (uncompressedSize>=0) && (offset >=0));
386
Debug.
Assert
(DiskNumberStart == 0);
439
Debug.
Assert
(String.CompareOrdinal(_stringFileName, fileBlock.FileName) == 0);
Base\MS\Internal\IO\Zip\ZipIOEndOfCentralDirectoryBlock.cs (7)
75
Debug.
Assert
(_offset >=0);
300
Debug.
Assert
(blockManager != null);
306
Debug.
Assert
(archiveStream.CanSeek);
346
Debug.
Assert
(buffer != null);
348
Debug.
Assert
(buffer.Length >= _fixedMinimalRecordSize); // the end of central directory record must fit in there
350
Debug.
Assert
(pos <= buffer.Length - _fixedMinimalRecordSize); // enough space to fit the record after pos
352
Debug.
Assert
(bufferOffsetFromEndOfStream >= _fixedMinimalRecordSize); // there is no reason to start searching for the record
Base\MS\Internal\IO\Zip\ZipIOExtraField.cs (1)
173
Debug.
Assert
(Math.Abs(size) <= 100);
Base\MS\Internal\IO\Zip\ZipIOExtraFieldElement.cs (3)
121
Debug.
Assert
(size >= _size);
132
Debug.
Assert
(_size == _data.Length);
192
Debug.
Assert
(data != null);
Base\MS\Internal\IO\Zip\ZipIOExtraFieldPaddingElement.cs (2)
58
Debug.
Assert
(size >= MinimumSize);
85
Debug.
Assert
(sniffiedBytes.Length == _signatureSize);
Base\MS\Internal\IO\Zip\ZipIOExtraFieldZip64Element.cs (9)
61
Debug.
Assert
(reader != null);
131
Debug.
Assert
(SizeField > 0);
225
Debug.
Assert
((_zip64ExtraFieldUsage & ZipIOZip64ExtraFieldUsage.UncompressedSize) != 0);
230
Debug.
Assert
(value >= 0);
242
Debug.
Assert
((_zip64ExtraFieldUsage & ZipIOZip64ExtraFieldUsage.CompressedSize) != 0);
247
Debug.
Assert
(value >= 0);
259
Debug.
Assert
((_zip64ExtraFieldUsage & ZipIOZip64ExtraFieldUsage.OffsetOfLocalHeader) != 0);
264
Debug.
Assert
(value >= 0);
276
Debug.
Assert
((_zip64ExtraFieldUsage & ZipIOZip64ExtraFieldUsage.DiskNumber) != 0);
Base\MS\Internal\IO\Zip\ZipIOFileItemStream.cs (21)
94
Debug.
Assert
(_cachePrefixStream == null); // we only expect this thing to be not null during Archive Save execution
142
Debug.
Assert
(_cachePrefixStream == null); // we only expect this thing to be not null during Archive Save execution
179
Debug.
Assert
(_cachePrefixStream == null); // we only expect this thing to be not null during Archive Save execution
182
Debug.
Assert
(_currentStreamPosition >= 0);
214
Debug.
Assert
(persistedTailSize > 0);
218
Debug.
Assert
(diskBytesToRead > 0);
271
Debug.
Assert
(_cachePrefixStream == null); // we only expect this thing to be not null during Archive Save execution
274
Debug.
Assert
(_currentStreamPosition >= 0);
291
Debug.
Assert
(!_blockManager.Streaming);
344
Debug.
Assert
(blockManager != null);
345
Debug.
Assert
(persistedOffset >=0);
346
Debug.
Assert
(persistedSize >= 0);
347
Debug.
Assert
(block != null);
405
Debug.
Assert
(_offset >=0);
418
Debug.
Assert
(_cachePrefixStream == null); // _cachePrefixStream must not be used in streaming cases at all
420
Debug.
Assert
(_blockManager.Streaming);
447
Debug.
Assert
(!_blockManager.Streaming);
468
Debug.
Assert
(moveBlockSize >=0);
480
Debug.
Assert
(_cachePrefixStream.Length > 0); // should be taken care of by the constructor
513
Debug.
Assert
(newPersistedSize == _currentStreamLength);
515
Debug.
Assert
(_cachePrefixStream == null); // we only expect this thing to be not null during Archive Save execution
Base\MS\Internal\IO\Zip\ZipIOLocalFileBlock.cs (6)
113
Debug.
Assert
(_offset >=0);
362
Debug.
Assert
(!blockManager.Streaming);
363
Debug.
Assert
(blockManager.CentralDirectoryBlock.FileExists(fileName));
393
Debug.
Assert
(Enum.IsDefined(typeof(CompressionMethodEnum), compressionMethod));
394
Debug.
Assert
(Enum.IsDefined(typeof(DeflateOptionEnum), deflateOption));
500
Debug.
Assert
(_exposedPublicStreams != null);
Base\MS\Internal\IO\Zip\ZipIOLocalFileHeader.cs (5)
51
Debug.
Assert
(Enum.IsDefined(typeof(CompressionMethodEnum), compressionMethod));
52
Debug.
Assert
(Enum.IsDefined(typeof(DeflateOptionEnum), deflateOption));
74
Debug.
Assert
(deflateOption != DeflateOptionEnum.None); //this should be ensured by the higher levels
303
Debug.
Assert
(Enum.IsDefined(typeof(DeflateOptionEnum), value));
304
Debug.
Assert
(value != DeflateOptionEnum.None);
Base\MS\Internal\IO\Zip\ZipIOModeEnforcingStream.cs (1)
300
Debug.
Assert
(baseStream != null);
Base\MS\Internal\IO\Zip\ZipIORawDataFileBlock.cs (9)
75
Debug.
Assert
(_offset >=0);
94
Debug.
Assert
(moveBlockSize >=0);
108
Debug.
Assert
(_cachePrefixStream.Length > 0); // should be taken care of by the constructor
183
Debug.
Assert
(block != null);
184
Debug.
Assert
(block.Offset >=0);
185
Debug.
Assert
(block.Size > 0);
196
Debug.
Assert
(offset >=0);
211
Debug.
Assert
(_cachePrefixStream == null);
214
Debug.
Assert
(DiskImageContains(block));
Base\MS\Internal\IO\Zip\ZipIOZip64EndOfCentralDirectoryBlock.cs (5)
70
Debug.
Assert
(_offset >=0);
99
Debug.
Assert
(_zip64ExtensibleDataSector != null);
100
Debug.
Assert
(_zip64ExtensibleDataSector.Length ==
261
Debug.
Assert
(blockManager != null);
302
Debug.
Assert
(_size >= _fixedMinimalRecordSize);
Base\MS\Internal\IO\Zip\ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs (4)
70
Debug.
Assert
(_offset >=0);
161
Debug.
Assert
(SniffTheBlockSignature(blockManager));
177
Debug.
Assert
(!SniffTheBlockSignature(blockManager));
220
Debug.
Assert
(blockManager != null);
Base\MS\Internal\Security\RightsManagement\ClientSession.cs (25)
320
Debug.
Assert
((_envHandle != null) && (!_envHandle.IsInvalid));
615
Debug.
Assert
((licenseStorageSessionHandle != null) && (!licenseStorageSessionHandle.IsInvalid));
702
Debug.
Assert
(serializedUseLicense != null);
703
Debug.
Assert
(unboundRightsList != null);
704
Debug.
Assert
(boundLicenseParams != null);
906
Debug.
Assert
((authentication == AuthenticationType.Windows) ||
980
Debug.
Assert
((authentication == AuthenticationType.Windows) ||
1237
Debug.
Assert
(attributeSize == SystemTime.Size); // if isn't true it is an indication of a problem in the underlying libraries
1310
Debug.
Assert
((queryRootHandle != null) && (!queryRootHandle.IsInvalid));
1333
Debug.
Assert
((queryRootHandle != null) && (!queryRootHandle.IsInvalid));
1345
Debug.
Assert
((querySubHandle != null) && (!querySubHandle.IsInvalid));
1390
Debug.
Assert
((queryRootHandle != null) && (!queryRootHandle.IsInvalid));
1417
Debug.
Assert
((queryRootHandle != null) && (!queryRootHandle.IsInvalid));
1468
Debug.
Assert
((queryRootHandle != null) && (!queryRootHandle.IsInvalid));
1481
Debug.
Assert
((workItemQueryHandle != null) && (!workItemQueryHandle.IsInvalid));
1625
Debug.
Assert
((queryRootHandle != null) && (!queryRootHandle.IsInvalid));
1638
Debug.
Assert
((workItemQueryHandle != null) && (!workItemQueryHandle.IsInvalid));
1651
Debug.
Assert
((rightGroupQueryHandle != null) && (!rightGroupQueryHandle.IsInvalid));
1698
Debug.
Assert
((rightQueryHandle != null) && (!rightQueryHandle.IsInvalid));
1722
Debug.
Assert
((conditionListHandle != null) && (!conditionListHandle.IsInvalid));
1738
Debug.
Assert
((rangeTimeQueryHandle != null) && (!rangeTimeQueryHandle.IsInvalid));
1771
Debug.
Assert
((queryRootHandle != null) && (!queryRootHandle.IsInvalid));
1786
Debug.
Assert
((workQueryHandle != null) && (!workQueryHandle.IsInvalid));
1855
Debug.
Assert
((queryRootHandle != null) && (!queryRootHandle.IsInvalid));
1875
Debug.
Assert
((distributionPointQueryHandle != null) && (!distributionPointQueryHandle.IsInvalid));
Base\MS\Internal\Security\RightsManagement\IssuanceLicense.cs (6)
106
Debug.
Assert
(!boundLicenseHandle.IsClosed); // it must be either present or not
160
Debug.
Assert
(rightValidityIntervalDays >= 0); // our internal code makes the guarantee that is is not negative
485
Debug.
Assert
((rightHandle != null) && (!rightHandle.IsInvalid));
518
Debug.
Assert
((userHandle != null) && (!userHandle.IsInvalid));
661
Debug.
Assert
((userHandle != null) && (!userHandle.IsInvalid));
814
Debug.
Assert
((rightHandle != null) && (!rightHandle.IsInvalid));
Base\MS\Internal\Security\RightsManagement\RightNameExpirationInfoPair.cs (1)
33
Debug.
Assert
(rightName != null);
Base\MS\Internal\Threading\ExceptionWrapper.cs (1)
54
Debug.
Assert
(numArgs == 0 || // old API, no args
Base\MS\Internal\Utilities.cs (1)
77
Debug.
Assert
(Marshal.IsComObject(t));
Base\MS\Internal\Verify.cs (1)
49
Debug.
Assert
(!string.IsNullOrEmpty(name));
Base\System\IO\Packaging\CompoundFile\DataSpaceManager.cs (2)
341
Debug.
Assert
(baseStream != null);
1468
Debug.
Assert
(transformInstance.ExtraData.Length > 0);
Base\System\IO\Packaging\EncryptedPackage.cs (1)
1141
Debug.
Assert
(!siPackage.InternalExists());
Base\System\IO\Packaging\PackageDigitalSignatureManager.cs (4)
742
Debug.
Assert
(index < _signatures.Count);
818
Debug.
Assert
(index < _signatures.Count);
1079
Debug.
Assert
(signatureUri != null);
1080
Debug.
Assert
(countOfSignaturesRemaining >= 0);
Base\System\IO\Packaging\PackagePart.cs (1)
368
Debug.
Assert
(!IsStreamClosed(s));
Base\System\IO\Packaging\PackUriHelper.cs (5)
630
Debug.
Assert
(partUriString != null && partUriString.Length == 0);
635
Debug.
Assert
(partUriString != null && partUriString.Length > 0);
1191
Debug.
Assert
(partUriString != null && partUriString.Length > 0);
1239
Debug.
Assert
(segments.Length > 0 && segments[0] == String.Empty);
1242
Debug.
Assert
(String.CompareOrdinal((Path.GetExtension(segments[segments.Length - 1])), _relationshipPartUpperCaseExtension) == 0);
Base\System\IO\Packaging\ZipPackage.cs (2)
479
Debug.
Assert
(opcName != null && opcName.Length > 0);
630
Debug.
Assert
(sortedPieceInfoList != null);
Base\System\Security\RightsManagement\CryptoProvider.cs (2)
480
Debug.
Assert
(decryptorHandle != null);
512
Debug.
Assert
(encryptorHandle != null);
Base\System\Security\RightsManagement\SecureEnvironment.cs (1)
362
Debug.
Assert
(IsUserActivated(user));
Base\System\Windows\Data\DataSourceProvider.cs (1)
349
Debug.
Assert
(_deferLevel > 0);
Base\System\Windows\DependencyObject.cs (2)
626
Debug.
Assert
(dp != null);
2422
Debug.
Assert
((!source.DependencyObject.IsSealed) ||
Base\System\Windows\EffectiveValueEntry.cs (19)
54
Debug.
Assert
(value != DependencyProperty.UnsetValue);
61
Debug.
Assert
(Object.Equals(modifiedValue.BaseValue, baseValue));
62
Debug.
Assert
(!(baseValue is DeferredReference));
63
Debug.
Assert
(IsDeferredReference == (value is DeferredReference));
68
Debug.
Assert
((value != DependencyProperty.UnsetValue) &&
78
Debug.
Assert
(!(modifiedValue.AnimatedValue is DeferredReference));
79
Debug.
Assert
(Object.Equals(modifiedValue.BaseValue, baseValue) ||
81
Debug.
Assert
(!(baseValue is DeferredReference) &&
88
Debug.
Assert
(value != DependencyProperty.UnsetValue &&
116
Debug.
Assert
(skipBaseValueChecks ||
120
Debug.
Assert
(!(baseValue is DeferredReference) &&
252
Debug.
Assert
(value is DeferredReference == IsDeferredReference);
336
Debug.
Assert
(HasExpressionMarker);
356
Debug.
Assert
(ModifiedValue != null);
417
Debug.
Assert
(IsExpression == true);
488
Debug.
Assert
(Value != DependencyProperty.UnsetValue);
493
Debug.
Assert
(ModifiedValue != null && ModifiedValue.BaseValue != DependencyProperty.UnsetValue);
509
Debug.
Assert
(Value != DependencyProperty.UnsetValue);
514
Debug.
Assert
(ModifiedValue != null && ModifiedValue.BaseValue != DependencyProperty.UnsetValue);
Base\System\Windows\Freezable.cs (21)
937
Debug.
Assert
(srcEntry.BaseValueSourceInternal != BaseValueSourceInternal.Default || srcEntry.HasModifiers);
946
Debug.
Assert
(sourceValue != DependencyProperty.UnsetValue);
1074
Debug.
Assert
(context != null);
1115
Debug.
Assert
(!failed);
1136
Debug.
Assert
(Freezable_UsingSingletonContext);
1137
Debug.
Assert
(SingletonContext != null);
1156
Debug.
Assert
(Freezable_UsingContextList);
1178
Debug.
Assert
(context != null);
1206
Debug.
Assert
(context != null);
1230
Debug.
Assert
(context != null);
1253
Debug.
Assert
(Freezable_UsingSingletonContext);
1286
Debug.
Assert
(!Freezable_UsingSingletonContext && !Freezable_UsingContextList);
1287
Debug.
Assert
(context != null);
1318
Debug.
Assert
(context != null);
1434
Debug.
Assert
(handler != null);
1459
Debug.
Assert
(handler != null);
1498
Debug.
Assert
(Freezable_UsingSingletonHandler);
1518
Debug.
Assert
(Freezable_UsingHandlerList && HandlerList.Count == 0);
1538
Debug.
Assert
(Freezable_UsingSingletonHandler);
1568
Debug.
Assert
(!Freezable_UsingHandlerList && !Freezable_UsingSingletonHandler);
1569
Debug.
Assert
(handler != null);
Base\System\Windows\Markup\XmlCompatibilityReader.cs (1)
350
Debug.
Assert
(Scope.ShouldProcessContent(namespaceName, Reader.LocalName));
Base\System\Windows\Markup\XmlWrappingReader.cs (1)
49
Debug.
Assert
( baseReader != null );
Base\System\Windows\Media\Matrix.cs (11)
952
Debug.
Assert
(_m21 == 0);
953
Debug.
Assert
(_m12 == 0);
954
Debug.
Assert
(_offsetX == 0);
955
Debug.
Assert
(_offsetY == 0);
958
Debug.
Assert
(_m21 == 0);
959
Debug.
Assert
(_m12 == 0);
960
Debug.
Assert
(_m11 == 1);
961
Debug.
Assert
(_m22 == 1);
964
Debug.
Assert
(_m21 == 0);
965
Debug.
Assert
(_m12 == 0);
968
Debug.
Assert
(false);
Base\System\Windows\PropertyMetadata.cs (1)
193
Debug.
Assert
(!(result is DispatcherObject) || ((DispatcherObject)result).Dispatcher == owner.Dispatcher);
Base\System\Windows\Rect.cs (1)
145
Debug.
Assert
((!(_width < 0) && !(_height < 0)) || (this == Empty));
Base\System\Windows\Threading\Dispatcher.cs (4)
1468
Debug.
Assert
(timeout.TotalMilliseconds >= 0 || timeout == TimeSpan.FromMilliseconds(-1));
1469
Debug.
Assert
(operation.Priority != DispatcherPriority.Send || !CheckAccess()); // should be handled by caller
1506
Debug.
Assert
(operation.Status == DispatcherOperationStatus.Completed ||
1522
Debug.
Assert
(operation.Status == DispatcherOperationStatus.Aborted);
Base\System\Windows\Threading\DispatcherExceptionEventArgs.cs (1)
105
Debug.
Assert
(exception != null);
Base\System\Windows\Threading\DispatcherExceptionFilterEventArgs.cs (1)
117
Debug.
Assert
(exception != null);
Shared\MS\Internal\IO\Packaging\PackagingUtilities.cs (1)
325
Debug.
Assert
(bytesLeftToCopy == 0);
Shared\MS\Internal\MatrixUtil.cs (1)
279
Debug.
Assert
(matrix._type != MatrixTypes.TRANSFORM_IS_IDENTITY);
Shared\MS\Internal\Permissions\InternalPermissions.cs (1)
68
Debug.
Assert
(GetType().IsSerializable);
Shared\MS\Internal\SafeSecurityHelper.cs (1)
467
Debug.
Assert
(target != null);
Shared\MS\Internal\TokenizerHelper.cs (1)
344
Debug.
Assert
(null != numberFormat);
Shared\MS\Utility\FrugalMap.cs (11)
128
Debug.
Assert
(INVALIDKEY != key);
234
Debug.
Assert
(INVALIDKEY != key);
392
Debug.
Assert
(INVALIDKEY != key);
554
Debug.
Assert
(INVALIDKEY != key);
874
Debug.
Assert
(INVALIDKEY != key);
1134
Debug.
Assert
(INVALIDKEY != key);
1349
Debug.
Assert
(INVALIDKEY != key);
1413
Debug.
Assert
(INVALIDKEY != key);
1569
Debug.
Assert
(INVALIDKEY != key);
1838
Debug.
Assert
(INVALIDKEY != key);
1894
Debug.
Assert
(INVALIDKEY != key);
Shared\MS\Utility\TraceProvider.cs (4)
115
Debug.
Assert
(IsEnabled(keywords, level));
156
Debug.
Assert
(IsEnabled(keywords, level));
160
Debug.
Assert
(argCount <= s_etwMaxNumberArguments);
182
Debug.
Assert
(stringIndex < s_etwAPIMaxStringCount); // need to increase string count or emit fewer strings
Shared\MS\Win32\NativeMethodsOther.cs (1)
41
Debug.
Assert
((0xFFFF0000 & errorCode) == 0);
Shared\MS\Win32\UnsafeNativeMethodsOther.cs (1)
607
Debug.
Assert
(handle != IntPtr.Zero);
WsatConfig (4)
CommandLine\OptionUsage.cs (2)
160
Debug.
Assert
(string.IsNullOrEmpty(optionAbbr));
185
Debug.
Assert
(optionUses.Count > 1);
Configuration\WsatConfiguration.cs (2)
302
Debug.
Assert
(IsClustered);
529
System.Diagnostics.Debug.
Assert
(!(IsLocalMachine || IsClustered));
WsatUI (2)
Configuration\WsatConfiguration.cs (2)
302
Debug.
Assert
(IsClustered);
529
System.Diagnostics.Debug.
Assert
(!(IsLocalMachine || IsClustered));