예제 #1
0
        //bool HSFaddpart(cl_DataStore SaveData)
        public void Test_HSFaddpart()
        {
            bool bRetValue;

            Outwriter target = new Outwriter();

            bRetValue = target.HSFaddpart(null);
            Assert.IsFalse(bRetValue);
            cl_DataStore TargetData = new cl_DataStore();

            bRetValue = target.Init("Test_HSFaddpart");
            Assert.IsTrue(bRetValue);
            bRetValue = target.HSFaddpart(TargetData);
            Assert.IsTrue(bRetValue);
            TargetData.PartName = "PartName";
            bRetValue           = target.HSFaddpart(TargetData);
            Assert.IsTrue(bRetValue);
            TargetData.uPartFaceCount = 1;
            bRetValue = target.HSFaddpart(TargetData);
            Assert.IsTrue(bRetValue);
        }