예제 #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test(dataProvider = "parseGood") public void test_parse_String_good_withP(String input, Tenor expected)
        public virtual void test_parse_String_good_withP(string input, Tenor expected)
        {
            assertEquals(Tenor.parse("P" + input), expected);
        }
예제 #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test(dataProvider = "parseBad", expectedExceptions = IllegalArgumentException.class) public void test_parse_String_bad(String input)
        public virtual void test_parse_String_bad(string input)
        {
            Tenor.parse(input);
        }
예제 #3
0
 //-------------------------------------------------------------------------
 public virtual void test_parse_String_roundTrip()
 {
     assertEquals(Tenor.parse(TENOR_10M.ToString()), TENOR_10M);
 }