public void NothingElseCalled_AsteriskReturned() { //Arrange PluginTypesBuilder builder = new PluginTypesBuilder(); //Act builder.AllowAny(); //Assert string result = builder.Build(); Assert.Equal("*", result); }
public void DuplicateAnyAllowed_DuplicatesRemoved() { //Arrange PluginTypesBuilder builder = new PluginTypesBuilder(); //Act builder.AllowAny().AllowAny(); //Assert string result = builder.Build(); Assert.Equal("*", result); }
public void MimeTypesAllowed_MimeTypesIgnored() { //Arrange PluginTypesBuilder builder = new PluginTypesBuilder(); //Act builder.AllowMimeType("img/png").AllowMimeType("img/jpg"); builder.AllowAny(); //Assert string result = builder.Build(); Assert.Equal("*", result); }
public void SomethingElseCalled_OnlyNoneReturned() { //Arrange PluginTypesBuilder builder = new PluginTypesBuilder(); //Act builder.AllowMimeType("img/png"); builder.AllowNone(); builder.AllowAny(); //Assert string result = builder.Build(); Assert.Equal("'none'", result); }