public void GivenNewAccount_WhenUpdate_ThenSendEmail() { //ARRANGE //ACT sut.AddAccount(new Account(), "@"); //ASSERT mockmail.AssertWasCalled(x => x.Send(Arg <string> .Is.Anything, Arg <string> .Matches(y => y.Contains("@")), Arg <string> .Is.Anything)); }