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