コード例 #1
0
        //-------------------------------------------------------------------------
        public virtual void test_collectIndices()
        {
            FixedRateComputation test = FixedRateComputation.of(0.05);

            ImmutableSet.Builder <Index> builder = ImmutableSet.builder();
            test.collectIndices(builder);
            assertEquals(builder.build(), ImmutableSet.of());
        }
コード例 #2
0
 //-----------------------------------------------------------------------
 public override bool Equals(object obj)
 {
     if (obj == this)
     {
         return(true);
     }
     if (obj != null && obj.GetType() == this.GetType())
     {
         FixedRateComputation other = (FixedRateComputation)obj;
         return(JodaBeanUtils.equal(rate, other.rate));
     }
     return(false);
 }
コード例 #3
0
        public virtual void test_serialization()
        {
            FixedRateComputation test = FixedRateComputation.of(0.05);

            assertSerialization(test);
        }
コード例 #4
0
        //-------------------------------------------------------------------------
        public virtual void coverage()
        {
            FixedRateComputation test = FixedRateComputation.of(0.05);

            coverImmutableBean(test);
        }
コード例 #5
0
        public virtual void test_of()
        {
            FixedRateComputation test = FixedRateComputation.of(0.05);

            assertEquals(test.Rate, 0.05);
        }