public void TesteGeraItem() { GeradorItem gerador = new GeradorItem(); Item item = gerador.Gerar(rnd); Assert.IsNotNull(item); }
protected override void Update(GameTime gameTime) { if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape)) { Exit(); } base.Update(gameTime); Window.Title = Components.Count.ToString(); GeradorItem.Gerar(gameTime); }