예제 #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);
        }
예제 #2
0
        public void NothingElseCalled_PresentationReturned()
        {
            //Arrange
            SandboxDirectiveBuilder builder = new SandboxDirectiveBuilder();

            //Act
            builder.AllowPresentation();

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

            Assert.Equal("allow-presentation", result);
        }
예제 #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);
        }