public void AvaloniaControlHelperTest_GetAvaloniaControls_Contain_Type(Type type)
        {
            /* act */
            var types = AvaloniaControlHelper.GetAvaloniaControls();

            /* assert */
            types.Should().Contain(type);
        }
Example #2
0
        public void StylesTest_CreateAllStyles()
        {
            var styleDefinitions = new DefaultStyleDefinitionProvider().Definitions;
            var types            = AvaloniaControlHelper.GetAvaloniaControls();
            var styles           = StyleUtils.CreateStyles(styleDefinitions, types, ClassNamingStrategy.Underscore).ToArray();

            this.output.Dump($"Number of Styles: {styles.Length}");
        }
        public void AvaloniaControlHelperTest_GetAvaloniaControls()
        {
            /* act & arrange */
            var types = AvaloniaControlHelper.GetAvaloniaControls();

            this.output.Dump(types);

            /* assert */
            types.Should().NotBeNullOrEmpty();
        }