mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
36 lines
1.3 KiB
C#
36 lines
1.3 KiB
C#
// 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
|
|
{
|
|
[TestFixture]
|
|
public class UrlPluginTest
|
|
{
|
|
[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"));
|
|
|
|
// Assert.IsFalse(plugin.IsURL("wwww"));
|
|
// Assert.IsFalse(plugin.IsURL("wwww.c"));
|
|
// Assert.IsFalse(plugin.IsURL("wwww.c"));
|
|
}
|
|
}
|
|
}
|