Beispiel #1
0
        public void ReturnInvalidForInvalidAttribute()
        {
            var element  = "<p name=\"test\"></p>".ToXElement();
            var strategy = new PStrategy();
            var errors   = strategy.Verify(element);

            Assert.AreEqual(VerificationState.InvalidAttribute, errors.First().State);
        }
Beispiel #2
0
        public void ReturnValidForValidTag()
        {
            var element  = "<p><p></p></p>".ToXElement();
            var strategy = new PStrategy();
            var errors   = strategy.Verify(element);

            Assert.AreEqual(0, errors.Count());
        }