public void ExportTableGetEnumeratorTest() { //Alloc ExportTable et = new ExportTable(header, pf.Bytes); try { //Act ExportTableEnumerator <Export> ete = (ExportTableEnumerator <Export>)et.GetEnumerator(); Assert.IsNotNull(ete); } catch (Exception) { //Assert Assert.Fail(); } }
public void MoveExportTableEnumeratorTest() { //Alloc Export exp; ExportTable et = new ExportTable(header, pf.Bytes); try { //Act ExportTableEnumerator <Export> ete = (ExportTableEnumerator <Export>)et.GetEnumerator(); while (ete.MoveNext()) { exp = ((IEnumerator <Export>)ete).Current; } } catch (Exception) { //Assert Assert.Fail(); } }
public void ResetExportTableEnumeratorTest() { //Alloc ExportTable et = new ExportTable(header, pf.Bytes); try { //Act ExportTableEnumerator <Export> ete = (ExportTableEnumerator <Export>)et.GetEnumerator(); ete.MoveNext();; Export First = (Export)ete.Current; ete.MoveNext(); Export Second = (Export)ete.Current; Assert.IsTrue(First.SerialOffset.Value != Second.SerialOffset.Value); } catch (Exception) { //Assert Assert.Fail(); } }