コード例 #1
0
        public void TestGetOutlineCodeByIndex()
        {
            TasksApi target = new TasksApi(APIKEY, APPSID, BASEPATH);
            StorageApi storageApi = new StorageApi(APIKEY, APPSID, BASEPATH);


            string name = "sample-project-2.mpp";
            int? index = 1;
            string storage = null;
            string folder = null;
            storageApi.PutCreate(name, null, null, System.IO.File.ReadAllBytes("\\temp\\tasks\\resources\\" + name));
            OutlineCodeResponse actual;
            actual = target.GetOutlineCodeByIndex(name, index, storage, folder);
            Assert.AreEqual("200", actual.Code);
            Assert.IsInstanceOfType(new OutlineCodeResponse(), actual.GetType());
        }