mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +02:00
rename
This commit is contained in:
@@ -21,7 +21,7 @@ namespace UITests_FancyZones
|
|||||||
[ClassCleanup]
|
[ClassCleanup]
|
||||||
public static void ClassCleanup()
|
public static void ClassCleanup()
|
||||||
{
|
{
|
||||||
_session?.Dispose();
|
_session?.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|||||||
|
|
||||||
namespace Microsoft.FancyZones.UnitTests.Utils
|
namespace Microsoft.FancyZones.UnitTests.Utils
|
||||||
{
|
{
|
||||||
public class FancyZonesSession : IDisposable
|
public class FancyZonesSession
|
||||||
{
|
{
|
||||||
private const string FancyZonesPath = @"\..\..\..\PowerToys.FancyZones.exe";
|
private const string FancyZonesPath = @"\..\..\..\PowerToys.FancyZones.exe";
|
||||||
private const string FancyZonesProcessName = "PowerToys.FancyZones";
|
private const string FancyZonesProcessName = "PowerToys.FancyZones";
|
||||||
@@ -48,7 +48,7 @@ namespace Microsoft.FancyZones.UnitTests.Utils
|
|||||||
Assert.IsNotNull(FancyZonesProcess);
|
Assert.IsNotNull(FancyZonesProcess);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Dispose()
|
public void Close()
|
||||||
{
|
{
|
||||||
// Close the application
|
// Close the application
|
||||||
if (FancyZonesProcess != null)
|
if (FancyZonesProcess != null)
|
||||||
@@ -61,8 +61,6 @@ namespace Microsoft.FancyZones.UnitTests.Utils
|
|||||||
FancyZonesProcess.Close();
|
FancyZonesProcess.Close();
|
||||||
FancyZonesProcess.Dispose();
|
FancyZonesProcess.Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user