39 references to Assert
System.Activities (39)
System\Activities\Debugger\BinarySearchResult.cs (4)
32
UnitTestUtility.
Assert
(this.IsFound, "We should not call FoundIndex if we cannot find the element.");
42
UnitTestUtility.
Assert
(!this.IsFound, "We should not call NextIndex if we found the element.");
43
UnitTestUtility.
Assert
(this.IsNextIndexAvailable, "We should not call NextIndex if next index is not available.");
53
UnitTestUtility.
Assert
(!this.IsFound, "We should not call IsNextIndexAvailable if we found the element.");
System\Activities\Debugger\CharacterSpottingTextReader.cs (3)
32
UnitTestUtility.
Assert
(underlyingReader != null, "underlyingReader should not be null and should be ensured by caller.");
93
UnitTestUtility.
Assert
(locationList != null, "We should always find character for special characters only");
119
UnitTestUtility.
Assert
(locationList != null, "We should always find character for special characters only");
System\Activities\Debugger\DocumentLocation.cs (2)
18
UnitTestUtility.
Assert
(lineNumber != null, "lineNumber should not be null.");
19
UnitTestUtility.
Assert
(linePosition != null, "linePosition should not be null.");
System\Activities\Debugger\DocumentRange.cs (3)
18
UnitTestUtility.
Assert
(start != null, "DocumentRange.Start cannot be null");
19
UnitTestUtility.
Assert
(end != null, "DocumentRange.End cannot be null");
20
UnitTestUtility.
Assert
((start.LineNumber.Value < end.LineNumber.Value) || ((start.LineNumber.Value == end.LineNumber.Value) && (start.LinePosition.Value <= end.LinePosition.Value)), "Start cannot before go after End.");
System\Activities\Debugger\OneBasedCounter.cs (1)
14
UnitTestUtility.
Assert
(value > 0, "value cannot less than one for OneBasedCounter");
System\Activities\Debugger\SourceLocationFoundEventArgs.cs (2)
15
UnitTestUtility.
Assert
(target != null, "Target cannot be null and is ensured by caller");
16
UnitTestUtility.
Assert
(sourceLocation != null, "Target cannot be null and is ensured by caller");
System\Activities\Debugger\XamlDebuggerXmlReader.cs (12)
79
UnitTestUtility.
Assert
(underlyingTextReader != null, "underlyingTextReader should not be null and is ensured by caller.");
83
UnitTestUtility.
Assert
(this.xamlLineInfo.HasLineInfo, "underlyingReader is constructed with the ProvideLineInfo option above.");
432
UnitTestUtility.
Assert
(this.bufferedXamlNodes.Count == 0, "this.bufferedXamlNodes should be empty when we reach this code path.");
442
UnitTestUtility.
Assert
(moreNode, "Start Member must followed by some other nodes.");
479
UnitTestUtility.
Assert
(false,
700
UnitTestUtility.
Assert
(this.currentObject == null, "This should be ensured by the XamlSourceLocationObjectReader to emit attachable property in proper order");
707
UnitTestUtility.
Assert
(instance == this.currentObject, "This should be ensured by the XamlSourceLocationObjectReader to emit attachable property in proper order");
713
UnitTestUtility.
Assert
(instance == this.currentObject, "This should be ensured by the XamlSourceLocationObjectReader to emit attachable property in proper order");
719
UnitTestUtility.
Assert
(instance == this.currentObject, "This should be ensured by the XamlSourceLocationObjectReader to emit attachable property in proper order");
780
UnitTestUtility.
Assert
(false, "This method should not be called within framework code.");
786
UnitTestUtility.
Assert
(propertyValue is int, "The value for this attachable property should be an integer and is ensured by the emitter.");
803
UnitTestUtility.
Assert
(false, "All possible SourceLocationMember are exhausted.");
System\Activities\Debugger\XamlMemberExtensions.cs (2)
19
UnitTestUtility.
Assert
(originalXamlMember.UnderlyingMember is MethodInfo, "Guaranteed by XamlMember.");
24
UnitTestUtility.
Assert
(originalXamlMember.UnderlyingMember is EventInfo, "Guaranteed by XamlMember.");
System\Activities\Debugger\XmlReaderWithSourceLocation.cs (10)
29
UnitTestUtility.
Assert
(underlyingTextReader != null, "CharacterSpottingTextReader cannot be null and should be ensured by caller.");
32
UnitTestUtility.
Assert
(this.BaseReaderAsLineInfo != null, "The XmlReader created by XmlReader.Create should ensure this.");
33
UnitTestUtility.
Assert
(this.BaseReaderAsLineInfo.HasLineInfo(), "The XmlReader created by XmlReader.Create should ensure this.");
155
UnitTestUtility.
Assert
(
167
UnitTestUtility.
Assert
(this.contentStartLocationStack.Count > 0, "Adding Text with out StartElement?");
211
UnitTestUtility.
Assert
(startBracket != null, "XmlReader should guarantee there must be a start angle bracket.");
212
UnitTestUtility.
Assert
(endBracket != null, "XmlReader should guarantee there must be an end angle bracket.");
219
UnitTestUtility.
Assert
(this.characterSpottingTextReader != null, "Ensured by constructor.");
221
UnitTestUtility.
Assert
(attributeStart != null, "Read should ensure the two quote characters exists");
223
UnitTestUtility.
Assert
(attributeEnd != null, "Read should ensure the two quote characters exists");