Exemple #1
0
 private bool Equals(GeneralTimingSpecification that)
 {
     return(new EqualsBuilder()
            .Append(this.duration, that.duration)
            .Append(this.frequency, that.frequency)
            .IsEquals());
 }
Exemple #2
0
        public virtual void TestGtsEquals()
        {
            PeriodicIntervalTime pivl1 = PeriodicIntervalTime.CreatePeriodPhase(new DateDiff(new PhysicalQuantity(new BigDecimal(4),
                                                                                                                  Ca.Infoway.Messagebuilder.Domainvalue.Basic.UnitsOfMeasureCaseSensitive.DAY)), IntervalFactory.CreateLowHigh(new PlatformDate
                                                                                                                                                                                                                                   (1234), new PlatformDate(5678)));
            GeneralTimingSpecification gts1 = new GeneralTimingSpecification(IntervalFactory.CreateLowHigh(new PlatformDate(2222), new
                                                                                                           PlatformDate(3333)), pivl1);
            PeriodicIntervalTime pivl2 = PeriodicIntervalTime.CreatePeriodPhase(new DateDiff(new PhysicalQuantity(new BigDecimal(4),
                                                                                                                  Ca.Infoway.Messagebuilder.Domainvalue.Basic.UnitsOfMeasureCaseSensitive.DAY)), IntervalFactory.CreateLowHigh(new PlatformDate
                                                                                                                                                                                                                                   (1234), new PlatformDate(5678)));
            GeneralTimingSpecification gts2 = new GeneralTimingSpecification(IntervalFactory.CreateLowHigh(new PlatformDate(2222), new
                                                                                                           PlatformDate(3333)), pivl2);

            Assert.AreEqual(gts1, gts2);
        }