public void DuplicateSameOriginAllowed_DuplicatesRemoved() { //Arrange SandboxDirectiveBuilder builder = new SandboxDirectiveBuilder(); //Act builder.AllowSameOrigin().AllowSameOrigin(); //Assert string result = builder.Build(); Assert.Equal("allow-same-origin", result); }
public void NothingElseCalled_SameOriginReturned() { //Arrange SandboxDirectiveBuilder builder = new SandboxDirectiveBuilder(); //Act builder.AllowSameOrigin(); //Assert string result = builder.Build(); Assert.Equal("allow-same-origin", result); }
public void SomethingElseCalled_SameOriginIncluded() { //Arrange SandboxDirectiveBuilder builder = new SandboxDirectiveBuilder(); //Act builder.AllowModals(); builder.AllowSameOrigin(); builder.AllowPopups(); //Assert string result = builder.Build(); Assert.Equal("allow-modals allow-popups allow-same-origin", result); }