public void ReadMixedLinkedSet() { InitManually(GetType()); OriWrapperTestBed.TestData testData = OriWrapperTestBed.getMixedLinkedSetTestData(); Object obj = CyclicXmlHandler.Read(testData.xml); AreSetsEqual((ISet <Object>)testData.obj, (ISet <Object>)obj); }
public void ReadMixedArray() { InitManually(GetType()); OriWrapperTestBed.TestData testData = OriWrapperTestBed.getMixedArrayTestData(); object obj = CyclicXmlHandler.Read(testData.xml); AreArraysEqual((object[])testData.obj, (object[])obj); }
public void ReadMixedList() { InitManually(GetType()); OriWrapperTestBed.TestData testData = OriWrapperTestBed.getMixedListTestData(); Object obj = CyclicXmlHandler.Read(testData.xml); AreCollectionsEqual((ICollection)testData.obj, (ICollection)obj); }
public void ReadCreatedAndExistingChildrenJavaXML() { InitManually(GetType()); OriWrapperTestBed.TestData testData = OriWrapperTestBed.getCreatedAndExistingChildrenTestData(); Object obj = CyclicXmlHandler.Read(testData.xmlJava); AssertEquals((EntityA)testData.obj, (EntityA)obj); }
public void ReadEntityWithRelation() { InitManually(GetType()); OriWrapperTestBed.TestData testData = OriWrapperTestBed.getEntityWithRelationTestData(); Object obj = CyclicXmlHandler.Read(testData.xml); Assert.AssertEquals(testData.obj, obj); }
public void ReadServiceDescription() { InitManually(GetType()); OriWrapperTestBed.TestData testData = OriWrapperTestBed.getServiceDescriptionTestData(); Object obj = CyclicXmlHandler.Read(testData.xml); De.Osthus.Ambeth.Transfer.Assert.AssertEquals((ServiceDescription)testData.obj, (ServiceDescription)obj); }
public void ReadUpdatedEntityJavaXML() { InitManually(GetType()); OriWrapperTestBed.TestData testData = OriWrapperTestBed.getUpdatedEntityTestData(); Object obj = CyclicXmlHandler.Read(testData.xmlJava); Assert.AssertEquals(testData.obj, obj); AssertEquals((Material)testData.obj, (Material)obj); }
public void ReadCreatedParentAndChildEntitiesJavaXML() { InitManually(GetType()); OriWrapperTestBed.TestData testData = OriWrapperTestBed.getCreatedParentAndChildEntitiesTestData(); Object obj = CyclicXmlHandler.Read(testData.xmlJava); Assert.AssertTrue(obj is Material); AssertEquals((Material)testData.obj, (Material)obj); }
public void ReadCreatedParentAndChildEntitiesInListJavaXML() { InitManually(GetType()); OriWrapperTestBed.TestData testData = OriWrapperTestBed.getCreatedParentAndChildEntitiesInListTestData(); Object obj = CyclicXmlHandler.Read(testData.xmlJava); Assert.AssertTrue(obj is IList); IList <Object> actuals = (IList <Object>)obj; AssertEquals((Material)((IList <Object>)testData.obj)[0], (Material)actuals[0]); }
public void ReadCreatedAndUpdatedEntitiesJavaXML() { InitManually(GetType()); OriWrapperTestBed.TestData testData = OriWrapperTestBed.getCreatedAndUpdatedEntitiesTestData(); Object obj = CyclicXmlHandler.Read(testData.xmlJava); List <Object> expecteds = (List <Object>)testData.obj; List <Object> actuals = (List <Object>)obj; Assert.AssertEquals(expecteds.Count, actuals.Count); for (int i = 0; i < expecteds.Count; i++) { Material expected = expecteds[i] as Material; Material actual = actuals[i] as Material; AssertEquals(expected, actual); } }