示例#1
0
 public void DrawTest()
 {
     Vector2 topLeft = new Vector2(); // TODO: Initialize to an appropriate value
     float width = 0F; // TODO: Initialize to an appropriate value
     HorizontalScrollBar target = new HorizontalScrollBar(topLeft, width); // 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.");
 }
示例#2
0
 public void BoundBoxTest()
 {
     Vector2 topLeft = new Vector2(); // TODO: Initialize to an appropriate value
     float width = 0F; // TODO: Initialize to an appropriate value
     HorizontalScrollBar target = new HorizontalScrollBar(topLeft, width); // TODO: Initialize to an appropriate value
     Rectangle actual;
     actual = target.BoundBox;
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
示例#3
0
文件: ListBox.cs 项目: YogurtFP/YogUI
 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();
 }
示例#4
0
文件: ListBox.cs 项目: YogurtFP/YogUI
 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();
 }
示例#5
0
 public void GetMaxTest()
 {
     Vector2 topLeft = new Vector2(); // TODO: Initialize to an appropriate value
     float width = 0F; // TODO: Initialize to an appropriate value
     HorizontalScrollBar target = new HorizontalScrollBar(topLeft, width); // TODO: Initialize to an appropriate value
     float expected = 0F; // TODO: Initialize to an appropriate value
     float actual;
     actual = target.GetMax();
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
示例#6
0
 public void UpdateTest()
 {
     Vector2 topLeft = new Vector2(); // TODO: Initialize to an appropriate value
     float width = 0F; // TODO: Initialize to an appropriate value
     HorizontalScrollBar target = new HorizontalScrollBar(topLeft, width); // 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.");
 }
示例#7
0
 public void setPositionTest()
 {
     Vector2 topLeft = new Vector2(); // TODO: Initialize to an appropriate value
     float width = 0F; // TODO: Initialize to an appropriate value
     HorizontalScrollBar target = new HorizontalScrollBar(topLeft, width); // 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.");
 }
示例#8
0
 public void HorizontalScrollBarConstructorTest()
 {
     Vector2 topLeft = new Vector2(); // TODO: Initialize to an appropriate value
     float width = 0F; // TODO: Initialize to an appropriate value
     HorizontalScrollBar target = new HorizontalScrollBar(topLeft, width);
     Assert.Inconclusive("TODO: Implement code to verify target");
 }