public void TestDevAddrFormatAccurate() { //arrange string testKey = "5562df80"; string expected = "0x55, 0x62, 0xdf, 0x80"; //act string result = KeyChanger.FormatKey(testKey); //assert Assert.AreEqual(result, expected); }
public void TestKeyFailureOnKeyTooLong() { //arrange string testKey = "5562df80acf603217ceadab0effffffffffffffffffffffffe515f6d"; string expected = KeyChanger.INVALID_KEY; //act string result = KeyChanger.FormatKey(testKey); //assert Assert.AreEqual(result, expected); }
public void TestKeyFormatAccurate() { //arrange string testKey = "5562df80acf603217ceadab0ee515f6d"; string expected = "0x55, 0x62, 0xdf, 0x80, 0xac, 0xf6, 0x03, 0x21, 0x7c, 0xea, 0xda, 0xb0, 0xee, 0x51, 0x5f, 0x6d"; //act string result = KeyChanger.FormatKey(testKey); //assert Assert.AreEqual(result, expected); }