public virtual void ResolveShorthandLineOnePropertyTest() { TextDecorationShorthandResolver resolver = new TextDecorationShorthandResolver(); IList <CssDeclaration> result = resolver.ResolveShorthand("underline"); IDictionary <String, String> resultMap = ConvertCssDeclarationsToMap(result); NUnit.Framework.Assert.AreEqual(3, resultMap.Count); NUnit.Framework.Assert.AreEqual("underline", resultMap.Get("text-decoration-line")); NUnit.Framework.Assert.AreEqual("initial", resultMap.Get("text-decoration-style")); NUnit.Framework.Assert.AreEqual("initial", resultMap.Get("text-decoration-color")); }
public virtual void ResolveShorthandLineTwoPropertiesTest() { TextDecorationShorthandResolver resolver = new TextDecorationShorthandResolver(); IList <CssDeclaration> result = resolver.ResolveShorthand("underline overline"); IDictionary <String, String> resultMap = ConvertCssDeclarationsToMap(result); NUnit.Framework.Assert.AreEqual(3, resultMap.Count); String line = resultMap.Get("text-decoration-line"); NUnit.Framework.Assert.IsTrue(line != null && line.Contains("underline") && line.Contains("overline")); NUnit.Framework.Assert.AreEqual("initial", resultMap.Get("text-decoration-style")); NUnit.Framework.Assert.AreEqual("initial", resultMap.Get("text-decoration-color")); }