public void Test001()
        {
            var cut = RenderComponent <Simple1>();

            var sut = new RefreshableElementCollection(cut, ".foo");

            sut.ShouldBeEmpty();
        }
        public void Test002()
        {
            var cut = RenderComponent <Simple1>();

            var sut = new RefreshableElementCollection(cut, "h1");

            sut.Count.ShouldBe(1);
            sut[0].TagName.ShouldBe("H1");
        }
        public void Test003()
        {
            var cut = RenderComponent <ClickAddsLi>();
            var sut = new RefreshableElementCollection(cut, "li");

            sut.Count.ShouldBe(0);

            cut.Find("button").Click();

            sut.Refresh();
            sut.Count.ShouldBe(1);
        }
        public void Test005()
        {
            var cut = RenderComponent <ClickAddsLi>();
            var sut = new RefreshableElementCollection(cut, "li")
            {
                EnableAutoRefresh = true
            };

            sut.EnableAutoRefresh = false;

            cut.Find("button").Click();

            sut.Count.ShouldBe(0);
        }