public void DuplicateAnyAllowed_DuplicatesRemoved() { //Arrange SandboxDirectiveBuilder builder = new SandboxDirectiveBuilder(); //Act builder.AllowAny().AllowAny(); //Assert string result = builder.Build(); Assert.Equal("'*'", result); }
public void NothingElseCalled_AsteriskReturned() { //Arrange SandboxDirectiveBuilder builder = new SandboxDirectiveBuilder(); //Act builder.AllowAny(); //Assert string result = builder.Build(); Assert.Equal("'*'", result); }
public void SomethingElseAllowed_OtherssIgnored() { //Arrange SandboxDirectiveBuilder builder = new SandboxDirectiveBuilder(); //Act builder.AllowForms(); builder.AllowModals(); builder.AllowAny(); //Assert string result = builder.Build(); Assert.Equal("'*'", result); }
public void SomethingElseCalled_OnlyNoneReturned() { //Arrange SandboxDirectiveBuilder builder = new SandboxDirectiveBuilder(); //Act builder.AllowForms(); builder.AllowModals(); builder.AllowNone(); builder.AllowAny(); //Assert string result = builder.Build(); Assert.Equal("'none'", result); }