Turned getter-like extension methods into extension properties (#1157)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-04 13:00:56 +01:00
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.");