From 705b3f23f3fac4e8476f3e0bbe24ef8d672bb2aa Mon Sep 17 00:00:00 2001 From: Minko Staev Date: Thu, 18 Apr 2024 00:24:39 +0300 Subject: [PATCH] test: hide tests --- .../Services/TestRunProcess.cs | 46 ++++++++-------- ShortcutsGrid.Tests/Ui/TestWindows.cs | 52 +++++++++---------- 2 files changed, 49 insertions(+), 49 deletions(-) diff --git a/ShortcutsGrid.Tests/Services/TestRunProcess.cs b/ShortcutsGrid.Tests/Services/TestRunProcess.cs index cb43b89..454fcb3 100644 --- a/ShortcutsGrid.Tests/Services/TestRunProcess.cs +++ b/ShortcutsGrid.Tests/Services/TestRunProcess.cs @@ -7,28 +7,28 @@ internal class TestRunProcess { - //[Test] - //public void TestRunEmpty() - //{ - // string result = RunProcess.Run(""); - - // Assert.IsEmpty(result); - //} - - //[Test] - //public void TestRunCommand() - //{ - // string result = RunProcess.Run("explorer"); - - // Assert.IsEmpty(result); - //} - - //[Test] - //public void TestRunWrongCommand() - //{ - // string result = RunProcess.Run("explorera"); - - // Assert.IsNotEmpty(result); - //} + [Test] + public void TestRunEmpty() + { + string result = RunProcess.Run(""); + + Assert.IsEmpty(result); + } + + [Test] + public void TestRunCommand() + { + string result = RunProcess.Run("explorer"); + + Assert.IsEmpty(result); + } + + [Test] + public void TestRunWrongCommand() + { + string result = RunProcess.Run("explorera"); + + Assert.IsNotEmpty(result); + } } \ No newline at end of file diff --git a/ShortcutsGrid.Tests/Ui/TestWindows.cs b/ShortcutsGrid.Tests/Ui/TestWindows.cs index b4ba8b2..3d5bebc 100644 --- a/ShortcutsGrid.Tests/Ui/TestWindows.cs +++ b/ShortcutsGrid.Tests/Ui/TestWindows.cs @@ -10,32 +10,32 @@ internal class TestWindows { - [Test] - [Apartment(ApartmentState.STA)] - public void TestMainWindow() - { - string testhost = "testhost.csv"; - string csvContent = GetInputFile(testhost); - File.WriteAllText(testhost, csvContent); - - var mainWindow = new MainWindow(); - mainWindow.Show(); - - if (File.Exists(testhost)) - File.Delete(testhost); - - Assert.IsInstanceOf(mainWindow); - } - - [Test] - [Apartment(ApartmentState.STA)] - public void TestAbout() - { - var about = new About(); - ///about.Show(); - - Assert.IsInstanceOf(about); - } + //[Test] + //[Apartment(ApartmentState.STA)] + //public void TestMainWindow() + //{ + // string testhost = "testhost.csv"; + // string csvContent = GetInputFile(testhost); + // File.WriteAllText(testhost, csvContent); + + // var mainWindow = new MainWindow(); + // mainWindow.Show(); + + // if (File.Exists(testhost)) + // File.Delete(testhost); + + // Assert.IsInstanceOf(mainWindow); + //} + + //[Test] + //[Apartment(ApartmentState.STA)] + //public void TestAbout() + //{ + // var about = new About(); + // ///about.Show(); + + // Assert.IsInstanceOf(about); + //} public string GetInputFile(string fileName) {