Permalink
Browse files

housekeeping: Make Splat 6.* the default. (#1900)

* housekeeping: Make Splat 6.* the default.
  • Loading branch information...
glennawatson committed Jan 11, 2019
1 parent 3246efa commit 339539bc7eaaae6318fe4e3a39e28feaca76e7b8
@@ -66,6 +66,11 @@ public void Write(string message, LogLevel logLevel)
{
LastMessages.Add(message);
}

public void Write([Localizable(false)] string message, [Localizable(false)] Type type, LogLevel logLevel)
{
LastMessages.Add(message);
}
}
}
}
@@ -1704,7 +1704,7 @@ public void DerivedCollectionsShouldWarnWhenSourceIsNotINotifyCollectionChanged(

var m = logger.Messages.Last();
var message = m.Item1;
var level = m.Item2;
var level = m.Item3;

Assert.Contains("INotifyCollectionChanged", message);
Assert.Equal(LogLevel.Warn, level);
@@ -4,6 +4,7 @@

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@@ -15,17 +16,22 @@ public class TestLogger : ILogger
{
public TestLogger()
{
Messages = new List<Tuple<string, LogLevel>>();
Messages = new List<Tuple<string, Type, LogLevel>>();
Level = LogLevel.Debug;
}

public List<Tuple<string, LogLevel>> Messages { get; }
public List<Tuple<string, Type, LogLevel>> Messages { get; }

public LogLevel Level { get; set; }

public void Write(string message, LogLevel logLevel)
{
Messages.Add(Tuple.Create(message, logLevel));
Messages.Add(Tuple.Create(message, typeof(TestLogger), logLevel));
}

public void Write([Localizable(false)] string message, [Localizable(false)] Type type, LogLevel logLevel)
{
Messages.Add(Tuple.Create(message, type, logLevel));
}
}
}
@@ -12,7 +12,7 @@
<None Include="Platforms\**\*.cs" />
<PackageReference Include="System.Reactive" Version="4.0.0" />
<PackageReference Include="System.Reactive.Compatibility" Version="4.0.0" />
<PackageReference Include="Splat" Version="5.*" />
<PackageReference Include="Splat" Version="6.*" />
<PackageReference Include="DynamicData" Version="6.7.*" />
</ItemGroup>

0 comments on commit 339539b

Please sign in to comment.