예제 #1
0
		public void SameType()
		{
			IType type = new MockType();
			
			var criterion = new IsTypeCriterion(type);
			Assert.IsTrue(criterion.SatisfiedBy(type));
		}
예제 #2
0
		public void InheritedType()
		{
			IType baseType = new MockType();
			var type = new MockType() {
				BaseTypes = { baseType }
			};
			
			var criterion = new IsTypeCriterion(baseType);
			Assert.IsTrue(criterion.SatisfiedBy(type));
		}