Ejemplo n.º 1
0
        public void TestFile()
        {
            var path = PathUtilities.GetDirectoryForCaller();
            var file = path + "a.txt";

            SetApprovals.VerifyFileAsSet(file);
        }
Ejemplo n.º 2
0
        public void TestFileWithScrubber()
        {
            var path = PathUtilities.GetDirectoryForCaller();
            var file = path + "a.txt";
            Func <string, string> scrubber = s => Regex.Replace(s, @"^[^\|]*", "");

            SetApprovals.VerifyFileAsSet(file, scrubber);
        }