public void GetHashCode_Test() { SetValues(null, "100", "10"); SpacingCssProperty other = CloneCssProperty(); Assert.AreEqual(other.GetHashCode(), _instance.GetHashCode()); }
public void Equals_TrueTest() { SetValues(null, "100", "10"); SpacingCssProperty other = CloneCssProperty(); Assert.IsTrue(other.Equals(_instance)); }
private void UseLargerSpacing(SpacingCssProperty currentSpacing) { double?currentAfter = currentSpacing?.After; double?nextBefore = GetSpacingProp(Next)?.Before; double?spacing = GetBestMarginBottomValue(currentAfter, nextBefore); SetMarginTopBottom(spacing); }
public void Initialize() { _instance = new SpacingCssProperty(); }