public void SameType() { IType type = new MockType(); var criterion = new IsTypeCriterion(type); Assert.IsTrue(criterion.SatisfiedBy(type)); }
public void InheritedType() { IType baseType = new MockType(); var type = new MockType() { BaseTypes = { baseType } }; var criterion = new IsTypeCriterion(baseType); Assert.IsTrue(criterion.SatisfiedBy(type)); }