コード例 #1
0
ファイル: AssertFrame.cs プロジェクト: pengge/testasp.net
 public static void Attribute(RenderTreeFrame frame, string attributeName, Action <object> attributeValidator, int?sequence = null)
 {
     AssertFrame.Attribute(frame, attributeName, sequence);
     attributeValidator(frame.AttributeValue);
 }
コード例 #2
0
ファイル: AssertFrame.cs プロジェクト: pengge/testasp.net
 public static void ComponentWithInstance <T>(RenderTreeFrame frame, int componentId, int?subtreeLength = null, int?sequence = null) where T : IComponent
 {
     AssertFrame.Component <T>(frame, subtreeLength, sequence);
     Assert.IsType <T>(frame.Component);
     Assert.Equal(componentId, frame.ComponentId);
 }
コード例 #3
0
ファイル: AssertFrame.cs プロジェクト: pengge/testasp.net
 public static void Attribute(RenderTreeFrame frame, string attributeName, object attributeValue, int?sequence = null)
 {
     AssertFrame.Attribute(frame, attributeName, sequence);
     Assert.Equal(attributeValue, frame.AttributeValue);
 }
コード例 #4
0
ファイル: AssertFrame.cs プロジェクト: pengge/testasp.net
 public static void Attribute(RenderTreeFrame frame, string attributeName, Type valueType, int?sequence = null)
 {
     AssertFrame.Attribute(frame, attributeName, sequence);
     Assert.IsType(valueType, frame.AttributeValue);
 }
コード例 #5
0
ファイル: AssertFrame.cs プロジェクト: pengge/testasp.net
 public static void Attribute(RenderTreeFrame frame, string attributeName, Action <UIEventArgs> attributeEventHandlerValue, int?sequence = null)
 {
     AssertFrame.Attribute(frame, attributeName, sequence);
     Assert.Equal(attributeEventHandlerValue, frame.AttributeValue);
 }
コード例 #6
0
ファイル: AssertFrame.cs プロジェクト: pengge/testasp.net
 public static void Attribute(RenderTreeFrame frame, string attributeName, int?sequence = null)
 {
     Assert.Equal(RenderTreeFrameType.Attribute, frame.FrameType);
     Assert.Equal(attributeName, frame.AttributeName);
     AssertFrame.Sequence(frame, sequence);
 }
コード例 #7
0
ファイル: AssertFrame.cs プロジェクト: pengge/testasp.net
 public static void ComponentReferenceCapture(RenderTreeFrame frame, Action <object> action, int?sequence = null)
 {
     Assert.Equal(RenderTreeFrameType.ComponentReferenceCapture, frame.FrameType);
     Assert.Same(action, frame.ComponentReferenceCaptureAction);
     AssertFrame.Sequence(frame, sequence);
 }
コード例 #8
0
ファイル: AssertFrame.cs プロジェクト: pengge/testasp.net
 public static void TextWhitespace(RenderTreeFrame frame, int?sequence = null)
 {
     Assert.Equal(RenderTreeFrameType.Text, frame.FrameType);
     AssertFrame.Sequence(frame, sequence);
     Assert.True(string.IsNullOrWhiteSpace(frame.TextContent));
 }
コード例 #9
0
ファイル: AssertFrame.cs プロジェクト: pengge/testasp.net
 public static void Region(RenderTreeFrame frame, int subtreeLength, int?sequence = null)
 {
     Assert.Equal(RenderTreeFrameType.Region, frame.FrameType);
     Assert.Equal(subtreeLength, frame.RegionSubtreeLength);
     AssertFrame.Sequence(frame, sequence);
 }