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); }
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); }
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); }