public void DuplicatePointerLockAllowed_DuplicatesRemoved() { //Arrange SandboxDirectiveBuilder builder = new SandboxDirectiveBuilder(); //Act builder.AllowPointerLock().AllowPointerLock(); //Assert string result = builder.Build(); Assert.Equal("allow-pointer-lock", result); }
public void NothingElseCalled_PointerLockReturned() { //Arrange SandboxDirectiveBuilder builder = new SandboxDirectiveBuilder(); //Act builder.AllowPointerLock(); //Assert string result = builder.Build(); Assert.Equal("allow-pointer-lock", result); }
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); }