Exemplo n.º 1
0
        public Word(string literal)
        {
            if (string.IsNullOrWhiteSpace(literal))
            {
                throw new ArgumentNullException();
            }

            Literal = literal.Trim();
            Id      = MD5Tools.Generate(Literal);
        }
Exemplo n.º 2
0
        public void It_can_generate_correct_MD5_of_a_string(string input, string expected)
        {
            var actual = MD5Tools.Generate(input);

            Assert.Equal(expected, actual, true);
        }