public void CloneWeir() { IWeir weir = new Weir { Geometry = new Point(7, 0), OffsetY = 175, CrestWidth = 75, CrestLevel = -3, Name = "Weir one", AllowNegativeFlow = true, }; IWeir clonedWeir = (IWeir)weir.Clone(); Assert.AreEqual(clonedWeir.Name, weir.Name); Assert.AreEqual(clonedWeir.OffsetY, weir.OffsetY); Assert.AreEqual(clonedWeir.Geometry, weir.Geometry); Assert.AreEqual(clonedWeir.CrestWidth, weir.CrestWidth); Assert.AreEqual(clonedWeir.CrestLevel, weir.CrestLevel); }
public void CloneWeir() { IWeir weir = new Weir { Geometry = new Point(7, 0), OffsetY = 175, CrestWidth = 75, CrestLevel = -3, Name = "Weir one", AllowNegativeFlow = true, }; IWeir clonedWeir = (IWeir) weir.Clone(); Assert.AreEqual(clonedWeir.Name, weir.Name); Assert.AreEqual(clonedWeir.OffsetY, weir.OffsetY); Assert.AreEqual(clonedWeir.Geometry, weir.Geometry); Assert.AreEqual(clonedWeir.CrestWidth, weir.CrestWidth); Assert.AreEqual(clonedWeir.CrestLevel, weir.CrestLevel); }