Files

23 lines
788 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using AtomUI.Docs.LLMsGenerator.Reader;
using Shouldly;
using Xunit;
namespace AtomUI.Docs.LLMsGenerator.Tests;
public class GalleryExampleReaderTests
{
[Fact]
public void ReaderSupportsSpecificShowCaseFileInSharedGalleryDirectory()
{
const string galleryPath =
"controlgallery/AtomUIGallery/ShowCases/DataEntry/LineEdit/Views/LineEditShowCase.axaml";
var markdown = GalleryExampleReader.ReadMarkdown(TestRepository.RootPath, galleryPath, "OtpLineEdit");
markdown.ShouldContain("SourceKey:`line-edit-otp-two-way`");
markdown.ShouldContain("SourceKey:`line-edit-otp-form`");
markdown.ShouldContain("SourceKey:`line-edit-otp-ant-design`");
markdown.ShouldNotContain("SourceKey:`line-edit-basic`");
}
}