[TestMethod()]//Check if it returns a list of AvaERPSettingsOtherDetails. public void GetAvaERPSettingOtherDetailsTestToCheckReturnType() { xmlReader = XmlReader.Create(@"..\XMLTestFiles\TPA_New.xml"); var tpa = new TPAScaffold(); var serializer = new XmlSerializer(tpa.GetType()); input = (TPAScaffold)serializer.Deserialize(xmlReader); var AccountInfo = AvaTaxProfileAssistantHelper.InsertAccountInfo(input.AccountCredentials); int AvaERPSettingsID = AvaTaxProfileAssistantHelper.InsertAvaERPSetting(input.AvaERPSettings, AccountInfo.ID); //Act foreach (EntityNameCode ec in input.AvaERPSettings.MapItemCodes.NonTaxableItems.Items) { AvaTaxProfileAssistantHelper.InsertEntityNameCode(AccountInfo.ID, AvaERPSettingsID, ec, Constants.AVAERP_SETTINGS_ITEMS); } var result = AvaTaxProfileAssistantHelper.GetAvaERPSettingOtherDetails(AccountInfo.ID); //Assert Assert.IsInstanceOfType(result, typeof(List <AvaERPSettingsOtherDetails>), "Incorrect result type returned!!"); }