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