示例#1
0
        public void Create_ShouldReturnATextAreaWindow()
        {
            CommonTestUtils.RunInStaThread(() =>
            {
                var textAreaWindow = _textAreaWindowFactory.Create();

                textAreaWindow.Should().BeOfType <EditResponseWindow>();
            });
        }
示例#2
0
        public void Create_ShouldReturnAlwaysANewInstance()
        {
            CommonTestUtils.RunInStaThread(() =>
            {
                var textAreaWindow1 = _textAreaWindowFactory.Create();
                var textAreaWindow2 = _textAreaWindowFactory.Create();

                textAreaWindow1.Should().NotBe(textAreaWindow2);
            });
        }