Avalonia.Base.UnitTests.Styling.StyleTests.Should_Throw_For_Selector_With_Trailing_Template_Selector C# (CSharp) Method

Should_Throw_For_Selector_With_Trailing_Template_Selector() private method

        public void Should_Throw_For_Selector_With_Trailing_Template_Selector()
        {
            Assert.Throws<InvalidOperationException>(() =>
                new Style(x => x.OfType<Button>().Template()));
        }