public void InForcedStrategiesMarksElementsNotToReproduce()
        {
            var ctx = new PortableHtmlContext {
                Strategy = PortableHtmlVerificationStrategy.Full
            };
            var e = new XElement("test");

            Assert.True(ctx.InChecking(e));
            ctx.SetError(PortableHtmlSchemaErorr.None, e);
            Assert.True(ctx.InChecking(e), "Full");
            ctx.Strategy = PortableHtmlVerificationStrategy.ForcedElementResult;
            e            = new XElement("test");
            Assert.True(ctx.InChecking(e));
            ctx.SetError(PortableHtmlSchemaErorr.None, e);
            Assert.False(ctx.InChecking(e), "ForcedElement");
            ctx.Strategy = PortableHtmlVerificationStrategy.ForcedResult;
            e            = new XElement("test");
            Assert.True(ctx.InChecking(e));
            ctx.SetError(PortableHtmlSchemaErorr.None, e);
            Assert.False(ctx.InChecking(e), "ForcedResult");
        }
        public void DeactivatesInForcedResultMode()
        {
            var ctx = new PortableHtmlContext {
                Strategy = PortableHtmlVerificationStrategy.ForcedResult
            };

            Assert.True(ctx.IsActive);
            ctx.SetError(PortableHtmlSchemaErorr.InvalidRootTag);
            Assert.False(ctx.IsActive, "Forced");

            ctx = new PortableHtmlContext {
                Strategy = PortableHtmlVerificationStrategy.ForcedElementResult
            };
            Assert.True(ctx.IsActive);
            ctx.SetError(PortableHtmlSchemaErorr.InvalidRootTag);
            Assert.True(ctx.IsActive, "ForcedResult");

            ctx = new PortableHtmlContext {
                Strategy = PortableHtmlVerificationStrategy.Full
            };
            Assert.True(ctx.IsActive);
            ctx.SetError(PortableHtmlSchemaErorr.InvalidRootTag);
            Assert.True(ctx.IsActive, "Full");
        }