Esempio n. 1
0
 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.");
 }
Esempio n. 2
0
 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();
 }
Esempio n. 3
0
 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();
 }
Esempio n. 4
0
 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.");
 }
Esempio n. 5
0
 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");
 }
Esempio n. 6
0
 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.");
 }
Esempio n. 7
0
 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.");
 }
Esempio n. 8
0
 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.");
 }