public void DuplicateNoneAllowed_DuplicatesRemoved() { //Arrange PluginTypesBuilder builder = new PluginTypesBuilder(); //Act builder.AllowNone().AllowNone(); //Assert string result = builder.Build(); Assert.Equal("'none'", result); }
public void NothingElseCalled_NoneReturned() { //Arrange PluginTypesBuilder builder = new PluginTypesBuilder(); //Act builder.AllowNone(); //Assert string result = builder.Build(); Assert.Equal("'none'", 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); }