Пример #1
0
        // test if the machine can successfully run python code
        public void TestSheetName()
        {
            Assert.Equal(6, 6);
            string   argument         = "C:/Users/ryang/Downloads/02_February_IMO_Wholesale_Report.xlsx";
            Response pyResponse       = ForkController.Run_Cmd("../../PythonScript/get_sheetname.py", argument);
            Response expectedResponse = new Response()
            {
                actionResponse = null,
                content        = "February 2018\r\nJanuary 2018\r\n",
                fullPath       = null,
                sheetList      = null,
                success        = true
            };

            Assert.Equal(pyResponse.actionResponse, expectedResponse.actionResponse);
            Assert.Equal(pyResponse.content, expectedResponse.content);
            Assert.Equal(pyResponse.fullPath, expectedResponse.fullPath);
            Assert.Equal(pyResponse.sheetList, expectedResponse.sheetList);
            Assert.Equal(pyResponse.success, expectedResponse.success);


            //Assert.Equal<Response>(expectedResponse, pyResponse);
        }
Пример #2
0
 void Start()
 {
     forkStuff = FindObjectOfType <ForkController>();
     forkStuff.playerSpotted = false;
 }
Пример #3
0
 // Daha sonra metodları foreache çevir
 void Start()
 {
     forkController    = GetComponent <ForkController>();
     newCarController  = GetComponent <NewCarController>();
     newCarUserControl = GetComponent <NewCarUserControl>();
 }