public void NameTableCopyToTest() { //Alloc NameTable nt = new NameTable(header, pf.Bytes); string[] str = new string[nt.Count]; //Act try { nt.CopyTo(str, 0); for (int i = 0; i < nt.Count; i++) { if (str[i] != nt[i]) { Assert.Fail("Not equal"); break; } } } //Assert catch (Exception ex) { Assert.Fail(ex.ToString()); } }