测试文档 LB

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

测试文档

FPR_MergerMasspointTest

输入数据:cls_Masspoint P_Masspoint1 = null;

cls_Masspoint P_Masspoint2 = null;

测试结果:actual=null

输入数据:cls_Masspoint P_Masspoint1 = new cls_Masspoint();

cls_Masspoint P_Masspoint2 = new cls_Masspoint(); P_Masspoint1.Weight = 2;

P_Masspoint1.Volume = 5;

P_Masspoint1.Ixx = 4;

P_Masspoint1.Ixy = 5;

P_Masspoint1.Ixz = 4;

P_Masspoint1.Iyy = 4;

P_Masspoint1.Iyz = 3;

P_Masspoint1.Izz = 2;

P_Masspoint2.Weight = 5;

P_Masspoint2.Volume = 5;

P_Masspoint2.Ixx = 2;

P_Masspoint2.Ixy = 5;

P_Masspoint2.Ixz = 6;

P_Masspoint2.Iyy = 3;

P_Masspoint2.Iyz = 6;

P_Masspoint2.Izz = 5;

测试结果:Weigh=7

Volume=10

Ixx=6

Ixy=10

Ixz=10

Iyy=7

Iyz=9

Izz=7

AMID=null

Density=0.0

Grid=null

ID=0

PanelID=0

TLSchemeID=0

m_Weigh=7

m_Volume=10

m_Ixx=6

m_Ixy=10

m_Ixz=10

m_Iyy=7

m_Iyz=9

m_Izz=7

m_AMID=null

m_Density=0.0

m_Grid=null

m_ID=0

m_PanelID=0

vTLSchemeID=0

FPR_JudgmentGridIDIsEqualTest

输入数据:cls_Masspoint P_Masspoint = null;

List P_MasspointList = null;

测试结果:actual=false

输入数据:cls_Masspoint P_Masspoint = new cls_Masspoint();

List P_MasspointList = new List(); P_Masspoint.Grid == null;

测试结果:actual=false

输入数据:cls_Masspoint P_Masspoint = new cls_Masspoint();

List P_MasspointList = new List(); P_Masspoint.Grid = new cls_Grid();

P_Masspoint.Grid.ID = 8;

P_Masspoint.Weight = 2;

P_Masspoint.Volume = 5;

P_Masspoint.Ixx = 4;

P_Masspoint.Ixy = 5;

P_Masspoint.Ixz = 4;

P_Masspoint.Iyy = 4;

P_Masspoint.Iyz = 3;

P_Masspoint.Izz = 2;

cls_Masspoint P_Masspoint1 = new cls_Masspoint();

P_Masspoint1.Grid = new cls_Grid();

P_Masspoint1.Grid.ID = 8;

P_Masspoint1.Weight = 4;

P_Masspoint1.Volume = 5;

P_Masspoint1.Ixx = 5;

P_Masspoint1.Ixy = 6;

P_Masspoint1.Ixz = 5;

P_Masspoint1.Iyy = 5;

P_Masspoint1.Iyz = 3;

P_Masspoint1.Izz = 1;

P_MasspointList.Add(P_Masspoint1);

cls_Masspoint P_Masspoint2 = new cls_Masspoint();

P_Masspoint2.Grid = new cls_Grid();

P_Masspoint2.Grid.ID = 6;

P_Masspoint2.Volume = 5;

P_Masspoint2.Ixx = 5;

P_Masspoint2.Ixy = 6;

P_Masspoint2.Ixz = 5;

P_Masspoint2.Iyy = 5;

P_Masspoint2.Iyz = 3;

P_Masspoint2.Izz = 1;

P_MasspointList.Add(P_Masspoint2);

测试结果:actual=true

输入数据:cls_Masspoint P_Masspoint = new cls_Masspoint();

List P_MasspointList = new List(); P_Masspoint.Grid = new cls_Grid();

P_Masspoint.Grid.ID = 8;

P_Masspoint.Weight = 2;

P_Masspoint.Volume = 5;

P_Masspoint.Ixx = 4;

P_Masspoint.Ixy = 5;

P_Masspoint.Ixz = 4;

P_Masspoint.Iyy = 4;

P_Masspoint.Iyz = 3;

P_Masspoint.Izz = 2;

cls_Masspoint P_Masspoint1 = new cls_Masspoint();

P_Masspoint1.Grid = new cls_Grid();

P_Masspoint1.Grid.ID = 7;

P_Masspoint1.Weight = 4;

P_Masspoint1.Volume = 5;

P_Masspoint1.Ixx = 5;

P_Masspoint1.Ixy = 6;

P_Masspoint1.Ixz = 5;

P_Masspoint1.Iyy = 5;

P_Masspoint1.Iyz = 3;

P_Masspoint1.Izz = 1;

P_MasspointList.Add(P_Masspoint1);

cls_Masspoint P_Masspoint2 = new cls_Masspoint();

P_Masspoint2.Grid = new cls_Grid();

P_Masspoint2.Grid.ID = 6;

P_Masspoint2.Weight = 4;

P_Masspoint2.Volume = 5;

P_Masspoint2.Ixx = 5;

P_Masspoint2.Ixy = 6;

P_Masspoint2.Ixz = 5;

P_Masspoint2.Iyy = 5;

P_Masspoint2.Iyz = 3;

相关文档
最新文档