public void TestInitialize() { _view = new AnyForm(); _button = new Button(); _view.Controls.Add(_button); _metric = new ClickMetric(_button); }
public void GetView_ControlThatIsAForm_ReturnThatControl() { // Arrange var formControl = new AnyForm(); // Act var form = formControl.GetView(); // Assert form.Should().BeEquivalentTo(formControl); }
public void GetView_ControlWhoseParentIsAForm_ReturnParent() { // Arrange var formControl = new AnyForm(); var button = new Button(); formControl.Controls.Add(button); // Act var form = button.GetView(); // Assert form.Should().BeEquivalentTo(button.Parent); }
public void TestInitialize() { _view = new AnyForm(); _metric = new ViewEnteredMetric <AnyFormViewModel>(_view); }