mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-13 16:27:21 +00:00
Added the choice between formal and informal address to the whole app (#1200)
This commit is contained in:
1 parent
382db4b8d0
commit
c9a376f742
342 files changed
+14378
-1893
No files matched your search
@@ -0,0 +1,29 @@
|
||||
using AIStudio.Settings;
|
||||
using AIStudio.Settings.DataModel;
|
||||
|
||||
namespace AIStudio.Tests.Settings;
|
||||
|
||||
/// <summary>
|
||||
/// Checks the setting for how the texts of AI Studio address the person.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Only languages with a formal and an informal address, such as German, offer the choice; see
|
||||
/// LanguagePluginExtensions.HasInformalAddress.
|
||||
/// </remarks>
|
||||
[TestFixture]
|
||||
public sealed class AddressFormSettingsTests
|
||||
{
|
||||
[Test]
|
||||
public void NewSettingsAddressFormally()
|
||||
{
|
||||
Assert.That(new DataApp().AddressForm, Is.EqualTo(AddressForm.FORMAL), "The texts of AI Studio addressed everybody formally before the setting existed.");
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TheSettingsOfferEveryFormOfAddress()
|
||||
{
|
||||
var forms = ConfigurationSelectDataFactory.GetAddressFormData().Select(data => data.Value);
|
||||
|
||||
Assert.That(forms, Is.EquivalentTo(Enum.GetValues<AddressForm>()));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user