public void AllMethodsShoulReturnMethodsHavingTheCheckBoxName()
        {
            IEnumerable <MethodInfo> all = new TestHtmlTag().AllMethods;

            Assert.That(all.Count(), Is.GreaterThan(0));
            Assert.That(all.All(m => m.Name.Equals("CheckBox")));
        }
        public void AllCandidatesShoulReturnAllMethodsIfNoParametersAreGiven()
        {
            IEnumerable<MethodInfo> candidates = GetCandidates();
            Assert.That(candidates.Count(), Is.GreaterThan(0));
            Assert.That(candidates.All(m => m.Name.Equals("CheckBox")));

            IEnumerable<MethodInfo> all = new TestHtmlTag().AllMethods;
            Assert.That(candidates.Count(), Is.EqualTo(all.Count()));
            foreach (MethodInfo info in all)
            {
                Assert.That(candidates, Has.Member(info));
            }
        }
        public void AllCandidatesShoulReturnAllMethodsIfNoParametersAreGiven()
        {
            IEnumerable <MethodInfo> candidates = GetCandidates();

            Assert.That(candidates.Count(), Is.GreaterThan(0));
            Assert.That(candidates.All(m => m.Name.Equals("CheckBox")));

            IEnumerable <MethodInfo> all = new TestHtmlTag().AllMethods;

            Assert.That(candidates.Count(), Is.EqualTo(all.Count()));
            foreach (MethodInfo info in all)
            {
                Assert.That(candidates, Has.Member(info));
            }
        }
 public void AllMethodsShoulReturnMethodsHavingTheCheckBoxName()
 {
     IEnumerable<MethodInfo> all = new TestHtmlTag().AllMethods;
     Assert.That(all.Count(), Is.GreaterThan(0));
     Assert.That(all.All(m => m.Name.Equals("CheckBox")));
 }