public void ReturnValidForValidTagWithChildAll() { var element = "<seq><seq></seq><par></par><media></media></seq>".ToXElement(); var strategy = new SeqStrategy(); var errors = strategy.Verify(element); Assert.AreEqual(0, errors.Count()); }
public void ReturnInvalidForMissingAttribute() { var element = "<seq><media></media><invalidTag></invalidTag></seq>".ToXElement(); var strategy = new SeqStrategy(); var errors = strategy.Verify(element); Assert.AreEqual(VerificationState.ContainerContainsInvalidChilds, errors.First().State); }
public void ReturnValidForValidTag() { var element = "<seq></seq>".ToXElement(); var strategy = new SeqStrategy(); var errors = strategy.Verify(element); Assert.AreEqual(0, errors.Count()); }