頂点
Limits.getEmailInvocationsメソッドを使用できます。 Test.startTest(); methodThatSendsEmail();整数呼び出し= Limits.getEmailInvocations(); Test.stopTest(