Ejemplo n.º 1
0
        public void TextClickableConstructorTest()
        {
            Vector2       position = new Vector2(); // TODO: Initialize to an appropriate value
            string        text     = string.Empty;  // TODO: Initialize to an appropriate value
            SpriteFont    font     = null;          // TODO: Initialize to an appropriate value
            Color         c        = new Color();   // TODO: Initialize to an appropriate value
            Color         cHover   = new Color();   // TODO: Initialize to an appropriate value
            Action        onClick  = null;          // TODO: Initialize to an appropriate value
            TextClickable target   = new TextClickable(position, text, font, c, cHover, onClick);

            Assert.Inconclusive("TODO: Implement code to verify target");
        }
Ejemplo n.º 2
0
        public void OnMouseOverTest()
        {
            Vector2       position = new Vector2();                                               // TODO: Initialize to an appropriate value
            string        text     = string.Empty;                                                // TODO: Initialize to an appropriate value
            SpriteFont    font     = null;                                                        // TODO: Initialize to an appropriate value
            Color         c        = new Color();                                                 // TODO: Initialize to an appropriate value
            Color         cHover   = new Color();                                                 // TODO: Initialize to an appropriate value
            Action        onClick  = null;                                                        // TODO: Initialize to an appropriate value
            TextClickable target   = new TextClickable(position, text, font, c, cHover, onClick); // TODO: Initialize to an appropriate value

            target.OnMouseOver();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
Ejemplo n.º 3
0
        public void BoundBoxTest()
        {
            Vector2       position = new Vector2();                                               // TODO: Initialize to an appropriate value
            string        text     = string.Empty;                                                // TODO: Initialize to an appropriate value
            SpriteFont    font     = null;                                                        // TODO: Initialize to an appropriate value
            Color         c        = new Color();                                                 // TODO: Initialize to an appropriate value
            Color         cHover   = new Color();                                                 // TODO: Initialize to an appropriate value
            Action        onClick  = null;                                                        // TODO: Initialize to an appropriate value
            TextClickable target   = new TextClickable(position, text, font, c, cHover, onClick); // TODO: Initialize to an appropriate value
            Rectangle     actual;

            actual = target.BoundBox;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }