Example #1
0
        public void DuplicatePresentationAllowed_DuplicatesRemoved()
        {
            //Arrange
            SandboxDirectiveBuilder builder = new SandboxDirectiveBuilder();

            //Act
            builder.AllowPresentation().AllowPresentation();

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

            Assert.Equal("allow-presentation", result);
        }
Example #2
0
        public void NothingElseCalled_PresentationReturned()
        {
            //Arrange
            SandboxDirectiveBuilder builder = new SandboxDirectiveBuilder();

            //Act
            builder.AllowPresentation();

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

            Assert.Equal("allow-presentation", result);
        }
Example #3
0
        public void SomethingElseCalled_PresentationIncluded()
        {
            //Arrange
            SandboxDirectiveBuilder builder = new SandboxDirectiveBuilder();

            //Act
            builder.AllowModals();
            builder.AllowPresentation();
            builder.AllowPopups();

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

            Assert.Equal("allow-modals allow-popups allow-presentation", result);
        }