mirror of
https://github.com/peass-ng/PEASS-ng.git
synced 2026-07-30 15:40:27 -07:00
Fix winPEAS argument parsing tests
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using winPEAS.Checks;
|
||||
|
||||
namespace winPEAS.Tests
|
||||
{
|
||||
@@ -10,7 +9,7 @@ namespace winPEAS.Tests
|
||||
{
|
||||
private static bool InvokeIsNetworkTypeValid(string arg)
|
||||
{
|
||||
var method = typeof(Checks).GetMethod("IsNetworkTypeValid", BindingFlags.NonPublic | BindingFlags.Static);
|
||||
var method = typeof(winPEAS.Checks.Checks).GetMethod("IsNetworkTypeValid", BindingFlags.NonPublic | BindingFlags.Static);
|
||||
Assert.IsNotNull(method, "IsNetworkTypeValid method not found.");
|
||||
return (bool)method.Invoke(null, new object[] { arg });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user