56 references to SharedFx
System.Activities.Presentation (56)
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.");
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ActivityTemplateFactoryBuilderWriter.cs (15)
159SharedFx.Assert( 164SharedFx.Assert("It is impossible to start any object during the buffering state."); 174SharedFx.Assert("It is impossible to end an object during InitialState"); 183SharedFx.Assert( 187SharedFx.Assert("It is impossible to end an object when we are buffering the name / targetType."); 197SharedFx.Assert("It is impossible to end an object during InitialState"); 206SharedFx.Assert( 210SharedFx.Assert("It is impossible to get an object when we are buffering the name / targetType."); 220SharedFx.Assert("It is impossible to start a member during InitialState"); 263SharedFx.Assert( 267SharedFx.Assert("It is impossible to get an object when we are buffering the name / targetType."); 277SharedFx.Assert("It is impossible to end a member during InitialState"); 286SharedFx.Assert( 302SharedFx.Assert("It is impossible to write a value during InitialState"); 314SharedFx.Assert(
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.");
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\AttributeConverter.cs (1)
61SharedFx.Assert(value != null, "The usage should be guaranteed by the XAML stack");
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.");
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.");
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\DesignTimeXamlWriter.cs (1)
225SharedFx.Assert(this.currentDepth >= 0, "Unmatched WriteEndObject");
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.");
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\LineColumnPair.cs (1)
14SharedFx.Assert(item1 > 0 && item2 > 0, "item1 > 0&& item2 > 0");
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.");
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");
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");
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\SourceTextScanner.cs (11)
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"); 105SharedFx.Assert(string.Format(CultureInfo.CurrentCulture, "line out of range:({0},{1})", line + 1, column + 1)); 111SharedFx.Assert(string.Format(CultureInfo.CurrentCulture, "column out of range:({0},{1})", line + 1, column + 1)); 120SharedFx.Assert(index >= 0 && index < this.source.Length, "invalid index"); 153SharedFx.Assert("lastIndex < 0"); 170SharedFx.Assert("index < 0 || index >= this.source.Length");
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\WorkflowDesignerXamlHelper.cs (7)
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"); 416SharedFx.Assert("end of SourceLocation is not found"); 441if (SharedFx.IsFatal(ex)) 658SharedFx.Assert(string.Format(CultureInfo.CurrentCulture, "no such property:{0}", propertyName)); 666SharedFx.Assert(string.Format(CultureInfo.CurrentCulture, "no such property value:{0}", propertyName));
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\XamlWriterExtensions.cs (3)
17SharedFx.Assert(consumer != null && consumer.ShouldProvideLineInfo, "Should only call this function to write into a XamlNodeQueue.Writer, which is always IXamlLineInfoConsumer"); 25SharedFx.Assert(consumer != null && consumer.ShouldProvideLineInfo, "Should only call this function to write into a XamlNodeQueue.Writer, which is always IXamlLineInfoConsumer"); 33SharedFx.Assert(consumer != null && consumer.ShouldProvideLineInfo, "Should only call this function to write into a XamlNodeQueue.Writer, which is always IXamlLineInfoConsumer");