public void TransferRoleOwnership_InvalidRole_ThrowsInvalidEnumArgumentException(ActiveDirectoryRole role) { var controller = new SubController(); AssertExtensions.Throws <InvalidEnumArgumentException>("role", () => controller.TransferRoleOwnership(role)); }
public void TransferRoleOwnership_NoContext_ThrowsNullReferenceException() { var controller = new SubController(); Assert.Throws <NullReferenceException>(() => controller.TransferRoleOwnership(ActiveDirectoryRole.NamingRole)); }