public void Test_SetFieldsEmpty() { FigurPropertyPresenter figurPropertyPresenter = new FigurPropertyPresenter(m_MockFigurProperty); figurPropertyPresenter.SetFieldsEmpty(); Assert.AreEqual(string.Empty, m_MockFigurProperty.Name.Text); Assert.AreEqual(string.Empty, m_MockFigurProperty.Description.Text); Assert.AreEqual(string.Empty, m_MockFigurProperty.Price.Text); ISerieService serieService = ObjectFactory.GetInstance<ISerieService>(); var serie = serieService.GetById(1); Assert.AreEqual(serie.Id.ToString(), m_MockFigurProperty.ChooseSerie.SelectedItem.Value); Assert.AreEqual(serie.Name, m_MockFigurProperty.ChooseSerie.SelectedItem.Text); }