Beispiel #1
0
        public void HappyPathTokenizedReturnsValue()
        {
            // arrange
            ClientTokenString cts = "[T__ABC1234__T][M__****lo__M]";

            Assert.AreEqual("[T__ABC1234__T][M__****lo__M]", cts.OriginalValue);
            Assert.AreEqual("[T__ABC1234__T][M__****lo__M]", cts.ToString());
            Assert.AreEqual("****lo", cts.MaskedValue);
            Assert.AreEqual(true, cts.IsTokenized());
        }
Beispiel #2
0
        public void HappyPathValueReturnsValue()
        {
            // arrange
            ClientTokenString cts = "Hello";

            Assert.AreEqual("Hello", cts.OriginalValue);
            Assert.AreEqual("Hello", cts.ToString());
            Assert.AreEqual("", cts.MaskedValue);
            Assert.AreEqual(false, cts.IsTokenized());
        }