//-------------------------------------------------------------------------
 /// <summary>
 /// Converts pay/receive to a string.
 /// </summary>
 /// <param name="payReceive">  the value </param>
 /// <returns> the string form </returns>
 public static string payReceive(PayReceive payReceive)
 {
     return(payReceive.ToString().Substring(0, 3));
 }
Exemple #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(PayReceive convention, String name)
        public virtual void test_toString(PayReceive convention, string name)
        {
            assertEquals(convention.ToString(), name);
        }