コード例 #1
0
 public int compareKey(PointSensitivity other)
 {
     if (other is FxIndexSensitivity)
     {
         FxIndexSensitivity otherFx = (FxIndexSensitivity)other;
         return(ComparisonChain.start().compare(Index.ToString(), otherFx.Index.ToString()).compare(currency, otherFx.currency).compare(referenceCurrency, otherFx.referenceCurrency).compare(observation.FixingDate, otherFx.observation.FixingDate).result());
     }
     return(this.GetType().Name.CompareTo(other.GetType().Name));
 }
コード例 #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test(dataProvider = "name") public void test_toString(FxIndex convention, String name)
        public virtual void test_toString(FxIndex convention, string name)
        {
            assertEquals(convention.ToString(), name);
        }