Ejemplo n.º 1
0
        public void Test_Equals()
        {
            Guid newGuid = Guid.NewGuid();
            var  dd      = new DesignDescriptor(newGuid, "folder", "filename");
            var  dd2     = new DesignDescriptor(newGuid, "folder", "filename");
            var  dd3     = new DesignDescriptor(newGuid, "bob", "filename");

            dd.Equals(dd2).Should().BeTrue();
            dd.Equals(dd3).Should().BeFalse();
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Determine if two surveyed surfaces are equal
 /// </summary>
 public bool Equals(ISurveyedSurface other)
 {
     return(ID == other.ID &&
            DesignDescriptor.Equals(other.DesignDescriptor) &&
            AsAtDate == other.AsAtDate &&
            Extents.Equals(other.Extents));
 }