-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
49 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright (c) Jeremy W. Kuhne. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
using FluentAssertions; | ||
using WInterop.Windows; | ||
using Xunit; | ||
|
||
namespace WindowsTests | ||
{ | ||
public class ThemesTests | ||
{ | ||
[Fact] | ||
public unsafe void GetCurrentThemeName() | ||
{ | ||
string themeName = Themes.GetCurrentThemeName(); | ||
|
||
// Name would be something like: C:\WINDOWS\resources\themes\Aero\Aero.msstyles | ||
|
||
themeName.Length.Should().BeGreaterThan(0); | ||
themeName.Should().EndWith(".msstyles"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters