Exemple #1
0
        public void ToStringReturnsExpectedResult()
        {
            var sut    = new RegularFilterExpression("^");
            var result = sut.ToString();

            Assert.Equal("^", result);
        }
Exemple #2
0
        public void ImplicitCastToStringReturnsExpectedResult()
        {
            var    sut    = new RegularFilterExpression("^");
            string result = sut;

            Assert.Equal("^", result);
        }
Exemple #3
0
 public EventTypeFilter(RegularFilterExpression regex) : this(default, regex)
 {
 }
Exemple #4
0
 public StreamFilter(int?maxSearchWindow, RegularFilterExpression regex)
 {
     Regex           = regex;
     Prefixes        = Array.Empty <PrefixFilterExpression>();
     MaxSearchWindow = maxSearchWindow;
 }
Exemple #5
0
 public StreamFilter(RegularFilterExpression regex) : this(default, regex)
 {
 }
Exemple #6
0
        public void Equality()
        {
            var sut = new RegularFilterExpression("^");

            Assert.Equal(new RegularFilterExpression("^"), sut);
        }
Exemple #7
0
        public void InequalityOperator()
        {
            var sut = new RegularFilterExpression("^");

            Assert.True(new RegularFilterExpression("$") != sut);
        }