Ejemplo n.º 1
0
    public void ShowUI(int bShow)
    {
        //ShowLog( "show ui " + bShow);
        TestUI tu = uiroot.GetComponent <TestUI>();

        tu.ShowUI(bShow != 0);
    }
Ejemplo n.º 2
0
        public void IsHumanMadeCorrectly()
        {
            TestUI testUI = new TestUI();

            Player[] players = testUI.InitializePlayers(testUI);

            Assert.AreEqual(true, players[0] is Human);
        }
Ejemplo n.º 3
0
 static void Main(string[] args)
 {
     var applicationPathAndParams = ConfigurationManager.AppSettings["ApplicationPath"] + " " +
                                    ConfigurationManager.AppSettings["ApplicationParams"] + " " +
                                    ConfigurationManager.AppSettings["ApplicationParams2"];
     TestUI uI = new TestUI(applicationPathAndParams,
                            ConfigurationManager.AppSettings["ScriptPath"]);
 }
 static void Main(string[] args)
 {
     Test test = new Test();
     QualityThought.Batch2.NamespaceLibrary.UI.TestUI testui = new NamespaceLibrary.UI.TestUI();
     TestUI ui = new TestUI();
     QualityThought.Batch2.NamespaceLibrary.Common.TestCommon testCommon = new NamespaceLibrary.Common.TestCommon();
     TestCommon testC = new TestCommon();
     MyCommon.TestMe testMe = new MyCommon.TestMe();
     MyUI.TestMe testMeUI = new MyUI.TestMe();
 }
Ejemplo n.º 5
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != this)
     {
         Debug.Log("Instance already exists!");
         Destroy(this);
     }
 }
Ejemplo n.º 6
0
        public void CanHumansShootOpponent()
        {
            TestUI testUI     = new TestUI();
            Player testHuman1 = new Human("TestHuman1", testUI);
            Player testHuman2 = new Human("TestHuman2", testUI);

            testHuman1.SetShips();
            testHuman2.SetShips();
            testHuman1.SetOpponent(testHuman2);
            testHuman1.YourTurn();

            Assert.AreEqual(1, testHuman2.board.yourShots.Count);
        }
Ejemplo n.º 7
0
        public void CanHumanSinkAllOpponentsShips()
        {
            TestUI testUI      = new TestUI();
            Player testPlayer1 = new Human("TestPlayer1", testUI);
            Player testPlayer2 = new Human("TestPlayer2", testUI);

            testPlayer1.SetShips();
            testPlayer2.SetShips();
            testPlayer1.SetOpponent(testPlayer2);
            //Shoots untill all ships are sunken
            while (testPlayer2.board.sunkenShips != Settings.shipCount)
            {
                testPlayer1.YourTurn();
            }

            Assert.AreEqual(Settings.shipCount, testPlayer2.board.sunkenShips);
        }
Ejemplo n.º 8
0
 void Awake()
 {
     Instance = this;
 }
Ejemplo n.º 9
0
 // Token: 0x06005242 RID: 21058 RVA: 0x001864D0 File Offset: 0x001846D0
 public void Execute(string strParams)
 {
     TestUI.SendGMCommand(strParams);
 }
Ejemplo n.º 10
0
 public void Setup()
 {
     Ui = new TestUI(new BciWebBrowser(BciDriverOptions));
 }
Ejemplo n.º 11
0
 void Awake()
 {
     instance = this;
 }