示例#1
0
 public static void Whitespace(RenderTreeFrame frame, int?sequence = null)
 {
     Assert.Equal(RenderTreeFrameType.Text, frame.FrameType);
     AssertFrame.Sequence(frame, sequence);
     Assert.True(string.IsNullOrWhiteSpace(frame.TextContent));
 }
示例#2
0
 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);
 }
示例#3
0
 public static void ComponentWithInstance <T>(RenderTreeFrame frame, int componentId, int?sequence = null) where T : IComponent
 {
     AssertFrame.Component <T>(frame, sequence);
     Assert.IsType <T>(frame.Component);
     Assert.Equal(componentId, frame.ComponentId);
 }
示例#4
0
 public static void Component <T>(RenderTreeFrame frame, int?sequence = null) where T : IComponent
 {
     Assert.Equal(RenderTreeFrameType.Component, frame.FrameType);
     Assert.Equal(typeof(T), frame.ComponentType);
     AssertFrame.Sequence(frame, sequence);
 }
示例#5
0
 public static void Attribute(RenderTreeFrame frame, string attributeName, UIEventHandler attributeEventHandlerValue, int?sequence = null)
 {
     AssertFrame.Attribute(frame, attributeName, sequence);
     Assert.Equal(attributeEventHandlerValue, frame.AttributeValue);
 }
示例#6
0
 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);
 }