public void BoundBoxTest() { Vector2 topLeft = new Vector2(); // TODO: Initialize to an appropriate value float height = 0F; // TODO: Initialize to an appropriate value VertScrollBar target = new VertScrollBar(topLeft, height); // TODO: Initialize to an appropriate value Rectangle actual; actual = target.BoundBox; Assert.Inconclusive("Verify the correctness of this test method."); }
public ListBox(Vector2 position, float width, float height, SpriteFont font, Action selectedIndexChanged = null) { this.Position = position; this.height = height; this.width = width; this.textFont = font; vScroll = new VertScrollBar(position, height - 4); vScroll.SetHeight(height); hScroll = new HorizontalScrollBar(position, width); hScroll.SetWidth(width); if (selectedIndexChanged != null) this.selectedIndexChanged = selectedIndexChanged; base.UIC_Initialize(); }
public ListBox(Vector2 position, float width, float height, SpriteFont font, Action selectedIndexChanged = null) { this.Position = position; this.height = height; this.width = width; this.textFont = font; vScroll = new VertScrollBar(position, height - 4); vScroll.SetHeight(height); hScroll = new HorizontalScrollBar(position, width); hScroll.SetWidth(width); if (selectedIndexChanged != null) { this.selectedIndexChanged = selectedIndexChanged; } base.UIC_Initialize(); }
public void DrawTest() { Vector2 topLeft = new Vector2(); // TODO: Initialize to an appropriate value float height = 0F; // TODO: Initialize to an appropriate value VertScrollBar target = new VertScrollBar(topLeft, height); // TODO: Initialize to an appropriate value SpriteBatch sb = null; // TODO: Initialize to an appropriate value target.Draw(sb); Assert.Inconclusive("A method that does not return a value cannot be verified."); }
public void VertScrollBarConstructorTest() { Vector2 topLeft = new Vector2(); // TODO: Initialize to an appropriate value float height = 0F; // TODO: Initialize to an appropriate value VertScrollBar target = new VertScrollBar(topLeft, height); Assert.Inconclusive("TODO: Implement code to verify target"); }
public void UpdateTest() { Vector2 topLeft = new Vector2(); // TODO: Initialize to an appropriate value float height = 0F; // TODO: Initialize to an appropriate value VertScrollBar target = new VertScrollBar(topLeft, height); // TODO: Initialize to an appropriate value GameTime time = null; // TODO: Initialize to an appropriate value target.Update(time); Assert.Inconclusive("A method that does not return a value cannot be verified."); }
public void setPositionTest() { Vector2 topLeft = new Vector2(); // TODO: Initialize to an appropriate value float height = 0F; // TODO: Initialize to an appropriate value VertScrollBar target = new VertScrollBar(topLeft, height); // TODO: Initialize to an appropriate value Vector2 pos = new Vector2(); // TODO: Initialize to an appropriate value target.setPosition(pos); Assert.Inconclusive("A method that does not return a value cannot be verified."); }
public void GetValueTest() { Vector2 topLeft = new Vector2(); // TODO: Initialize to an appropriate value float height = 0F; // TODO: Initialize to an appropriate value VertScrollBar target = new VertScrollBar(topLeft, height); // TODO: Initialize to an appropriate value int expected = 0; // TODO: Initialize to an appropriate value int actual; actual = target.GetValue(); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }