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); }
public void ReturnValidForValidTag() { var element = "<s><p></p></s>".ToXElement(); var strategy = new SStrategy(); var errors = strategy.Verify(element); Assert.AreEqual(0, errors.Count()); }