public void TestInterfaceOnClass() { var cmp = new TypeComparer(); Assert.IsTrue(cmp.CanCompare(typeof(ITopologicalComparer), typeof(TypeComparer))); Assert.IsTrue(cmp.Compare(typeof(ITopologicalComparer), typeof(TypeComparer)) < 0); }
public void TestRoot() { var cmp = new TypeComparer(); Assert.IsTrue(cmp.CanCompare(typeof(object), typeof(TypeComparer))); Assert.IsTrue(cmp.Compare(typeof(object), typeof(TypeComparer)) < 0); }