C sharp test code