mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
Add filename-compatible date & time format (#25020)
* enable the functionality to have filename-compatible date & time * fix PowerToys.sln * fix DateTime format * remove unrelated code * modify date time format * fix tests * fix hours to 24h format and modify tests to cover the case better. Simplify tests slightly
This commit is contained in:
@@ -52,12 +52,12 @@ namespace Microsoft.PowerToys.Run.Plugin.TimeDate.UnitTests
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[DataRow("(time", 16)]
|
||||
[DataRow("(date", 24)]
|
||||
[DataRow("(time", 17)]
|
||||
[DataRow("(date", 25)]
|
||||
[DataRow("(year", 7)]
|
||||
[DataRow("(now", 30)]
|
||||
[DataRow("(current", 30)]
|
||||
[DataRow("(", 30)]
|
||||
[DataRow("(now", 31)]
|
||||
[DataRow("(current", 31)]
|
||||
[DataRow("(", 31)]
|
||||
[DataRow("(now::10:10:10", 1)] // Windows file time
|
||||
[DataRow("(current::10:10:10", 0)]
|
||||
public void CountWithPluginKeyword(string typedString, int expectedResultCount)
|
||||
|
||||
Reference in New Issue
Block a user