//------------------------------------------------------------------------- public virtual void coverage() { SimpleStrike test = SimpleStrike.of(0.6d); coverImmutableBean(test); SimpleStrike test2 = SimpleStrike.of(0.2d); coverBeanEquals(test, test2); }
//------------------------------------------------------------------------- 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)); }
//----------------------------------------------------------------------- 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); }
public virtual void test_serialization() { SimpleStrike test = SimpleStrike.of(0.6d); assertSerialization(test); }