Index: test/DeltaShell/DeltaShell.Plugins.SharpMapGis.Tests/Forms/VectorLayerAttributeTableViewTest.cs =================================================================== diff -u -r8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9 -r03707d5a0ca6b2d83563bc5f407bd4a327d22c0e --- test/DeltaShell/DeltaShell.Plugins.SharpMapGis.Tests/Forms/VectorLayerAttributeTableViewTest.cs (.../VectorLayerAttributeTableViewTest.cs) (revision 8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9) +++ test/DeltaShell/DeltaShell.Plugins.SharpMapGis.Tests/Forms/VectorLayerAttributeTableViewTest.cs (.../VectorLayerAttributeTableViewTest.cs) (revision 03707d5a0ca6b2d83563bc5f407bd4a327d22c0e) @@ -1,7 +1,6 @@ using System.Collections; using System.Collections.Generic; using System.ComponentModel; -using System.Linq; using DelftTools.TestUtils; using DelftTools.Utils; using DelftTools.Utils.Collections.Generic; @@ -21,69 +20,6 @@ { [Test] [NUnit.Framework.Category(TestCategory.WindowsForms)] - public void Show() - { - var features = new [] - { - new City {Name = "Amsterdam", Population = 1000000}, - new City {Name = "The Hague", Population = 90000, Attributes = new DictionaryFeatureAttributeCollection() } - }; - - features[1].Attributes["a1"] = 1; - features[1].Attributes["a2"] = "test"; - - var layer = new VectorLayer { DataSource = new FeatureCollection { Features = features } }; - - var view = new VectorLayerAttributeTableView { Data = layer }; - - WindowsFormsTestHelper.ShowModal(view); - } - - [Test] - [NUnit.Framework.Category(TestCategory.WindowsForms)] - public void ShowWithCustomAttributesAndFilteringTools19891() - { - var features = new[] - { - new City {Name = "Amsterdam", Population = 1000000}, - new City {Name = "The Hague", Population = 90000, Attributes = new DictionaryFeatureAttributeCollection() } - }; - - features[1].Attributes["a1"] = 1; - features[1].Attributes["a2"] = "test"; - - var layer = new VectorLayer { DataSource = new FeatureCollection { Features = features } }; - - var view = new VectorLayerAttributeTableView { Data = layer }; - - WindowsFormsTestHelper.ShowModal(view, f => - { - var columnA2 = view.TableView.Columns.First(c => c.Name == "a2"); - columnA2.FilterString = "[a2] = ''"; - - // manual replication here.. - }); - } - - [Test] - [NUnit.Framework.Category(TestCategory.WindowsForms)] - public void ShowWithCustomRowObject() - { - var features = new [] - { - new City {Name = "Amsterdam", Population = 1000000}, - new City {Name = "The Hague", Population = 90000} - }; - - var layer = new VectorLayer { DataSource = new FeatureCollection { Features = features } }; - - var view = new VectorLayerAttributeTableView { Data = layer }; - view.SetCreateFeatureRowFunction(feature => new CityProperties((City)feature)); - WindowsFormsTestHelper.ShowModal(view); - } - - [Test] - [NUnit.Framework.Category(TestCategory.WindowsForms)] public void DeleteOfCustomRowObjectMustDeleteOriginalFeature() { var features = new List