// <Snippet1> public void AddDataTableMapping() { // ... // create tableMappings // ... DataTableMapping mapping = new DataTableMapping("Categories", "DataCategories"); tableMappings.Add((Object)mapping); Console.WriteLine("Table {0} added to {1} table mapping collection.", mapping.ToString(), tableMappings.ToString()); }
// <Snippet1> public void AddDataTableMapping() { // ... // create mappings // ... DataTableMapping mapping = new DataTableMapping("Categories", "DataCategories"); mappings.Add((Object)mapping); Console.WriteLine("Table " + mapping.ToString() + " added to " + "table mapping collection " + mappings.ToString()); }
public void ToStringTest() { Assert.Equal("System.Data.Common.DataTableMappingCollection", _tableMapCollection.ToString()); }
public void ToStringTest() { Assert.AreEqual("System.Data.Common.DataTableMappingCollection", tableMapCollection.ToString(), "test1"); }