public void CreateCycleOffset(int cycleSize, int offset) { var instance = new CssCycleOffset(cycleSize, offset); Assert.Multiple(() => { Assert.That(instance.CycleSize, Is.EqualTo(cycleSize), nameof(instance.CycleSize)); Assert.That(instance.Offset, Is.EqualTo(offset), nameof(instance.Offset)); }); }
public void CanParse(string input, int cycleSize, int offset) { var instance = CssCycleOffset.Parse(input); Assert.Multiple(() => { Assert.That(instance.CycleSize, Is.EqualTo(cycleSize), nameof(instance.CycleSize)); Assert.That(instance.Offset, Is.EqualTo(offset), nameof(instance.Offset)); }); }
public CssNthLastOfTypePseudoClassSelector(CssCycleOffset cycleOffset) : base("nth-last-of-type", cycleOffset) { }
public CssNthLastChildPseudoClassSelector(CssCycleOffset cycleOffset) : base("nth-last-child", cycleOffset) { }