36 references to Assert
System.Data (36)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ActivityTemplateFactoryBuilderReader.cs (2)
143SharedFx.Assert(this.currentState == ActivityTemplateFactoryBuilderReaderStates.ReadingFromBufferState, "This is the only remaining ActivityTemplateFactoryBuilderReaderStates."); 264SharedFx.Assert(this.currentState == ActivityTemplateFactoryBuilderReaderStates.BypassState, "This is the only remaining ActivityTemplateFactoryBuilderReaderStates.");
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ActivityTemplateFactoryBuilderWriter.cs (6)
159SharedFx.Assert( 183SharedFx.Assert( 206SharedFx.Assert( 263SharedFx.Assert( 286SharedFx.Assert( 314SharedFx.Assert(
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ActivityTemplateFactoryBuilderXamlMembers.cs (4)
26SharedFx.Assert(implementationPropertyInfo != null, "ActivityTemplateFactory.Implementation should be defined as a protected property of ActivityTemplateFactory."); 33SharedFx.Assert(namePropertyInfo != null, "ActivityTemplateFactoryBuilder.Name should be defined as a public property of ActivityTemplateFactoryBuilder."); 40SharedFx.Assert(namePropertyInfo != null, "ActivityTemplateFactoryBuilder.TargetType should be defined as a public property of ActivityTemplateFactoryBuilder."); 47SharedFx.Assert(implementationPropertyInfo != null, "ActivityTemplateFactoryBuilder.Implementation should be defined as a public property of ActivityTemplateFactoryBuilder.");
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\AttributeConverter.cs (1)
61SharedFx.Assert(value != null, "The usage should be guaranteed by the XAML stack");
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\DefaultValueAttributeInfo.cs (1)
30SharedFx.Assert(constructor != null, "designerAttribute has a constructor that takes an argument of type System.Object.");
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\DesignerAttributeInfo.cs (1)
24SharedFx.Assert(constructor != null, "designerAttribute has a constructor that takes an argument of type System.Type.");
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\DesignTimeXamlWriter.cs (1)
225SharedFx.Assert(this.currentDepth >= 0, "Unmatched WriteEndObject");
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\EditorAttributeInfo.cs (1)
24SharedFx.Assert(constructor != null, "designerAttribute has a constructor that takes two argument of type System.Type and System.Type.");
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\LineColumnPair.cs (1)
14SharedFx.Assert(item1 > 0 && item2 > 0, "item1 > 0&& item2 > 0");
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\MultiTargetingTypeResolver.cs (4)
19SharedFx.Assert(multiTargetingService != null, "multiTargetingService should not be null"); 20SharedFx.Assert(type != null, "type should not be null"); 70SharedFx.Assert(oldXamlType != null, "oldXamlType should not be null"); 81SharedFx.Assert(resolverResult.Kind == XamlTypeKind.Unknown, "resolverResult.Kind should be XamlTypeKind.Unknown.");
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ResolverCache.cs (3)
23SharedFx.Assert(type != null, "type should not be null"); 24SharedFx.Assert(result != null, "result should not be null"); 38SharedFx.Assert(type != null, "type should not be null");
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ResolverResult.cs (1)
28SharedFx.Assert(kind != XamlTypeKind.PartialSupported || newProperties != null, "newProperties should not be null when kind is XamlTypeKind.PartialSupported");
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\SourceTextScanner.cs (7)
28SharedFx.Assert(source != null, "source != null"); 35SharedFx.Assert(startPoint != null, "startPoint != null"); 59SharedFx.Assert(location != null, "invalid location"); 70SharedFx.Assert(index >= 0 && index < this.source.Length, "index out of range"); 86SharedFx.Assert(line >= 0, "line < this.indexCache.Count"); 88SharedFx.Assert(column < this.indexCache[line].Item2, "Should Not Happen"); 120SharedFx.Assert(index >= 0 && index < this.source.Length, "invalid index");
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\WorkflowDesignerXamlHelper.cs (3)
34SharedFx.Assert(this.executionContext != null, "this.executionContext != null"); 35SharedFx.Assert(this.executionContext.XamlSchemaContext != null, "this.executionContext.XamlSchemaContext != null"); 106SharedFx.Assert(rootModelObject != null, "Cannot pass null as rootModelObject");