public void ByteArrayToHexadecimalUpperCaseTest1() { //declare the test value const string TestValue = "TestValue"; //go grab the bytes var BytesToTest = new UTF8Encoding().GetBytes(TestValue); //now make sure nothing has changed Assert.Equal(ResultValue.ToUpper(), BytesToTest.ToByteArrayToHexadecimalString(false)); }