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

            SetApprovals.VerifyFileAsSet(file);
        }
Beispiel #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);
        }