private FindPropertiesReturnsPropertyMatchTest ( |
||
type | ||
expression | string | |
shouldExist | bool | |
리턴 | void |
public void FindPropertiesReturnsPropertyMatchTest(Type type, string expression, bool shouldExist)
{
var regex = new Regex(expression);
var target = Activator.CreateInstance(type);
var actual = target.FindProperties(regex);
if (shouldExist)
{
actual.Should().NotBeEmpty();
}
else
{
actual.Should().BeEmpty();
}
}