Skip to content

Commit 219756f

Browse files
committed
Remove test that is meaningless due to API forcing good pathways
1 parent c908116 commit 219756f

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/Build.UnitTests/BackEnd/LoggingServicesLogMethod_Tests.cs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -782,22 +782,6 @@ public void LogCommentFromTextGoodMessage()
782782

783783
#region ProjectStarted
784784

785-
/// <summary>
786-
/// Expect an exception to be thrown if a null build event context is passed in
787-
/// and OnlyLogCriticalEvents is false
788-
/// </summary>
789-
[Fact]
790-
public void ProjectStartedNullBuildEventContext()
791-
{
792-
Assert.Throws<InternalErrorException>(() =>
793-
{
794-
ProcessBuildEventHelper service = (ProcessBuildEventHelper)ProcessBuildEventHelper.CreateLoggingService(LoggerMode.Synchronous, 1);
795-
var args = service.CreateProjectStartedForLocalProject(s_taskBuildEventContext, 2, "ProjectFile", "TargetNames", null, null, null, null);
796-
args.BuildEventContext = null; // Force null context for error test
797-
service.LogProjectStarted(args);
798-
});
799-
}
800-
801785
/// <summary>
802786
/// Expect an exception to be thrown if a null build event context is passed in
803787
/// and OnlyLogCriticalEvents is false

0 commit comments

Comments
 (0)