From 49ad041b87a24636d8cc1f1bae78e142fc4b56c3 Mon Sep 17 00:00:00 2001 From: "Darrin W. Cullop" Date: Sun, 17 Dec 2023 21:08:08 -0800 Subject: [PATCH] Fix ObservableSpy null mismatch issues (#803) --- src/DynamicData.Tests/Utilities/ObservableSpy.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/DynamicData.Tests/Utilities/ObservableSpy.cs b/src/DynamicData.Tests/Utilities/ObservableSpy.cs index 20cb3515e..2cb95ff23 100644 --- a/src/DynamicData.Tests/Utilities/ObservableSpy.cs +++ b/src/DynamicData.Tests/Utilities/ObservableSpy.cs @@ -127,7 +127,7 @@ private static Func, string> CreateListChangeSetFormatter(Func< cs => "[List Change Set]" + ChangeSetEntrySpacing + string.Join(ChangeSetEntrySpacing, cs.Select((change, n) => $"#{n} {FormatChange(formatter, change)}")); public static IObservable DebugSpy(this IObservable source, string? opName = null, - Func? formatter = null, bool showSubs = true, + Func? formatter = null, bool showSubs = true, bool showTimestamps = true) => #if DEBUG || DEBUG_SPY_ALWAYS source.Spy(opName, DebugLogger, formatter, showSubs, showTimestamps); @@ -137,7 +137,7 @@ public static IObservable DebugSpy(this IObservable source, string? opN public static IObservable> DebugSpy(this IObservable> source, string? opName = null, - Func? formatter = null, bool showSubs = true, + Func? formatter = null, bool showSubs = true, bool showTimestamps = true) where T : notnull where TKey : notnull => @@ -149,7 +149,7 @@ public static IObservable> DebugSpy(this IObservabl public static IObservable> DebugSpy(this IObservable> source, string? opName = null, - Func? formatter = null, bool showSubs = true, + Func? formatter = null, bool showSubs = true, bool showTimestamps = true) where T : notnull => #if DEBUG || DEBUG_SPY_ALWAYS