public virtual void TestQueryingByInterface() { StoreAll(OccamAndIsetta()); BasicQLinTestCase.Dog dog = ((BasicQLinTestCase.Dog)QLinSupport.Prototype(typeof( BasicQLinTestCase.Dog))); BasicQLinTestCase.Cat cat = ((BasicQLinTestCase.Cat)QLinSupport.Prototype(typeof( BasicQLinTestCase.Cat))); AssertQuery(Isetta(), dog, "Isetta"); AssertQuery(Occam(), cat, "Occam"); }
public override bool Equals(object obj) { if (!(obj is BasicQLinTestCase.Dog)) { return(false); } BasicQLinTestCase.Dog other = (BasicQLinTestCase.Dog)obj; if (_name == null) { return(other._name == null); } return(_name.Equals(other._name)); }