public override void TemplatePartsAreDefined() { IDictionary <string, Type> templateParts = DefaultControlToTest.GetType().GetTemplateParts(); Assert.AreEqual(1, templateParts.Count); Assert.AreSame(typeof(Canvas), templateParts["Container"]); }
public override void StyleTypedPropertiesAreDefined() { IDictionary <string, Type> properties = DefaultControlToTest.GetType().GetStyleTypedProperties(); Assert.AreEqual(1, properties.Count, "Incorrect number of style typed property attributes!"); Assert.AreEqual(typeof(ButtonSpinner), properties["SpinnerStyle"], "Failed to find expected style type property SpinnerStyle!"); }
public override void TemplatePartsAreDefined() { IDictionary <string, Type> templateParts = DefaultControlToTest.GetType().GetTemplateParts(); Assert.AreEqual(1, templateParts.Count); Assert.AreSame(typeof(ToggleButton), templateParts["ExpanderButton"]); }
public override void StyleTypedPropertiesAreDefined() { IDictionary <string, Type> properties = DefaultControlToTest.GetType().GetStyleTypedProperties(); Assert.AreEqual(2, properties.Count); Assert.AreEqual(typeof(Title), properties["TitleStyle"]); Assert.AreEqual(typeof(ContentPresenter), properties["ItemContainerStyle"]); }
public override void StyleTypedPropertiesAreDefined() { IDictionary <string, Type> properties = DefaultControlToTest.GetType().GetStyleTypedProperties(); Assert.AreEqual(2, properties.Count); Assert.AreEqual(typeof(Rectangle), properties["OverlayStyle"]); Assert.AreEqual(typeof(ProgressBar), properties["ProgressBarStyle"]); }
public override void TemplatePartsAreDefined() { IDictionary <string, Type> templateParts = DefaultControlToTest.GetType().GetTemplateParts(); Assert.AreEqual(2, templateParts.Count); Assert.AreSame(typeof(TextBox), templateParts["Text"]); Assert.AreSame(typeof(Spinner), templateParts["Spinner"]); }
public override void TemplatePartsAreDefined() { IDictionary <string, Type> templateParts = DefaultControlToTest.GetType().GetTemplateParts(); Assert.AreEqual(2, templateParts.Count); Assert.AreSame(typeof(Grid), templateParts["AxisGrid"]); Assert.AreSame(typeof(Title), templateParts["AxisTitle"]); }
public override void TemplatePartsAreDefined() { IDictionary <string, Type> templateParts = DefaultControlToTest.GetType().GetTemplateParts(); Assert.AreEqual(2, templateParts.Count); Assert.AreSame(typeof(EdgePanel), templateParts["ChartArea"]); Assert.AreSame(typeof(Legend), templateParts["Legend"]); }
public override void StyleTypedPropertiesAreDefined() { IDictionary <string, Type> properties = DefaultControlToTest.GetType().GetStyleTypedProperties(); Assert.AreEqual(4, properties.Count); Assert.AreEqual(typeof(Title), properties["TitleStyle"]); Assert.AreEqual(typeof(Legend), properties["LegendStyle"]); Assert.AreEqual(typeof(EdgePanel), properties["ChartAreaStyle"]); Assert.AreEqual(typeof(Grid), properties["PlotAreaStyle"]); }
public override void StyleTypedPropertiesAreDefined() { IDictionary <string, Type> properties = DefaultControlToTest.GetType().GetStyleTypedProperties(); Assert.AreEqual(4, properties.Count); Assert.AreEqual(typeof(Line), properties["TickMarkStyle"]); Assert.AreEqual(typeof(TextBlock), properties["LabelStyle"]); Assert.AreEqual(typeof(Title), properties["TitleStyle"]); Assert.AreEqual(typeof(Line), properties["GridLineStyle"]); }
public override void TemplateVisualStatesAreDefined() { IDictionary <string, string> visualStates = DefaultControlToTest.GetType().GetVisualStates(); Assert.AreEqual(4, visualStates.Count); Assert.AreEqual <string>("BusyStatusStates", visualStates["Busy"]); Assert.AreEqual <string>("BusyStatusStates", visualStates["Idle"]); Assert.AreEqual <string>("VisibilityStates", visualStates["Visible"]); Assert.AreEqual <string>("VisibilityStates", visualStates["Hidden"]); }
public override void TemplateVisualStatesAreDefined() { IDictionary <string, string> visualStates = DefaultControlToTest.GetType().GetVisualStates(); Assert.AreEqual(6, visualStates.Count); Assert.AreEqual <string>("CommonStates", visualStates["Normal"]); Assert.AreEqual <string>("CommonStates", visualStates["MouseOver"]); Assert.AreEqual <string>("SelectionStates", visualStates["Unselected"]); Assert.AreEqual <string>("SelectionStates", visualStates["Selected"]); Assert.AreEqual <string>("RevealStates", visualStates["Shown"]); Assert.AreEqual <string>("RevealStates", visualStates["Hidden"]); }
public override void TemplateVisualStatesAreDefined() { IDictionary <string, string> visualStates = DefaultControlToTest.GetType().GetVisualStates(); Assert.AreEqual(9, visualStates.Count); Assert.AreEqual <string>("CommonStates", visualStates["Normal"]); Assert.AreEqual <string>("CommonStates", visualStates["MouseOver"]); Assert.AreEqual <string>("CommonStates", visualStates["Pressed"]); Assert.AreEqual <string>("CommonStates", visualStates["Disabled"]); Assert.AreEqual <string>("FocusStates", visualStates["Focused"]); Assert.AreEqual <string>("FocusStates", visualStates["Unfocused"]); Assert.AreEqual <string>("ValidationStates", visualStates["Valid"], "Failed to find expected state Valid!"); Assert.AreEqual <string>("ValidationStates", visualStates["InvalidFocused"], "Failed to find expected state InvalidFocused!"); Assert.AreEqual <string>("ValidationStates", visualStates["InvalidUnfocused"], "Failed to find expected state InvalidUnfocused!"); }
public override void TemplateVisualStatesAreDefined() { IDictionary <string, string> visualStates = DefaultControlToTest.GetType().GetVisualStates(); Assert.AreEqual(12, visualStates.Count); Assert.AreEqual <string>("CommonStates", visualStates["Normal"]); Assert.AreEqual <string>("CommonStates", visualStates["MouseOver"]); Assert.AreEqual <string>("CommonStates", visualStates["Pressed"]); Assert.AreEqual <string>("CommonStates", visualStates["Disabled"]); Assert.AreEqual <string>("FocusStates", visualStates["Focused"]); Assert.AreEqual <string>("FocusStates", visualStates["Unfocused"]); Assert.AreEqual <string>("ExpansionStates", visualStates["Expanded"]); Assert.AreEqual <string>("ExpansionStates", visualStates["Collapsed"]); Assert.AreEqual <string>("ExpandDirectionStates", visualStates["ExpandDown"]); Assert.AreEqual <string>("ExpandDirectionStates", visualStates["ExpandUp"]); Assert.AreEqual <string>("ExpandDirectionStates", visualStates["ExpandLeft"]); Assert.AreEqual <string>("ExpandDirectionStates", visualStates["ExpandRight"]); }
public override void TemplatePartsAreDefined() { IDictionary <string, Type> templateParts = DefaultControlToTest.GetType().GetTemplateParts(); Assert.AreEqual(0, templateParts.Count); }
public void TemplatePartsAreDefined() { IDictionary <string, Type> templateParts = DefaultControlToTest.GetType().GetTemplateParts(); Assert.AreEqual(58, templateParts.Count); Assert.AreSame(typeof(Grid), templateParts["RootElement"]); Assert.AreSame(typeof(Grid), templateParts["ShadowGrid"]); Assert.AreSame(typeof(Border), templateParts["ChartBorder"]); Assert.AreSame(typeof(Grid), templateParts["ChartAreaGrid"]); Assert.AreSame(typeof(Rectangle), templateParts["ChartLightingBorder"]); Assert.AreSame(typeof(StackPanel), templateParts["TopOuterPanel"]); Assert.AreSame(typeof(StackPanel), templateParts["TopOuterTitlePanel"]); Assert.AreSame(typeof(StackPanel), templateParts["TopOuterLegendPanel"]); Assert.AreSame(typeof(StackPanel), templateParts["BottomOuterPanel"]); Assert.AreSame(typeof(StackPanel), templateParts["BottomOuterTitlePanel"]); Assert.AreSame(typeof(StackPanel), templateParts["BottomOuterLegendPanel"]); Assert.AreSame(typeof(StackPanel), templateParts["LeftOuterPanel"]); Assert.AreSame(typeof(StackPanel), templateParts["LeftOuterTitlePanel"]); Assert.AreSame(typeof(StackPanel), templateParts["LeftOuterLegendPanel"]); Assert.AreSame(typeof(StackPanel), templateParts["RightOuterPanel"]); Assert.AreSame(typeof(StackPanel), templateParts["RightOuterTitlePanel"]); Assert.AreSame(typeof(StackPanel), templateParts["RightOuterLegendPanel"]); Assert.AreSame(typeof(Grid), templateParts["CenterOuterGrid"]); Assert.AreSame(typeof(Grid), templateParts["CenterGrid"]); Assert.AreSame(typeof(Grid), templateParts["TopAxisGrid"]); Assert.AreSame(typeof(StackPanel), templateParts["TopAxisContainer"]); Assert.AreSame(typeof(StackPanel), templateParts["TopAxisPanel"]); Assert.AreSame(typeof(Grid), templateParts["LeftAxisGrid"]); Assert.AreSame(typeof(StackPanel), templateParts["LeftAxisContainer"]); Assert.AreSame(typeof(StackPanel), templateParts["LeftAxisPanel"]); Assert.AreSame(typeof(Grid), templateParts["RightAxisGrid"]); Assert.AreSame(typeof(StackPanel), templateParts["RightAxisContainer"]); Assert.AreSame(typeof(StackPanel), templateParts["RightAxisPanel"]); Assert.AreSame(typeof(Grid), templateParts["BottomAxisGrid"]); Assert.AreSame(typeof(StackPanel), templateParts["BottomAxisContainer"]); Assert.AreSame(typeof(StackPanel), templateParts["BottomAxisPanel"]); Assert.AreSame(typeof(Grid), templateParts["CenterInnerGrid"]); Assert.AreSame(typeof(Grid), templateParts["PlotAreaGrid"]); Assert.AreSame(typeof(ScrollViewer), templateParts["PlotAreaScrollViewer"]); Assert.AreSame(typeof(Canvas), templateParts["PlotCanvas"]); Assert.AreSame(typeof(Canvas), templateParts["PlotAreaShadowCanvas"]); Assert.AreSame(typeof(Canvas), templateParts["DrawingCanvas"]); Assert.AreSame(typeof(Grid), templateParts["InnerGrid"]); Assert.AreSame(typeof(StackPanel), templateParts["TopInnerPanel"]); Assert.AreSame(typeof(StackPanel), templateParts["TopInnerTitlePanel"]); Assert.AreSame(typeof(StackPanel), templateParts["TopInnerLegendPanel"]); Assert.AreSame(typeof(StackPanel), templateParts["BottomInnerPanel"]); Assert.AreSame(typeof(StackPanel), templateParts["BottomInnerTitlePanel"]); Assert.AreSame(typeof(StackPanel), templateParts["BottomInnerLegendPanel"]); Assert.AreSame(typeof(StackPanel), templateParts["LeftInnerPanel"]); Assert.AreSame(typeof(StackPanel), templateParts["LeftInnerTitlePanel"]); Assert.AreSame(typeof(StackPanel), templateParts["LeftInnerLegendPanel"]); Assert.AreSame(typeof(StackPanel), templateParts["RightInnerPanel"]); Assert.AreSame(typeof(StackPanel), templateParts["RightInnerTitlePanel"]); Assert.AreSame(typeof(StackPanel), templateParts["RightInnerLegendPanel"]); Assert.AreSame(typeof(Canvas), templateParts["BevelCanvas"]); Assert.AreSame(typeof(StackPanel), templateParts["CenterDockInsidePlotAreaPanel"]); Assert.AreSame(typeof(StackPanel), templateParts["CenterDockOutsidePlotAreaPanel"]); Assert.AreSame(typeof(Canvas), templateParts["ToolTipCanvas"]); //Assert.AreSame(typeof(Border), templateParts["ToolTip"]); }