public void StructuredFileClone() { var test = m_StructuredFile.Clone(); Assert.AreNotSame(m_StructuredFile, test); Assert.IsInstanceOfType(test, typeof(StructuredFile)); m_StructuredFile.AllPropertiesEqual(test); // Test Properties that are not tested Assert.AreEqual(m_StructuredFile.Mapping.Count, test.Mapping.Count, "FieldMapping"); Assert.AreEqual(TrimmingOption.Unquoted, test.TrimmingOption, "TrimmingOption"); Assert.IsTrue(m_StructuredFile.Mapping.CollectionEqualWithOrder(test.Mapping), "Mapping"); Assert.IsTrue(m_StructuredFile.Column.CollectionEqualWithOrder(test.Column), "Column"); Assert.IsTrue(m_StructuredFile.FileFormat.Equals(test.FileFormat), "FileFormat"); Assert.IsTrue(test.Equals(m_StructuredFile), "Equals"); }