コード例 #1
0
        public void ReturnInvalidvForInvalidAttribute()
        {
            var element  = "<s name=\"test\"></s>".ToXElement();
            var strategy = new SStrategy();
            var errors   = strategy.Verify(element);

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

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