Ejemplo n.º 1
0
        public void CloneWithNoGeometry()
        {
            var catchment = new Catchment();
            var clone     = (Catchment)catchment.Clone();

            Assert.IsNotNull(clone);
        }
Ejemplo n.º 2
0
        public void Clone()
        {
            var catchment = new Catchment();

            catchment.Geometry = new Point(15d, 15d);
            var clone = (Catchment)catchment.Clone();

            Assert.AreEqual(catchment.Geometry, clone.Geometry);
            Assert.AreNotSame(catchment.Geometry, clone.Geometry);
            Assert.AreEqual(catchment.Name, clone.Name);
        }