PEASS-ng/winPEAS/winPEASexe/Tests/SmokeTests.cs
makikvues faefb80ec4 - updated winpeas tests
- updated CI-winpeas_build_test.yml
2021-07-07 10:46:51 +02:00

43 lines
1009 B
C#

using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
namespace winPEAS.Tests
{
[TestClass]
public class SmokeTests
{
[TestMethod]
public void ShouldRunWinPeass()
{
try
{
string[] args = new string[] {
"systeminfo", "networkinfo", "servicesinfo", "processinfo", "applicationsinfo", "browserinfo", "debug"
};
Program.Main(args);
}
catch (Exception e)
{
Assert.Fail($"Exception thrown: {e.Message}");
}
}
[TestMethod]
public void ShouldDisplayHelp()
{
try
{
string[] args = new string[] {
"help",
};
Program.Main(args);
}
catch (Exception e)
{
Assert.Fail($"Exception thrown: {e.Message}");
}
}
}
}