public static void AssertSides(Side source,
                                       Side destination)
        {
            if (source == null &&
                destination == null)
            {
                return;
            }

            source.Name.ShouldBe(destination.Name);
            UnitOfMeasureAssertHelpers.AssertUnitOfMeasure(source, destination);
        }
Example #2
0
        public static void AssertBuildingDetails(BuildingDetails source,
                                                 BuildingDetails destination)
        {
            if (source == null &&
                destination == null)
            {
                return;
            }

            UnitOfMeasureAssertHelpers.AssertUnitOfMeasure(source.Area, destination.Area);
            source.EnergyRating.ShouldBe(destination.EnergyRating);
        }
        public static void AssertLandDetails(LandDetails source,
                                             LandDetails destination)
        {
            if (source == null &&
                destination == null)
            {
                return;
            }

            UnitOfMeasureAssertHelpers.AssertUnitOfMeasure(source.Area, destination.Area);
            source.CrossOver.ShouldBe(destination.CrossOver);

            for (var i = 0; i < destination.Sides.Count; i++)
            {
                AssertSides(source.Sides[i], destination.Sides[i]);
            }
        }