示例#1
0
        public void DuplicateNoneAllowed_DuplicatesRemoved()
        {
            //Arrange
            PluginTypesBuilder builder = new PluginTypesBuilder();

            //Act
            builder.AllowNone().AllowNone();

            //Assert
            string result = builder.Build();

            Assert.Equal("'none'", result);
        }
示例#2
0
        public void NothingElseCalled_NoneReturned()
        {
            //Arrange
            PluginTypesBuilder builder = new PluginTypesBuilder();

            //Act
            builder.AllowNone();

            //Assert
            string result = builder.Build();

            Assert.Equal("'none'", result);
        }
示例#3
0
        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);
        }