示例#1
0
        public static void Approve <T>(string path, string testName, IEnumerable <T> enumerable, EnumerableWriter.CustomFormatter <T> formatter)
        {
            var    client = new ApprovalServiceClient();
            string result = EnumerableWriter.Write(enumerable, formatter);

            client.ApproveAsync(path, testName, Encoding.UTF8.GetBytes(result));
        }
示例#2
0
        public static void Approve(string path, string testName, Control control)
        {
            var client = new ApprovalServiceClient();

            client.ApproveAsync(path, testName, CaptureControl(control));
        }