fixing most whitespace issues, reordering namespaces and adding in headers (#5677)

This commit is contained in:
Clint Rutkas
2020-08-05 14:06:55 -07:00
committed by GitHub
parent 92a2b83bc8
commit ff69f6ed7f
72 changed files with 942 additions and 624 deletions

View File

@@ -1,3 +1,7 @@
// Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Generic;
using System.Diagnostics;
@@ -238,4 +242,4 @@ namespace Wox.Test
Assert.IsTrue(firstScore > secondScore);
}
}
}
}

View File

@@ -1,4 +1,8 @@
using NUnit.Framework;
// Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Text;

View File

@@ -1,4 +1,8 @@
using Moq;
// Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Moq;
using NUnit.Framework;
using System;
using System.Collections.Generic;

View File

@@ -1,4 +1,8 @@
using NUnit.Framework;
// Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using NUnit.Framework;
using Wox.Core.Plugin;
using Wox.Infrastructure.Exception;
@@ -11,7 +15,7 @@ namespace Wox.Test.Plugins
[Test]
public void PublicAPIIsNullTest()
{
//Assert.Throws(typeof(WoxFatalException), () => PluginManager.Initialize(null));
// Assert.Throws(typeof(WoxFatalException), () => PluginManager.Initialize(null));
}
}
}

View File

@@ -1,4 +1,8 @@
using NUnit.Framework;
// Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Text;

View File

@@ -1,4 +1,8 @@
using NUnit.Framework;
// Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Text;

View File

@@ -1,4 +1,8 @@
using NUnit.Framework;
// Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using NUnit.Framework;
using System;
using System.Collections.Generic;
using Microsoft.Search.Interop;

View File

@@ -1,4 +1,8 @@
using System.Collections.Generic;
// Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
using NUnit.Framework;
using Wox.Core.Plugin;
using Wox.Plugin;

View File

@@ -1,4 +1,8 @@
using NUnit.Framework;
// Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using NUnit.Framework;
using PowerLauncher.ViewModel;
using System;
using System.Collections.Generic;
@@ -41,7 +45,6 @@ namespace Wox.Test
});
rvm.SelectedItem = selectedItem;
// Act
rvm.SelectNextContextMenuItem();
@@ -62,7 +65,6 @@ namespace Wox.Test
});
rvm.SelectedItem = selectedItem;
// Act
rvm.SelectNextContextMenuItem();
@@ -91,7 +93,6 @@ namespace Wox.Test
});
rvm.SelectedItem = selectedItem;
// Act
rvm.SelectNextContextMenuItem();
rvm.SelectNextContextMenuItem();
@@ -115,7 +116,6 @@ namespace Wox.Test
});
rvm.SelectedItem = selectedItem;
// Act
rvm.SelectNextContextMenuItem();
rvm.SelectPreviousContextMenuItem();
@@ -137,7 +137,6 @@ namespace Wox.Test
});
rvm.SelectedItem = selectedItem;
// Act
rvm.SelectNextContextMenuItem();
bool isContextMenuItemSelected = rvm.IsContextMenuItemSelected();
@@ -159,7 +158,6 @@ namespace Wox.Test
});
rvm.SelectedItem = selectedItem;
// Act
rvm.SelectNextContextMenuItem();
rvm.SelectPreviousContextMenuItem();

View File

@@ -1,5 +1,9 @@
using NUnit.Framework;
//using Wox.Plugin.Url;
// Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using NUnit.Framework;
// using Wox.Plugin.Url;
namespace Wox.Test
{
@@ -9,24 +13,23 @@ namespace Wox.Test
[Test]
public void URLMatchTest()
{
//var plugin = new Main();
//Assert.IsTrue(plugin.IsURL("http://www.google.com"));
//Assert.IsTrue(plugin.IsURL("https://www.google.com"));
//Assert.IsTrue(plugin.IsURL("http://google.com"));
//Assert.IsTrue(plugin.IsURL("www.google.com"));
//Assert.IsTrue(plugin.IsURL("google.com"));
//Assert.IsTrue(plugin.IsURL("http://localhost"));
//Assert.IsTrue(plugin.IsURL("https://localhost"));
//Assert.IsTrue(plugin.IsURL("http://localhost:80"));
//Assert.IsTrue(plugin.IsURL("https://localhost:80"));
//Assert.IsTrue(plugin.IsURL("http://110.10.10.10"));
//Assert.IsTrue(plugin.IsURL("110.10.10.10"));
//Assert.IsTrue(plugin.IsURL("ftp://110.10.10.10"));
// var plugin = new Main();
// Assert.IsTrue(plugin.IsURL("http://www.google.com"));
// Assert.IsTrue(plugin.IsURL("https://www.google.com"));
// Assert.IsTrue(plugin.IsURL("http://google.com"));
// Assert.IsTrue(plugin.IsURL("www.google.com"));
// Assert.IsTrue(plugin.IsURL("google.com"));
// Assert.IsTrue(plugin.IsURL("http://localhost"));
// Assert.IsTrue(plugin.IsURL("https://localhost"));
// Assert.IsTrue(plugin.IsURL("http://localhost:80"));
// Assert.IsTrue(plugin.IsURL("https://localhost:80"));
// Assert.IsTrue(plugin.IsURL("http://110.10.10.10"));
// Assert.IsTrue(plugin.IsURL("110.10.10.10"));
// Assert.IsTrue(plugin.IsURL("ftp://110.10.10.10"));
//Assert.IsFalse(plugin.IsURL("wwww"));
//Assert.IsFalse(plugin.IsURL("wwww.c"));
//Assert.IsFalse(plugin.IsURL("wwww.c"));
// Assert.IsFalse(plugin.IsURL("wwww"));
// Assert.IsFalse(plugin.IsURL("wwww.c"));
// Assert.IsFalse(plugin.IsURL("wwww.c"));
}
}
}

View File

@@ -57,5 +57,19 @@
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
</ItemGroup>
<!--<ItemGroup>
<Compile Include="..\..\..\codeAnalysis\GlobalSuppressions.cs">
<Link>GlobalSuppressions.cs</Link>
</Compile>
<AdditionalFiles Include="..\..\..\codeAnalysis\StyleCop.json">
<Link>StyleCop.json</Link>
</AdditionalFiles>
</ItemGroup>
<ItemGroup>
<PackageReference Include="StyleCop.Analyzers">
<Version>1.1.118</Version>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>-->
</Project>

View File

@@ -1,4 +1,8 @@
using System.Windows.Input;
// Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Windows.Input;
using NUnit.Framework;
using Wox.Plugin;
using PowerLauncher.ViewModel;
@@ -39,7 +43,6 @@ namespace Wox.Test
}
}
[Test]
public void AnyVariable_MustCallOnPropertyChanged_WhenSet()
{