mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 15:11:10 +00:00
Formats code comments as sentences in the tests.
Capitalizes the first word and adds the terminal period in the unit, integration and security tests. The AAA markers stay bare, the TODO bodies stay lowercase, and no assertion, payload, expected status code or test signature changes.
This commit is contained in:
1 parent
727aa33318
commit
057f557791
540 files changed
+3888
-3888
No files matched your search
+17
-17
@@ -47,23 +47,23 @@ public class ThemeAudioPlayerBuilderTests
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData("toggleExpanded", "ToggleExpanded")] // the expanded player toggle
|
||||
[InlineData("previous", "AudioPlayerPrevious")] // the previous track control
|
||||
[InlineData("next", "AudioPlayerNext")] // the next track control
|
||||
[InlineData("stop", "AudioPlayerStop")] // the stop control
|
||||
[InlineData("repeat", "AudioPlayerRepeat")] // the repeat control
|
||||
[InlineData("repeatOff", "AudioPlayerRepeatOff")] // repeat turned off
|
||||
[InlineData("repeatAll", "AudioPlayerRepeatAll")] // repeat of the whole queue
|
||||
[InlineData("repeatOne", "AudioPlayerRepeatOne")] // repeat of a single track
|
||||
[InlineData("queue", "AudioPlayerQueue")] // the play queue title
|
||||
[InlineData("albumArtwork", "AudioPlayerAlbumArtwork")] // the album artwork placeholder
|
||||
[InlineData("addQueueToPlaylist", "AudioPlayerAddQueueToPlaylist")] // adding the queue to a playlist
|
||||
[InlineData("addToPlaylist", "PlaylistAddToPlaylist")] // adding a single track to a playlist
|
||||
[InlineData("selectPlaylist", "AudioPlayerSelectPlaylist")] // the playlist selector
|
||||
[InlineData("noPlaylists", "AudioPlayerNoPlaylists")] // no saved playlist is available
|
||||
[InlineData("add", "AudioPlayerAdd")] // the add confirmation
|
||||
[InlineData("playlistQueueAdded", "AudioPlayerPlaylistQueueAdded")] // the queue was added to a playlist
|
||||
[InlineData("playlistQueueAddFailed", "AudioPlayerPlaylistQueueAddFailed")] // adding the queue to a playlist failed
|
||||
[InlineData("toggleExpanded", "ToggleExpanded")] // The expanded player toggle.
|
||||
[InlineData("previous", "AudioPlayerPrevious")] // The previous track control.
|
||||
[InlineData("next", "AudioPlayerNext")] // The next track control.
|
||||
[InlineData("stop", "AudioPlayerStop")] // The stop control.
|
||||
[InlineData("repeat", "AudioPlayerRepeat")] // The repeat control.
|
||||
[InlineData("repeatOff", "AudioPlayerRepeatOff")] // Repeat turned off.
|
||||
[InlineData("repeatAll", "AudioPlayerRepeatAll")] // Repeat of the whole queue.
|
||||
[InlineData("repeatOne", "AudioPlayerRepeatOne")] // Repeat of a single track.
|
||||
[InlineData("queue", "AudioPlayerQueue")] // The play queue title.
|
||||
[InlineData("albumArtwork", "AudioPlayerAlbumArtwork")] // The album artwork placeholder.
|
||||
[InlineData("addQueueToPlaylist", "AudioPlayerAddQueueToPlaylist")] // Adding the queue to a playlist.
|
||||
[InlineData("addToPlaylist", "PlaylistAddToPlaylist")] // Adding a single track to a playlist.
|
||||
[InlineData("selectPlaylist", "AudioPlayerSelectPlaylist")] // The playlist selector.
|
||||
[InlineData("noPlaylists", "AudioPlayerNoPlaylists")] // No saved playlist is available.
|
||||
[InlineData("add", "AudioPlayerAdd")] // The add confirmation.
|
||||
[InlineData("playlistQueueAdded", "AudioPlayerPlaylistQueueAdded")] // The queue was added to a playlist.
|
||||
[InlineData("playlistQueueAddFailed", "AudioPlayerPlaylistQueueAddFailed")] // Adding the queue to a playlist failed.
|
||||
public void Build_WhenCalled_ShouldLocalizeThePlayerString(string modelKey, string resourceKey)
|
||||
{
|
||||
// Act
|
||||
|
||||
+1
-1
@@ -244,7 +244,7 @@ public class ThemeNavBuilderTests
|
||||
// Assert
|
||||
ThemeNavSectionDto toolsSection = FindSection(result, "Localized-Tools", isMobile: false)!;
|
||||
Assert.Contains(toolsSection.Items, entry => entry.Label == "Localized-Settings" && entry.Url == "http://localhost/en-us/tools/settings");
|
||||
// the desktop tools section hosts the language submenu while the mobile menu has a dedicated language section
|
||||
// The desktop tools section hosts the language submenu while the mobile menu has a dedicated language section.
|
||||
Assert.Contains(toolsSection.Items, entry => entry.Label == "Localized-Language" && entry.Children.Count == 10);
|
||||
}
|
||||
|
||||
|
||||
+6
-6
@@ -209,9 +209,9 @@ public class ThemeTemplateEngineTests
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(null)] // unresolved section
|
||||
[InlineData(false)] // boolean false
|
||||
[InlineData("")] // empty string
|
||||
[InlineData(null)] // Unresolved section.
|
||||
[InlineData(false)] // Boolean false.
|
||||
[InlineData("")] // Empty string.
|
||||
public void RenderPage_WhenSectionIsFalsy_ShouldSkipChildren(object? sectionValue)
|
||||
{
|
||||
// Arrange
|
||||
@@ -487,9 +487,9 @@ public class ThemeTemplateEngineTests
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData("{{bad-name}}")] // hyphen is not a valid name part character
|
||||
[InlineData("{{two words}}")] // whitespace inside the expression
|
||||
[InlineData("{{a..b}}")] // empty name part
|
||||
[InlineData("{{bad-name}}")] // Hyphen is not a valid name part character.
|
||||
[InlineData("{{two words}}")] // Whitespace inside the expression.
|
||||
[InlineData("{{a..b}}")] // Empty name part.
|
||||
public void RenderPage_WhenExpressionIsInvalid_ShouldReturnTemplateError(string template)
|
||||
{
|
||||
// Act
|
||||
|
||||
Reference in new issue
Block a user