Exemplo n.º 1
0
        public void TestMethod1()
        {
            GUIManager.GUIitem tItem = new GUIManager.GUIitem();
            tItem.content.text = "BLAH";

            GUIManager gm = new GUIManager();
            Rect tRect;
            tRect = gm.ScreenRect(1.7f, 1.8f, tItem);

            Assert.Equals(tRect.xMax, Screen.width);
            Assert.Equals(tRect.yMax, Screen.height);

            tRect = gm.ScreenRect(7.0f, 9.0f, tItem);

            Assert.Equals(tRect.xMax, Screen.width);
            Assert.Equals(tRect.yMax, Screen.height);

            tRect = gm.ScreenRect(100f, 100f, tItem);

            Assert.Equals(tRect.xMax, Screen.width);
            Assert.Equals(tRect.yMax, Screen.height);
        }