public int compareKey(PointSensitivity other)
 {
     if (other is InflationRateSensitivity)
     {
         InflationRateSensitivity otherInflation = (InflationRateSensitivity)other;
         return(ComparisonChain.start().compare(Index.ToString(), otherInflation.Index.ToString()).compare(currency, otherInflation.currency).compare(observation.FixingMonth, otherInflation.observation.FixingMonth).result());
     }
     return(this.GetType().Name.CompareTo(other.GetType().Name));
 }
        public virtual void test_gbpHicp()
        {
            PriceIndex test = PriceIndex.of("GB-HICP");

            assertEquals(test.Name, "GB-HICP");
            assertEquals(test.Currency, GBP);
            assertEquals(test.Region, GB);
            assertEquals(test.Active, true);
            assertEquals(test.PublicationFrequency, Frequency.P1M);
            assertEquals(test.FloatingRateName, FloatingRateName.of("GB-HICP"));
            assertEquals(test.ToString(), "GB-HICP");
        }
//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(PriceIndex convention, String name)
        public virtual void test_toString(PriceIndex convention, string name)
        {
            assertEquals(convention.ToString(), name);
        }