Class AiPromptUserInstructionLibraryTests
EditMode tests for AiPromptUserInstructionLibrary — a fake IAiPromptPreferencesStore
(in-memory dictionary), no EditorPrefs.
Inherited Members
Namespace: Serenity.AiPromptBuilder.Tests.Editor
Assembly: Serenity.AiPromptBuilder.Tests.Editor.dll
Syntax
public class AiPromptUserInstructionLibraryTests
Constructors
AiPromptUserInstructionLibraryTests()
Declaration
public AiPromptUserInstructionLibraryTests()
Methods
Add_AssignsUniqueStableIdAndDefaultsEnabledTrue()
Declaration
public void Add_AssignsUniqueStableIdAndDefaultsEnabledTrue()
ReadAll_EmptyStore_ReturnsEmptyList()
Declaration
public void ReadAll_EmptyStore_ReturnsEmptyList()
Remove_DeletesOnlyTheMatchingSnippet()
Declaration
public void Remove_DeletesOnlyTheMatchingSnippet()
RoundTrip_ANewLibraryInstanceOverTheSameStore_SeesThePersistedSnippet()
Declaration
public void RoundTrip_ANewLibraryInstanceOverTheSameStore_SeesThePersistedSnippet()
SetEnabled_TogglesFlagOfMatchingSnippet()
Declaration
public void SetEnabled_TogglesFlagOfMatchingSnippet()
Update_ChangesNameAndInstructionOfMatchingSnippet()
Declaration
public void Update_ChangesNameAndInstructionOfMatchingSnippet()