Files
PowerToys/src/modules/launcher/Wox.Test/UrlPluginTest.cs

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"));
}
}
}