Skip to content

Commit

Permalink
Fix ObservableSpy null mismatch issues (#803)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwcullop committed Dec 18, 2023
1 parent 6680627 commit 49ad041
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DynamicData.Tests/Utilities/ObservableSpy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ private static class NativeMethods
cs => "[List Change Set]" + ChangeSetEntrySpacing + string.Join(ChangeSetEntrySpacing, cs.Select((change, n) => $"#{n} {FormatChange(formatter, change)}"));

public static IObservable<T> DebugSpy<T>(this IObservable<T> source, string? opName = null,
Func<T, string?>? formatter = null, bool showSubs = true,
Func<T, string>? formatter = null, bool showSubs = true,
bool showTimestamps = true) =>
#if DEBUG || DEBUG_SPY_ALWAYS
source.Spy(opName, DebugLogger, formatter, showSubs, showTimestamps);
Expand All @@ -137,7 +137,7 @@ private static class NativeMethods

public static IObservable<IChangeSet<T, TKey>> DebugSpy<T, TKey>(this IObservable<IChangeSet<T, TKey>> source,
string? opName = null,
Func<T, string?>? formatter = null, bool showSubs = true,
Func<T, string>? formatter = null, bool showSubs = true,
bool showTimestamps = true)
where T : notnull
where TKey : notnull =>
Expand All @@ -149,7 +149,7 @@ private static class NativeMethods

public static IObservable<IChangeSet<T>> DebugSpy<T>(this IObservable<IChangeSet<T>> source,
string? opName = null,
Func<T, string?>? formatter = null, bool showSubs = true,
Func<T, string>? formatter = null, bool showSubs = true,
bool showTimestamps = true)
where T : notnull =>
#if DEBUG || DEBUG_SPY_ALWAYS
Expand Down

0 comments on commit 49ad041

Please sign in to comment.