Esempio n. 1
0
        public void CorrectsExistingHash()
        {
            var hashed = NameWithHash.FromScript(new SqlScript("name#blah", "contents"));

            hashed.PlainName.Should().Be("name");
            hashed.ContentsHash.Should().Be(NameWithHash.GenerateHash("contents"));
        }
Esempio n. 2
0
        public void AddsHash()
        {
            var hashed = NameWithHash.FromScript(new SqlScript("name", "contents"));

            hashed.PlainName.Should().Be("name");
            hashed.ContentsHash.Should().Be(NameWithHash.GenerateHash("contents"));
        }