Headless.UnitTests.HtmlElementFinderTests.AllByAttributeThrowsExceptionWithWhiteSpaceAttributeNameTest C# (CSharp) Method

AllByAttributeThrowsExceptionWithWhiteSpaceAttributeNameTest() private method

        public void AllByAttributeThrowsExceptionWithWhiteSpaceAttributeNameTest()
        {
            var target = Substitute.For<HtmlElementFinderBase<HtmlElement>>();

            Action action = () => target.AllByAttribute("  ", "Test");

            action.ShouldThrow<ArgumentException>();
        }
HtmlElementFinderTests