public void kCalcTest()
 {
     prodInfo prod = new prodInfo("tea", "super", "", 10, 1, 4, 4, 0);  // TODO: Initialize to an appropriate value
     Interpartor target = new Interpartor(prod); // TODO: Initialize to an appropriate value
     double expected = 250; // TODO: Initialize to an appropriate value
     double actual;
     actual = target.kCalc();
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
示例#2
0
 /// <summary>
 /// The product constructor
 /// </summary>
 /// <param name="prod">the product to copy</param>
 public prodInfo(prodInfo prod)
 {
     prod_name = prod.get_name();
     prod_place = prod.get_place();
     prod_city = prod.get_city();
     prod_amount = prod.get_amount();
     prod_currency = prod.get_currency();
     prod_messurment = prod.get_messurment();
     prod_price = prod.get_price();
     timeSpan = prod.timeSpan;
 }
示例#3
0
 /// <summary>
 /// Then interperter constructor
 /// </summary>
 /// <param name="prod">The product the user entered</param>
 public Interpartor(prodInfo prod)
 {
     product = new prodInfo(prod);
     dbm = new DBM(DBPath);
 }