From fe963d77ab7e56a6f2a59a59843323973f77c9ed Mon Sep 17 00:00:00 2001 From: Kimura Youichi Date: Thu, 7 Dec 2023 00:07:38 +0900 Subject: [PATCH] =?utf8?q?Form=E3=81=8A=E3=82=88=E3=81=B3Control=E6=B4=BE?= =?utf8?q?=E7=94=9F=E3=82=AF=E3=83=A9=E3=82=B9=E7=AD=89=E3=81=AE=E3=82=B3?= =?utf8?q?=E3=83=B3=E3=82=B9=E3=83=88=E3=83=A9=E3=82=AF=E3=82=BF=E3=81=AB?= =?utf8?q?=E5=AF=BE=E3=81=99=E3=82=8B=E3=83=86=E3=82=B9=E3=83=88=E3=82=B3?= =?utf8?q?=E3=83=BC=E3=83=89=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- OpenTween.Tests/ApiInfoDialogTest.cs | 39 ++++++++++++++++++++++ OpenTween.Tests/AppendSettingDialogTest.cs | 39 ++++++++++++++++++++++ OpenTween.Tests/ApplicationContainerTest.cs | 41 +++++++++++++++++++++++ OpenTween.Tests/AtIdSupplementTest.cs | 39 ++++++++++++++++++++++ OpenTween.Tests/AuthDialogTest.cs | 39 ++++++++++++++++++++++ OpenTween.Tests/AuthTypeSelectDialogTest.cs | 39 ++++++++++++++++++++++ OpenTween.Tests/BingTest.cs | 4 +++ OpenTween.Tests/DetailsListViewTest.cs | 40 ++++++++++++++++++++++ OpenTween.Tests/EncryptApiKeyDialogTest.cs | 39 ++++++++++++++++++++++ OpenTween.Tests/ErrorReportHandlerTest.cs | 39 ++++++++++++++++++++++ OpenTween.Tests/FilterDialogTest.cs | 39 ++++++++++++++++++++++ OpenTween.Tests/HookGlobalHotkeyTest.cs | 41 +++++++++++++++++++++++ OpenTween.Tests/IconAssetsManagerTest.cs | 39 ++++++++++++++++++++++ OpenTween.Tests/ImageCacheTest.cs | 39 ++++++++++++++++++++++ OpenTween.Tests/InputTabNameTest.cs | 39 ++++++++++++++++++++++ OpenTween.Tests/InternetSecurityManagerTest.cs | 41 +++++++++++++++++++++++ OpenTween.Tests/ListAvailableTest.cs | 39 ++++++++++++++++++++++ OpenTween.Tests/ListManageTest.cs | 42 +++++++++++++++++++++++ OpenTween.Tests/LoginDialogTest.cs | 39 ++++++++++++++++++++++ OpenTween.Tests/MemoryImageListTest.cs | 39 ++++++++++++++++++++++ OpenTween.Tests/MouseWheelMessageFilterTest.cs | 6 ++++ OpenTween.Tests/MyListsTest.cs | 39 ++++++++++++++++++++++ OpenTween.Tests/OpenURLTest.cs | 39 ++++++++++++++++++++++ OpenTween.Tests/SearchWordDialogTest.cs | 39 ++++++++++++++++++++++ OpenTween.Tests/SendErrorReportFormTest.cs | 39 ++++++++++++++++++++++ OpenTween.Tests/TimelineListViewDrawerTest.cs | 46 ++++++++++++++++++++++++++ OpenTween.Tests/TimelineListViewStateTest.cs | 43 ++++++++++++++++++++++++ OpenTween.Tests/ToolStripLabelHistoryTest.cs | 40 ++++++++++++++++++++++ OpenTween.Tests/TweenAboutBoxTest.cs | 39 ++++++++++++++++++++++ OpenTween.Tests/TweetDetailsViewTest.cs | 6 ++++ OpenTween.Tests/TweetThumbnailControlTest.cs | 39 ++++++++++++++++++++++ OpenTween.Tests/UpdateDialogTest.cs | 39 ++++++++++++++++++++++ OpenTween.Tests/WaitingDialogTest.cs | 39 ++++++++++++++++++++++ 33 files changed, 1208 insertions(+) create mode 100644 OpenTween.Tests/ApiInfoDialogTest.cs create mode 100644 OpenTween.Tests/AppendSettingDialogTest.cs create mode 100644 OpenTween.Tests/ApplicationContainerTest.cs create mode 100644 OpenTween.Tests/AtIdSupplementTest.cs create mode 100644 OpenTween.Tests/AuthDialogTest.cs create mode 100644 OpenTween.Tests/AuthTypeSelectDialogTest.cs create mode 100644 OpenTween.Tests/DetailsListViewTest.cs create mode 100644 OpenTween.Tests/EncryptApiKeyDialogTest.cs create mode 100644 OpenTween.Tests/ErrorReportHandlerTest.cs create mode 100644 OpenTween.Tests/FilterDialogTest.cs create mode 100644 OpenTween.Tests/HookGlobalHotkeyTest.cs create mode 100644 OpenTween.Tests/IconAssetsManagerTest.cs create mode 100644 OpenTween.Tests/ImageCacheTest.cs create mode 100644 OpenTween.Tests/InputTabNameTest.cs create mode 100644 OpenTween.Tests/InternetSecurityManagerTest.cs create mode 100644 OpenTween.Tests/ListAvailableTest.cs create mode 100644 OpenTween.Tests/ListManageTest.cs create mode 100644 OpenTween.Tests/LoginDialogTest.cs create mode 100644 OpenTween.Tests/MemoryImageListTest.cs create mode 100644 OpenTween.Tests/MyListsTest.cs create mode 100644 OpenTween.Tests/OpenURLTest.cs create mode 100644 OpenTween.Tests/SearchWordDialogTest.cs create mode 100644 OpenTween.Tests/SendErrorReportFormTest.cs create mode 100644 OpenTween.Tests/TimelineListViewDrawerTest.cs create mode 100644 OpenTween.Tests/TimelineListViewStateTest.cs create mode 100644 OpenTween.Tests/ToolStripLabelHistoryTest.cs create mode 100644 OpenTween.Tests/TweenAboutBoxTest.cs create mode 100644 OpenTween.Tests/TweetThumbnailControlTest.cs create mode 100644 OpenTween.Tests/UpdateDialogTest.cs create mode 100644 OpenTween.Tests/WaitingDialogTest.cs diff --git a/OpenTween.Tests/ApiInfoDialogTest.cs b/OpenTween.Tests/ApiInfoDialogTest.cs new file mode 100644 index 00000000..4abc38a8 --- /dev/null +++ b/OpenTween.Tests/ApiInfoDialogTest.cs @@ -0,0 +1,39 @@ +// OpenTween - Client of Twitter +// Copyright (c) 2023 kim_upsilon (@kim_upsilon) +// All rights reserved. +// +// This file is part of OpenTween. +// +// This program is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3 of the License, or (at your option) +// any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program. If not, see , or write to +// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +// Boston, MA 02110-1301, USA. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Xunit; + +namespace OpenTween +{ + public class ApiInfoDialogTest + { + [WinFormsFact] + public void Initialize_Test() + { + using var dialog = new ApiInfoDialog(); + } + } +} diff --git a/OpenTween.Tests/AppendSettingDialogTest.cs b/OpenTween.Tests/AppendSettingDialogTest.cs new file mode 100644 index 00000000..1e604a72 --- /dev/null +++ b/OpenTween.Tests/AppendSettingDialogTest.cs @@ -0,0 +1,39 @@ +// OpenTween - Client of Twitter +// Copyright (c) 2023 kim_upsilon (@kim_upsilon) +// All rights reserved. +// +// This file is part of OpenTween. +// +// This program is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3 of the License, or (at your option) +// any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program. If not, see , or write to +// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +// Boston, MA 02110-1301, USA. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Xunit; + +namespace OpenTween +{ + public class AppendSettingDialogTest + { + [WinFormsFact] + public void Initialize_Test() + { + using var dialog = new AppendSettingDialog(); + } + } +} diff --git a/OpenTween.Tests/ApplicationContainerTest.cs b/OpenTween.Tests/ApplicationContainerTest.cs new file mode 100644 index 00000000..d88fd5fb --- /dev/null +++ b/OpenTween.Tests/ApplicationContainerTest.cs @@ -0,0 +1,41 @@ +// OpenTween - Client of Twitter +// Copyright (c) 2023 kim_upsilon (@kim_upsilon) +// All rights reserved. +// +// This file is part of OpenTween. +// +// This program is free software; you can redistribute it and/or modify it +// under the terms of the GNU General public License as published by the Free +// Software Foundation; either version 3 of the License, or (at your option) +// any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General public License +// for more details. +// +// You should have received a copy of the GNU General public License along +// with this program. If not, see , or write to +// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +// Boston, MA 02110-1301, USA. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using OpenTween.Setting; +using Xunit; + +namespace OpenTween +{ + public class ApplicationContainerTest + { + [WinFormsFact] + public void Initialize_Test() + { + var settingManager = new SettingManager(""); + using var container = new ApplicationContainer(settingManager); + } + } +} diff --git a/OpenTween.Tests/AtIdSupplementTest.cs b/OpenTween.Tests/AtIdSupplementTest.cs new file mode 100644 index 00000000..0b76bf3d --- /dev/null +++ b/OpenTween.Tests/AtIdSupplementTest.cs @@ -0,0 +1,39 @@ +// OpenTween - Client of Twitter +// Copyright (c) 2023 kim_upsilon (@kim_upsilon) +// All rights reserved. +// +// This file is part of OpenTween. +// +// This program is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3 of the License, or (at your option) +// any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program. If not, see , or write to +// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +// Boston, MA 02110-1301, USA. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Xunit; + +namespace OpenTween +{ + public class AtIdSupplementTest + { + [WinFormsFact] + public void Initialize_Test() + { + using var dialog = new AtIdSupplement(itemList: new(), startCharacter: ""); + } + } +} diff --git a/OpenTween.Tests/AuthDialogTest.cs b/OpenTween.Tests/AuthDialogTest.cs new file mode 100644 index 00000000..58d5ce4f --- /dev/null +++ b/OpenTween.Tests/AuthDialogTest.cs @@ -0,0 +1,39 @@ +// OpenTween - Client of Twitter +// Copyright (c) 2023 kim_upsilon (@kim_upsilon) +// All rights reserved. +// +// This file is part of OpenTween. +// +// This program is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3 of the License, or (at your option) +// any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program. If not, see , or write to +// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +// Boston, MA 02110-1301, USA. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Xunit; + +namespace OpenTween +{ + public class AuthDialogTest + { + [WinFormsFact] + public void Initialize_Test() + { + using var dialog = new AuthDialog(); + } + } +} diff --git a/OpenTween.Tests/AuthTypeSelectDialogTest.cs b/OpenTween.Tests/AuthTypeSelectDialogTest.cs new file mode 100644 index 00000000..0e897711 --- /dev/null +++ b/OpenTween.Tests/AuthTypeSelectDialogTest.cs @@ -0,0 +1,39 @@ +// OpenTween - Client of Twitter +// Copyright (c) 2023 kim_upsilon (@kim_upsilon) +// All rights reserved. +// +// This file is part of OpenTween. +// +// This program is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3 of the License, or (at your option) +// any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program. If not, see , or write to +// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +// Boston, MA 02110-1301, USA. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Xunit; + +namespace OpenTween +{ + public class AuthTypeSelectDialogTest + { + [WinFormsFact] + public void Initialize_Test() + { + using var dialog = new AuthTypeSelectDialog(); + } + } +} diff --git a/OpenTween.Tests/BingTest.cs b/OpenTween.Tests/BingTest.cs index cb1aa925..b446d028 100644 --- a/OpenTween.Tests/BingTest.cs +++ b/OpenTween.Tests/BingTest.cs @@ -36,6 +36,10 @@ namespace OpenTween /// public class BingTest { + [Fact] + public void Initialize_Test() + => new Bing(); + [Theory] [InlineData("af", 0)] [InlineData("sq", 1)] diff --git a/OpenTween.Tests/DetailsListViewTest.cs b/OpenTween.Tests/DetailsListViewTest.cs new file mode 100644 index 00000000..d890a149 --- /dev/null +++ b/OpenTween.Tests/DetailsListViewTest.cs @@ -0,0 +1,40 @@ +// OpenTween - Client of Twitter +// Copyright (c) 2023 kim_upsilon (@kim_upsilon) +// All rights reserved. +// +// This file is part of OpenTween. +// +// This program is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3 of the License, or (at your option) +// any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program. If not, see , or write to +// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +// Boston, MA 02110-1301, USA. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using OpenTween.OpenTweenCustomControl; +using Xunit; + +namespace OpenTween +{ + public class DetailsListViewTest + { + [WinFormsFact] + public void Initialize_Test() + { + using var listView = new DetailsListView(); + } + } +} diff --git a/OpenTween.Tests/EncryptApiKeyDialogTest.cs b/OpenTween.Tests/EncryptApiKeyDialogTest.cs new file mode 100644 index 00000000..cf11ebcc --- /dev/null +++ b/OpenTween.Tests/EncryptApiKeyDialogTest.cs @@ -0,0 +1,39 @@ +// OpenTween - Client of Twitter +// Copyright (c) 2023 kim_upsilon (@kim_upsilon) +// All rights reserved. +// +// This file is part of OpenTween. +// +// This program is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3 of the License, or (at your option) +// any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program. If not, see , or write to +// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +// Boston, MA 02110-1301, USA. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Xunit; + +namespace OpenTween +{ + public class EncryptApiKeyDialogTest + { + [WinFormsFact] + public void Initialize_Test() + { + using var dialog = new EncryptApiKeyDialog(); + } + } +} diff --git a/OpenTween.Tests/ErrorReportHandlerTest.cs b/OpenTween.Tests/ErrorReportHandlerTest.cs new file mode 100644 index 00000000..ae78cd62 --- /dev/null +++ b/OpenTween.Tests/ErrorReportHandlerTest.cs @@ -0,0 +1,39 @@ +// OpenTween - Client of Twitter +// Copyright (c) 2023 kim_upsilon (@kim_upsilon) +// All rights reserved. +// +// This file is part of OpenTween. +// +// This program is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3 of the License, or (at your option) +// any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program. If not, see , or write to +// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +// Boston, MA 02110-1301, USA. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Xunit; + +namespace OpenTween +{ + public class ErrorReportHandlerTest + { + [Fact] + public void Initialize_Test() + { + using var handler = new ErrorReportHandler(); + } + } +} diff --git a/OpenTween.Tests/FilterDialogTest.cs b/OpenTween.Tests/FilterDialogTest.cs new file mode 100644 index 00000000..fee1961b --- /dev/null +++ b/OpenTween.Tests/FilterDialogTest.cs @@ -0,0 +1,39 @@ +// OpenTween - Client of Twitter +// Copyright (c) 2023 kim_upsilon (@kim_upsilon) +// All rights reserved. +// +// This file is part of OpenTween. +// +// This program is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3 of the License, or (at your option) +// any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program. If not, see , or write to +// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +// Boston, MA 02110-1301, USA. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Xunit; + +namespace OpenTween +{ + public class FilterDialogTest + { + [WinFormsFact] + public void Initialize_Test() + { + using var dialog = new FilterDialog(); + } + } +} diff --git a/OpenTween.Tests/HookGlobalHotkeyTest.cs b/OpenTween.Tests/HookGlobalHotkeyTest.cs new file mode 100644 index 00000000..246b7fff --- /dev/null +++ b/OpenTween.Tests/HookGlobalHotkeyTest.cs @@ -0,0 +1,41 @@ +// OpenTween - Client of Twitter +// Copyright (c) 2023 kim_upsilon (@kim_upsilon) +// All rights reserved. +// +// This file is part of OpenTween. +// +// This program is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3 of the License, or (at your option) +// any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program. If not, see , or write to +// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +// Boston, MA 02110-1301, USA. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using Xunit; + +namespace OpenTween +{ + public class HookGlobalHotkeyTest + { + [WinFormsFact] + public void Initialize_Test() + { + using var form = new Form(); + using var hook = new HookGlobalHotkey(form); + } + } +} diff --git a/OpenTween.Tests/IconAssetsManagerTest.cs b/OpenTween.Tests/IconAssetsManagerTest.cs new file mode 100644 index 00000000..ceb4c3a1 --- /dev/null +++ b/OpenTween.Tests/IconAssetsManagerTest.cs @@ -0,0 +1,39 @@ +// OpenTween - Client of Twitter +// Copyright (c) 2023 kim_upsilon (@kim_upsilon) +// All rights reserved. +// +// This file is part of OpenTween. +// +// This program is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3 of the License, or (at your option) +// any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program. If not, see , or write to +// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +// Boston, MA 02110-1301, USA. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Xunit; + +namespace OpenTween +{ + public class IconAssetsManagerTest + { + [Fact] + public void Initialize_Test() + { + using var assetsManager = new IconAssetsManager(); + } + } +} diff --git a/OpenTween.Tests/ImageCacheTest.cs b/OpenTween.Tests/ImageCacheTest.cs new file mode 100644 index 00000000..a707e14b --- /dev/null +++ b/OpenTween.Tests/ImageCacheTest.cs @@ -0,0 +1,39 @@ +// OpenTween - Client of Twitter +// Copyright (c) 2023 kim_upsilon (@kim_upsilon) +// All rights reserved. +// +// This file is part of OpenTween. +// +// This program is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3 of the License, or (at your option) +// any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program. If not, see , or write to +// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +// Boston, MA 02110-1301, USA. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Xunit; + +namespace OpenTween +{ + public class ImageCacheTest + { + [Fact] + public void Initialize_Test() + { + using var imageCache = new ImageCache(); + } + } +} diff --git a/OpenTween.Tests/InputTabNameTest.cs b/OpenTween.Tests/InputTabNameTest.cs new file mode 100644 index 00000000..559785a9 --- /dev/null +++ b/OpenTween.Tests/InputTabNameTest.cs @@ -0,0 +1,39 @@ +// OpenTween - Client of Twitter +// Copyright (c) 2023 kim_upsilon (@kim_upsilon) +// All rights reserved. +// +// This file is part of OpenTween. +// +// This program is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3 of the License, or (at your option) +// any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program. If not, see , or write to +// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +// Boston, MA 02110-1301, USA. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Xunit; + +namespace OpenTween +{ + public class InputTabNameTest + { + [WinFormsFact] + public void Initialize_Test() + { + using var dialog = new InputTabName(); + } + } +} diff --git a/OpenTween.Tests/InternetSecurityManagerTest.cs b/OpenTween.Tests/InternetSecurityManagerTest.cs new file mode 100644 index 00000000..d5cdb119 --- /dev/null +++ b/OpenTween.Tests/InternetSecurityManagerTest.cs @@ -0,0 +1,41 @@ +// OpenTween - Client of Twitter +// Copyright (c) 2023 kim_upsilon (@kim_upsilon) +// All rights reserved. +// +// This file is part of OpenTween. +// +// This program is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3 of the License, or (at your option) +// any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program. If not, see , or write to +// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +// Boston, MA 02110-1301, USA. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using Xunit; + +namespace OpenTween +{ + public class InternetSecurityManagerTest + { + [WinFormsFact] + public void Initialize_Test() + { + using var webBrowser = new WebBrowser(); + var securityManager = new InternetSecurityManager(webBrowser); + } + } +} diff --git a/OpenTween.Tests/ListAvailableTest.cs b/OpenTween.Tests/ListAvailableTest.cs new file mode 100644 index 00000000..b5110941 --- /dev/null +++ b/OpenTween.Tests/ListAvailableTest.cs @@ -0,0 +1,39 @@ +// OpenTween - Client of Twitter +// Copyright (c) 2023 kim_upsilon (@kim_upsilon) +// All rights reserved. +// +// This file is part of OpenTween. +// +// This program is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3 of the License, or (at your option) +// any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program. If not, see , or write to +// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +// Boston, MA 02110-1301, USA. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Xunit; + +namespace OpenTween +{ + public class ListAvailableTest + { + [WinFormsFact] + public void Initialize_Test() + { + using var dialog = new ListAvailable(); + } + } +} diff --git a/OpenTween.Tests/ListManageTest.cs b/OpenTween.Tests/ListManageTest.cs new file mode 100644 index 00000000..8f3c9aa0 --- /dev/null +++ b/OpenTween.Tests/ListManageTest.cs @@ -0,0 +1,42 @@ +// OpenTween - Client of Twitter +// Copyright (c) 2023 kim_upsilon (@kim_upsilon) +// All rights reserved. +// +// This file is part of OpenTween. +// +// This program is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3 of the License, or (at your option) +// any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program. If not, see , or write to +// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +// Boston, MA 02110-1301, USA. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using OpenTween.Api; +using Xunit; + +namespace OpenTween +{ + public class ListManageTest + { + [WinFormsFact] + public void Initialize_Test() + { + using var twitterApi = new TwitterApi(); + using var twitter = new Twitter(twitterApi); + using var dialog = new ListManage(twitter); + } + } +} diff --git a/OpenTween.Tests/LoginDialogTest.cs b/OpenTween.Tests/LoginDialogTest.cs new file mode 100644 index 00000000..8b66cace --- /dev/null +++ b/OpenTween.Tests/LoginDialogTest.cs @@ -0,0 +1,39 @@ +// OpenTween - Client of Twitter +// Copyright (c) 2023 kim_upsilon (@kim_upsilon) +// All rights reserved. +// +// This file is part of OpenTween. +// +// This program is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3 of the License, or (at your option) +// any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program. If not, see , or write to +// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +// Boston, MA 02110-1301, USA. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Xunit; + +namespace OpenTween +{ + public class LoginDialogTest + { + [WinFormsFact] + public void Initialize_Test() + { + using var dialog = new LoginDialog(); + } + } +} diff --git a/OpenTween.Tests/MemoryImageListTest.cs b/OpenTween.Tests/MemoryImageListTest.cs new file mode 100644 index 00000000..167088d6 --- /dev/null +++ b/OpenTween.Tests/MemoryImageListTest.cs @@ -0,0 +1,39 @@ +// OpenTween - Client of Twitter +// Copyright (c) 2023 kim_upsilon (@kim_upsilon) +// All rights reserved. +// +// This file is part of OpenTween. +// +// This program is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3 of the License, or (at your option) +// any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program. If not, see , or write to +// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +// Boston, MA 02110-1301, USA. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Xunit; + +namespace OpenTween +{ + public class MemoryImageListTest + { + [WinFormsFact] + public void Initialize_Test() + { + using var imageList = new MemoryImageList(); + } + } +} diff --git a/OpenTween.Tests/MouseWheelMessageFilterTest.cs b/OpenTween.Tests/MouseWheelMessageFilterTest.cs index 3d246ef5..20c2e84d 100644 --- a/OpenTween.Tests/MouseWheelMessageFilterTest.cs +++ b/OpenTween.Tests/MouseWheelMessageFilterTest.cs @@ -31,6 +31,12 @@ namespace OpenTween { public class MouseWheelMessageFilterTest { + [WinFormsFact] + public void Initialize_Test() + { + using var filter = new MouseWheelMessageFilter(); + } + [Fact] public void ParseMessage_MinusTest() { diff --git a/OpenTween.Tests/MyListsTest.cs b/OpenTween.Tests/MyListsTest.cs new file mode 100644 index 00000000..9d98e594 --- /dev/null +++ b/OpenTween.Tests/MyListsTest.cs @@ -0,0 +1,39 @@ +// OpenTween - Client of Twitter +// Copyright (c) 2023 kim_upsilon (@kim_upsilon) +// All rights reserved. +// +// This file is part of OpenTween. +// +// This program is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3 of the License, or (at your option) +// any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program. If not, see , or write to +// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +// Boston, MA 02110-1301, USA. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Xunit; + +namespace OpenTween +{ + public class MyListsTest + { + [WinFormsFact] + public void Initialize_Test() + { + using var dialog = new MyLists(); + } + } +} diff --git a/OpenTween.Tests/OpenURLTest.cs b/OpenTween.Tests/OpenURLTest.cs new file mode 100644 index 00000000..52308038 --- /dev/null +++ b/OpenTween.Tests/OpenURLTest.cs @@ -0,0 +1,39 @@ +// OpenTween - Client of Twitter +// Copyright (c) 2023 kim_upsilon (@kim_upsilon) +// All rights reserved. +// +// This file is part of OpenTween. +// +// This program is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3 of the License, or (at your option) +// any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program. If not, see , or write to +// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +// Boston, MA 02110-1301, USA. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Xunit; + +namespace OpenTween +{ + public class OpenURLTest + { + [WinFormsFact] + public void Initialize_Test() + { + using var dialog = new OpenURL(); + } + } +} diff --git a/OpenTween.Tests/SearchWordDialogTest.cs b/OpenTween.Tests/SearchWordDialogTest.cs new file mode 100644 index 00000000..3a03305b --- /dev/null +++ b/OpenTween.Tests/SearchWordDialogTest.cs @@ -0,0 +1,39 @@ +// OpenTween - Client of Twitter +// Copyright (c) 2023 kim_upsilon (@kim_upsilon) +// All rights reserved. +// +// This file is part of OpenTween. +// +// This program is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3 of the License, or (at your option) +// any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program. If not, see , or write to +// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +// Boston, MA 02110-1301, USA. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Xunit; + +namespace OpenTween +{ + public class SearchWordDialogTest + { + [WinFormsFact] + public void Initialize_Test() + { + using var dialog = new SearchWordDialog(); + } + } +} diff --git a/OpenTween.Tests/SendErrorReportFormTest.cs b/OpenTween.Tests/SendErrorReportFormTest.cs new file mode 100644 index 00000000..1911f638 --- /dev/null +++ b/OpenTween.Tests/SendErrorReportFormTest.cs @@ -0,0 +1,39 @@ +// OpenTween - Client of Twitter +// Copyright (c) 2023 kim_upsilon (@kim_upsilon) +// All rights reserved. +// +// This file is part of OpenTween. +// +// This program is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3 of the License, or (at your option) +// any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program. If not, see , or write to +// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +// Boston, MA 02110-1301, USA. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Xunit; + +namespace OpenTween +{ + public class SendErrorReportFormTest + { + [WinFormsFact] + public void Initialize_Test() + { + using var form = new SendErrorReportForm(); + } + } +} diff --git a/OpenTween.Tests/TimelineListViewDrawerTest.cs b/OpenTween.Tests/TimelineListViewDrawerTest.cs new file mode 100644 index 00000000..3ecbcafb --- /dev/null +++ b/OpenTween.Tests/TimelineListViewDrawerTest.cs @@ -0,0 +1,46 @@ +// OpenTween - Client of Twitter +// Copyright (c) 2023 kim_upsilon (@kim_upsilon) +// All rights reserved. +// +// This file is part of OpenTween. +// +// This program is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3 of the License, or (at your option) +// any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program. If not, see , or write to +// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +// Boston, MA 02110-1301, USA. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using OpenTween.Models; +using OpenTween.OpenTweenCustomControl; +using Xunit; + +namespace OpenTween +{ + public class TimelineListViewDrawerTest + { + [WinFormsFact] + public void Initialize_Test() + { + var tab = new PublicSearchTabModel("hoge"); + using var listView = new DetailsListView(); + var listViewCache = new TimelineListViewCache(listView, tab, new()); + using var imageCache = new ImageCache(); + using var theme = new ThemeManager(new()); + using var listViewDrawer = new TimelineListViewDrawer(listView, tab, listViewCache, imageCache, theme); + } + } +} diff --git a/OpenTween.Tests/TimelineListViewStateTest.cs b/OpenTween.Tests/TimelineListViewStateTest.cs new file mode 100644 index 00000000..eb4d8f4c --- /dev/null +++ b/OpenTween.Tests/TimelineListViewStateTest.cs @@ -0,0 +1,43 @@ +// OpenTween - Client of Twitter +// Copyright (c) 2023 kim_upsilon (@kim_upsilon) +// All rights reserved. +// +// This file is part of OpenTween. +// +// This program is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3 of the License, or (at your option) +// any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program. If not, see , or write to +// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +// Boston, MA 02110-1301, USA. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using OpenTween.Models; +using OpenTween.OpenTweenCustomControl; +using Xunit; + +namespace OpenTween +{ + public class TimelineListViewStateTest + { + [WinFormsFact] + public void Initialize_Test() + { + using var listView = new DetailsListView(); + var tab = new PublicSearchTabModel("hoge"); + var listViewState = new TimelineListViewState(listView, tab); + } + } +} diff --git a/OpenTween.Tests/ToolStripLabelHistoryTest.cs b/OpenTween.Tests/ToolStripLabelHistoryTest.cs new file mode 100644 index 00000000..50831fe8 --- /dev/null +++ b/OpenTween.Tests/ToolStripLabelHistoryTest.cs @@ -0,0 +1,40 @@ +// OpenTween - Client of Twitter +// Copyright (c) 2023 kim_upsilon (@kim_upsilon) +// All rights reserved. +// +// This file is part of OpenTween. +// +// This program is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3 of the License, or (at your option) +// any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program. If not, see , or write to +// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +// Boston, MA 02110-1301, USA. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using OpenTween.OpenTweenCustomControl; +using Xunit; + +namespace OpenTween +{ + public class ToolStripLabelHistoryTest + { + [WinFormsFact] + public void Initialize_Test() + { + using var toolStripLabelHistory = new ToolStripLabelHistory(); + } + } +} diff --git a/OpenTween.Tests/TweenAboutBoxTest.cs b/OpenTween.Tests/TweenAboutBoxTest.cs new file mode 100644 index 00000000..3deee155 --- /dev/null +++ b/OpenTween.Tests/TweenAboutBoxTest.cs @@ -0,0 +1,39 @@ +// OpenTween - Client of Twitter +// Copyright (c) 2023 kim_upsilon (@kim_upsilon) +// All rights reserved. +// +// This file is part of OpenTween. +// +// This program is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3 of the License, or (at your option) +// any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program. If not, see , or write to +// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +// Boston, MA 02110-1301, USA. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Xunit; + +namespace OpenTween +{ + public class TweenAboutBoxTest + { + [WinFormsFact] + public void Initialize_Test() + { + using var dialog = new TweenAboutBox(); + } + } +} diff --git a/OpenTween.Tests/TweetDetailsViewTest.cs b/OpenTween.Tests/TweetDetailsViewTest.cs index 6aeceea2..928c35c6 100644 --- a/OpenTween.Tests/TweetDetailsViewTest.cs +++ b/OpenTween.Tests/TweetDetailsViewTest.cs @@ -32,6 +32,12 @@ namespace OpenTween { public class TweetDetailsViewTest { + [WinFormsFact] + public void Initialize_Test() + { + using var detailsView = new TweetDetailsView(); + } + [Fact] public void FormatQuoteTweetHtml_PostClassTest() { diff --git a/OpenTween.Tests/TweetThumbnailControlTest.cs b/OpenTween.Tests/TweetThumbnailControlTest.cs new file mode 100644 index 00000000..e58fbf32 --- /dev/null +++ b/OpenTween.Tests/TweetThumbnailControlTest.cs @@ -0,0 +1,39 @@ +// OpenTween - Client of Twitter +// Copyright (c) 2023 kim_upsilon (@kim_upsilon) +// All rights reserved. +// +// This file is part of OpenTween. +// +// This program is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3 of the License, or (at your option) +// any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program. If not, see , or write to +// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +// Boston, MA 02110-1301, USA. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Xunit; + +namespace OpenTween +{ + public class TweetThumbnailControlTest + { + [WinFormsFact] + public void Initialize_Test() + { + using var control = new TweetThumbnailControl(); + } + } +} diff --git a/OpenTween.Tests/UpdateDialogTest.cs b/OpenTween.Tests/UpdateDialogTest.cs new file mode 100644 index 00000000..12e6436f --- /dev/null +++ b/OpenTween.Tests/UpdateDialogTest.cs @@ -0,0 +1,39 @@ +// OpenTween - Client of Twitter +// Copyright (c) 2023 kim_upsilon (@kim_upsilon) +// All rights reserved. +// +// This file is part of OpenTween. +// +// This program is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3 of the License, or (at your option) +// any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program. If not, see , or write to +// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +// Boston, MA 02110-1301, USA. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Xunit; + +namespace OpenTween +{ + public class UpdateDialogTest + { + [WinFormsFact] + public void Initialize_Test() + { + using var dialog = new UpdateDialog(); + } + } +} diff --git a/OpenTween.Tests/WaitingDialogTest.cs b/OpenTween.Tests/WaitingDialogTest.cs new file mode 100644 index 00000000..2f19ce28 --- /dev/null +++ b/OpenTween.Tests/WaitingDialogTest.cs @@ -0,0 +1,39 @@ +// OpenTween - Client of Twitter +// Copyright (c) 2023 kim_upsilon (@kim_upsilon) +// All rights reserved. +// +// This file is part of OpenTween. +// +// This program is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3 of the License, or (at your option) +// any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program. If not, see , or write to +// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +// Boston, MA 02110-1301, USA. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Xunit; + +namespace OpenTween +{ + public class WaitingDialogTest + { + [WinFormsFact] + public void Initialize_Test() + { + using var dialog = new WaitingDialog(); + } + } +} -- 2.11.0