Skip to content

Commit 17793f0

Browse files
committed
Skip partial unit test on debug build
***NO_CI***
1 parent 0e2af19 commit 17793f0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

MetadataProcessor.Tests/Core/Utility/DumperTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ public void DumpAssemblyTest()
6161

6262
Assert.IsTrue(dumpFileContent.Contains("'SubClass'"), "Wrong entry for SubClass in type ref");
6363

64+
// skip this assert to locals listing as the debug build will differ as it not optimized
65+
#if !DEBUG
6466
Assert.IsTrue(Regex.IsMatch(dumpFileContent, @"Locals \( \[0\] I4, \r\n\s+\[1\] CLASS System\.Exception \[\d{8}\], \r\n\s+\[2\] CLASS System\.ApplicationException \[\d{8}\] \)"), "Wrong listing of locals in UglyAdd method");
67+
#endif
6568
Assert.IsTrue(dumpFileContent.Contains("callvirt System.Void TestNFApp.TestingDelegates/SimpleDelegate::Invoke(System.String)"), "Wrong reference to callvirt in DelegateTests body");
6669
Assert.IsTrue(dumpFileContent.Contains("ldstr \" DataRowAttribute.Arg[{0}] has: {1}\""), "Wrong reference to ldstr in ReflectionTests body");
6770

0 commit comments

Comments
 (0)