public void CanReturnCommodityParentListByType() { //ACT var jsonResult = _commodityController.CommodityParentListByType(1, 1) as JsonResult; //ASSERT Assert.NotNull(jsonResult); Assert.NotNull(jsonResult.Data); Assert.IsNotInstanceOf <EmptyResult>(jsonResult.Data); Assert.IsInstanceOf <SelectList>(jsonResult.Data); }