示例#1
0
        public void PopupsToEscapeSandboxAllowed_DuplicatesRemoved()
        {
            //Arrange
            SandboxDirectiveBuilder builder = new SandboxDirectiveBuilder();

            //Act
            builder.AllowPopupsToEscapeSandbox().AllowPopupsToEscapeSandbox();

            //Assert
            string result = builder.Build();

            Assert.Equal("allow-popups-to-escape-sandbox", result);
        }
示例#2
0
        public void NothingElseCalled_PopupsToEscapeSandboxReturned()
        {
            //Arrange
            SandboxDirectiveBuilder builder = new SandboxDirectiveBuilder();

            //Act
            builder.AllowPopupsToEscapeSandbox();

            //Assert
            string result = builder.Build();

            Assert.Equal("allow-popups-to-escape-sandbox", result);
        }
示例#3
0
        public void SomethingElseCalled_PopupsToEscapeSandboxIncluded()
        {
            //Arrange
            SandboxDirectiveBuilder builder = new SandboxDirectiveBuilder();

            //Act
            builder.AllowModals();
            builder.AllowPopupsToEscapeSandbox();
            builder.AllowForms();

            //Assert
            string result = builder.Build();

            Assert.Equal("allow-forms allow-modals allow-popups-to-escape-sandbox", result);
        }