public void GetEffectiveValueDefaultTest() { var esa = new EnumStylingAttribute("Abc", typeof(WordBreakSetting)); var v = esa.GetEffectiveValue(null, WordBreakSetting.BreakWord, null, false); Assert.AreEqual("break-word", v); }
public void GetEffectiveValueNullTest() { var esa = new EnumStylingAttribute("Abc", typeof(WordBreakSetting)); var v = esa.GetEffectiveValue(null, null, null, false); Assert.AreEqual(null, v); }
public void GetEffectiveValueSetTest() { var esa = new EnumStylingAttribute("Abc", typeof(WordBreakSetting)); var v = esa.GetEffectiveValue(WordBreakSetting.KeepAll, WordBreakSetting.BreakWord, null, false); Assert.AreEqual("keep-all", v); }