public void AirspeedWithNails() { var norwegian = new Bird(Bird.NorwegianBlue); norwegian.IsNailed = true; var speed = norwegian.GetAirspeed(); Assert.AreEqual(0m, speed); }
public void AirspeedNoNails() { var norwegian = new Bird(Bird.NorwegianBlue); norwegian.IsNailed = false; var speed = norwegian.GetAirspeed(); Assert.AreEqual(10m, speed); }
public void UnladenAirspeed() { var swallow = new Bird(Bird.AfricanSwallow); swallow.CoconutCount = 0; var speed = swallow.GetAirspeed(); Assert.AreEqual(20m, speed); }
public void LadenSwallowSpeed() { var swallow = new Bird(Bird.AfricanSwallow); swallow.CoconutCount = 5; var speed = swallow.GetAirspeed(); Assert.AreEqual(5m, speed); }
public void SprintingSwallow() { var swallow = new Bird(Bird.AfricanSwallow); swallow.BaseAirspeed = 50m; swallow.CoconutCount = 2; var speed = swallow.GetAirspeed(); Assert.AreEqual(44m, speed); }