示例#1
0
        public void ShouldCalculateRightLocation()
        {
            var blood = new Blood(0, 10)
            {
                TimeAliveInSeconds = 2
            };

            Assert.AreEqual(new Point(Game.FieldWidth - 25, 0), blood.GetLocation());
        }
示例#2
0
        public void ShouldNotMoving_WhenCreatingWithZeroVelocity()
        {
            var blood = new Blood(0, 0)
            {
                TimeAliveInSeconds = 1
            };

            Assert.AreEqual(new Point(Game.FieldWidth - 1, 0), blood.GetLocation());
        }