зеркало из https://github.com/dotnet/msbuild.git
Merge branch 'livelogger' of https://github.com/dotnet/msbuild into livelogger
This commit is contained in:
Коммит
c4dbf34117
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче