Class ParseCriteriaTest
Inheritance
System.Object
ParseCriteriaTest
Assembly: Albatross.Database.UnitTest.dll
Syntax
[TestFixture(TestOf = typeof(ParseCriteria))]
public class ParseCriteriaTest
Methods
|
Improve this Doc
View Source
NameCheck(String)
Declaration
[TestCase(null, ExpectedResult = null)]
[TestCase("", ExpectedResult = null)]
[TestCase("test", ExpectedResult = "test")]
[TestCase("a.b", ExpectedResult = "b")]
[TestCase("a.*", ExpectedResult = null)]
[TestCase("a.b*", ExpectedResult = "b%")]
[TestCase("*", ExpectedResult = null)]
[TestCase("*.*", ExpectedResult = null)]
public string NameCheck(string criteria)
Parameters
Type |
Name |
Description |
System.String |
criteria |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
SchemaCheck(String)
Declaration
[TestCase(null, ExpectedResult = null)]
[TestCase("", ExpectedResult = null)]
[TestCase("test", ExpectedResult = null)]
[TestCase("a.b", ExpectedResult = "a")]
[TestCase("a.*", ExpectedResult = "a")]
[TestCase("*.*", ExpectedResult = null)]
[TestCase("*a.*", ExpectedResult = "%a")]
[TestCase("*a*b*.*", ExpectedResult = "%a%b%")]
public string SchemaCheck(string criteria)
Parameters
Type |
Name |
Description |
System.String |
criteria |
|
Returns
Type |
Description |
System.String |
|