Exemple #1
0
 public void LinearizeSimpleInterface()
 {
     RType fooTy = new RType("IFoo", RTypeAttributes.Interface);
     List<RType> hierarchy = fooTy.LinearizeHierarchy().ToList();
     CollectionAssert.AreEqual(List(fooTy), hierarchy);
 }
Exemple #2
0
 public void LinearizeSimpleClass()
 {
     RType fooTy = new RType("Foo");
     List<RType> hierarchy = fooTy.LinearizeHierarchy().ToList();
     CollectionAssert.AreEqual(List(fooTy, AnyTy), hierarchy);
 }