예제 #1
0
 /// <summary>Compare the old data underlying object captured by the child against expected values in the exact same order. Clears the last old data in the test child view after comparing.  </summary>
 /// <param name="testChildView">is the child view</param>
 /// <param name="expectedValues">are the expected values</param>
 public static void CheckOldDataUnderlying(SupportBaseView testChildView, EventBean[] expectedValues)
 {
     EventBean[] oldData            = testChildView.LastOldData;
     Object[]    expectedUnderlying = GetUnderlying(expectedValues);
     Object[]    oldUnderlying      = GetUnderlying(oldData);
     EPAssertionUtil.AssertEqualsExactOrder(expectedUnderlying, oldUnderlying);
     testChildView.ClearLastOldData();
 }
예제 #2
0
 /// <summary>Compare the old data captured by the child against expected values in the exact same order. Clears the last old data in the test child view after comparing.  </summary>
 /// <param name="testChildView">is the child view</param>
 /// <param name="expectedValues">are the expected values</param>
 public static void CheckOldData(SupportBaseView testChildView, EventBean[] expectedValues)
 {
     EventBean[] oldData = testChildView.LastOldData;
     EPAssertionUtil.AssertEqualsExactOrder(expectedValues, oldData);
     testChildView.ClearLastOldData();
 }