//-------------------------------------------------------------------------
	  public virtual void coverage()
	  {
		RatesCurveGroupId test = RatesCurveGroupId.of(GROUP1);
		coverImmutableBean(test);
		RatesCurveGroupId test2 = RatesCurveGroupId.of(GROUP2, OBS_SOURCE2);
		coverBeanEquals(test, test2);
	  }
	  public virtual void test_of_TypeSource()
	  {
		RatesCurveGroupId test = RatesCurveGroupId.of(GROUP1, OBS_SOURCE2);
		assertEquals(test.CurveGroupName, GROUP1);
		assertEquals(test.ObservableSource, OBS_SOURCE2);
		assertEquals(test.MarketDataType, typeof(RatesCurveGroup));
		assertEquals(test.ToString(), "RatesCurveGroupId:Group1/Vendor");
	  }
	  //-------------------------------------------------------------------------
	  public virtual void test_of_String()
	  {
		RatesCurveGroupId test = RatesCurveGroupId.of(GROUP1.ToString());
		assertEquals(test.CurveGroupName, GROUP1);
		assertEquals(test.ObservableSource, ObservableSource.NONE);
		assertEquals(test.MarketDataType, typeof(RatesCurveGroup));
		assertEquals(test.ToString(), "RatesCurveGroupId:Group1");
	  }
示例#4
0
 //-----------------------------------------------------------------------
 public override bool Equals(object obj)
 {
     if (obj == this)
     {
         return(true);
     }
     if (obj != null && obj.GetType() == this.GetType())
     {
         RatesCurveGroupId other = (RatesCurveGroupId)obj;
         return(JodaBeanUtils.equal(curveGroupName, other.curveGroupName) && JodaBeanUtils.equal(observableSource, other.observableSource));
     }
     return(false);
 }
	  public virtual void test_serialization()
	  {
		RatesCurveGroupId test = RatesCurveGroupId.of(GROUP1);
		assertSerialization(test);
	  }