예제 #1
0
        //-------------------------------------------------------------------------
        public virtual void coverage()
        {
            SimpleStrike test = SimpleStrike.of(0.6d);

            coverImmutableBean(test);
            SimpleStrike test2 = SimpleStrike.of(0.2d);

            coverBeanEquals(test, test2);
        }
예제 #2
0
        //-------------------------------------------------------------------------
        public virtual void test_of()
        {
            SimpleStrike test = SimpleStrike.of(0.6d);

            assertEquals(test.Type, StrikeType.STRIKE);
            assertEquals(test.Value, 0.6d, 0d);
            assertEquals(test.Label, "Strike=0.6");
            assertEquals(test.withValue(0.2d), SimpleStrike.of(0.2d));
        }
예제 #3
0
 //-----------------------------------------------------------------------
 public override bool Equals(object obj)
 {
     if (obj == this)
     {
         return(true);
     }
     if (obj != null && obj.GetType() == this.GetType())
     {
         SimpleStrike other = (SimpleStrike)obj;
         return(JodaBeanUtils.equal(value, other.value));
     }
     return(false);
 }
예제 #4
0
        public virtual void test_serialization()
        {
            SimpleStrike test = SimpleStrike.of(0.6d);

            assertSerialization(test);
        }