Ejemplo n.º 1
0
        public void StyleToBeMergedAreCorrectlyDetected(string conditional, string media, string title, string href,
                                                        bool canBeMerged)
        {
            var style = new Style();

            style.Conditional = conditional;
            style.Media       = media;
            style.Href        = href;
            style.Title       = title;

            bool isMergeable = StyleSheetElementCollectionRenderer.CanStyleBeMerged(style);

            if (canBeMerged)
            {
                Assert.IsTrue(isMergeable, "Expected to be mergeable");
            }
            else
            {
                Assert.IsFalse(isMergeable, "Expected not to be mergeable");
            }
        }