I just installed the "Nunit" for unit tests in my project.
I installed via Nuget on the VS2013 console.
I put the annotations on top of my methods I ran Explorer test and gave a "Run ALL".
This "Run ALL" is only compiling my project and is not showing me which tests
have passed and which failed.
NOTE: My project was already ready.
My code
using NUnit.Framework;
[TestFixture]
public class LogDAO
{
/// <summary>
/// Metodo para inclusão
/// </summary>
/// <param name="UserID"></param>
/// <param name="Acao"></param>
/// <returns></returns>
[Test]
public void InserirLog(string UserID, string Acao)
{
using (entidadesIUS entidades = new entidadesIUS())
{
LogUtilizacaoIUS log = new LogUtilizacaoIUS();
log.UserId = new Guid(UserID);
log.Acao = Acao;
log.DataOcorrencia = DateTime.Now;
entidades.LogUtilizacaoIUS.Add(log);
entidades.SaveChanges();
}
}
}
My test Explorer just stays that way as I said.