public void GetCorrectExtention() { IFormFile textFile = new FormFile( new MemoryStream(Encoding.UTF8.GetBytes("This is a dummy file")), 0, 0, "Data", "dummy.txt"); Assert.Equal(".txt", ImagesController.GetExtention(textFile)); }
public void GetCorrectExtention() { IFormFile textFile = new FormFile( new MemoryStream(Encoding.UTF8.GetBytes("This is a dummy file")), 0, 0, "Data", "dummy.txt"); Assert.Equal(".txt", ImagesController.GetExtention(textFile)); }