public void Create_ShouldReturnATextAreaWindow() { CommonTestUtils.RunInStaThread(() => { var textAreaWindow = _textAreaWindowFactory.Create(); textAreaWindow.Should().BeOfType <EditResponseWindow>(); }); }
public void Create_ShouldReturnAlwaysANewInstance() { CommonTestUtils.RunInStaThread(() => { var textAreaWindow1 = _textAreaWindowFactory.Create(); var textAreaWindow2 = _textAreaWindowFactory.Create(); textAreaWindow1.Should().NotBe(textAreaWindow2); }); }