Skip to content

Commit b50a1d7

Browse files
committed
Misc fixups
1 parent 12e1d76 commit b50a1d7

3 files changed

Lines changed: 6 additions & 16 deletions

File tree

ReactiveUI.Tests/ReactiveCommandTest.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public void ObservableCanExecuteShouldShowUpInCommand()
3737
var result = (new TestScheduler()).With(sched => {
3838
var can_execute = new Subject<bool>();
3939
var fixture = new ReactiveCommand(can_execute, null);
40-
var changes_as_observable = new ListObservable<bool>(fixture.CanExecuteObservable);
40+
var changes_as_observable = fixture.CanExecuteObservable.CreateCollection();
4141

4242
int change_event_count = 0;
4343
fixture.CanExecuteChanged += (o, e) => { change_event_count++; };
@@ -49,8 +49,7 @@ public void ObservableCanExecuteShouldShowUpInCommand()
4949

5050
// N.B. We check against '5' instead of 6 because we're supposed to
5151
// suppress changes that aren't actually changes i.e. false => false
52-
can_execute.OnCompleted();
53-
sched.Run();
52+
sched.RunToMilliseconds(10 * 1000);
5453
Assert.Equal(1+5, change_event_count);
5554

5655
return changes_as_observable;

ReactiveUI/Interfaces.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -158,15 +158,6 @@ public interface IReactiveCollection : IReactiveNotifyPropertyChanged, IEnumerab
158158
/// rebroadcast through ItemChanging/ItemChanged.
159159
/// </summary>
160160
bool ChangeTrackingEnabled { get; set; }
161-
162-
/// <summary>
163-
/// When this method is called, an object will not fire change
164-
/// notifications (neither traditional nor Observable notifications)
165-
/// until the return value is disposed.
166-
/// </summary>
167-
/// <returns>An object that, when disposed, reenables change
168-
/// notifications.</returns>
169-
IDisposable SuppressChangeNotifications();
170161
}
171162

172163
/// <summary>

ReactiveUI/MessageBus.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,14 +190,14 @@ public static T ViewModelForType<T>(this IMessageBus This, string contract = nul
190190
return This.Listen<T>(viewModelCurrentValueContractName(typeof(T), contract)).First();
191191
}
192192

193-
static string viewModelContractName(Type Type, string contract)
193+
static string viewModelContractName(Type type, string contract)
194194
{
195-
return Type.FullName + "_" + (contract ?? String.Empty);
195+
return type.FullName + "_" + (contract ?? String.Empty);
196196
}
197197

198-
static string viewModelCurrentValueContractName(Type Type, string contract)
198+
static string viewModelCurrentValueContractName(Type type, string contract)
199199
{
200-
return viewModelContractName(Type, contract) + "__current";
200+
return viewModelContractName(type, contract) + "__current";
201201
}
202202
}
203203
}

0 commit comments

Comments
 (0)