コード例 #1
0
ファイル: Word.cs プロジェクト: PQ4NOEH/LangLab
        public Word(string literal)
        {
            if (string.IsNullOrWhiteSpace(literal))
            {
                throw new ArgumentNullException();
            }

            Literal = literal.Trim();
            Id      = MD5Tools.Generate(Literal);
        }
コード例 #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);
        }