Skip to content

Commit 19938a5

Browse files
committed
Added extra assert to check that configure.xml contains the correct target cpu.
1 parent 7e71b6e commit 19938a5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/Magick.NET.Tests/Configuration/ConfigurationFilesTests/TheConfigureProperty.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.NET.
22
// Licensed under the Apache License, Version 2.0.
33

4+
using System;
5+
using ImageMagick;
46
using ImageMagick.Configuration;
57
using Xunit;
68

@@ -17,5 +19,6 @@ public void ShouldBeInitialized()
1719
Assert.Equal("configure.xml", configurationFiles.Configure.FileName);
1820
Assert.NotNull(configurationFiles.Configure.Data);
1921
Assert.Contains("<configuremap>", configurationFiles.Configure.Data);
22+
Assert.Contains($@"<configure name=""TARGET_CPU"" value=""{Runtime.Architecture}""/>", configurationFiles.Configure.Data, StringComparison.OrdinalIgnoreCase);
2023
}
2124
}

0 commit comments

Comments
 (0)