Spi Write/Read Working and a Test case in C#