Avalonia.Base.UnitTests.Styling.StyleTests.Nested_Style_Without_Selector_Throws C# (CSharp) Méthode

Nested_Style_Without_Selector_Throws() private méthode

private Nested_Style_Without_Selector_Throws ( ) : void
Résultat void
        public void Nested_Style_Without_Selector_Throws()
        {
            var parent = new Style(x => x.OfType<Class1>());
            var nested = new Style();

            Assert.Throws<InvalidOperationException>(() => parent.Children.Add(nested));
        }