Exemplo n.º 1
0
        public void DuplicatePointerLockAllowed_DuplicatesRemoved()
        {
            //Arrange
            SandboxDirectiveBuilder builder = new SandboxDirectiveBuilder();

            //Act
            builder.AllowPointerLock().AllowPointerLock();

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

            Assert.Equal("allow-pointer-lock", result);
        }
Exemplo n.º 2
0
        public void NothingElseCalled_PointerLockReturned()
        {
            //Arrange
            SandboxDirectiveBuilder builder = new SandboxDirectiveBuilder();

            //Act
            builder.AllowPointerLock();

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

            Assert.Equal("allow-pointer-lock", result);
        }
Exemplo n.º 3
0
        public void SomethingElseCalled_PointerLockIncluded()
        {
            //Arrange
            SandboxDirectiveBuilder builder = new SandboxDirectiveBuilder();

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

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

            Assert.Equal("allow-forms allow-modals allow-pointer-lock", result);
        }