Skip to content

Commit

Permalink
Fixed broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
cpx86 committed Sep 3, 2016
1 parent fd0a09e commit 740dafc
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System.Linq;
using Cake.Common.Tools.MSBuild;
using Cake.Core.Diagnostics;
using Xunit;
Expand Down Expand Up @@ -275,13 +276,14 @@ public void Should_Add_Logger()
settings.WithLogger("LoggerAssembly2", "LoggerClass2", "LoggerParameters2");

// Then
Assert.Equal(2, settings.Loggers.Count);
Assert.Equal("LoggerAssembly1", settings.Loggers[0].Assembly);
Assert.Equal("LoggerClass1", settings.Loggers[0].Class);
Assert.Equal("LoggerParameters1", settings.Loggers[0].Parameters);
Assert.Equal("LoggerAssembly2", settings.Loggers[1].Assembly);
Assert.Equal("LoggerClass2", settings.Loggers[1].Class);
Assert.Equal("LoggerParameters2", settings.Loggers[1].Parameters);
var loggers = settings.Loggers.ToArray();
Assert.Equal(2, loggers.Length);
Assert.Equal("LoggerAssembly1", loggers[0].Assembly);
Assert.Equal("LoggerClass1", loggers[0].Class);
Assert.Equal("LoggerParameters1", loggers[0].Parameters);
Assert.Equal("LoggerAssembly2", loggers[1].Assembly);
Assert.Equal("LoggerClass2", loggers[1].Class);
Assert.Equal("LoggerParameters2", loggers[1].Parameters);
}

[Fact]
Expand Down

0 comments on commit 740dafc

Please sign in to comment.