예제 #1
0
        public void TestGetBommSizeAndDay()
        {
            int expectedDays     = 3;
            int expectedBommSize = 8000;

            int    start_people = 1;
            Gossip gossip       = new Gossip(start_people);

            Console.WriteLine();
            // init gossip
            gossip.CalculateBoomSize();

            int actualBoomSize = gossip.MaxBoomSize;
            int actualDay      = gossip.Days;

            Assert.AreEqual(expectedBommSize, actualBoomSize);
            Assert.AreEqual(expectedDays, actualDay);
        }