You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
private static IEnumerable<object[]> CalcInvoiceChargesTestDataSet()
{
using var stream = typeof(TestModel).GetResourceStream("TestData.csv");
using var reader = new StreamReader(stream);
using var csv = new CsvReader(reader, CultureInfo.InvariantCulture);
csv.Configuration.AllowComments = true;
foreach (var record in csv.GetRecords<>())
yield return new[] { record }; //TODO: make this an object array or at least configurable is some fashion to improve test data source
}
[DataTestMethod, TestCategory(TestCategories.Unit)]
[DynamicData(
nameof(TestModel),
DynamicDataSourceType.Method
//DynamicDataDisplayName = nameof(TestModel.TestCase)
)]
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: