whitespace only (#5747)

This commit is contained in:
Clint Rutkas 2020-08-06 16:52:25 -07:00 committed by GitHub
parent d7994ca67d
commit b815718c26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 12 deletions

View file

@ -119,6 +119,7 @@ namespace Wox.Test
{
Debug.WriteLine("SCORE: " + item.Score.ToString() + ", FoundString: " + item.Title);
}
Debug.WriteLine("###############################################");
Debug.WriteLine("");
@ -162,7 +163,7 @@ namespace Wox.Test
StringMatcher.SearchPrecisionScore expectedPrecisionScore,
bool expectedPrecisionResult)
{
// When
// When
var matcher = new StringMatcher { UserSettingSearchPrecision = expectedPrecisionScore };
// Given

View file

@ -17,7 +17,7 @@ namespace Wox.Test.Plugins
[Test]
public void ContextMenuLoader_ReturnContextMenuForFolderWithOpenInConsole_WhenLoadContextMenusIsCalled()
{
// Arrange
// Arrange
var mock = new Mock<IPublicAPI>();
mock.Setup(api => api.GetTranslation(It.IsAny<string>())).Returns(It.IsAny<string>());
var pluginInitContext = new PluginInitContext() { API = mock.Object };
@ -37,7 +37,7 @@ namespace Wox.Test.Plugins
[Test]
public void ContextMenuLoader_ReturnContextMenuForFileWithOpenInConsole_WhenLoadContextMenusIsCalled()
{
// Arrange
// Arrange
var mock = new Mock<IPublicAPI>();
mock.Setup(api => api.GetTranslation(It.IsAny<string>())).Returns(It.IsAny<string>());
var pluginInitContext = new PluginInitContext() { API = mock.Object };

View file

@ -8,7 +8,6 @@ using Wox.Infrastructure.Exception;
namespace Wox.Test.Plugins
{
[TestFixture]
public class PluginInitTest
{

View file

@ -15,11 +15,9 @@ using Microsoft.Plugin.Indexer.DriveDetection;
namespace Wox.Test.Plugins
{
[TestFixture]
public class WindowsIndexerTest
{
public WindowsSearchAPI GetWindowsSearchAPI()
{
var mock = new Mock<ISearch>();
@ -306,7 +304,7 @@ namespace Wox.Test.Plugins
[TestCase(0, true, ExpectedResult = false)]
[TestCase(1, false, ExpectedResult = false)]
[TestCase(1, true, ExpectedResult = false)]
public bool DriveDetection_MustDisplayWarning_WhenEnhancedModeIsOffAndWhenWarningIsNotDisabled(int enhancedModeStatus, bool disableWarningCheckBoxStatus)
public bool DriveDetection_MustDisplayWarning_WhenEnhancedModeIsOffAndWhenWarningIsNotDisabled(int enhancedModeStatus, bool disableWarningCheckBoxStatus)
{
// Arrange
var mockRegistry = new Mock<IRegistryWrapper>();
@ -318,6 +316,5 @@ namespace Wox.Test.Plugins
// Act & Assert
return _driveDetection.DisplayWarning();
}
}
}

View file

@ -16,7 +16,7 @@ namespace Wox.Test
{
var nonGlobalPlugins = new Dictionary<string, PluginPair>
{
{">", new PluginPair {Metadata = new PluginMetadata {ActionKeywords = new List<string> {">"}}}}
{ ">", new PluginPair { Metadata = new PluginMetadata { ActionKeywords = new List<string> { ">" } } } }
};
Query q = QueryBuilder.Build("> file.txt file2 file3", nonGlobalPlugins);
@ -30,7 +30,7 @@ namespace Wox.Test
{
var nonGlobalPlugins = new Dictionary<string, PluginPair>
{
{">", new PluginPair {Metadata = new PluginMetadata {ActionKeywords = new List<string> {">"}, Disabled = true}}}
{ ">", new PluginPair { Metadata = new PluginMetadata { ActionKeywords = new List<string> { ">" }, Disabled = true } } }
};
Query q = QueryBuilder.Build("> file.txt file2 file3", nonGlobalPlugins);

View file

@ -54,8 +54,6 @@ namespace Wox.Test
// Assert
Assert.IsTrue(testClass.isFunctionCalled);
}
}
}