mirror of
https://github.com/AtomUI/AtomUI.git
synced 2026-10-18 14:37:19 +08:00
23 lines
788 B
C#
23 lines
788 B
C#
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`");
|
||
}
|
||
}
|