32 lines
917 B
C#
32 lines
917 B
C#
using System;
|
|
using BizTalkSapEnvironmentInventory.Infrastructure;
|
|
|
|
namespace BizTalkSapEnvironmentInventory.Tests
|
|
{
|
|
internal static class Program
|
|
{
|
|
private static int Main(string[] args)
|
|
{
|
|
try
|
|
{
|
|
if (args.Length == 2
|
|
&& string.Equals(args[0], "--write-sample", StringComparison.OrdinalIgnoreCase))
|
|
{
|
|
SelfTestRunner.WriteSample(args[1]);
|
|
Console.WriteLine("Musterbericht geschrieben: " + args[1]);
|
|
return 0;
|
|
}
|
|
|
|
SelfTestRunner.Run();
|
|
Console.WriteLine("Alle Tests erfolgreich.");
|
|
return 0;
|
|
}
|
|
catch (Exception exception)
|
|
{
|
|
Console.Error.WriteLine("Tests fehlgeschlagen: " + exception);
|
|
return 1;
|
|
}
|
|
}
|
|
}
|
|
}
|