public void Base64Decode() { var samples = new[] { new { Input = "SGVsbG8gV29ybGQ=", Expected = "Hello World" }, new { Input = "UsO4ZCBncsO4ZCBtZWQgZmzDuGRl", Expected = "Rød grød med fløde" } }; foreach (var sample in samples) { Assert.AreEqual(sample.Expected, SecurityHelper.Base64Decode(sample.Input)); Assert.AreEqual(sample.Expected, SecurityUtils.Base64Decode(sample.Input)); } }