mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-11 06:08:19 +00:00
Turned getter-like extension methods into extension properties (#1157)
This commit is contained in:
1 parent
0375318b1b
commit
f649febf88
286 files changed
+1379
-1109
No files matched your search
@@ -15,9 +15,9 @@ public sealed class LayoutPurposeTests
|
||||
{
|
||||
foreach (var purpose in Enum.GetValues<LayoutPurpose>())
|
||||
{
|
||||
Assert.That(purpose.Label(), Is.Not.Empty, $"The kind of slide {purpose} has no label.");
|
||||
Assert.That(purpose.Question(), Does.EndWith("?"), $"The kind of slide {purpose} has no question.");
|
||||
Assert.That(purpose.PromptDescription(), Is.Not.Empty.And.Not.EndWith("."), $"The kind of slide {purpose} has no description, or one which ends where the rule for the model goes on.");
|
||||
Assert.That(purpose.Label, Is.Not.Empty, $"The kind of slide {purpose} has no label.");
|
||||
Assert.That(purpose.Question, Does.EndWith("?"), $"The kind of slide {purpose} has no question.");
|
||||
Assert.That(purpose.PromptDescription, Is.Not.Empty.And.Not.EndWith("."), $"The kind of slide {purpose} has no description, or one which ends where the rule for the model goes on.");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -28,7 +28,7 @@ public sealed class LayoutPurposeTests
|
||||
[Test]
|
||||
public void EveryKindOfSlideHasALabelOfItsOwn()
|
||||
{
|
||||
var labels = Enum.GetValues<LayoutPurpose>().Select(purpose => purpose.Label()).ToList();
|
||||
var labels = Enum.GetValues<LayoutPurpose>().Select(purpose => purpose.Label).ToList();
|
||||
Assert.That(labels, Is.Unique);
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ public sealed class LayoutPurposeTests
|
||||
[Test]
|
||||
public void TheKindsOfSlidesFollowTheOrderOfTheAreas()
|
||||
{
|
||||
var areas = Enum.GetValues<LayoutPurpose>().Select(purpose => purpose.Area()).ToList();
|
||||
var areas = Enum.GetValues<LayoutPurpose>().Select(purpose => purpose.Area).ToList();
|
||||
using (Assert.EnterMultipleScope())
|
||||
{
|
||||
Assert.That(areas, Is.Ordered, "The kinds of an area stand together, and the areas follow their own order.");
|
||||
|
||||
Reference in new issue
Block a user