public void HexToCustomBase64() { var encoder = new MugEncoder(); var customBase64_1 = encoder.ToCustomBase64(testHex_1); var customBase64_2 = encoder.ToCustomBase64(testHex_2); Assert.Equal(testCustomBase64_1, customBase64_1); Assert.Equal(testCustomBase64_2, customBase64_2); }
public void HexToCustomBase64InvalidNull() { string hex = null; var encoder = new MugEncoder(); string customBase64; Assert.Throws <ArgumentNullException>(() => customBase64 = encoder.ToCustomBase64(hex)); }
public void HexToCustomBase64Invalid() { var hex = "g53464a0"; var encoder = new MugEncoder(); string customBase64; Assert.Throws <ArgumentException>(() => customBase64 = encoder.ToCustomBase64(hex)); }