CapRaffle.UnitTests.ParticipantControllerTests.Can_Not_Delete_Others_Participation C# (CSharp) Method

Can_Not_Delete_Others_Participation() private method

private Can_Not_Delete_Others_Participation ( ) : void
return void
        public void Can_Not_Delete_Others_Participation()
        {
            //Arrange
            participant.UserEmail = "[email protected]";
            //Act
            JsonResult result = controller.Delete(participant);

            //Assert
            Assert.AreEqual(false, result.Data);
            mock.Verify(m => m.DeleteParticipant(participant), Times.Never());
        }