C# xunit unit test

Viewed 94

I am writing a unit test in C# xunit for calculation. For example I have csv file with below data. What is the best practice to write unit test to calculate product price base on distinct product code.

CSV

Name     Code  Price
laptop , 9999, 100.00
Mobile , 7777, 500.00
laptop , 9999, 100.00

public class Product 
{
    string Name {get;set;}
    string code {get;set;}
    string Price {get;set;}
}
0 Answers
Related