Example #1
0
        public void CanExistMoreThanOnePropertiy()
        {
            GeoDataLineInstance.InsertProperty(new Property("Height", "50"));
            GeoDataLineInstance.InsertProperty(new Property("Width", "100"));

            Assert.AreEqual(GeoDataLineInstance.Properties[0].PropertyName, "Height");
            Assert.AreEqual(GeoDataLineInstance.Properties[0].PropertyValue, "50");

            Assert.AreEqual(GeoDataLineInstance.Properties[1].PropertyName, "Width");
            Assert.AreEqual(GeoDataLineInstance.Properties[1].PropertyValue, "100");
        }
Example #2
0
        public void CanInsertNewPropertiy()
        {
            GeoDataPointInstance.InsertProperty(new Property("Height", "50"));

            GeoDataPointInstance.Properties.ForEach((obj) =>
            {
                Assert.AreEqual(obj.PropertyName, "Height");
                Assert.AreEqual(obj.PropertyValue, "50");
            });
        }