In earlier times with Windows Forms I did something like this: [Test] void Test() { ? var presenter = new Presenter(); ? var view = new View(presenter); ? view.Show(); ? presenter.model.x = 3; ? Assert.That(view.xcontrol.Value == 3); } The details may be wrong but that was the concept.? Alan Baljeu From: Charlie Poole To: testdrivendevelopment@... Sent: Monday, November 4, 2013 8:30:37 PM Subject: Re: [TDD] Test Driving WPF
?
From my (very little) experience with WPF, DataBinding is where the testing gets hard. Of course, you don't want to test that databinding works, since it's part of WPF, but there's always the risk that you not set it up correctly. That's a piece I don't really know how to test except by looking at the GUI. Charlie On Mon, Nov 4, 2013 at 2:33 PM, Alan Baljeu <alanbaljeu@...> wrote:
|