public async Task Index_Rendered() { var result = await _controller.Index(); Assert.IsInstanceOf <ViewResult>(result); Assert.IsNotNull(result); _context.Database.EnsureDeleted(); }