예제 #1
0
            public void AirspeedWithNails()
            {
                var norwegian = new Bird(Bird.NorwegianBlue);
                norwegian.IsNailed = true;
                var speed = norwegian.GetAirspeed();

                Assert.AreEqual(0m, speed);
            }
예제 #2
0
            public void AirspeedNoNails()
            {
                var norwegian = new Bird(Bird.NorwegianBlue);
                norwegian.IsNailed = false;
                var speed = norwegian.GetAirspeed();

                Assert.AreEqual(10m, speed);
            }
예제 #3
0
            public void UnladenAirspeed()
            {
                var swallow = new Bird(Bird.AfricanSwallow);
                swallow.CoconutCount = 0;

                var speed = swallow.GetAirspeed();
                Assert.AreEqual(20m, speed);
            }
예제 #4
0
            public void LadenSwallowSpeed()
            {
                var swallow = new Bird(Bird.AfricanSwallow);
                swallow.CoconutCount = 5;

                var speed = swallow.GetAirspeed();
                Assert.AreEqual(5m, speed);
            }
예제 #5
0
            public void SprintingSwallow()
            {
                var swallow = new Bird(Bird.AfricanSwallow);
                swallow.BaseAirspeed = 50m;
                swallow.CoconutCount = 2;
                var speed = swallow.GetAirspeed();

                Assert.AreEqual(44m, speed);
            }