public void MinimumShouldMatchParameter002()
        {
            // Arrange
            var parameter = new MinimumShouldMatchParameter <TestDocument>();

            // Act / Assert
            Assert.Throws <ArgumentNullException>(() => parameter.Configure(null));
        }
        public void MinimumShouldMatchParameter001()
        {
            // Arrange
            var container = new List <string>();
            var parameter = new MinimumShouldMatchParameter <TestDocument>();

            parameter.Configure("75%");

            // Act
            parameter.Execute(container);

            // Assert
            Assert.Equal(1, container.Count);
            Assert.Equal("mm=75%", container[0]);
        }
        public void MinimumShouldMatchParameter001()
        {
            // Arrange
            var    expected = JObject.Parse(@"
            {
              params:{
                mm:""75%""
              }
            }");
            string actual;
            var    jObject   = new JObject();
            var    parameter = new MinimumShouldMatchParameter <TestDocument>();

            parameter.Configure("75%");

            // Act
            parameter.Execute(jObject);
            actual = jObject.ToString();

            // Assert
            Assert.Equal(expected.ToString(), actual);
        }