コード例 #1
0
        public void ListAvg()
        {
            // do not use Assert.AreEqual to test if Prices are equal

            var l = new PriceList()
            {
                p23, p22, p12, p11
            };

            Assert.IsTrue(new Price(1.5m, 100 / 3m, CurrencyUnit.EUR) == l.Avg());
        }