internal void Update(GameTime gameTime)
{
throw new NotImplementedException();
}
Sprite::Update ( GameTime theGameTime, Vector2 theSpeed, Vector2 theDirection ) : void |
public void UpdateTest_Spr() { Sprite target = new Sprite(); TimeSpan span = new TimeSpan(0,0,0,0,100); //100 milisecond GameTime theGameTime = new GameTime(span, span); Vector2 theSpeed = new Vector2(160, 0); Vector2 theDirection = new Vector2(-1, 0); Vector2 lastPos = target.getPos(); target.Update(theGameTime, theSpeed, theDirection); Assert.IsFalse(lastPos == target.getPos()); }