mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 19:57:07 +02:00
[Run.Plugin.Calculator] Enable analyzer and fix warnings (#16998)
This commit is contained in:
committed by
GitHub
parent
3e9c7f83c8
commit
79b2cdca7b
@@ -32,7 +32,7 @@ namespace Microsoft.PowerToys.Run.Plugin.Calculator.UnitTests
|
||||
var engine = new CalculateEngine();
|
||||
|
||||
// Act
|
||||
Assert.ThrowsException<ArgumentNullException>(() => engine.Interpret(input));
|
||||
Assert.ThrowsException<ArgumentNullException>(() => engine.Interpret(input, CultureInfo.CurrentCulture));
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
@@ -46,7 +46,7 @@ namespace Microsoft.PowerToys.Run.Plugin.Calculator.UnitTests
|
||||
var engine = new CalculateEngine();
|
||||
|
||||
// Act
|
||||
var result = engine.Interpret(input);
|
||||
var result = engine.Interpret(input, CultureInfo.CurrentCulture);
|
||||
|
||||
// Assert
|
||||
Assert.AreEqual(default(CalculateResult), result);
|
||||
|
||||
Reference in New Issue
Block a user