public void ShowDialodShouldSetFileNameInView() { var stubView = new StubView(); var productsPresenter = new ProductsPresenter(stubView, null, new StubOpenDialog()); productsPresenter.OpenFileDialog(); Assert.AreEqual(stubView.FileName, "MyFileName.txt"); }