Beispiel #1
0
        public virtual void test_of_TypesSource()
        {
            CurveId test = CurveId.of(CurveGroupName.of("Group"), CurveName.of("Name"), OBS_SOURCE);

            assertEquals(test.CurveGroupName, CurveGroupName.of("Group"));
            assertEquals(test.CurveName, CurveName.of("Name"));
            assertEquals(test.ObservableSource, OBS_SOURCE);
            assertEquals(test.MarketDataType, typeof(Curve));
            assertEquals(test.MarketDataName, CurveName.of("Name"));
            assertEquals(test.ToString(), "CurveId:Group/Name/Vendor");
        }
Beispiel #2
0
        //-------------------------------------------------------------------------
        public virtual void test_of_String()
        {
            CurveId test = CurveId.of("Group", "Name");

            assertEquals(test.CurveGroupName, CurveGroupName.of("Group"));
            assertEquals(test.CurveName, CurveName.of("Name"));
            assertEquals(test.ObservableSource, ObservableSource.NONE);
            assertEquals(test.MarketDataType, typeof(Curve));
            assertEquals(test.MarketDataName, CurveName.of("Name"));
            assertEquals(test.ToString(), "CurveId:Group/Name");
        }