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