public void SourceTableParentValidation()
{
// Sets dataTableMappingCollection as the dataTableMapping Parent.
DataTableMappingCollection dataTableMappingCollection = new DataTableMappingCollection();
dataTableMappingCollection.Add(_dataTableMapping);
// Adds a data table with another source table name.
DataTableMapping secondDataTableMapping = new DataTableMapping("AnotherCustomSourceTable", "");
dataTableMappingCollection.Add(secondDataTableMapping);
// Attempts to change the second data table source table with a repeated value.
Assert.Throws <ArgumentException>(() => secondDataTableMapping.SourceTable = "MyCustomSourceTable");
}