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