Beispiel #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));
        }
Beispiel #2
0
        public static void Approve(string path, string testName, Control control)
        {
            var client = new ApprovalServiceClient();

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