Index: Riskeer/Common/test/Riskeer.Common.Forms.Test/PresentationObjects/LocationCalculationsContextTest.cs =================================================================== diff -u -r76df5cd9a64862ec2239dfcf6e539cd72f96b7e8 -r7f91b938135e4f0e5782ce023ec8ae94cd07c221 --- Riskeer/Common/test/Riskeer.Common.Forms.Test/PresentationObjects/LocationCalculationsContextTest.cs (.../LocationCalculationsContextTest.cs) (revision 76df5cd9a64862ec2239dfcf6e539cd72f96b7e8) +++ Riskeer/Common/test/Riskeer.Common.Forms.Test/PresentationObjects/LocationCalculationsContextTest.cs (.../LocationCalculationsContextTest.cs) (revision 7f91b938135e4f0e5782ce023ec8ae94cd07c221) @@ -35,7 +35,7 @@ public void Constructor_ExpectedValues() { // Call - var context = new TestLocationCalculationsContext(new object(), new ObservableList()); + var context = new TestLocationCalculationsContext(new object(), new ObservableList()); // Assert Assert.IsInstanceOf>(context); @@ -51,7 +51,7 @@ var observer = mockRepository.StrictMock(); mockRepository.ReplayAll(); - var context = new TestLocationCalculationsContext(new object(), new ObservableList()); + var context = new TestLocationCalculationsContext(new object(), new ObservableList()); // When context.Attach(observer); @@ -70,7 +70,7 @@ var observer = mockRepository.StrictMock(); mockRepository.ReplayAll(); - var context = new TestLocationCalculationsContext(new object(), new ObservableList()); + var context = new TestLocationCalculationsContext(new object(), new ObservableList()); context.Attach(observer); @@ -88,10 +88,10 @@ // Given var mockRepository = new MockRepository(); var observer = mockRepository.StrictMock(); - observer.Expect(o => o.UpdateObserver()).Repeat.Any(); + observer.Expect(o => o.UpdateObserver()); mockRepository.ReplayAll(); - var locationCalculationsListToObserve = new ObservableList(); + var locationCalculationsListToObserve = new ObservableList(); var context = new TestLocationCalculationsContext(new object(), locationCalculationsListToObserve); context.Attach(observer); @@ -113,7 +113,7 @@ mockRepository.ReplayAll(); var observable = new TestObservable(); - var locationCalculationsListToObserve = new ObservableList + var locationCalculationsListToObserve = new ObservableList { observable }; @@ -129,14 +129,14 @@ mockRepository.VerifyAll(); } - private class TestLocationCalculationsContext : LocationCalculationsContext + private class TestLocationCalculationsContext : LocationCalculationsContext { - public TestLocationCalculationsContext(object wrappedData, ObservableList locationCalculationsListToObserve) : base(wrappedData) + public TestLocationCalculationsContext(object wrappedData, ObservableList locationCalculationsListToObserve) : base(wrappedData) { LocationCalculationsListToObserve = locationCalculationsListToObserve; } - protected override ObservableList LocationCalculationsListToObserve { get; } + protected override ObservableList LocationCalculationsListToObserve { get; } } private class TestObservable : Observable {}