Пример #1
0
        public void testCalculateTotalNetAssetsNooInput()
        {
            List <double> input          = new List <double>();
            double        expectedOutput = 0.0;

            Assert.AreEqual(expectedOutput, StockAssets.CalculateTotalNetAssets(input), DELTA);
        }
Пример #2
0
        public void testCalculateTotalNetAssetsTwoInputs()
        {
            List <double> input = new List <double>()
            {
                3599.00, 11159.99
            };
            double expectedOutput = 14758.99;

            Assert.AreEqual(expectedOutput, StockAssets.CalculateTotalNetAssets(input), DELTA);
        }
Пример #3
0
        public void testCalculateTotalNetAssets()
        {
            List <double> input = new List <double>()
            {
                3563.0002
            };
            double expectedOutput = 3563.0002;

            Assert.AreEqual(expectedOutput, StockAssets.CalculateTotalNetAssets(input), DELTA);
        }