28 references to IntegerOperationType
Microsoft.AspNetCore.Rewrite (17)
ApacheModRewrite\RuleBuilder.cs (6)
80match = new IntegerMatch(input.Operand, IntegerOperationType.Equal); 83match = new IntegerMatch(input.Operand, IntegerOperationType.Greater); 86match = new IntegerMatch(input.Operand, IntegerOperationType.GreaterEqual); 89match = new IntegerMatch(input.Operand, IntegerOperationType.Less); 92match = new IntegerMatch(input.Operand, IntegerOperationType.LessEqual); 95match = new IntegerMatch(input.Operand, IntegerOperationType.NotEqual);
UrlMatches\IntegerMatch.cs (11)
12private readonly IntegerOperationType _operation; 13public IntegerMatch(int value, IntegerOperationType operation) 19public IntegerMatch(string value, IntegerOperationType operation) 28if (operation < IntegerOperationType.Equal || operation > IntegerOperationType.NotEqual) 46case IntegerOperationType.Equal: 48case IntegerOperationType.Greater: 50case IntegerOperationType.GreaterEqual: 52case IntegerOperationType.Less: 54case IntegerOperationType.LessEqual: 56case IntegerOperationType.NotEqual:
Microsoft.AspNetCore.Rewrite.Tests (11)
UrlMatches\IntegerMatchTests.cs (11)
14var ex = Assert.Throws<FormatException>(() => new IntegerMatch("Not an int", IntegerOperationType.Equal)); 19[InlineData(1, (int)IntegerOperationType.Equal, "1", true)] 20[InlineData(1, (int)IntegerOperationType.NotEqual, "2", true)] 21[InlineData(2, (int)IntegerOperationType.Less, "1", true)] 22[InlineData(1, (int)IntegerOperationType.LessEqual, "2", false)] 23[InlineData(1, (int)IntegerOperationType.Greater, "2", true)] 24[InlineData(2, (int)IntegerOperationType.GreaterEqual, "1", false)] 25[InlineData(1, (int)IntegerOperationType.Equal, "Not an int", false)] 26[InlineData(1, (int)IntegerOperationType.Equal, "", false)] 27[InlineData(1, (int)IntegerOperationType.Equal, "2147483648", false)] 31var integerMatch = new IntegerMatch(value, (IntegerOperationType)operation);