public void CorrectsExistingHash() { var hashed = NameWithHash.FromScript(new SqlScript("name#blah", "contents")); hashed.PlainName.Should().Be("name"); hashed.ContentsHash.Should().Be(NameWithHash.GenerateHash("contents")); }
public void AddsHash() { var hashed = NameWithHash.FromScript(new SqlScript("name", "contents")); hashed.PlainName.Should().Be("name"); hashed.ContentsHash.Should().Be(NameWithHash.GenerateHash("contents")); }