package org.intellij.plugins.markdown.actions; import com.intellij.testFramework.LightPlatformCodeInsightTestCase; import org.intellij.plugins.markdown.MarkdownTestingUtil; import org.jetbrains.annotations.NotNull; public class MarkdownToggleCodeSpanTest extends LightPlatformCodeInsightTestCase { public void testSimple() { doTest(); } public void testSurroundCodeWithBackticks() { doTest(); } public void testSurroundCodeWithBackticksCancel() { doTest(); } private void doTest() { configureByFile(getTestName(true) + "_before.md"); executeAction("org.intellij.plugins.markdown.ui.actions.styling.ToggleCodeSpanAction"); checkResultByFile(getTestName(true) + "_after.md"); } @NotNull @Override protected String getTestDataPath() { return MarkdownTestingUtil.TEST_DATA_PATH + "/actions/toggleCodeSpan/"; } }