예제 #1
0
        public void PutAttachmentIntoContext()
        {
            var types = new HashSet <string>()
            {
                "txt", "xml", "html", "png", "jpg", "json", "uri"
            };

            foreach (var extension in types)
            {
                var path = $"test.{extension}";
                File.WriteAllText(path, "http://yandex.ru");
                scenarioContext.AddAllureAttachment(path, extension);
                scenarioContext.AddAllureAttachment(path, extension);
            }

            throw new Exception();
        }