1234567891011121314151617181920212223242526 |
- using Microsoft.VisualStudio.TestTools.UnitTesting;
- using System;
- using WSUniversalLib;
- namespace WSUniversalLib
- {
- [TestClass]
- public class UnitTest1
- {
- [TestMethod]
- public void GetQuantityForProduct_NonExistentProductType1()
- {
- Calculation calculation = new Calculation();
- Assert.AreEqual(1, calculation.GetQuantityForProduct(1,1,1,1,1));
- }
- [TestMethod]
- public void GetQuantityForProduct_NonExistentProductType2()
- {
- Calculation calculation = new Calculation();
- Assert.AreEqual(2, calculation.GetQuantityForProduct(1,1,2,1,1));
- }
- }
- }
|