sample code for testing functionality in c#