Example #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"));
        }
Example #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"));
        }