Vanara/UnitTests/Windows.Shell.Common/ResourceTests.cs

15 lines
339 B
C#
Raw Normal View History

2020-09-03 12:52:19 -04:00
using NUnit.Framework;
namespace Vanara.Windows.Shell.Tests;
[TestFixture]
public class ResourceTests
2020-09-03 12:52:19 -04:00
{
[Test]
public void IndirectStringTest()
2020-09-03 12:52:19 -04:00
{
Assert.IsTrue(IndirectString.TryParse(@"@%SystemRoot%\system32\shell32.dll,-21810", out var ids));
Assert.That(ids.ResourceId, Is.EqualTo(-21810));
Assert.NotNull(ids.Value);
2020-09-03 12:52:19 -04:00
}
}