コード例 #1
0
        public void WillSumEmptyDictionaryOfSummaries()
        {
            var values = new Dictionary<string, int>();

            int total = values.Total();

            Assert.AreEqual(0, total);
        }
コード例 #2
0
        public void WillSumEmptyDictionaryOfSummaries()
        {
            var values = new Dictionary <string, int>();

            int total = values.Total();

            Assert.AreEqual(0, total);
        }
コード例 #3
0
        public void WillSumDictionaryOfSummaries()
        {
            var values = new Dictionary<string, int>();
            values.Add("1", 1);
            values.Add("2", 2);

            int total = values.Total();

            Assert.AreEqual(3, total);
        }
コード例 #4
0
        public void WillSumDictionaryOfSummaries()
        {
            var values = new Dictionary <string, int>();

            values.Add("1", 1);
            values.Add("2", 2);

            int total = values.Total();

            Assert.AreEqual(3, total);
        }