PEASS-ng/winPEAS/winPEASexe/Tests/SmokeTests.cs
makikvues 78d187db52 - fixed logo
- updated tests, long-running checks are removed
- create search lists only if necessary
2023-08-03 19:21:22 +02:00

43 lines
983 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", "userinfo", "servicesinfo", "browserinfo", "eventsinfo", "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}");
}
}
}
}