Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit e76f951

Browse files
author
Lakshmi Priya Sekar
committed
Fix System.Reflection.Emit.ILGeneration.Tests
Modified the Generator class to use locks to ensure thread safety with using Random. Enforced missing .NET coding guidelines, from the codeformatter tool.
1 parent 39252e0 commit e76f951

34 files changed

+454
-658
lines changed

src/System.Reflection.Emit.ILGeneration/tests/CustomAttributeBuilder/CustomAttributeBuilderCtor1.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public void PosTest2()
3939
public void PosTest3()
4040
{
4141
string str = "PosTest3";
42-
bool b = TestLibrary.Generator.GetByte(-55) > Byte.MaxValue / 2;
42+
bool b = TestLibrary.Generator.GetByte() > byte.MaxValue / 2;
4343

4444
Type[] ctorParams = new Type[] { typeof(string), typeof(bool) };
4545
object[] paramValues = new object[] { str, b };
@@ -144,4 +144,4 @@ public class TestConstructor
144144
static TestConstructor() { }
145145
internal TestConstructor(bool b) { }
146146
}
147-
}
147+
}

src/System.Reflection.Emit.ILGeneration/tests/CustomAttributeBuilder/CustomAttributeBuilderCtor2.cs

Lines changed: 90 additions & 90 deletions
Large diffs are not rendered by default.

src/System.Reflection.Emit.ILGeneration/tests/CustomAttributeBuilder/CustomAttributeBuilderCtor3.cs

Lines changed: 96 additions & 96 deletions
Large diffs are not rendered by default.

src/System.Reflection.Emit.ILGeneration/tests/CustomAttributeBuilder/CustomAttributeBuilderCtor4.cs

Lines changed: 102 additions & 102 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)