public void ShouldCreateViewModelFromView() { view = new ContentContainer(); view.ViewModel.ShouldBe(null); var model = view.CreateViewModel(); model.ShouldBeInstanceOfType<IContentContainer>(); view.ViewModel.ShouldBe(model); }
public void TestSetup() { viewModel = new ContentContainerViewModel(); view = viewModel.CreateView() as ContentContainer; }