public virtual void test_parse() { SecurityId test = SecurityId.parse(STANDARD_ID.ToString()); assertEquals(test.StandardId, STANDARD_ID); assertEquals(test.ReferenceDataType, typeof(Security)); assertEquals(test.ToString(), STANDARD_ID.ToString()); }
//------------------------------------------------------------------------- public virtual void test_of_strings() { SecurityId test = SecurityId.of("A", "1"); assertEquals(test.StandardId, STANDARD_ID); assertEquals(test.ReferenceDataType, typeof(Security)); assertEquals(test.ToString(), STANDARD_ID.ToString()); }