This commit is contained in:
Roman Konecny 2023-03-31 14:55:02 +02:00
Родитель 2c7c07b097 28cf5abb1d
Коммит c4dbf34117
2 изменённых файлов: 31 добавлений и 0 удалений

Просмотреть файл

@ -156,6 +156,24 @@ namespace Microsoft.Build.UnitTests
duplicateSwitchErrorMessage.ShouldBeNull();
}
#if FEATURE_LIVELOGGER
[Theory]
[InlineData("ll")]
[InlineData("LL")]
[InlineData("livelogger")]
[InlineData("LiveLogger")]
[InlineData("LIVELOGGER")]
public void LiveLoggerSwitchIdentificationTests(string livelogger)
{
CommandLineSwitches.ParameterlessSwitch parameterlessSwitch;
string duplicateSwitchErrorMessage;
CommandLineSwitches.IsParameterlessSwitch(livelogger, out parameterlessSwitch, out duplicateSwitchErrorMessage).ShouldBeTrue();
parameterlessSwitch.ShouldBe(CommandLineSwitches.ParameterlessSwitch.LiveLogger);
duplicateSwitchErrorMessage.ShouldBeNull();
}
#endif
[Theory]
[InlineData("flp")]
[InlineData("FLP")]

Просмотреть файл

@ -37,18 +37,31 @@ namespace Microsoft.Build.UnitTests
#pragma warning disable CS0067
public event BuildMessageEventHandler? MessageRaised;
public event BuildErrorEventHandler? ErrorRaised;
public event BuildWarningEventHandler? WarningRaised;
public event BuildStartedEventHandler? BuildStarted;
public event BuildFinishedEventHandler? BuildFinished;
public event ProjectStartedEventHandler? ProjectStarted;
public event ProjectFinishedEventHandler? ProjectFinished;
public event TargetStartedEventHandler? TargetStarted;
public event TargetFinishedEventHandler? TargetFinished;
public event TaskStartedEventHandler? TaskStarted;
public event TaskFinishedEventHandler? TaskFinished;
public event CustomBuildEventHandler? CustomEventRaised;
public event BuildStatusEventHandler? StatusEventRaised;
public event AnyEventHandler? AnyEventRaised;
#pragma warning restore CS0067