openxml-test-fixtures
星标8
分支0
更新时间2026年3月25日 05:16
Build realistic PPTX fixtures for service and tool tests
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Build realistic PPTX fixtures for service and tool tests
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
{what this skill teaches agents}
{what this skill teaches agents}
Patterns for exporting PPTX presentations to markdown
Preserve PowerPoint formatting when replacing text in existing shapes
| name | openxml-test-fixtures |
| description | Build realistic PPTX fixtures for service and tool tests |
| domain | testing |
| confidence | high |
| source | issue-6 |
tests/PptxTools.Tests/TestPptxHelper.cs is the shared test-fixture builder for pptx-tools. Use it whenever a test needs a valid presentation with realistic combinations of titles, body placeholders, and images.
TestPptxHelper.CreateMinimalPresentation(...) for single-slide happy-path tests.TestPptxHelper.CreatePresentation(path, slides) with TestSlideDefinition for richer fixtures.TestTextShapeDefinition, using PlaceholderType = PlaceholderValues.Body when you want bullet-like talking-point behavior.IncludeImage = true to validate image-only slides without hand-building picture relationships.TestPptxHelper.CreatePresentation(path,
[
new TestSlideDefinition
{
TitleText = "Launch Plan",
TextShapes =
[
new TestTextShapeDefinition
{
PlaceholderType = PlaceholderValues.Body,
Paragraphs =
[
"Ship the MCP tool",
"Validate output"
]
}
]
},
new TestSlideDefinition
{
IncludeImage = true
}
]);