Nandini Reddy

Nandini Reddy

  • NA
  • 78
  • 542

How to write unit Testcase for below c# code

Jan 13 2022 7:19 AM

testcase to check item is null or not.

foreach (var fileName in filelist)
{
    var item = await fileInfoContextService.GetFileInfo(projectId, fileName);
    if (item == null)
    {
        await fileInfoContextService.InsertFileInfo(projectId, fileName, FileStatus.NotStarted);
    }
}

Answers (1)