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()); }
public void UpdateTest() { Sprite target = new Sprite(); // TODO: Initialize to an appropriate value GameTime theGameTime = null; // TODO: Initialize to an appropriate value Vector2 theSpeed = new Vector2(); // TODO: Initialize to an appropriate value Vector2 theDirection = new Vector2(); // TODO: Initialize to an appropriate value target.Update(theGameTime, theSpeed, theDirection); Assert.Inconclusive("A method that does not return a value cannot be verified."); }
public void UpdateTest() { Sprite target = new Sprite(); // TODO: Initialize to an appropriate value GameTime gameTime = null; // TODO: Initialize to an appropriate value target.Update(gameTime); Assert.Inconclusive("A method that does not return a value cannot be verified."); }