public static void InvalidFilterCriteriaException()
        {
            Exception ex = new InvalidFilterCriteriaException();
            Assert.NotNull(ex);
            Assert.Equal(ex.GetType(), typeof(InvalidFilterCriteriaException));

            string s = "My exception";
            ex = new InvalidFilterCriteriaException();
            Assert.NotNull(ex);
            Assert.Equal(ex.GetType(), typeof(InvalidFilterCriteriaException));
            Assert.Equal(s, ex.Message);

            s = "My exception";
            Exception innerException = new Exception();
            ex = new InvalidFilterCriteriaException(s, innerException);
            Assert.NotNull(ex);
            Assert.Equal(ex.GetType(), typeof(InvalidFilterCriteriaException));
            Assert.Equal(innerException, ex.InnerException);
            Assert.Equal(s, ex.Message);

            // Throw the exception from a method.
            try
            {
                ThrowInvalidFilterCriteriaException(s, innerException);
                Assert.True(false);
            }
            catch (InvalidFilterCriteriaException tex)
            {
                Assert.Equal(innerException, tex.InnerException);
                Assert.Equal(s, tex.Message);
            }
            catch (Exception)
            {
                Assert.True(false);
            }
        }