You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// check for property with backing field patter in the name
209
+
Assert.IsFalse(generatedAssemblyHeaderFile.Contains("k__BackingField ="),"Found a name with BackingField pattern, when it shouldn't");
210
+
211
+
// deep check for backing field name pattern (except for entry patter in comments)
212
+
Assert.IsFalse(Regex.IsMatch(generatedAssemblyHeaderFile,@"(?<!')<\w+>k__BackingField(?!')"),"Found a name with BackingField pattern, when it shouldn't");
Copy file name to clipboardExpand all lines: MetadataProcessor.Tests/Core/Utility/DumperTests.cs
+2-2
Original file line number
Diff line number
Diff line change
@@ -43,9 +43,9 @@ public void DumpAssemblyTest()
43
43
Assert.IsTrue(dumpFileContent.Contains("TypeRefProps [01000001]: Scope: 23000001 'System.Diagnostics.DebuggableAttribute'"),"Wrong entry for System.Diagnostics.DebuggableAttribute in type ref");
44
44
Assert.IsTrue(dumpFileContent.Contains(": Scope: 23000002 'TestNFClassLibrary.ClassOnAnotherAssembly'"),"Wrong entry for TestNFClassLibrary.ClassOnAnotherAssembly in type ref");
45
45
46
-
Assert.IsTrue(dumpFileContent.Contains(": Flags: 00001001 Extends: 0100000f Enclosed: 02000000 'TestNFApp.DummyCustomAttribute1'"),"Wrong entry for TestNFApp.DummyCustomAttribute1 in type ref");
46
+
Assert.IsTrue(dumpFileContent.Contains(": Flags: 00001001 Extends: 01000010 Enclosed: 02000000 'TestNFApp.DummyCustomAttribute1'"),"Wrong entry for TestNFApp.DummyCustomAttribute1 in type ref");
47
47
48
-
Assert.IsTrue(dumpFileContent.Contains(": Flags: 00001001 Extends: 0100000f Enclosed: 02000000 'TestNFApp.DummyCustomAttribute2'"),"Wrong entry for TestNFApp.DummyCustomAttribute2 in type ref");
48
+
Assert.IsTrue(dumpFileContent.Contains(": Flags: 00001001 Extends: 01000010 Enclosed: 02000000 'TestNFApp.DummyCustomAttribute2'"),"Wrong entry for TestNFApp.DummyCustomAttribute2 in type ref");
49
49
50
50
Assert.IsTrue(dumpFileContent.Contains(": Flags: 00001061 Extends: 01000000 Enclosed: 02000000 'TestNFApp.IOneClassOverAll'"),"Wrong entry for TestNFApp.IOneClassOverAll in type ref");
51
51
Assert.IsTrue(dumpFileContent.Contains(": Flags: 000007c6 Impl: 00000000 RVA: 00000000 'get_DummyProperty' [I4( )]"),"Wrong entry for get_DummyProperty in type ref");
0 commit comments