test codes in c#