public static EnsureMembersAreVirtual ( string className, Assembly assembly ) : void | ||
className | string | |
assembly | Assembly | |
리턴 | void |
public void InterfaceVirtualClass() { VirtualTester.EnsureMembersAreVirtual("InterfaceVirtualClass", assembly, "Property"); VirtualTester.EnsureMembersAreNotSealed("InterfaceVirtualClass", assembly, "Property"); }
public void MethodsAndPropertiesAreMarkedAsVirtual() { VirtualTester.EnsureMembersAreVirtual("MethodsAndPropertiesAreMarkedAsVirtualClass", assembly, "Method1", "Property1"); }
public void NonAbstractMethodsAndPropertiesOnAbstractClassAreMarkedAsVirtual() { VirtualTester.EnsureMembersAreVirtual("AbstractClass", assembly, "NonAbstractMethod", "NonAbstractProperty"); }