Пример #1
0
 public void testNetAssetWithInvalidShares()
 {
     Assert.AreEqual(0, StockAssets.CalculateNetAssetValue(5.2, 0));
 }
Пример #2
0
 public void testNetAssetWithInvalidPriceAndShare()
 {
     Assert.AreEqual(0, StockAssets.CalculateNetAssetValue(-1, -1));
 }
Пример #3
0
 public void testNetAsset()
 {
     Assert.AreEqual(8900, StockAssets.CalculateNetAssetValue(8.9, 1000), DELTA);
 }