Saturday, December 15, 2012

cast char type variables to their numeric encodings and back again

This test passes.

[TestMethod]
public void Whatever()
{
   char x = (char)77;
   int y = (int) x;
   Assert.AreEqual("M", x.ToString());
   Assert.AreEqual(77, y);
}

No comments:

Post a Comment