//bool WriteData(string str_FileName) public void Test_WriteData() { bool bRetValue; Outwriter target = new Outwriter(); String strPartName = String.Empty; uint uFace = 0; float[] Vert = { 0.1f }; float[] Nor = { 0.1f }; float[] TC = { 0.2f }; uint[] Ind = { 3 }; uint[] FeaC = { 4 }; String ComName = "Test_addComponent 1"; double[] trans = { 0.1 }; double[] ComMat = { 0.2 }; double[] FeaMat = { 0.3 }; double[] TexMat = { 0.4 }; cl_DataStore SaveData = new cl_DataStore(); bRetValue = target.Init("Test_WriteData"); bRetValue = target.addpart(strPartName, uFace); bRetValue = target.addFaceRegion(strPartName, Vert, Nor, TC, Ind, FeaC); bRetValue = target.addComponent(strPartName, ComName, trans, ComMat, FeaMat, TexMat); Assert.IsTrue(bRetValue); bRetValue = target.WriteData(strPartName); Assert.IsTrue(bRetValue); }