From 38cc62deaf5a0f8980cfa136f3136fa06a5fdd1e Mon Sep 17 00:00:00 2001 From: Paul Betts Date: Tue, 11 Jun 2013 12:15:30 -0700 Subject: [PATCH] hwhoops --- .../ReactiveUI.Xaml_Net45.csproj | 1 - .../ReactiveUI.Xaml_WinRT.csproj | 1 - .../MakeObjectReactiveHelperTest.cs | 63 ------------------- .../ReactiveUI.Tests_Net45.csproj | 1 - 4 files changed, 66 deletions(-) delete mode 100644 ReactiveUI.Tests/MakeObjectReactiveHelperTest.cs diff --git a/ReactiveUI.Platforms/ReactiveUI.Xaml_Net45.csproj b/ReactiveUI.Platforms/ReactiveUI.Xaml_Net45.csproj index 65aab64cb1..4d8b06e2ec 100644 --- a/ReactiveUI.Platforms/ReactiveUI.Xaml_Net45.csproj +++ b/ReactiveUI.Platforms/ReactiveUI.Xaml_Net45.csproj @@ -132,7 +132,6 @@ - diff --git a/ReactiveUI.Platforms/ReactiveUI.Xaml_WinRT.csproj b/ReactiveUI.Platforms/ReactiveUI.Xaml_WinRT.csproj index 0168c35f80..123123e4fc 100644 --- a/ReactiveUI.Platforms/ReactiveUI.Xaml_WinRT.csproj +++ b/ReactiveUI.Platforms/ReactiveUI.Xaml_WinRT.csproj @@ -45,7 +45,6 @@ - diff --git a/ReactiveUI.Tests/MakeObjectReactiveHelperTest.cs b/ReactiveUI.Tests/MakeObjectReactiveHelperTest.cs deleted file mode 100644 index ebd15ad7a3..0000000000 --- a/ReactiveUI.Tests/MakeObjectReactiveHelperTest.cs +++ /dev/null @@ -1,63 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Text; -using Xunit; - -namespace ReactiveUI.Tests -{ - public class NonReactiveINPCObjectMadeReactive : IReactiveNotifyPropertyChanged - { - public event PropertyChangingEventHandler PropertyChanging; - public event PropertyChangedEventHandler PropertyChanged; - - TestFixture _InpcProperty; - public TestFixture InpcProperty { - get { return _InpcProperty; } - set { - if (_InpcProperty == value) { - return; - } - _InpcProperty = value; - - PropertyChanged(this, new PropertyChangedEventArgs("InpcProperty")); - } - } - - MakeObjectReactiveHelper _reactiveHelper; - public NonReactiveINPCObjectMadeReactive() - { - _reactiveHelper = new MakeObjectReactiveHelper(this); - } - - public IObservable> Changing { - get { return _reactiveHelper.Changing; } - } - public IObservable> Changed { - get { return _reactiveHelper.Changed; } - } - public IDisposable SuppressChangeNotifications() { - return _reactiveHelper.SuppressChangeNotifications(); - } - } - - public class MakeObjectReactiveHelperTest - { - [Fact] - public void MakeObjectReactiveHelperSmokeTest() - { - var fixture = new NonReactiveINPCObjectMadeReactive(); - var output = fixture.Changed.CreateCollection(); - - Assert.Equal(0, output.Count); - - var input = new TestFixture(); - fixture.InpcProperty = input; - - Assert.Equal(1, output.Count); - Assert.Equal(fixture, output[0].Sender); - Assert.Equal("InpcProperty", output[0].PropertyName); - } - } -} diff --git a/ReactiveUI.Tests/ReactiveUI.Tests_Net45.csproj b/ReactiveUI.Tests/ReactiveUI.Tests_Net45.csproj index e1156359da..6eafa43615 100644 --- a/ReactiveUI.Tests/ReactiveUI.Tests_Net45.csproj +++ b/ReactiveUI.Tests/ReactiveUI.Tests_Net45.csproj @@ -112,7 +112,6 @@ -