public void Parent() { var caller = CecilImplementationTest.GetMethod("CecilImplementationParent"); Assert.That(caller.Implementation, Is.Not.Null); Assert.That(caller.Implementation.Parent, Is.EqualTo(caller)); }
public void ReferencedTypes(string name, bool expected) { var caller = CecilImplementationTest.GetMethod("CecilImplementationReferencedTypes"); var type = CecilImplementationTest.GetType(name); Assert.That(caller.Implementation, Is.Not.Null); Assert.That(caller.Implementation.ReferencedTypes, expected ? Does.Contain(type) : Does.Not.Contain(type)); }