diff options
author | Jan Kotas <jkotas@microsoft.com> | 2018-10-23 19:59:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-23 19:59:39 -0700 |
commit | 377e744a976d09d1d392f43e7fa8a999401fe74f (patch) | |
tree | a71e060827dca1260d13416148093819a66a1c9f | |
parent | f69b623c9f41c5d358d52f40e5cdad808b005bed (diff) | |
download | coreclr-377e744a976d09d1d392f43e7fa8a999401fe74f.tar.gz coreclr-377e744a976d09d1d392f43e7fa8a999401fe74f.tar.bz2 coreclr-377e744a976d09d1d392f43e7fa8a999401fe74f.zip |
Delete duplicate CoreFX tests (#20532)
Contributes to https://github.com/dotnet/coreclr/issues/12782
483 files changed, 1 insertions, 56050 deletions
diff --git a/src/System.Private.CoreLib/shared/System/AttributeUsageAttribute.cs b/src/System.Private.CoreLib/shared/System/AttributeUsageAttribute.cs index 219dc43e15..8a4a0a661b 100644 --- a/src/System.Private.CoreLib/shared/System/AttributeUsageAttribute.cs +++ b/src/System.Private.CoreLib/shared/System/AttributeUsageAttribute.cs @@ -23,7 +23,7 @@ namespace System private bool _allowMultiple = false; // Defaults to false private bool _inherited = true; // Defaults to true - internal static AttributeUsageAttribute Default = new AttributeUsageAttribute(AttributeTargets.All); + internal static readonly AttributeUsageAttribute Default = new AttributeUsageAttribute(AttributeTargets.All); //Constructors public AttributeUsageAttribute(AttributeTargets validOn) diff --git a/tests/arm/Tests.lst b/tests/arm/Tests.lst index 238dfdfe2d..2330ae4513 100644 --- a/tests/arm/Tests.lst +++ b/tests/arm/Tests.lst @@ -612,14 +612,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[GCHandleTypeWeak.cmd_86] -RelativePath=CoreMangLib\cti\system\runtime\interopservices\gchandletype\GCHandleTypeWeak\GCHandleTypeWeak.cmd -WorkingDir=CoreMangLib\cti\system\runtime\interopservices\gchandletype\GCHandleTypeWeak -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [UInt32IConvertibleToInt32.cmd_87] RelativePath=CoreMangLib\cti\system\uint32\UInt32IConvertibleToInt32\UInt32IConvertibleToInt32.cmd WorkingDir=CoreMangLib\cti\system\uint32\UInt32IConvertibleToInt32 @@ -652,14 +644,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArraySort14.cmd_91] -RelativePath=CoreMangLib\cti\system\array\ArraySort14\ArraySort14.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort14 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [isinstvaluetype_do.cmd_92] RelativePath=JIT\Directed\nullabletypes\isinstvaluetype_do\isinstvaluetype_do.cmd WorkingDir=JIT\Directed\nullabletypes\isinstvaluetype_do @@ -956,14 +940,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathFCos.cmd_132] -RelativePath=CoreMangLib\cti\system\mathf\MathFCos\MathFCos.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFCos -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [foo2_opt.cmd_133] RelativePath=JIT\jit64\opt\regress\vswhidbey\481244\foo2_opt\foo2_opt.cmd WorkingDir=JIT\jit64\opt\regress\vswhidbey\481244\foo2_opt @@ -1260,14 +1236,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayBinarySearch5.cmd_175] -RelativePath=CoreMangLib\cti\system\array\ArrayBinarySearch5\ArrayBinarySearch5.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayBinarySearch5 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [Rethrow1.cmd_176] RelativePath=JIT\Directed\IL\rethrow\Rethrow1\Rethrow1.cmd WorkingDir=JIT\Directed\IL\rethrow\Rethrow1 @@ -1372,14 +1340,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArraySort9.cmd_191] -RelativePath=CoreMangLib\cti\system\array\ArraySort9\ArraySort9.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort9 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [Generated869.cmd_192] RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest869\Generated869\Generated869.cmd WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest869\Generated869 @@ -1980,14 +1940,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[AttributeCtor.cmd_274] -RelativePath=CoreMangLib\cti\system\resources\satellitecontractversionattribute\AttributeCtor\AttributeCtor.cmd -WorkingDir=CoreMangLib\cti\system\resources\satellitecontractversionattribute\AttributeCtor -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [Generic_Test_CSharp_Peer_4.cmd_275] RelativePath=JIT\Directed\CheckedCtor\Generic_Test_CSharp_Peer_4\Generic_Test_CSharp_Peer_4.cmd WorkingDir=JIT\Directed\CheckedCtor\Generic_Test_CSharp_Peer_4 @@ -2172,14 +2124,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[AttributeTargetsEvent.cmd_302] -RelativePath=CoreMangLib\cti\system\attributetargets\AttributeTargetsEvent\AttributeTargetsEvent.cmd -WorkingDir=CoreMangLib\cti\system\attributetargets\AttributeTargetsEvent -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [mcc_i85.cmd_303] RelativePath=JIT\jit64\mcc\interop\mcc_i85\mcc_i85.cmd WorkingDir=JIT\jit64\mcc\interop\mcc_i85 @@ -2316,14 +2260,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathMax10.cmd_321] -RelativePath=CoreMangLib\cti\system\math\MathMax10\MathMax10.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMax10 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [Generated425.cmd_322] RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest425\Generated425\Generated425.cmd WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest425\Generated425 @@ -4076,14 +4012,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathFRound1.cmd_574] -RelativePath=CoreMangLib\cti\system\mathf\MathFRound1\MathFRound1.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFRound1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [volatilefromfinally.cmd_575] RelativePath=JIT\Methodical\eh\interactions\volatilefromfinally\volatilefromfinally.cmd WorkingDir=JIT\Methodical\eh\interactions\volatilefromfinally @@ -4884,14 +4812,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[AttributeTargetsProperty.cmd_688] -RelativePath=CoreMangLib\cti\system\attributetargets\AttributeTargetsProperty\AttributeTargetsProperty.cmd -WorkingDir=CoreMangLib\cti\system\attributetargets\AttributeTargetsProperty -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [castclass-generics021.cmd_689] RelativePath=JIT\jit64\valuetypes\nullable\castclass\generics\castclass-generics021\castclass-generics021.cmd WorkingDir=JIT\jit64\valuetypes\nullable\castclass\generics\castclass-generics021 @@ -5396,14 +5316,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathFFloor.cmd_759] -RelativePath=CoreMangLib\cti\system\mathf\MathFFloor\MathFFloor.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFFloor -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [Generated748.cmd_760] RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest748\Generated748\Generated748.cmd WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest748\Generated748 @@ -5484,14 +5396,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[TypeLoadExceptionCtor2.cmd_770] -RelativePath=CoreMangLib\cti\system\typeloadexception\TypeLoadExceptionCtor2\TypeLoadExceptionCtor2.cmd -WorkingDir=CoreMangLib\cti\system\typeloadexception\TypeLoadExceptionCtor2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [Int64IConvertibleToByte.cmd_771] RelativePath=CoreMangLib\cti\system\int64\Int64IConvertibleToByte\Int64IConvertibleToByte.cmd WorkingDir=CoreMangLib\cti\system\int64\Int64IConvertibleToByte @@ -6492,14 +6396,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[RuntimeFieldHandleGetHashCode.cmd_911] -RelativePath=CoreMangLib\cti\system\runtimefieldhandle\RuntimeFieldHandleGetHashCode\RuntimeFieldHandleGetHashCode.cmd -WorkingDir=CoreMangLib\cti\system\runtimefieldhandle\RuntimeFieldHandleGetHashCode -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [int64_ro.cmd_912] RelativePath=JIT\Directed\shift\int64_ro\int64_ro.cmd WorkingDir=JIT\Directed\shift\int64_ro @@ -6692,14 +6588,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[EnumToString.cmd_938] -RelativePath=CoreMangLib\cti\system\enum\EnumToString\EnumToString.cmd -WorkingDir=CoreMangLib\cti\system\enum\EnumToString -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [TestAPIs.cmd_939] RelativePath=baseservices\compilerservices\dynamicobjectproperties\TestAPIs\TestAPIs.cmd WorkingDir=baseservices\compilerservices\dynamicobjectproperties\TestAPIs @@ -6804,14 +6692,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArraySort11.cmd_954] -RelativePath=CoreMangLib\cti\system\array\ArraySort11\ArraySort11.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort11 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [getgeneration.cmd_956] RelativePath=GC\LargeMemory\API\gc\getgeneration\getgeneration.cmd WorkingDir=GC\LargeMemory\API\gc\getgeneration @@ -7292,14 +7172,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayGetValue1.cmd_1021] -RelativePath=CoreMangLib\cti\system\array\ArrayGetValue1\ArrayGetValue1.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayGetValue1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [semaphoreopenneg5.cmd_1022] RelativePath=baseservices\threading\semaphore\ctoropen\semaphoreopenneg5\semaphoreopenneg5.cmd WorkingDir=baseservices\threading\semaphore\ctoropen\semaphoreopenneg5 @@ -7996,14 +7868,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[MathFTan.cmd_1118] -RelativePath=CoreMangLib\cti\system\mathf\MathFTan\MathFTan.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFTan -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [box-unbox-null043.cmd_1119] RelativePath=JIT\jit64\valuetypes\nullable\box-unbox\null\box-unbox-null043\box-unbox-null043.cmd WorkingDir=JIT\jit64\valuetypes\nullable\box-unbox\null\box-unbox-null043 @@ -8308,14 +8172,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayIListInsert.cmd_1162] -RelativePath=CoreMangLib\cti\system\array\ArrayIListInsert\ArrayIListInsert.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIListInsert -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [200w1d-02_cs_d.cmd_1163] RelativePath=JIT\Methodical\fp\exgen\200w1d-02_cs_d\200w1d-02_cs_d.cmd WorkingDir=JIT\Methodical\fp\exgen\200w1d-02_cs_d @@ -9052,14 +8908,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[ObsoleteAttributeIsError.cmd_1266] -RelativePath=CoreMangLib\cti\system\obsoleteattribute\ObsoleteAttributeIsError\ObsoleteAttributeIsError.cmd -WorkingDir=CoreMangLib\cti\system\obsoleteattribute\ObsoleteAttributeIsError -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [b85316.cmd_1267] RelativePath=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b85316\b85316\b85316.cmd WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b85316\b85316 @@ -9476,14 +9324,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayLastIndexOf2b.cmd_1325] -RelativePath=CoreMangLib\cti\system\array\ArrayLastIndexOf2b\ArrayLastIndexOf2b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayLastIndexOf2b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [mismatch32.cmd_1326] RelativePath=JIT\opt\Inline\regression\mismatch32\mismatch32\mismatch32.cmd WorkingDir=JIT\opt\Inline\regression\mismatch32\mismatch32 @@ -9884,14 +9724,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathFMax.cmd_1379] -RelativePath=CoreMangLib\cti\system\mathf\MathFMax\MathFMax.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFMax -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [L-1-9-3.cmd_1380] RelativePath=Loader\classloader\v1\Beta1\Layout\Matrix\cs\L-1-9-3\L-1-9-3.cmd WorkingDir=Loader\classloader\v1\Beta1\Layout\Matrix\cs\L-1-9-3 @@ -9900,14 +9732,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathMax4.cmd_1381] -RelativePath=CoreMangLib\cti\system\math\MathMax4\MathMax4.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMax4 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [int16_r.cmd_1382] RelativePath=JIT\Directed\shift\int16_r\int16_r.cmd WorkingDir=JIT\Directed\shift\int16_r @@ -10132,14 +9956,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[MathFAtan2.cmd_1413] -RelativePath=CoreMangLib\cti\system\mathf\MathFAtan2\MathFAtan2.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFAtan2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [BBCnt1.cmd_1414] RelativePath=JIT\opt\DumpDisasm\JitMinOpts\BBCnt1\BBCnt1.cmd WorkingDir=JIT\opt\DumpDisasm\JitMinOpts\BBCnt1 @@ -10180,14 +9996,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArraySort8.cmd_1419] -RelativePath=CoreMangLib\cti\system\array\ArraySort8\ArraySort8.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort8 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [_il_relrefanyval.cmd_1420] RelativePath=JIT\Methodical\xxobj\operand\_il_relrefanyval\_il_relrefanyval.cmd WorkingDir=JIT\Methodical\xxobj\operand\_il_relrefanyval @@ -10204,14 +10012,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayGetValue.cmd_1422] -RelativePath=CoreMangLib\cti\system\array\ArrayGetValue\ArrayGetValue.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayGetValue -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [param08.cmd_1423] RelativePath=Loader\classloader\generics\Instantiation\Negative\param08\param08.cmd WorkingDir=Loader\classloader\generics\Instantiation\Negative\param08 @@ -10516,14 +10316,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArraySort10.cmd_1466] -RelativePath=CoreMangLib\cti\system\array\ArraySort10\ArraySort10.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort10 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [_il_relconv_i8_u.cmd_1467] RelativePath=JIT\Methodical\ELEMENT_TYPE_IU\_il_relconv_i8_u\_il_relconv_i8_u.cmd WorkingDir=JIT\Methodical\ELEMENT_TYPE_IU\_il_relconv_i8_u @@ -10748,14 +10540,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[DebuggingModesDefault.cmd_1497] -RelativePath=CoreMangLib\cti\system\diagnostics\debuggingmodes\DebuggingModesDefault\DebuggingModesDefault.cmd -WorkingDir=CoreMangLib\cti\system\diagnostics\debuggingmodes\DebuggingModesDefault -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [GCSimulator_422.cmd_1498] RelativePath=GC\Scenarios\GCSimulator\GCSimulator_422\GCSimulator_422.cmd WorkingDir=GC\Scenarios\GCSimulator\GCSimulator_422 @@ -11356,14 +11140,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayCreateInstance2.cmd_1593] -RelativePath=CoreMangLib\cti\system\array\ArrayCreateInstance2\ArrayCreateInstance2.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayCreateInstance2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [_speed_relisinst_newobj.cmd_1594] RelativePath=JIT\Methodical\casts\coverage\_speed_relisinst_newobj\_speed_relisinst_newobj.cmd WorkingDir=JIT\Methodical\casts\coverage\_speed_relisinst_newobj @@ -11820,14 +11596,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayIndexOf3.cmd_1661] -RelativePath=CoreMangLib\cti\system\array\ArrayIndexOf3\ArrayIndexOf3.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIndexOf3 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [b14475.cmd_1662] RelativePath=JIT\Regression\CLR-x86-JIT\V1-M09\b14475\b14475\b14475.cmd WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M09\b14475\b14475 @@ -11836,14 +11604,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathFRound2.cmd_1663] -RelativePath=CoreMangLib\cti\system\mathf\MathFRound2\MathFRound2.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFRound2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [box-unbox-generics007.cmd_1664] RelativePath=JIT\jit64\valuetypes\nullable\box-unbox\generics\box-unbox-generics007\box-unbox-generics007.cmd WorkingDir=JIT\jit64\valuetypes\nullable\box-unbox\generics\box-unbox-generics007 @@ -12404,14 +12164,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArraySort1.cmd_1737] -RelativePath=CoreMangLib\cti\system\array\ArraySort1\ArraySort1.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [delete_next_card_table.cmd_1738] RelativePath=GC\Coverage\delete_next_card_table\delete_next_card_table.cmd WorkingDir=GC\Coverage\delete_next_card_table @@ -12868,14 +12620,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathFIEEERemainder.cmd_1805] -RelativePath=CoreMangLib\cti\system\mathf\MathFIEEERemainder\MathFIEEERemainder.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFIEEERemainder -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [Generated922.cmd_1807] RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest922\Generated922\Generated922.cmd WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest922\Generated922 @@ -13084,14 +12828,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathMin9.cmd_1836] -RelativePath=CoreMangLib\cti\system\math\MathMin9\MathMin9.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMin9 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [SizeConstTest.cmd_1837] RelativePath=Interop\SizeConst\SizeConstTest\SizeConstTest.cmd WorkingDir=Interop\SizeConst\SizeConstTest @@ -13156,14 +12892,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayCreateInstance1.cmd_1845] -RelativePath=CoreMangLib\cti\system\array\ArrayCreateInstance1\ArrayCreateInstance1.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayCreateInstance1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [TryEnter01.cmd_1846] RelativePath=baseservices\threading\generics\Monitor\TryEnter01\TryEnter01.cmd WorkingDir=baseservices\threading\generics\Monitor\TryEnter01 @@ -13492,14 +13220,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArraySort1b.cmd_1893] -RelativePath=CoreMangLib\cti\system\array\ArraySort1b\ArraySort1b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort1b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [Generated719.cmd_1894] RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest719\Generated719\Generated719.cmd WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest719\Generated719 @@ -13796,14 +13516,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathCos.cmd_1937] -RelativePath=CoreMangLib\cti\system\math\MathCos\MathCos.cmd -WorkingDir=CoreMangLib\cti\system\math\MathCos -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [b30838.cmd_1938] RelativePath=JIT\Regression\CLR-x86-JIT\V1-M09.5-PDC\b30838\b30838\b30838.cmd WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M09.5-PDC\b30838\b30838 @@ -13812,22 +13524,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_FAIL;9462;EXCLUDED;VARARG;Pri1 HostStyle=0 -[EnumToObjectb.cmd_1939] -RelativePath=CoreMangLib\cti\system\enum\EnumToObjectb\EnumToObjectb.cmd -WorkingDir=CoreMangLib\cti\system\enum\EnumToObjectb -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - -[AttributeTargetsParameter.cmd_1940] -RelativePath=CoreMangLib\cti\system\attributetargets\AttributeTargetsParameter\AttributeTargetsParameter.cmd -WorkingDir=CoreMangLib\cti\system\attributetargets\AttributeTargetsParameter -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [Generated1430.cmd_1941] RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1430\Generated1430\Generated1430.cmd WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1430\Generated1430 @@ -14068,14 +13764,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathFE.cmd_1971] -RelativePath=CoreMangLib\cti\system\mathf\MathFE\MathFE.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFE -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [t1.cmd_1972] RelativePath=Loader\classloader\SequentialLayout\Regress\217070\t1\t1.cmd WorkingDir=Loader\classloader\SequentialLayout\Regress\217070\t1 @@ -14100,14 +13788,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[ArrayGetValue2.cmd_1976] -RelativePath=CoreMangLib\cti\system\array\ArrayGetValue2\ArrayGetValue2.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayGetValue2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [pow3_cs_r.cmd_1977] RelativePath=JIT\Directed\intrinsic\pow\pow3_cs_r\pow3_cs_r.cmd WorkingDir=JIT\Directed\intrinsic\pow\pow3_cs_r @@ -14212,14 +13892,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathFTanh.cmd_1993] -RelativePath=CoreMangLib\cti\system\mathf\MathFTanh\MathFTanh.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFTanh -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [fieldexpr1.cmd_1994] RelativePath=JIT\jit64\opt\cse\fieldexpr1\fieldexpr1.cmd WorkingDir=JIT\jit64\opt\cse\fieldexpr1 @@ -15492,14 +15164,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[CallingConventionWinapi.cmd_2181] -RelativePath=CoreMangLib\cti\system\runtime\interopservices\callingconvention\CallingConventionWinapi\CallingConventionWinapi.cmd -WorkingDir=CoreMangLib\cti\system\runtime\interopservices\callingconvention\CallingConventionWinapi -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [GCSimulator_109.cmd_2182] RelativePath=GC\Scenarios\GCSimulator\GCSimulator_109\GCSimulator_109.cmd WorkingDir=GC\Scenarios\GCSimulator\GCSimulator_109 @@ -15884,14 +15548,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayGetValue2b.cmd_2239] -RelativePath=CoreMangLib\cti\system\array\ArrayGetValue2b\ArrayGetValue2b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayGetValue2b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [SealedTypes.cmd_2240] RelativePath=Loader\classloader\regressions\dev10_568786\4_Misc\SealedTypes\SealedTypes.cmd WorkingDir=Loader\classloader\regressions\dev10_568786\4_Misc\SealedTypes @@ -16868,14 +16524,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathAtan2.cmd_2376] -RelativePath=CoreMangLib\cti\system\math\MathAtan2\MathAtan2.cmd -WorkingDir=CoreMangLib\cti\system\math\MathAtan2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [_il_dbghuge_filter.cmd_2377] RelativePath=JIT\Methodical\Boxing\boxunbox\_il_dbghuge_filter\_il_dbghuge_filter.cmd WorkingDir=JIT\Methodical\Boxing\boxunbox\_il_dbghuge_filter @@ -16988,14 +16636,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathMax11.cmd_2393] -RelativePath=CoreMangLib\cti\system\math\MathMax11\MathMax11.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMax11 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [gcvariant2.cmd_2394] RelativePath=GC\Scenarios\Boxing\gcvariant2\gcvariant2.cmd WorkingDir=GC\Scenarios\Boxing\gcvariant2 @@ -17356,14 +16996,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[AttributeTargetsDelegate.cmd_2442] -RelativePath=CoreMangLib\cti\system\attributetargets\AttributeTargetsDelegate\AttributeTargetsDelegate.cmd -WorkingDir=CoreMangLib\cti\system\attributetargets\AttributeTargetsDelegate -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [ReRegisterForFinalize_null.cmd_2443] RelativePath=GC\API\GC\ReRegisterForFinalize_null\ReRegisterForFinalize_null.cmd WorkingDir=GC\API\GC\ReRegisterForFinalize_null @@ -17580,14 +17212,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[ArraySort4.cmd_2472] -RelativePath=CoreMangLib\cti\system\array\ArraySort4\ArraySort4.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort4 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [xprecise4_cs_d.cmd_2473] RelativePath=JIT\Methodical\cctor\xassem\xprecise4_cs_d\xprecise4_cs_d.cmd WorkingDir=JIT\Methodical\cctor\xassem\xprecise4_cs_d @@ -17924,14 +17548,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathMin5.cmd_2522] -RelativePath=CoreMangLib\cti\system\math\MathMin5\MathMin5.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMin5 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [ldfldstatic_il_r.cmd_2523] RelativePath=JIT\Directed\coverage\oldtests\ldfldstatic_il_r\ldfldstatic_il_r.cmd WorkingDir=JIT\Directed\coverage\oldtests\ldfldstatic_il_r @@ -17980,14 +17596,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[RuntimeMethodHanldeGetHashCode.cmd_2529] -RelativePath=CoreMangLib\cti\system\runtimemethodhandle\RuntimeMethodHanldeGetHashCode\RuntimeMethodHanldeGetHashCode.cmd -WorkingDir=CoreMangLib\cti\system\runtimemethodhandle\RuntimeMethodHanldeGetHashCode -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [ldlen.cmd_2530] RelativePath=JIT\IL_Conformance\Old\objectmodel\ldlen\ldlen.cmd WorkingDir=JIT\IL_Conformance\Old\objectmodel\ldlen @@ -18748,14 +18356,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[EventHandlerEndInvoke.cmd_2637] -RelativePath=CoreMangLib\cti\system\eventhandler_generic\EventHandlerEndInvoke\EventHandlerEndInvoke.cmd -WorkingDir=CoreMangLib\cti\system\eventhandler_generic\EventHandlerEndInvoke -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [tryfinallythrow_nonlocalexit_r.cmd_2638] RelativePath=JIT\Methodical\eh\finallyexec\tryfinallythrow_nonlocalexit_r\tryfinallythrow_nonlocalexit_r.cmd WorkingDir=JIT\Methodical\eh\finallyexec\tryfinallythrow_nonlocalexit_r @@ -18900,22 +18500,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayIListget_item.cmd_2659] -RelativePath=CoreMangLib\cti\system\array\ArrayIListget_item\ArrayIListget_item.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIListget_item -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - -[ArrayLastIndexOf3b.cmd_2660] -RelativePath=CoreMangLib\cti\system\array\ArrayLastIndexOf3b\ArrayLastIndexOf3b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayLastIndexOf3b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [sizeof.cmd_2661] RelativePath=JIT\IL_Conformance\Old\Conformance_Base\sizeof\sizeof.cmd WorkingDir=JIT\IL_Conformance\Old\Conformance_Base\sizeof @@ -18988,14 +18572,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[AttributeTargetsClass.cmd_2672] -RelativePath=CoreMangLib\cti\system\attributetargets\AttributeTargetsClass\AttributeTargetsClass.cmd -WorkingDir=CoreMangLib\cti\system\attributetargets\AttributeTargetsClass -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [Generated1100.cmd_2674] RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1100\Generated1100\Generated1100.cmd WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1100\Generated1100 @@ -19132,14 +18708,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[DebuggingModesDisableOptimizations.cmd_2692] -RelativePath=CoreMangLib\cti\system\diagnostics\debuggingmodes\DebuggingModesDisableOptimizations\DebuggingModesDisableOptimizations.cmd -WorkingDir=CoreMangLib\cti\system\diagnostics\debuggingmodes\DebuggingModesDisableOptimizations -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [_speed_dbgnested.cmd_2693] RelativePath=JIT\Methodical\VT\etc\_speed_dbgnested\_speed_dbgnested.cmd WorkingDir=JIT\Methodical\VT\etc\_speed_dbgnested @@ -19228,14 +18796,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[MathRound2.cmd_2705] -RelativePath=CoreMangLib\cti\system\math\MathRound2\MathRound2.cmd -WorkingDir=CoreMangLib\cti\system\math\MathRound2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [Generated362.cmd_2706] RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest362\Generated362\Generated362.cmd WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest362\Generated362 @@ -19732,14 +19292,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[MathFSqrt.cmd_2777] -RelativePath=CoreMangLib\cti\system\mathf\MathFSqrt\MathFSqrt.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFSqrt -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [GCSimulator_315.cmd_2778] RelativePath=GC\Scenarios\GCSimulator\GCSimulator_315\GCSimulator_315.cmd WorkingDir=GC\Scenarios\GCSimulator\GCSimulator_315 @@ -20284,14 +19836,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArraySort3b.cmd_2852] -RelativePath=CoreMangLib\cti\system\array\ArraySort3b\ArraySort3b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort3b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [throwinnestedtryfault_r.cmd_2853] RelativePath=JIT\Methodical\eh\nested\nestedtry\throwinnestedtryfault_r\throwinnestedtryfault_r.cmd WorkingDir=JIT\Methodical\eh\nested\nestedtry\throwinnestedtryfault_r @@ -20372,14 +19916,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[ArraySort3.cmd_2866] -RelativePath=CoreMangLib\cti\system\array\ArraySort3\ArraySort3.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort3 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1;GCSTRESS_EXCLUDE -HostStyle=0 - [cpblkInt32.cmd_2867] RelativePath=JIT\Methodical\flowgraph\dev10_bug679053\cpblkInt32\cpblkInt32.cmd WorkingDir=JIT\Methodical\flowgraph\dev10_bug679053\cpblkInt32 @@ -21148,14 +20684,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayIListRemoveAt.cmd_2978] -RelativePath=CoreMangLib\cti\system\array\ArrayIListRemoveAt\ArrayIListRemoveAt.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIListRemoveAt -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [ret_i.cmd_2979] RelativePath=JIT\IL_Conformance\Old\Conformance_Base\ret_i\ret_i.cmd WorkingDir=JIT\IL_Conformance\Old\Conformance_Base\ret_i @@ -21692,14 +21220,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayLastIndexOf3.cmd_3057] -RelativePath=CoreMangLib\cti\system\array\ArrayLastIndexOf3\ArrayLastIndexOf3.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayLastIndexOf3 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [xprecise2_cs_d.cmd_3058] RelativePath=JIT\Methodical\cctor\xassem\xprecise2_cs_d\xprecise2_cs_d.cmd WorkingDir=JIT\Methodical\cctor\xassem\xprecise2_cs_d @@ -22084,14 +21604,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[GetHashCode.cmd_3111] -RelativePath=CoreMangLib\cti\system\attribute\GetHashCode\GetHashCode.cmd -WorkingDir=CoreMangLib\cti\system\attribute\GetHashCode -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [Generated64.cmd_3112] RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest64\Generated64\Generated64.cmd WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest64\Generated64 @@ -22220,14 +21732,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayBinarySearch4b.cmd_3129] -RelativePath=CoreMangLib\cti\system\array\ArrayBinarySearch4b\ArrayBinarySearch4b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayBinarySearch4b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [CircularCctorThreeThreads03.cmd_3131] RelativePath=Loader\classloader\TypeInitialization\CoreCLR\CircularCctorThreeThreads03\CircularCctorThreeThreads03.cmd WorkingDir=Loader\classloader\TypeInitialization\CoreCLR\CircularCctorThreeThreads03 @@ -22308,14 +21812,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayCreateInstance2b.cmd_3144] -RelativePath=CoreMangLib\cti\system\array\ArrayCreateInstance2b\ArrayCreateInstance2b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayCreateInstance2b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [b32551b.cmd_3145] RelativePath=JIT\Regression\CLR-x86-JIT\V1-M09.5-PDC\b32551\b32551b\b32551b.cmd WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M09.5-PDC\b32551\b32551b @@ -22516,14 +22012,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathMax6.cmd_3174] -RelativePath=CoreMangLib\cti\system\math\MathMax6\MathMax6.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMax6 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [_speed_dbgval_ctor.cmd_3175] RelativePath=JIT\Methodical\Invoke\ctor\_speed_dbgval_ctor\_speed_dbgval_ctor.cmd WorkingDir=JIT\Methodical\Invoke\ctor\_speed_dbgval_ctor @@ -23300,14 +22788,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[DebuggingModesIgnoreSymbolStoreSequencePoints.cmd_3288] -RelativePath=CoreMangLib\cti\system\diagnostics\debuggingmodes\DebuggingModesIgnoreSymbolStoreSequencePoints\DebuggingModesIgnoreSymbolStoreSequencePoints.cmd -WorkingDir=CoreMangLib\cti\system\diagnostics\debuggingmodes\DebuggingModesIgnoreSymbolStoreSequencePoints -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [BooleanTrueString.cmd_3289] RelativePath=CoreMangLib\cti\system\boolean\BooleanTrueString\BooleanTrueString.cmd WorkingDir=CoreMangLib\cti\system\boolean\BooleanTrueString @@ -23596,14 +23076,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathSign6.cmd_3326] -RelativePath=CoreMangLib\cti\system\math\MathSign6\MathSign6.cmd -WorkingDir=CoreMangLib\cti\system\math\MathSign6 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [waitanyex7a.cmd_3327] RelativePath=baseservices\threading\waithandle\waitany\waitanyex7a\waitanyex7a.cmd WorkingDir=baseservices\threading\waithandle\waitany\waitanyex7a @@ -23852,14 +23324,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[MathAbs7.cmd_3363] -RelativePath=CoreMangLib\cti\system\math\MathAbs7\MathAbs7.cmd -WorkingDir=CoreMangLib\cti\system\math\MathAbs7 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [global_il_d.cmd_3365] RelativePath=JIT\Methodical\cctor\misc\global_il_d\global_il_d.cmd WorkingDir=JIT\Methodical\cctor\misc\global_il_d @@ -23964,14 +23428,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[MathSign4.cmd_3378] -RelativePath=CoreMangLib\cti\system\math\MathSign4\MathSign4.cmd -WorkingDir=CoreMangLib\cti\system\math\MathSign4 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [dblarray1_cs_ro.cmd_3379] RelativePath=JIT\Methodical\doublearray\dblarray1_cs_ro\dblarray1_cs_ro.cmd WorkingDir=JIT\Methodical\doublearray\dblarray1_cs_ro @@ -24132,14 +23588,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathFAtan.cmd_3402] -RelativePath=CoreMangLib\cti\system\mathf\MathFAtan\MathFAtan.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFAtan -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [monitorenter.cmd_3403] RelativePath=baseservices\threading\monitor\enter\monitorenter\monitorenter.cmd WorkingDir=baseservices\threading\monitor\enter\monitorenter @@ -24892,14 +24340,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayBinarySearch5b.cmd_3506] -RelativePath=CoreMangLib\cti\system\array\ArrayBinarySearch5b\ArrayBinarySearch5b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayBinarySearch5b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [structret2_3.cmd_3507] RelativePath=JIT\jit64\gc\misc\structret2_3\structret2_3.cmd WorkingDir=JIT\jit64\gc\misc\structret2_3 @@ -25300,14 +24740,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathMin7.cmd_3563] -RelativePath=CoreMangLib\cti\system\math\MathMin7\MathMin7.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMin7 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [thread26.cmd_3564] RelativePath=baseservices\threading\generics\TimerCallback\thread26\thread26.cmd WorkingDir=baseservices\threading\generics\TimerCallback\thread26 @@ -25388,14 +24820,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathFMin.cmd_3575] -RelativePath=CoreMangLib\cti\system\mathf\MathFMin\MathFMin.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFMin -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [b140118.cmd_3576] RelativePath=JIT\Regression\CLR-x86-JIT\V1.1-M1-Beta1\b140118\b140118\b140118.cmd WorkingDir=JIT\Regression\CLR-x86-JIT\V1.1-M1-Beta1\b140118\b140118 @@ -25428,14 +24852,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[RuntimeTypeHandleEquals.cmd_3580] -RelativePath=CoreMangLib\cti\system\runtimetypehandle\RuntimeTypeHandleEquals\RuntimeTypeHandleEquals.cmd -WorkingDir=CoreMangLib\cti\system\runtimetypehandle\RuntimeTypeHandleEquals -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [TestCase2_Nested_J_Nested_I.cmd_3581] RelativePath=Loader\classloader\InterfaceFolding\TestCase2_Nested_J_Nested_I\TestCase2_Nested_J_Nested_I.cmd WorkingDir=Loader\classloader\InterfaceFolding\TestCase2_Nested_J_Nested_I @@ -25452,14 +24868,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArraySetValue1b.cmd_3583] -RelativePath=CoreMangLib\cti\system\array\ArraySetValue1b\ArraySetValue1b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySetValue1b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [beq_r8.cmd_3584] RelativePath=JIT\IL_Conformance\Old\Conformance_Base\beq_r8\beq_r8.cmd WorkingDir=JIT\IL_Conformance\Old\Conformance_Base\beq_r8 @@ -25852,14 +25260,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathMin1.cmd_3642] -RelativePath=CoreMangLib\cti\system\math\MathMin1\MathMin1.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMin1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [GCSimulator_119.cmd_3643] RelativePath=GC\Scenarios\GCSimulator\GCSimulator_119\GCSimulator_119.cmd WorkingDir=GC\Scenarios\GCSimulator\GCSimulator_119 @@ -26060,14 +25460,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayIListIndexOF.cmd_3674] -RelativePath=CoreMangLib\cti\system\array\ArrayIListIndexOF\ArrayIListIndexOF.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIListIndexOF -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [SP1a.cmd_3675] RelativePath=JIT\Directed\StructPromote\SP1a\SP1a.cmd WorkingDir=JIT\Directed\StructPromote\SP1a @@ -26148,14 +25540,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[ArrayLastIndexOf2.cmd_3685] -RelativePath=CoreMangLib\cti\system\array\ArrayLastIndexOf2\ArrayLastIndexOf2.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayLastIndexOf2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [_relexplicit4.cmd_3686] RelativePath=JIT\Methodical\explicit\misc\_relexplicit4\_relexplicit4.cmd WorkingDir=JIT\Methodical\explicit\misc\_relexplicit4 @@ -26164,14 +25548,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[MathRound4.cmd_3688] -RelativePath=CoreMangLib\cti\system\math\MathRound4\MathRound4.cmd -WorkingDir=CoreMangLib\cti\system\math\MathRound4 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [_speed_relhan3_ref.cmd_3689] RelativePath=JIT\Methodical\VT\etc\_speed_relhan3_ref\_speed_relhan3_ref.cmd WorkingDir=JIT\Methodical\VT\etc\_speed_relhan3_ref @@ -26820,22 +26196,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathMax7.cmd_3774] -RelativePath=CoreMangLib\cti\system\math\MathMax7\MathMax7.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMax7 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - -[ArrayIndexOf4.cmd_3776] -RelativePath=CoreMangLib\cti\system\array\ArrayIndexOf4\ArrayIndexOf4.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIndexOf4 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [thread16.cmd_3777] RelativePath=baseservices\threading\generics\TimerCallback\thread16\thread16.cmd WorkingDir=baseservices\threading\generics\TimerCallback\thread16 @@ -26924,14 +26284,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArraySetValue2.cmd_3790] -RelativePath=CoreMangLib\cti\system\array\ArraySetValue2\ArraySetValue2.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySetValue2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [Generated1465.cmd_3791] RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1465\Generated1465\Generated1465.cmd WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1465\Generated1465 @@ -28116,14 +27468,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ObsoleteAttributeCtor3.cmd_3963] -RelativePath=CoreMangLib\cti\system\obsoleteattribute\ObsoleteAttributeCtor3\ObsoleteAttributeCtor3.cmd -WorkingDir=CoreMangLib\cti\system\obsoleteattribute\ObsoleteAttributeCtor3 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [GitHub_7906.cmd_3965] RelativePath=JIT\Regression\JitBlue\GitHub_7906\GitHub_7906\GitHub_7906.cmd WorkingDir=JIT\Regression\JitBlue\GitHub_7906\GitHub_7906 @@ -28228,14 +27572,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayReserse2.cmd_3980] -RelativePath=CoreMangLib\cti\system\array\ArrayReserse2\ArrayReserse2.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayReserse2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [loop4_cs_r.cmd_3982] RelativePath=JIT\Directed\UnrollLoop\loop4_cs_r\loop4_cs_r.cmd WorkingDir=JIT\Directed\UnrollLoop\loop4_cs_r @@ -28300,14 +27636,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[DDB125472_GetHashCode.cmd_3991] -RelativePath=CoreMangLib\cti\system\attribute\DDB125472_GetHashCode\DDB125472_GetHashCode.cmd -WorkingDir=CoreMangLib\cti\system\attribute\DDB125472_GetHashCode -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [ByteIConvertibleToDecimal.cmd_3992] RelativePath=CoreMangLib\cti\system\byte\ByteIConvertibleToDecimal\ByteIConvertibleToDecimal.cmd WorkingDir=CoreMangLib\cti\system\byte\ByteIConvertibleToDecimal @@ -28316,14 +27644,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArraySort13.cmd_3993] -RelativePath=CoreMangLib\cti\system\array\ArraySort13\ArraySort13.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort13 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [arrayexpr2_d_loop_try.cmd_3994] RelativePath=JIT\jit64\opt\cse\arrayexpr2_d_loop_try\arrayexpr2_d_loop_try.cmd WorkingDir=JIT\jit64\opt\cse\arrayexpr2_d_loop_try @@ -28540,14 +27860,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[AttributeUsageAttributeCtor.cmd_4023] -RelativePath=CoreMangLib\cti\system\attributeusageattribute\AttributeUsageAttributeCtor\AttributeUsageAttributeCtor.cmd -WorkingDir=CoreMangLib\cti\system\attributeusageattribute\AttributeUsageAttributeCtor -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [_il_relcompat_enum.cmd_4025] RelativePath=JIT\Methodical\tailcall\_il_relcompat_enum\_il_relcompat_enum.cmd WorkingDir=JIT\Methodical\tailcall\_il_relcompat_enum @@ -28836,14 +28148,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArraySort12.cmd_4068] -RelativePath=CoreMangLib\cti\system\array\ArraySort12\ArraySort12.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort12 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [castclass-null043.cmd_4070] RelativePath=JIT\jit64\valuetypes\nullable\castclass\null\castclass-null043\castclass-null043.cmd WorkingDir=JIT\jit64\valuetypes\nullable\castclass\null\castclass-null043 @@ -29244,14 +28548,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[AttributeTargetsMethod.cmd_4128] -RelativePath=CoreMangLib\cti\system\attributetargets\AttributeTargetsMethod\AttributeTargetsMethod.cmd -WorkingDir=CoreMangLib\cti\system\attributetargets\AttributeTargetsMethod -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [bge_i8.cmd_4129] RelativePath=JIT\IL_Conformance\Old\Conformance_Base\bge_i8\bge_i8.cmd WorkingDir=JIT\IL_Conformance\Old\Conformance_Base\bge_i8 @@ -29316,14 +28612,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathAbs6.cmd_4140] -RelativePath=CoreMangLib\cti\system\math\MathAbs6\MathAbs6.cmd -WorkingDir=CoreMangLib\cti\system\math\MathAbs6 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [Generated1368.cmd_4141] RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1368\Generated1368\Generated1368.cmd WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1368\Generated1368 @@ -30060,22 +29348,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayBinarySearch3.cmd_4248] -RelativePath=CoreMangLib\cti\system\array\ArrayBinarySearch3\ArrayBinarySearch3.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayBinarySearch3 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - -[MathSign1.cmd_4249] -RelativePath=CoreMangLib\cti\system\math\MathSign1\MathSign1.cmd -WorkingDir=CoreMangLib\cti\system\math\MathSign1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [_il_dbgcastclass_ldloc.cmd_4251] RelativePath=JIT\Methodical\casts\coverage\_il_dbgcastclass_ldloc\_il_dbgcastclass_ldloc.cmd WorkingDir=JIT\Methodical\casts\coverage\_il_dbgcastclass_ldloc @@ -30164,14 +29436,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathMin11.cmd_4264] -RelativePath=CoreMangLib\cti\system\math\MathMin11\MathMin11.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMin11 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [GCSimulator_340.cmd_4265] RelativePath=GC\Scenarios\GCSimulator\GCSimulator_340\GCSimulator_340.cmd WorkingDir=GC\Scenarios\GCSimulator\GCSimulator_340 @@ -30268,14 +29532,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathSign2.cmd_4280] -RelativePath=CoreMangLib\cti\system\math\MathSign2\MathSign2.cmd -WorkingDir=CoreMangLib\cti\system\math\MathSign2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [_dbgval_ctor.cmd_4282] RelativePath=JIT\Methodical\Invoke\ctor\_dbgval_ctor\_dbgval_ctor.cmd WorkingDir=JIT\Methodical\Invoke\ctor\_dbgval_ctor @@ -30324,14 +29580,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathLog10.cmd_4288] -RelativePath=CoreMangLib\cti\system\math\MathLog10\MathLog10.cmd -WorkingDir=CoreMangLib\cti\system\math\MathLog10 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [151232.cmd_4289] RelativePath=baseservices\exceptions\regressions\whidbeyM3.2\151232\151232.cmd WorkingDir=baseservices\exceptions\regressions\whidbeyM3.2\151232 @@ -30532,14 +29780,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathAbs2.cmd_4316] -RelativePath=CoreMangLib\cti\system\math\MathAbs2\MathAbs2.cmd -WorkingDir=CoreMangLib\cti\system\math\MathAbs2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [b05622.cmd_4317] RelativePath=JIT\Regression\CLR-x86-JIT\V1-M10\b05622\b05622\b05622.cmd WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M10\b05622\b05622 @@ -31060,14 +30300,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[ArrayCopy1.cmd_4387] -RelativePath=CoreMangLib\cti\system\array\ArrayCopy1\ArrayCopy1.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayCopy1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [b35366.cmd_4388] RelativePath=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b35366\b35366\b35366.cmd WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b35366\b35366 @@ -31276,14 +30508,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayCopy2.cmd_4420] -RelativePath=CoreMangLib\cti\system\array\ArrayCopy2\ArrayCopy2.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayCopy2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [Generated1121.cmd_4421] RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1121\Generated1121\Generated1121.cmd WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1121\Generated1121 @@ -31836,14 +31060,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArraySort5.cmd_4501] -RelativePath=CoreMangLib\cti\system\array\ArraySort5\ArraySort5.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort5 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [_speed_rellcs_long.cmd_4502] RelativePath=JIT\Methodical\int64\arrays\_speed_rellcs_long\_speed_rellcs_long.cmd WorkingDir=JIT\Methodical\int64\arrays\_speed_rellcs_long @@ -31860,14 +31076,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[AttributeTargetsAll.cmd_4504] -RelativePath=CoreMangLib\cti\system\attributetargets\AttributeTargetsAll\AttributeTargetsAll.cmd -WorkingDir=CoreMangLib\cti\system\attributetargets\AttributeTargetsAll -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [Array3.cmd_4505] RelativePath=JIT\CodeGenBringUpTests\Array3_ro\Array3_ro.cmd WorkingDir=JIT\CodeGenBringUpTests\Array3_ro @@ -32012,14 +31220,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathFSin.cmd_4530] -RelativePath=CoreMangLib\cti\system\mathf\MathFSin\MathFSin.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFSin -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [Generated98.cmd_4531] RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest98\Generated98\Generated98.cmd WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest98\Generated98 @@ -32052,14 +31252,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ParamArrayAttributeCtor.cmd_4535] -RelativePath=CoreMangLib\cti\system\paramarrayattribute\ParamArrayAttributeCtor\ParamArrayAttributeCtor.cmd -WorkingDir=CoreMangLib\cti\system\paramarrayattribute\ParamArrayAttributeCtor -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [Alloc_neg.cmd_4536] RelativePath=GC\API\GCHandle\Alloc_neg\Alloc_neg.cmd WorkingDir=GC\API\GCHandle\Alloc_neg @@ -32508,14 +31700,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[NeutralResourcesLanguageAttributeCtor.cmd_4600] -RelativePath=CoreMangLib\cti\system\resources\neutralresourceslanguageattribute\NeutralResourcesLanguageAttributeCtor\NeutralResourcesLanguageAttributeCtor.cmd -WorkingDir=CoreMangLib\cti\system\resources\neutralresourceslanguageattribute\NeutralResourcesLanguageAttributeCtor -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [GCSimulator_207.cmd_4601] RelativePath=GC\Scenarios\GCSimulator\GCSimulator_207\GCSimulator_207.cmd WorkingDir=GC\Scenarios\GCSimulator\GCSimulator_207 @@ -32996,14 +32180,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[TypeLoadExceptionCtor3.cmd_4667] -RelativePath=CoreMangLib\cti\system\typeloadexception\TypeLoadExceptionCtor3\TypeLoadExceptionCtor3.cmd -WorkingDir=CoreMangLib\cti\system\typeloadexception\TypeLoadExceptionCtor3 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [dev10_710121.cmd_4668] RelativePath=Loader\classloader\regressions\dev10_710121\dev10_710121\dev10_710121.cmd WorkingDir=Loader\classloader\regressions\dev10_710121\dev10_710121 @@ -33284,14 +32460,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathE.cmd_4704] -RelativePath=CoreMangLib\cti\system\math\MathE\MathE.cmd -WorkingDir=CoreMangLib\cti\system\math\MathE -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [r4NaNrem_cs_do.cmd_4705] RelativePath=JIT\Methodical\NaN\r4NaNrem_cs_do\r4NaNrem_cs_do.cmd WorkingDir=JIT\Methodical\NaN\r4NaNrem_cs_do @@ -34052,14 +33220,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[mathRound1.cmd_4811] -RelativePath=CoreMangLib\cti\system\math\mathRound1\mathRound1.cmd -WorkingDir=CoreMangLib\cti\system\math\mathRound1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [_il_relisinst_call.cmd_4812] RelativePath=JIT\Methodical\casts\coverage\_il_relisinst_call\_il_relisinst_call.cmd WorkingDir=JIT\Methodical\casts\coverage\_il_relisinst_call @@ -34348,14 +33508,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[GCHandleTypeNormal.cmd_4852] -RelativePath=CoreMangLib\cti\system\runtime\interopservices\gchandletype\GCHandleTypeNormal\GCHandleTypeNormal.cmd -WorkingDir=CoreMangLib\cti\system\runtime\interopservices\gchandletype\GCHandleTypeNormal -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [array2.cmd_4853] RelativePath=JIT\Methodical\refany\array2\array2.cmd WorkingDir=JIT\Methodical\refany\array2 @@ -34684,14 +33836,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathFLog10.cmd_4902] -RelativePath=CoreMangLib\cti\system\mathf\MathFLog10\MathFLog10.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFLog10 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [dev10_715437.cmd_4903] RelativePath=Loader\classloader\regressions\dev10_715437\dev10_715437\dev10_715437.cmd WorkingDir=Loader\classloader\regressions\dev10_715437\dev10_715437 @@ -34940,14 +34084,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayIndexOf1.cmd_4936] -RelativePath=CoreMangLib\cti\system\array\ArrayIndexOf1\ArrayIndexOf1.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIndexOf1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [xprecise1_cs_d.cmd_4937] RelativePath=JIT\Methodical\cctor\xassem\xprecise1_cs_d\xprecise1_cs_d.cmd WorkingDir=JIT\Methodical\cctor\xassem\xprecise1_cs_d @@ -34964,14 +34100,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[AttributeTargetsField.cmd_4939] -RelativePath=CoreMangLib\cti\system\attributetargets\AttributeTargetsField\AttributeTargetsField.cmd -WorkingDir=CoreMangLib\cti\system\attributetargets\AttributeTargetsField -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [TestCase3.cmd_4940] RelativePath=Loader\classloader\InterfaceFolding\TestCase3\TestCase3.cmd WorkingDir=Loader\classloader\InterfaceFolding\TestCase3 @@ -35492,22 +34620,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathFSign.cmd_5013] -RelativePath=CoreMangLib\cti\system\mathf\MathFSign\MathFSign.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFSign -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - -[GCHandleTypeWeakTrackResurrection.cmd_5014] -RelativePath=CoreMangLib\cti\system\runtime\interopservices\gchandletype\GCHandleTypeWeakTrackResurrection\GCHandleTypeWeakTrackResurrection.cmd -WorkingDir=CoreMangLib\cti\system\runtime\interopservices\gchandletype\GCHandleTypeWeakTrackResurrection -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [ldftn_ret.cmd_5015] RelativePath=JIT\jit64\opt\cg\il\ldftn_ret\ldftn_ret.cmd WorkingDir=JIT\jit64\opt\cg\il\ldftn_ret @@ -36380,14 +35492,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathIEEERemainder.cmd_5144] -RelativePath=CoreMangLib\cti\system\math\MathIEEERemainder\MathIEEERemainder.cmd -WorkingDir=CoreMangLib\cti\system\math\MathIEEERemainder -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [DecimalMaxValue.cmd_5145] RelativePath=CoreMangLib\cti\system\decimal\DecimalMaxValue\DecimalMaxValue.cmd WorkingDir=CoreMangLib\cti\system\decimal\DecimalMaxValue @@ -36596,14 +35700,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayICollectionget_Count.cmd_5172] -RelativePath=CoreMangLib\cti\system\array\ArrayICollectionget_Count\ArrayICollectionget_Count.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayICollectionget_Count -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [_il_dbgi4u2.cmd_5173] RelativePath=JIT\Methodical\Invoke\implicit\_il_dbgi4u2\_il_dbgi4u2.cmd WorkingDir=JIT\Methodical\Invoke\implicit\_il_dbgi4u2 @@ -37292,14 +36388,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[DebuggingModesEnableEditAndContinue.cmd_5268] -RelativePath=CoreMangLib\cti\system\diagnostics\debuggingmodes\DebuggingModesEnableEditAndContinue\DebuggingModesEnableEditAndContinue.cmd -WorkingDir=CoreMangLib\cti\system\diagnostics\debuggingmodes\DebuggingModesEnableEditAndContinue -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [StructAsParam_Method.cmd_5269] RelativePath=JIT\opt\Inline\tests\StructAsParam_Method\StructAsParam_Method.cmd WorkingDir=JIT\opt\Inline\tests\StructAsParam_Method @@ -37412,14 +36500,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[GetHashCode.cmd_5285] -RelativePath=CoreMangLib\cti\system\runtime\compilerservices\runtimehelpers\GetHashCode\GetHashCode.cmd -WorkingDir=CoreMangLib\cti\system\runtime\compilerservices\runtimehelpers\GetHashCode -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [b85317.cmd_5286] RelativePath=JIT\Regression\VS-ia64-JIT\M00\b85317\b85317\b85317.cmd WorkingDir=JIT\Regression\VS-ia64-JIT\M00\b85317\b85317 @@ -37572,14 +36652,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[MathMin8.cmd_5307] -RelativePath=CoreMangLib\cti\system\math\MathMin8\MathMin8.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMin8 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [struct01_seq.cmd_5308] RelativePath=Loader\classloader\generics\Layout\General\struct01_seq\struct01_seq.cmd WorkingDir=Loader\classloader\generics\Layout\General\struct01_seq @@ -38324,14 +37396,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayIListContains.cmd_5409] -RelativePath=CoreMangLib\cti\system\array\ArrayIListContains\ArrayIListContains.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIListContains -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [seq_float_1_r.cmd_5410] RelativePath=JIT\Methodical\explicit\coverage\seq_float_1_r\seq_float_1_r.cmd WorkingDir=JIT\Methodical\explicit\coverage\seq_float_1_r @@ -38604,14 +37668,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathPow.cmd_5445] -RelativePath=CoreMangLib\cti\system\math\MathPow\MathPow.cmd -WorkingDir=CoreMangLib\cti\system\math\MathPow -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [ldloc_s_i8.cmd_5446] RelativePath=JIT\IL_Conformance\Old\directed\ldloc_s_i8\ldloc_s_i8.cmd WorkingDir=JIT\IL_Conformance\Old\directed\ldloc_s_i8 @@ -38868,14 +37924,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathFCeiling.cmd_5483] -RelativePath=CoreMangLib\cti\system\mathf\MathFCeiling\MathFCeiling.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFCeiling -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [hfa_sf2E_d.cmd_5486] RelativePath=JIT\jit64\hfa\main\testE\hfa_sf2E_d\hfa_sf2E_d.cmd WorkingDir=JIT\jit64\hfa\main\testE\hfa_sf2E_d @@ -39596,22 +38644,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[MathAcos.cmd_5583] -RelativePath=CoreMangLib\cti\system\math\MathAcos\MathAcos.cmd -WorkingDir=CoreMangLib\cti\system\math\MathAcos -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - -[ArrayGetUpperBound.cmd_5584] -RelativePath=CoreMangLib\cti\system\array\ArrayGetUpperBound\ArrayGetUpperBound.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayGetUpperBound -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [catchretnonlocalexitinfunclet_r.cmd_5585] RelativePath=JIT\Methodical\eh\leaves\catchretnonlocalexitinfunclet_r\catchretnonlocalexitinfunclet_r.cmd WorkingDir=JIT\Methodical\eh\leaves\catchretnonlocalexitinfunclet_r @@ -39876,14 +38908,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayLastIndexOf1b.cmd_5624] -RelativePath=CoreMangLib\cti\system\array\ArrayLastIndexOf1b\ArrayLastIndexOf1b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayLastIndexOf1b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [_il_reli4u1.cmd_5625] RelativePath=JIT\Methodical\Invoke\implicit\_il_reli4u1\_il_reli4u1.cmd WorkingDir=JIT\Methodical\Invoke\implicit\_il_reli4u1 @@ -40476,14 +39500,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArraySort2b.cmd_5711] -RelativePath=CoreMangLib\cti\system\array\ArraySort2b\ArraySort2b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort2b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [Generated1280.cmd_5713] RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1280\Generated1280\Generated1280.cmd WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1280\Generated1280 @@ -40844,14 +39860,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[ArrayIndexOf1b.cmd_5761] -RelativePath=CoreMangLib\cti\system\array\ArrayIndexOf1b\ArrayIndexOf1b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIndexOf1b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [b141062.cmd_5763] RelativePath=JIT\Regression\VS-ia64-JIT\M00\b141062\b141062\b141062.cmd WorkingDir=JIT\Regression\VS-ia64-JIT\M00\b141062\b141062 @@ -41028,14 +40036,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayReverse1.cmd_5787] -RelativePath=CoreMangLib\cti\system\array\ArrayReverse1\ArrayReverse1.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayReverse1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [br_s.cmd_5788] RelativePath=JIT\IL_Conformance\Old\Base\br_s\br_s.cmd WorkingDir=JIT\IL_Conformance\Old\Base\br_s @@ -41308,14 +40308,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[AttributeTargetsEnum.cmd_5828] -RelativePath=CoreMangLib\cti\system\attributetargets\AttributeTargetsEnum\AttributeTargetsEnum.cmd -WorkingDir=CoreMangLib\cti\system\attributetargets\AttributeTargetsEnum -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [DoubleIConvertibleToDateTime.cmd_5830] RelativePath=CoreMangLib\cti\system\double\DoubleIConvertibleToDateTime\DoubleIConvertibleToDateTime.cmd WorkingDir=CoreMangLib\cti\system\double\DoubleIConvertibleToDateTime @@ -43076,14 +42068,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayBinarySearch1b.cmd_6083] -RelativePath=CoreMangLib\cti\system\array\ArrayBinarySearch1b\ArrayBinarySearch1b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayBinarySearch1b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [initblk.cmd_6084] RelativePath=JIT\Directed\PREFIX\volatile\1\initblk\initblk.cmd WorkingDir=JIT\Directed\PREFIX\volatile\1\initblk @@ -43412,14 +42396,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[ArrayBinarySearch2b.cmd_6135] -RelativePath=CoreMangLib\cti\system\array\ArrayBinarySearch2b\ArrayBinarySearch2b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayBinarySearch2b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [staticFieldExpr1_1.cmd_6136] RelativePath=JIT\jit64\opt\cse\staticFieldExpr1_1\staticFieldExpr1_1.cmd WorkingDir=JIT\jit64\opt\cse\staticFieldExpr1_1 @@ -43852,14 +42828,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayBinarySearch1.cmd_6195] -RelativePath=CoreMangLib\cti\system\array\ArrayBinarySearch1\ArrayBinarySearch1.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayBinarySearch1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [case5.cmd_6196] RelativePath=Loader\classloader\explicitlayout\objrefandnonobjrefoverlap\case5\case5.cmd WorkingDir=Loader\classloader\explicitlayout\objrefandnonobjrefoverlap\case5 @@ -43924,14 +42892,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[AttributeVersion.cmd_6205] -RelativePath=CoreMangLib\cti\system\resources\satellitecontractversionattribute\AttributeVersion\AttributeVersion.cmd -WorkingDir=CoreMangLib\cti\system\resources\satellitecontractversionattribute\AttributeVersion -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [_XModuletest1-xmod.cmd_6206] RelativePath=JIT\Methodical\stringintern\_XModuletest1-xmod\_XModuletest1-xmod.cmd WorkingDir=JIT\Methodical\stringintern\_XModuletest1-xmod @@ -44484,14 +43444,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayIndexOf4b.cmd_6289] -RelativePath=CoreMangLib\cti\system\array\ArrayIndexOf4b\ArrayIndexOf4b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIndexOf4b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [r8rem_cs_do.cmd_6291] RelativePath=JIT\Methodical\divrem\rem\r8rem_cs_do\r8rem_cs_do.cmd WorkingDir=JIT\Methodical\divrem\rem\r8rem_cs_do @@ -44676,14 +43628,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[AttributeTargetsGenericParameter.cmd_6318] -RelativePath=CoreMangLib\cti\system\attributetargets\AttributeTargetsGenericParameter\AttributeTargetsGenericParameter.cmd -WorkingDir=CoreMangLib\cti\system\attributetargets\AttributeTargetsGenericParameter -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [Generated1319.cmd_6319] RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1319\Generated1319\Generated1319.cmd WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1319\Generated1319 @@ -45412,14 +44356,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[AttributeTargetsModule.cmd_6426] -RelativePath=CoreMangLib\cti\system\attributetargets\AttributeTargetsModule\AttributeTargetsModule.cmd -WorkingDir=CoreMangLib\cti\system\attributetargets\AttributeTargetsModule -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [uint32_do.cmd_6427] RelativePath=JIT\Directed\shift\uint32_do\uint32_do.cmd WorkingDir=JIT\Directed\shift\uint32_do @@ -45724,14 +44660,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathLog.cmd_6467] -RelativePath=CoreMangLib\cti\system\math\MathLog\MathLog.cmd -WorkingDir=CoreMangLib\cti\system\math\MathLog -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [Generated1461.cmd_6468] RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1461\Generated1461\Generated1461.cmd WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1461\Generated1461 @@ -45828,14 +44756,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[LayoutKindSequential.cmd_6482] -RelativePath=CoreMangLib\cti\system\runtime\interopservices\layoutkind\LayoutKindSequential\LayoutKindSequential.cmd -WorkingDir=CoreMangLib\cti\system\runtime\interopservices\layoutkind\LayoutKindSequential -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [jaggedarr_cs_r.cmd_6483] RelativePath=JIT\Methodical\MDArray\GaussJordan\jaggedarr_cs_r\jaggedarr_cs_r.cmd WorkingDir=JIT\Methodical\MDArray\GaussJordan\jaggedarr_cs_r @@ -45916,14 +44836,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathFSinh.cmd_6496] -RelativePath=CoreMangLib\cti\system\mathf\MathFSinh\MathFSinh.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFSinh -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [deadoponerror_r.cmd_6497] RelativePath=JIT\Methodical\eh\deadcode\deadoponerror_r\deadoponerror_r.cmd WorkingDir=JIT\Methodical\eh\deadcode\deadoponerror_r @@ -46004,14 +44916,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[AttributeTargetsConstructor.cmd_6507] -RelativePath=CoreMangLib\cti\system\attributetargets\AttributeTargetsConstructor\AttributeTargetsConstructor.cmd -WorkingDir=CoreMangLib\cti\system\attributetargets\AttributeTargetsConstructor -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [uint16_ro.cmd_6508] RelativePath=JIT\Directed\shift\uint16_ro\uint16_ro.cmd WorkingDir=JIT\Directed\shift\uint16_ro @@ -46756,14 +45660,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayReverse2.cmd_6613] -RelativePath=CoreMangLib\cti\system\array\ArrayReverse2\ArrayReverse2.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayReverse2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [JTrueLtDbl.cmd_6614] RelativePath=JIT\CodeGenBringUpTests\JTrueLtDbl_ro\JTrueLtDbl_ro.cmd WorkingDir=JIT\CodeGenBringUpTests\JTrueLtDbl_ro @@ -47084,14 +45980,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathFPI.cmd_6657] -RelativePath=CoreMangLib\cti\system\mathf\MathFPI\MathFPI.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFPI -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [_il_dbgcompat_enum.cmd_6658] RelativePath=JIT\Methodical\tailcall\_il_dbgcompat_enum\_il_dbgcompat_enum.cmd WorkingDir=JIT\Methodical\tailcall\_il_dbgcompat_enum @@ -47812,14 +46700,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[MathMax2.cmd_6766] -RelativePath=CoreMangLib\cti\system\math\MathMax2\MathMax2.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMax2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [GetGeneration_box.cmd_6767] RelativePath=GC\API\GC\GetGeneration_box\GetGeneration_box.cmd WorkingDir=GC\API\GC\GetGeneration_box @@ -47868,14 +46748,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathRound3.cmd_6773] -RelativePath=CoreMangLib\cti\system\math\MathRound3\MathRound3.cmd -WorkingDir=CoreMangLib\cti\system\math\MathRound3 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [jaggedarr_cs_ro.cmd_6774] RelativePath=JIT\Methodical\MDArray\GaussJordan\jaggedarr_cs_ro\jaggedarr_cs_ro.cmd WorkingDir=JIT\Methodical\MDArray\GaussJordan\jaggedarr_cs_ro @@ -48380,14 +47252,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[MathMin6.cmd_6848] -RelativePath=CoreMangLib\cti\system\math\MathMin6\MathMin6.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMin6 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [AssemblyNameGetPublicKeyToken.cmd_6849] RelativePath=CoreMangLib\cti\system\reflection\assemblyname\AssemblyNameGetPublicKeyToken\AssemblyNameGetPublicKeyToken.cmd WorkingDir=CoreMangLib\cti\system\reflection\assemblyname\AssemblyNameGetPublicKeyToken @@ -48884,14 +47748,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathCosh.cmd_6924] -RelativePath=CoreMangLib\cti\system\math\MathCosh\MathCosh.cmd -WorkingDir=CoreMangLib\cti\system\math\MathCosh -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [Generated1096.cmd_6925] RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1096\Generated1096\Generated1096.cmd WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1096\Generated1096 @@ -49116,14 +47972,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathSin.cmd_6957] -RelativePath=CoreMangLib\cti\system\math\MathSin\MathSin.cmd -WorkingDir=CoreMangLib\cti\system\math\MathSin -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [castclass015.cmd_6959] RelativePath=JIT\jit64\valuetypes\nullable\castclass\castclass\castclass015\castclass015.cmd WorkingDir=JIT\jit64\valuetypes\nullable\castclass\castclass\castclass015 @@ -49412,14 +48260,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[GCHandleTypePinned.cmd_7000] -RelativePath=CoreMangLib\cti\system\runtime\interopservices\gchandletype\GCHandleTypePinned\GCHandleTypePinned.cmd -WorkingDir=CoreMangLib\cti\system\runtime\interopservices\gchandletype\GCHandleTypePinned -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [GCSimulator_131.cmd_7001] RelativePath=GC\Scenarios\GCSimulator\GCSimulator_131\GCSimulator_131.cmd WorkingDir=GC\Scenarios\GCSimulator\GCSimulator_131 @@ -49548,14 +48388,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayCopyTo.cmd_7021] -RelativePath=CoreMangLib\cti\system\array\ArrayCopyTo\ArrayCopyTo.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayCopyTo -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [_speed_rels_ldfld_mulovf.cmd_7022] RelativePath=JIT\Methodical\int64\signed\_speed_rels_ldfld_mulovf\_speed_rels_ldfld_mulovf.cmd WorkingDir=JIT\Methodical\int64\signed\_speed_rels_ldfld_mulovf @@ -49564,14 +48396,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[AttributeTargetsInterface.cmd_7023] -RelativePath=CoreMangLib\cti\system\attributetargets\AttributeTargetsInterface\AttributeTargetsInterface.cmd -WorkingDir=CoreMangLib\cti\system\attributetargets\AttributeTargetsInterface -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [DoubleIConvertibleToByte.cmd_7024] RelativePath=CoreMangLib\cti\system\double\DoubleIConvertibleToByte\DoubleIConvertibleToByte.cmd WorkingDir=CoreMangLib\cti\system\double\DoubleIConvertibleToByte @@ -50012,14 +48836,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[MathPI.cmd_7089] -RelativePath=CoreMangLib\cti\system\math\MathPI\MathPI.cmd -WorkingDir=CoreMangLib\cti\system\math\MathPI -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [PinnedCollect.cmd_7091] RelativePath=GC\Features\Pinning\PinningOther\PinnedCollect\PinnedCollect.cmd WorkingDir=GC\Features\Pinning\PinningOther\PinnedCollect @@ -50076,14 +48892,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ObsoleteAttributeCtor2.cmd_7098] -RelativePath=CoreMangLib\cti\system\obsoleteattribute\ObsoleteAttributeCtor2\ObsoleteAttributeCtor2.cmd -WorkingDir=CoreMangLib\cti\system\obsoleteattribute\ObsoleteAttributeCtor2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [overflow01_mul.cmd_7099] RelativePath=JIT\jit64\rtchecks\overflow\overflow01_mul\overflow01_mul.cmd WorkingDir=JIT\jit64\rtchecks\overflow\overflow01_mul @@ -50804,14 +49612,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[ArrayReserse1.cmd_7203] -RelativePath=CoreMangLib\cti\system\array\ArrayReserse1\ArrayReserse1.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayReserse1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [constructor_ro.cmd_7204] RelativePath=JIT\Directed\nullabletypes\constructor_ro\constructor_ro.cmd WorkingDir=JIT\Directed\nullabletypes\constructor_ro @@ -51868,22 +50668,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[TypeLoadExceptionMessage.cmd_7349] -RelativePath=CoreMangLib\cti\system\typeloadexception\TypeLoadExceptionMessage\TypeLoadExceptionMessage.cmd -WorkingDir=CoreMangLib\cti\system\typeloadexception\TypeLoadExceptionMessage -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - -[ArrayCreateInstance1b.cmd_7350] -RelativePath=CoreMangLib\cti\system\array\ArrayCreateInstance1b\ArrayCreateInstance1b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayCreateInstance1b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [hfa_sd0B_d.cmd_7353] RelativePath=JIT\jit64\hfa\main\testB\hfa_sd0B_d\hfa_sd0B_d.cmd WorkingDir=JIT\jit64\hfa\main\testB\hfa_sd0B_d @@ -52436,14 +51220,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayLastIndexOf1.cmd_7427] -RelativePath=CoreMangLib\cti\system\array\ArrayLastIndexOf1\ArrayLastIndexOf1.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayLastIndexOf1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [mcc_i76.cmd_7428] RelativePath=JIT\jit64\mcc\interop\mcc_i76\mcc_i76.cmd WorkingDir=JIT\jit64\mcc\interop\mcc_i76 @@ -53228,14 +52004,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathFCosh.cmd_7541] -RelativePath=CoreMangLib\cti\system\mathf\MathFCosh\MathFCosh.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFCosh -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [b72828.cmd_7543] RelativePath=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b72828\b72828\b72828.cmd WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b72828\b72828 @@ -53500,22 +52268,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[ArrayLength.cmd_7584] -RelativePath=CoreMangLib\cti\system\array\ArrayLength\ArrayLength.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayLength -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - -[MathSqrt.cmd_7585] -RelativePath=CoreMangLib\cti\system\math\MathSqrt\MathSqrt.cmd -WorkingDir=CoreMangLib\cti\system\math\MathSqrt -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [class01_instance.cmd_7586] RelativePath=JIT\Generics\Arrays\ConstructedTypes\MultiDim\class01_instance\class01_instance.cmd WorkingDir=JIT\Generics\Arrays\ConstructedTypes\MultiDim\class01_instance @@ -53620,14 +52372,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[CultureName.cmd_7600] -RelativePath=CoreMangLib\cti\system\resources\neutralresourceslanguageattribute\CultureName\CultureName.cmd -WorkingDir=CoreMangLib\cti\system\resources\neutralresourceslanguageattribute\CultureName -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [VSW576621.cmd_7601] RelativePath=Loader\classloader\methodoverriding\regressions\576621\VSW576621\VSW576621.cmd WorkingDir=Loader\classloader\methodoverriding\regressions\576621\VSW576621 @@ -53668,14 +52412,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[DebuggingModesNone.cmd_7606] -RelativePath=CoreMangLib\cti\system\diagnostics\debuggingmodes\DebuggingModesNone\DebuggingModesNone.cmd -WorkingDir=CoreMangLib\cti\system\diagnostics\debuggingmodes\DebuggingModesNone -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [Generated173.cmd_7607] RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest173\Generated173\Generated173.cmd WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest173\Generated173 @@ -54300,14 +53036,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathAbs4.cmd_7692] -RelativePath=CoreMangLib\cti\system\math\MathAbs4\MathAbs4.cmd -WorkingDir=CoreMangLib\cti\system\math\MathAbs4 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [Generated601.cmd_7693] RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest601\Generated601\Generated601.cmd WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest601\Generated601 @@ -54564,14 +53292,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayIndexOf2.cmd_7726] -RelativePath=CoreMangLib\cti\system\array\ArrayIndexOf2\ArrayIndexOf2.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIndexOf2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [hfa_sd0C_d.cmd_7727] RelativePath=JIT\jit64\hfa\main\testC\hfa_sd0C_d\hfa_sd0C_d.cmd WorkingDir=JIT\jit64\hfa\main\testC\hfa_sd0C_d @@ -54980,14 +53700,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[ArraySetValue1.cmd_7790] -RelativePath=CoreMangLib\cti\system\array\ArraySetValue1\ArraySetValue1.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySetValue1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [hfa_nf0G_r.cmd_7791] RelativePath=JIT\jit64\hfa\main\testG\hfa_nf0G_r\hfa_nf0G_r.cmd WorkingDir=JIT\jit64\hfa\main\testG\hfa_nf0G_r @@ -55900,14 +54612,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[RuntimeFieldHandleEquals.cmd_7915] -RelativePath=CoreMangLib\cti\system\runtimefieldhandle\RuntimeFieldHandleEquals\RuntimeFieldHandleEquals.cmd -WorkingDir=CoreMangLib\cti\system\runtimefieldhandle\RuntimeFieldHandleEquals -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [castclass013.cmd_7917] RelativePath=JIT\jit64\valuetypes\nullable\castclass\castclass\castclass013\castclass013.cmd WorkingDir=JIT\jit64\valuetypes\nullable\castclass\castclass\castclass013 @@ -56196,14 +54900,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[EventHandlerInvoke.cmd_7959] -RelativePath=CoreMangLib\cti\system\eventhandler\EventHandlerInvoke\EventHandlerInvoke.cmd -WorkingDir=CoreMangLib\cti\system\eventhandler\EventHandlerInvoke -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [Generated492.cmd_7960] RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest492\Generated492\Generated492.cmd WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest492\Generated492 @@ -56652,14 +55348,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[UnmanagedType.cmd_8023] -RelativePath=CoreMangLib\cti\system\runtime\interopservices\unmanagedtype\UnmanagedType\UnmanagedType.cmd -WorkingDir=CoreMangLib\cti\system\runtime\interopservices\unmanagedtype\UnmanagedType -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [GitHub_11508.cmd_8025] RelativePath=JIT\Regression\JitBlue\GitHub_11508\GitHub_11508\GitHub_11508.cmd WorkingDir=JIT\Regression\JitBlue\GitHub_11508\GitHub_11508 @@ -56724,22 +55412,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[ArrayIListset_item.cmd_8035] -RelativePath=CoreMangLib\cti\system\array\ArrayIListset_item\ArrayIListset_item.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIListset_item -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - -[RuntimeTypeHandleGetHashCode.cmd_8036] -RelativePath=CoreMangLib\cti\system\runtimetypehandle\RuntimeTypeHandleGetHashCode\RuntimeTypeHandleGetHashCode.cmd -WorkingDir=CoreMangLib\cti\system\runtimetypehandle\RuntimeTypeHandleGetHashCode -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [box-unbox-value010.cmd_8037] RelativePath=JIT\jit64\valuetypes\nullable\box-unbox\value\box-unbox-value010\box-unbox-value010.cmd WorkingDir=JIT\jit64\valuetypes\nullable\box-unbox\value\box-unbox-value010 @@ -58644,14 +57316,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathExp.cmd_8310] -RelativePath=CoreMangLib\cti\system\math\MathExp\MathExp.cmd -WorkingDir=CoreMangLib\cti\system\math\MathExp -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [NestedClass01.cmd_8311] RelativePath=Loader\classloader\generics\Instantiation\Positive\NestedClass01\NestedClass01.cmd WorkingDir=Loader\classloader\generics\Instantiation\Positive\NestedClass01 @@ -58660,14 +57324,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[AttributeTargetsStruct.cmd_8312] -RelativePath=CoreMangLib\cti\system\attributetargets\AttributeTargetsStruct\AttributeTargetsStruct.cmd -WorkingDir=CoreMangLib\cti\system\attributetargets\AttributeTargetsStruct -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [ThreadStartDecimal_1.cmd_8313] RelativePath=baseservices\threading\paramthreadstart\ThreadStartDecimal_1\ThreadStartDecimal_1.cmd WorkingDir=baseservices\threading\paramthreadstart\ThreadStartDecimal_1 @@ -58764,14 +57420,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathMax1.cmd_8328] -RelativePath=CoreMangLib\cti\system\math\MathMax1\MathMax1.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMax1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [seq_gc_obj_1_d.cmd_8329] RelativePath=JIT\Methodical\explicit\coverage\seq_gc_obj_1_d\seq_gc_obj_1_d.cmd WorkingDir=JIT\Methodical\explicit\coverage\seq_gc_obj_1_d @@ -58788,14 +57436,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MissingManifestResourceExceptionCtor3.cmd_8331] -RelativePath=CoreMangLib\cti\system\resources\missingmanifestresourceexception\MissingManifestResourceExceptionCtor3\MissingManifestResourceExceptionCtor3.cmd -WorkingDir=CoreMangLib\cti\system\resources\missingmanifestresourceexception\MissingManifestResourceExceptionCtor3 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [Generated300.cmd_8333] RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest300\Generated300\Generated300.cmd WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest300\Generated300 @@ -59108,14 +57748,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayIListAdd.cmd_8376] -RelativePath=CoreMangLib\cti\system\array\ArrayIListAdd\ArrayIListAdd.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIListAdd -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [rem.cmd_8377] RelativePath=JIT\IL_Conformance\Old\Base\rem\rem.cmd WorkingDir=JIT\IL_Conformance\Old\Base\rem @@ -59212,14 +57844,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayLastIndexOf4.cmd_8391] -RelativePath=CoreMangLib\cti\system\array\ArrayLastIndexOf4\ArrayLastIndexOf4.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayLastIndexOf4 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [b46566.cmd_8392] RelativePath=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b46566\b46566\b46566.cmd WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b46566\b46566 @@ -59388,14 +58012,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayRank.cmd_8416] -RelativePath=CoreMangLib\cti\system\array\ArrayRank\ArrayRank.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayRank -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [_il_dbgrecurse_tail_call.cmd_8418] RelativePath=JIT\Methodical\Invoke\fptr\_il_dbgrecurse_tail_call\_il_dbgrecurse_tail_call.cmd WorkingDir=JIT\Methodical\Invoke\fptr\_il_dbgrecurse_tail_call @@ -60372,14 +58988,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathCeiling.cmd_8547] -RelativePath=CoreMangLib\cti\system\math\MathCeiling\MathCeiling.cmd -WorkingDir=CoreMangLib\cti\system\math\MathCeiling -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [DecimalEquals1.cmd_8548] RelativePath=CoreMangLib\cti\system\decimal\DecimalEquals1\DecimalEquals1.cmd WorkingDir=CoreMangLib\cti\system\decimal\DecimalEquals1 @@ -60508,14 +59116,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[EnvironmentNewLine.cmd_8568] -RelativePath=CoreMangLib\cti\system\environment\EnvironmentNewLine\EnvironmentNewLine.cmd -WorkingDir=CoreMangLib\cti\system\environment\EnvironmentNewLine -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [staticFieldExprUnchecked1_r.cmd_8569] RelativePath=JIT\jit64\opt\cse\staticFieldExprUnchecked1_r\staticFieldExprUnchecked1_r.cmd WorkingDir=JIT\jit64\opt\cse\staticFieldExprUnchecked1_r @@ -61020,14 +59620,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathMin4.cmd_8643] -RelativePath=CoreMangLib\cti\system\math\MathMin4\MathMin4.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMin4 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [rem_u8.cmd_8644] RelativePath=JIT\IL_Conformance\Old\Conformance_Base\rem_u8\rem_u8.cmd WorkingDir=JIT\IL_Conformance\Old\Conformance_Base\rem_u8 @@ -61540,14 +60132,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[ArrayIndexOf2b.cmd_8719] -RelativePath=CoreMangLib\cti\system\array\ArrayIndexOf2b\ArrayIndexOf2b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIndexOf2b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [Regula.cmd_8720] RelativePath=JIT\Performance\CodeQuality\Benchstones\BenchF\Regula\Regula\Regula.cmd WorkingDir=JIT\Performance\CodeQuality\Benchstones\BenchF\Regula\Regula @@ -61708,14 +60292,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathAbs1.cmd_8741] -RelativePath=CoreMangLib\cti\system\math\MathAbs1\MathAbs1.cmd -WorkingDir=CoreMangLib\cti\system\math\MathAbs1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [structarr_cs_do.cmd_8742] RelativePath=JIT\Methodical\MDArray\basics\structarr_cs_do\structarr_cs_do.cmd WorkingDir=JIT\Methodical\MDArray\basics\structarr_cs_do @@ -61900,14 +60476,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayBinarySearch3b.cmd_8770] -RelativePath=CoreMangLib\cti\system\array\ArrayBinarySearch3b\ArrayBinarySearch3b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayBinarySearch3b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [xaddmuly_cs_r.cmd_8771] RelativePath=JIT\Directed\coverage\flowgraph\xaddmuly_cs_r\xaddmuly_cs_r.cmd WorkingDir=JIT\Directed\coverage\flowgraph\xaddmuly_cs_r @@ -62196,14 +60764,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathFLog.cmd_8815] -RelativePath=CoreMangLib\cti\system\mathf\MathFLog\MathFLog.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFLog -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [5w1d-01_cs_d.cmd_8816] RelativePath=JIT\Methodical\fp\exgen\5w1d-01_cs_d\5w1d-01_cs_d.cmd WorkingDir=JIT\Methodical\fp\exgen\5w1d-01_cs_d @@ -63156,14 +61716,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayIndexOf3b.cmd_8956] -RelativePath=CoreMangLib\cti\system\array\ArrayIndexOf3b\ArrayIndexOf3b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIndexOf3b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [Generated533.cmd_8957] RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest533\Generated533\Generated533.cmd WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest533\Generated533 @@ -64044,14 +62596,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[MathSign5.cmd_9083] -RelativePath=CoreMangLib\cti\system\math\MathSign5\MathSign5.cmd -WorkingDir=CoreMangLib\cti\system\math\MathSign5 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [GCSimulator_161.cmd_9084] RelativePath=GC\Scenarios\GCSimulator\GCSimulator_161\GCSimulator_161.cmd WorkingDir=GC\Scenarios\GCSimulator\GCSimulator_161 @@ -64140,22 +62684,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[AttributeTargetsReturnValue.cmd_9097] -RelativePath=CoreMangLib\cti\system\attributetargets\AttributeTargetsReturnValue\AttributeTargetsReturnValue.cmd -WorkingDir=CoreMangLib\cti\system\attributetargets\AttributeTargetsReturnValue -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - -[MathMax5.cmd_9098] -RelativePath=CoreMangLib\cti\system\math\MathMax5\MathMax5.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMax5 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [b41990.cmd_9099] RelativePath=JIT\Regression\CLR-x86-JIT\V1-M11-Beta1\b41990\b41990\b41990.cmd WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M11-Beta1\b41990\b41990 @@ -64324,14 +62852,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[EnumToString3.cmd_9121] -RelativePath=CoreMangLib\cti\system\enum\EnumToString3\EnumToString3.cmd -WorkingDir=CoreMangLib\cti\system\enum\EnumToString3 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [devdiv_815942.cmd_9122] RelativePath=JIT\Regression\JitBlue\devdiv_815942\devdiv_815942\devdiv_815942.cmd WorkingDir=JIT\Regression\JitBlue\devdiv_815942\devdiv_815942 @@ -64444,14 +62964,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathAtan.cmd_9141] -RelativePath=CoreMangLib\cti\system\math\MathAtan\MathAtan.cmd -WorkingDir=CoreMangLib\cti\system\math\MathAtan -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [RecursiveTailCall.cmd_9142] RelativePath=JIT\CodeGenBringUpTests\RecursiveTailCall_ro\RecursiveTailCall_ro.cmd WorkingDir=JIT\CodeGenBringUpTests\RecursiveTailCall_ro @@ -64676,14 +63188,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[EventHandlerBeginInvoke.cmd_9172] -RelativePath=CoreMangLib\cti\system\eventhandler_generic\EventHandlerBeginInvoke\EventHandlerBeginInvoke.cmd -WorkingDir=CoreMangLib\cti\system\eventhandler_generic\EventHandlerBeginInvoke -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [hfa_nd2E_r.cmd_9173] RelativePath=JIT\jit64\hfa\main\testE\hfa_nd2E_r\hfa_nd2E_r.cmd WorkingDir=JIT\jit64\hfa\main\testE\hfa_nd2E_r @@ -65012,14 +63516,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[ArraySetValue2b.cmd_9215] -RelativePath=CoreMangLib\cti\system\array\ArraySetValue2b\ArraySetValue2b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySetValue2b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [InProd.cmd_9216] RelativePath=JIT\Performance\CodeQuality\Benchstones\BenchF\InProd\InProd\InProd.cmd WorkingDir=JIT\Performance\CodeQuality\Benchstones\BenchF\InProd\InProd @@ -65164,14 +63660,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[ArrayBinarySearch6.cmd_9237] -RelativePath=CoreMangLib\cti\system\array\ArrayBinarySearch6\ArrayBinarySearch6.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayBinarySearch6 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [b51515.cmd_9238] RelativePath=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b51515\b51515\b51515.cmd WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b51515\b51515 @@ -65612,14 +64100,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[EventHandlerInvoke.cmd_9298] -RelativePath=CoreMangLib\cti\system\eventhandler_generic\EventHandlerInvoke\EventHandlerInvoke.cmd -WorkingDir=CoreMangLib\cti\system\eventhandler_generic\EventHandlerInvoke -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [throwinfinallyerrpath_do.cmd_9299] RelativePath=JIT\Methodical\eh\basics\throwinfinallyerrpath_do\throwinfinallyerrpath_do.cmd WorkingDir=JIT\Methodical\eh\basics\throwinfinallyerrpath_do @@ -66092,14 +64572,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathFAcos.cmd_9372] -RelativePath=CoreMangLib\cti\system\mathf\MathFAcos\MathFAcos.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFAcos -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [b67744.cmd_9376] RelativePath=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b67744\b67744\b67744.cmd WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b67744\b67744 @@ -66196,14 +64668,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayGetLowerBound.cmd_9388] -RelativePath=CoreMangLib\cti\system\array\ArrayGetLowerBound\ArrayGetLowerBound.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayGetLowerBound -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [b31423.cmd_9389] RelativePath=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b31423\b31423\b31423.cmd WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b31423\b31423 @@ -66252,14 +64716,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathMax3.cmd_9396] -RelativePath=CoreMangLib\cti\system\math\MathMax3\MathMax3.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMax3 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [DblSubConst.cmd_9397] RelativePath=JIT\CodeGenBringUpTests\DblSubConst_ro\DblSubConst_ro.cmd WorkingDir=JIT\CodeGenBringUpTests\DblSubConst_ro @@ -66268,14 +64724,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathMax9.cmd_9398] -RelativePath=CoreMangLib\cti\system\math\MathMax9\MathMax9.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMax9 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [castclass-generics025.cmd_9399] RelativePath=JIT\jit64\valuetypes\nullable\castclass\generics\castclass-generics025\castclass-generics025.cmd WorkingDir=JIT\jit64\valuetypes\nullable\castclass\generics\castclass-generics025 @@ -66484,14 +64932,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[MathTanh.cmd_9427] -RelativePath=CoreMangLib\cti\system\math\MathTanh\MathTanh.cmd -WorkingDir=CoreMangLib\cti\system\math\MathTanh -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [_il_relcastclass_ldarg.cmd_9428] RelativePath=JIT\Methodical\casts\coverage\_il_relcastclass_ldarg\_il_relcastclass_ldarg.cmd WorkingDir=JIT\Methodical\casts\coverage\_il_relcastclass_ldarg @@ -67628,14 +66068,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathSinh.cmd_9595] -RelativePath=CoreMangLib\cti\system\math\MathSinh\MathSinh.cmd -WorkingDir=CoreMangLib\cti\system\math\MathSinh -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [25param1c_il_r.cmd_9596] RelativePath=JIT\Methodical\Invoke\25params\25param1c_il_r\25param1c_il_r.cmd WorkingDir=JIT\Methodical\Invoke\25params\25param1c_il_r @@ -67916,14 +66348,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[EnumIsDefined.cmd_9632] -RelativePath=CoreMangLib\cti\system\enum\EnumIsDefined\EnumIsDefined.cmd -WorkingDir=CoreMangLib\cti\system\enum\EnumIsDefined -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [unwind05_small.cmd_9634] RelativePath=JIT\jit64\localloc\unwind\unwind05_small\unwind05_small.cmd WorkingDir=JIT\jit64\localloc\unwind\unwind05_small @@ -68076,14 +66500,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[CharSetUnicode.cmd_9654] -RelativePath=CoreMangLib\cti\system\runtime\interopservices\charset\CharSetUnicode\CharSetUnicode.cmd -WorkingDir=CoreMangLib\cti\system\runtime\interopservices\charset\CharSetUnicode -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [DevDiv_280127.cmd_9655] RelativePath=JIT\Regression\JitBlue\DevDiv_280127\DevDiv_280127\DevDiv_280127.cmd WorkingDir=JIT\Regression\JitBlue\DevDiv_280127\DevDiv_280127 @@ -68260,14 +66676,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[ArrayClear.cmd_9679] -RelativePath=CoreMangLib\cti\system\array\ArrayClear\ArrayClear.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayClear -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [r8div_cs_ro.cmd_9680] RelativePath=JIT\Methodical\divrem\div\r8div_cs_ro\r8div_cs_ro.cmd WorkingDir=JIT\Methodical\divrem\div\r8div_cs_ro @@ -68388,14 +66796,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathSign3.cmd_9698] -RelativePath=CoreMangLib\cti\system\math\MathSign3\MathSign3.cmd -WorkingDir=CoreMangLib\cti\system\math\MathSign3 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [tryfinallywith2endfinally_d.cmd_9699] RelativePath=JIT\Methodical\eh\basics\tryfinallywith2endfinally_d\tryfinallywith2endfinally_d.cmd WorkingDir=JIT\Methodical\eh\basics\tryfinallywith2endfinally_d @@ -68484,14 +66884,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathFExp.cmd_9712] -RelativePath=CoreMangLib\cti\system\mathf\MathFExp\MathFExp.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFExp -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [Array2.cmd_9713] RelativePath=JIT\Performance\CodeQuality\Benchstones\BenchI\Array2\Array2\Array2.cmd WorkingDir=JIT\Performance\CodeQuality\Benchstones\BenchI\Array2\Array2 @@ -70028,14 +68420,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MissingManifestResourceExceptionCtor1.cmd_9931] -RelativePath=CoreMangLib\cti\system\resources\missingmanifestresourceexception\MissingManifestResourceExceptionCtor1\MissingManifestResourceExceptionCtor1.cmd -WorkingDir=CoreMangLib\cti\system\resources\missingmanifestresourceexception\MissingManifestResourceExceptionCtor1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [_reltest1.cmd_9932] RelativePath=JIT\Methodical\Invoke\callvirt\_reltest1\_reltest1.cmd WorkingDir=JIT\Methodical\Invoke\callvirt\_reltest1 @@ -70052,14 +68436,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathMin3.cmd_9934] -RelativePath=CoreMangLib\cti\system\math\MathMin3\MathMin3.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMin3 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [b91944.cmd_9935] RelativePath=JIT\Regression\VS-ia64-JIT\V1.2-Beta1\b91944\b91944\b91944.cmd WorkingDir=JIT\Regression\VS-ia64-JIT\V1.2-Beta1\b91944\b91944 @@ -70276,14 +68652,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[AttributeUsageAttributeAllowMultiple.cmd_9966] -RelativePath=CoreMangLib\cti\system\attributeusageattribute\AttributeUsageAttributeAllowMultiple\AttributeUsageAttributeAllowMultiple.cmd -WorkingDir=CoreMangLib\cti\system\attributeusageattribute\AttributeUsageAttributeAllowMultiple -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [gentogen02.cmd_9967] RelativePath=JIT\Generics\Conversions\Reference\gentogen02\gentogen02.cmd WorkingDir=JIT\Generics\Conversions\Reference\gentogen02 @@ -70324,14 +68692,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArraySort7.cmd_9973] -RelativePath=CoreMangLib\cti\system\array\ArraySort7\ArraySort7.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort7 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [_relcastclass_newobj.cmd_9974] RelativePath=JIT\Methodical\casts\coverage\_relcastclass_newobj\_relcastclass_newobj.cmd WorkingDir=JIT\Methodical\casts\coverage\_relcastclass_newobj @@ -70652,14 +69012,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[MissingManifestResourceExceptionCtor2.cmd_10022] -RelativePath=CoreMangLib\cti\system\resources\missingmanifestresourceexception\MissingManifestResourceExceptionCtor2\MissingManifestResourceExceptionCtor2.cmd -WorkingDir=CoreMangLib\cti\system\resources\missingmanifestresourceexception\MissingManifestResourceExceptionCtor2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [vsw543506.cmd_10024] RelativePath=Loader\classloader\generics\Variance\IL\vsw543506\vsw543506.cmd WorkingDir=Loader\classloader\generics\Variance\IL\vsw543506 @@ -71044,14 +69396,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathFPow.cmd_10079] -RelativePath=CoreMangLib\cti\system\mathf\MathFPow\MathFPow.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFPow -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [_il_dbgi_prop.cmd_10080] RelativePath=JIT\Methodical\ELEMENT_TYPE_IU\_il_dbgi_prop\_il_dbgi_prop.cmd WorkingDir=JIT\Methodical\ELEMENT_TYPE_IU\_il_dbgi_prop @@ -71396,14 +69740,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathTan.cmd_10130] -RelativePath=CoreMangLib\cti\system\math\MathTan\MathTan.cmd -WorkingDir=CoreMangLib\cti\system\math\MathTan -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [b473131_intptr.cmd_10131] RelativePath=JIT\Regression\Dev11\Dev11_b473131\b473131_intptr\b473131_intptr.cmd WorkingDir=JIT\Regression\Dev11\Dev11_b473131\b473131_intptr @@ -71948,14 +70284,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[MathMin10.cmd_10213] -RelativePath=CoreMangLib\cti\system\math\MathMin10\MathMin10.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMin10 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [box-unbox-value028.cmd_10214] RelativePath=JIT\jit64\valuetypes\nullable\box-unbox\value\box-unbox-value028\box-unbox-value028.cmd WorkingDir=JIT\jit64\valuetypes\nullable\box-unbox\value\box-unbox-value028 @@ -71996,14 +70324,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathFloor.cmd_10219] -RelativePath=CoreMangLib\cti\system\math\MathFloor\MathFloor.cmd -WorkingDir=CoreMangLib\cti\system\math\MathFloor -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [i8div_cs_ro.cmd_10221] RelativePath=JIT\Methodical\divrem\div\i8div_cs_ro\i8div_cs_ro.cmd WorkingDir=JIT\Methodical\divrem\div\i8div_cs_ro @@ -72052,14 +70372,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayClone.cmd_10227] -RelativePath=CoreMangLib\cti\system\array\ArrayClone\ArrayClone.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayClone -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [r8flat_cs_d.cmd_10228] RelativePath=JIT\Methodical\AsgOp\r8\r8flat_cs_d\r8flat_cs_d.cmd WorkingDir=JIT\Methodical\AsgOp\r8\r8flat_cs_d @@ -72644,14 +70956,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayBinarySearch4.cmd_10310] -RelativePath=CoreMangLib\cti\system\array\ArrayBinarySearch4\ArrayBinarySearch4.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayBinarySearch4 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [filterfiltercatchcatch_d.cmd_10311] RelativePath=JIT\Methodical\eh\mixedhandler\filterfiltercatchcatch_d\filterfiltercatchcatch_d.cmd WorkingDir=JIT\Methodical\eh\mixedhandler\filterfiltercatchcatch_d @@ -72692,14 +70996,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayIListClear.cmd_10316] -RelativePath=CoreMangLib\cti\system\array\ArrayIListClear\ArrayIListClear.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIListClear -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [b84962.cmd_10317] RelativePath=JIT\Regression\VS-ia64-JIT\M00\b84962\b84962\b84962.cmd WorkingDir=JIT\Regression\VS-ia64-JIT\M00\b84962\b84962 @@ -72844,14 +71140,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayInitialize.cmd_10336] -RelativePath=CoreMangLib\cti\system\array\ArrayInitialize\ArrayInitialize.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayInitialize -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [throwinfinally_do.cmd_10340] RelativePath=JIT\Methodical\eh\nested\general\throwinfinally_do\throwinfinally_do.cmd WorkingDir=JIT\Methodical\eh\nested\general\throwinfinally_do @@ -73228,14 +71516,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[TypeLoadExceptionCtor1.cmd_10389] -RelativePath=CoreMangLib\cti\system\typeloadexception\TypeLoadExceptionCtor1\TypeLoadExceptionCtor1.cmd -WorkingDir=CoreMangLib\cti\system\typeloadexception\TypeLoadExceptionCtor1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [Generated4.cmd_10390] RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest4\Generated4\Generated4.cmd WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest4\Generated4 @@ -74276,14 +72556,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[AttributeTargetsAssembly.cmd_10531] -RelativePath=CoreMangLib\cti\system\attributetargets\AttributeTargetsAssembly\AttributeTargetsAssembly.cmd -WorkingDir=CoreMangLib\cti\system\attributetargets\AttributeTargetsAssembly -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [fieldexpr1_1.cmd_10533] RelativePath=JIT\jit64\opt\cse\fieldexpr1_1\fieldexpr1_1.cmd WorkingDir=JIT\jit64\opt\cse\fieldexpr1_1 @@ -74604,14 +72876,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathAbs3.cmd_10577] -RelativePath=CoreMangLib\cti\system\math\MathAbs3\MathAbs3.cmd -WorkingDir=CoreMangLib\cti\system\math\MathAbs3 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [structarr_cs_r.cmd_10578] RelativePath=JIT\Methodical\MDArray\GaussJordan\structarr_cs_r\structarr_cs_r.cmd WorkingDir=JIT\Methodical\MDArray\GaussJordan\structarr_cs_r @@ -74620,14 +72884,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ObsoleteAttributeCtor1.cmd_10579] -RelativePath=CoreMangLib\cti\system\obsoleteattribute\ObsoleteAttributeCtor1\ObsoleteAttributeCtor1.cmd -WorkingDir=CoreMangLib\cti\system\obsoleteattribute\ObsoleteAttributeCtor1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [_il_dbgrefloc_u2.cmd_10580] RelativePath=JIT\Methodical\explicit\basic\_il_dbgrefloc_u2\_il_dbgrefloc_u2.cmd WorkingDir=JIT\Methodical\explicit\basic\_il_dbgrefloc_u2 @@ -74964,14 +73220,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathFAbs.cmd_10628] -RelativePath=CoreMangLib\cti\system\mathf\MathFAbs\MathFAbs.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFAbs -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [samethrowtwice_do.cmd_10629] RelativePath=JIT\Methodical\eh\rethrow\samethrowtwice_do\samethrowtwice_do.cmd WorkingDir=JIT\Methodical\eh\rethrow\samethrowtwice_do @@ -75484,14 +73732,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ObsoleteAttributeMessage.cmd_10705] -RelativePath=CoreMangLib\cti\system\obsoleteattribute\ObsoleteAttributeMessage\ObsoleteAttributeMessage.cmd -WorkingDir=CoreMangLib\cti\system\obsoleteattribute\ObsoleteAttributeMessage -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [_dbgaddsub.cmd_10706] RelativePath=JIT\Methodical\int64\unsigned\_dbgaddsub\_dbgaddsub.cmd WorkingDir=JIT\Methodical\int64\unsigned\_dbgaddsub @@ -75764,14 +74004,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[RuntimeMethodHandleEquals.cmd_10741] -RelativePath=CoreMangLib\cti\system\runtimemethodhandle\RuntimeMethodHandleEquals\RuntimeMethodHandleEquals.cmd -WorkingDir=CoreMangLib\cti\system\runtimemethodhandle\RuntimeMethodHandleEquals -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [eco1.cmd_10742] RelativePath=GC\Features\PartialCompaction\eco1\eco1.cmd WorkingDir=GC\Features\PartialCompaction\eco1 @@ -76556,14 +74788,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[EventArgsctor.cmd_10853] -RelativePath=CoreMangLib\cti\system\eventargs\EventArgsctor\EventArgsctor.cmd -WorkingDir=CoreMangLib\cti\system\eventargs\EventArgsctor -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [AutoResetEventSet.cmd_10854] RelativePath=CoreMangLib\cti\system\threading\autoresetevent\AutoResetEventSet\AutoResetEventSet.cmd WorkingDir=CoreMangLib\cti\system\threading\autoresetevent\AutoResetEventSet @@ -77540,14 +75764,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathMax8.cmd_10989] -RelativePath=CoreMangLib\cti\system\math\MathMax8\MathMax8.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMax8 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [5w1d-05_cs_ro.cmd_10990] RelativePath=JIT\Methodical\fp\exgen\5w1d-05_cs_ro\5w1d-05_cs_ro.cmd WorkingDir=JIT\Methodical\fp\exgen\5w1d-05_cs_ro @@ -77980,14 +76196,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[ArraySort2.cmd_11050] -RelativePath=CoreMangLib\cti\system\array\ArraySort2\ArraySort2.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [ConsoleMandel.cmd_11051] RelativePath=JIT\Performance\CodeQuality\SIMD\ConsoleMandel\ConsoleMandel\ConsoleMandel.cmd WorkingDir=JIT\Performance\CodeQuality\SIMD\ConsoleMandel\ConsoleMandel @@ -78460,14 +76668,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathMin2.cmd_11120] -RelativePath=CoreMangLib\cti\system\math\MathMin2\MathMin2.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMin2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [eh08_large.cmd_11121] RelativePath=JIT\jit64\localloc\ehverify\eh08_large\eh08_large.cmd WorkingDir=JIT\jit64\localloc\ehverify\eh08_large @@ -78524,14 +76724,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayGetEnumerator.cmd_11129] -RelativePath=CoreMangLib\cti\system\array\ArrayGetEnumerator\ArrayGetEnumerator.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayGetEnumerator -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [cse2_cs_d.cmd_11130] RelativePath=JIT\Directed\coverage\oldtests\cse2_cs_d\cse2_cs_d.cmd WorkingDir=JIT\Directed\coverage\oldtests\cse2_cs_d @@ -78660,14 +76852,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayIListRemove.cmd_11147] -RelativePath=CoreMangLib\cti\system\array\ArrayIListRemove\ArrayIListRemove.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIListRemove -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [n-body-3.cmd_11148] RelativePath=JIT\Performance\CodeQuality\BenchmarksGame\n-body\n-body-3\n-body-3.cmd WorkingDir=JIT\Performance\CodeQuality\BenchmarksGame\n-body\n-body-3 @@ -78940,14 +77124,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayBinarySearch2.cmd_11185] -RelativePath=CoreMangLib\cti\system\array\ArrayBinarySearch2\ArrayBinarySearch2.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayBinarySearch2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [_il_dbgrefloc_c.cmd_11186] RelativePath=JIT\Methodical\explicit\basic\_il_dbgrefloc_c\_il_dbgrefloc_c.cmd WorkingDir=JIT\Methodical\explicit\basic\_il_dbgrefloc_c @@ -79268,14 +77444,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[LayoutKindAuto.cmd_11234] -RelativePath=CoreMangLib\cti\system\runtime\interopservices\layoutkind\LayoutKindAuto\LayoutKindAuto.cmd -WorkingDir=CoreMangLib\cti\system\runtime\interopservices\layoutkind\LayoutKindAuto -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [GCSimulator_61.cmd_11235] RelativePath=GC\Scenarios\GCSimulator\GCSimulator_61\GCSimulator_61.cmd WorkingDir=GC\Scenarios\GCSimulator\GCSimulator_61 @@ -79388,14 +77556,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[ArrayGetLength.cmd_11249] -RelativePath=CoreMangLib\cti\system\array\ArrayGetLength\ArrayGetLength.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayGetLength -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [_rellcsmixed.cmd_11250] RelativePath=JIT\Methodical\Arrays\lcs\_rellcsmixed\_rellcsmixed.cmd WorkingDir=JIT\Methodical\Arrays\lcs\_rellcsmixed @@ -79676,14 +77836,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArraySort6.cmd_11291] -RelativePath=CoreMangLib\cti\system\array\ArraySort6\ArraySort6.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort6 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [GitHub_9945_2.cmd_11292] RelativePath=JIT\opt\Devirtualization\GitHub_9945_2\GitHub_9945_2.cmd WorkingDir=JIT\opt\Devirtualization\GitHub_9945_2 @@ -79692,14 +77844,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[EventHandlerCtor.cmd_11294] -RelativePath=CoreMangLib\cti\system\eventhandler_generic\EventHandlerCtor\EventHandlerCtor.cmd -WorkingDir=CoreMangLib\cti\system\eventhandler_generic\EventHandlerCtor -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [_dbginstance_il.cmd_11295] RelativePath=JIT\Methodical\Boxing\callconv\_dbginstance_il\_dbginstance_il.cmd WorkingDir=JIT\Methodical\Boxing\callconv\_dbginstance_il @@ -79772,14 +77916,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[MathAbs5.cmd_11304] -RelativePath=CoreMangLib\cti\system\math\MathAbs5\MathAbs5.cmd -WorkingDir=CoreMangLib\cti\system\math\MathAbs5 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [VectorDiv_r.cmd_11305] RelativePath=JIT\SIMD\VectorDiv_r\VectorDiv_r.cmd WorkingDir=JIT\SIMD\VectorDiv_r @@ -79852,14 +77988,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS HostStyle=0 -[MathSign7.cmd_11315] -RelativePath=CoreMangLib\cti\system\math\MathSign7\MathSign7.cmd -WorkingDir=CoreMangLib\cti\system\math\MathSign7 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;Pri1 -HostStyle=0 - [b85566.cmd_11316] RelativePath=JIT\Regression\VS-ia64-JIT\M00\b85566\b85566\b85566.cmd WorkingDir=JIT\Regression\VS-ia64-JIT\M00\b85566\b85566 diff --git a/tests/arm64/Tests.lst b/tests/arm64/Tests.lst index 915e26963f..5cabffc357 100644 --- a/tests/arm64/Tests.lst +++ b/tests/arm64/Tests.lst @@ -4604,814 +4604,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;Pri1 HostStyle=0 -[ArrayBinarySearch1.cmd_588] -RelativePath=CoreMangLib\cti\system\array\ArrayBinarySearch1\ArrayBinarySearch1.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayBinarySearch1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayBinarySearch1b.cmd_589] -RelativePath=CoreMangLib\cti\system\array\ArrayBinarySearch1b\ArrayBinarySearch1b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayBinarySearch1b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayBinarySearch2.cmd_590] -RelativePath=CoreMangLib\cti\system\array\ArrayBinarySearch2\ArrayBinarySearch2.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayBinarySearch2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayBinarySearch2b.cmd_591] -RelativePath=CoreMangLib\cti\system\array\ArrayBinarySearch2b\ArrayBinarySearch2b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayBinarySearch2b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayBinarySearch3.cmd_592] -RelativePath=CoreMangLib\cti\system\array\ArrayBinarySearch3\ArrayBinarySearch3.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayBinarySearch3 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayBinarySearch3b.cmd_593] -RelativePath=CoreMangLib\cti\system\array\ArrayBinarySearch3b\ArrayBinarySearch3b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayBinarySearch3b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayBinarySearch4.cmd_594] -RelativePath=CoreMangLib\cti\system\array\ArrayBinarySearch4\ArrayBinarySearch4.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayBinarySearch4 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayBinarySearch4b.cmd_595] -RelativePath=CoreMangLib\cti\system\array\ArrayBinarySearch4b\ArrayBinarySearch4b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayBinarySearch4b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayBinarySearch5.cmd_596] -RelativePath=CoreMangLib\cti\system\array\ArrayBinarySearch5\ArrayBinarySearch5.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayBinarySearch5 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayBinarySearch5b.cmd_597] -RelativePath=CoreMangLib\cti\system\array\ArrayBinarySearch5b\ArrayBinarySearch5b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayBinarySearch5b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayBinarySearch6.cmd_598] -RelativePath=CoreMangLib\cti\system\array\ArrayBinarySearch6\ArrayBinarySearch6.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayBinarySearch6 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayClear.cmd_599] -RelativePath=CoreMangLib\cti\system\array\ArrayClear\ArrayClear.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayClear -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayClone.cmd_600] -RelativePath=CoreMangLib\cti\system\array\ArrayClone\ArrayClone.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayClone -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayCopy1.cmd_601] -RelativePath=CoreMangLib\cti\system\array\ArrayCopy1\ArrayCopy1.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayCopy1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayCopy2.cmd_602] -RelativePath=CoreMangLib\cti\system\array\ArrayCopy2\ArrayCopy2.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayCopy2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayCopyTo.cmd_603] -RelativePath=CoreMangLib\cti\system\array\ArrayCopyTo\ArrayCopyTo.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayCopyTo -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayCreateInstance1.cmd_604] -RelativePath=CoreMangLib\cti\system\array\ArrayCreateInstance1\ArrayCreateInstance1.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayCreateInstance1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayCreateInstance1b.cmd_605] -RelativePath=CoreMangLib\cti\system\array\ArrayCreateInstance1b\ArrayCreateInstance1b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayCreateInstance1b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayCreateInstance2.cmd_606] -RelativePath=CoreMangLib\cti\system\array\ArrayCreateInstance2\ArrayCreateInstance2.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayCreateInstance2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayCreateInstance2b.cmd_607] -RelativePath=CoreMangLib\cti\system\array\ArrayCreateInstance2b\ArrayCreateInstance2b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayCreateInstance2b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayGetEnumerator.cmd_608] -RelativePath=CoreMangLib\cti\system\array\ArrayGetEnumerator\ArrayGetEnumerator.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayGetEnumerator -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayGetLength.cmd_609] -RelativePath=CoreMangLib\cti\system\array\ArrayGetLength\ArrayGetLength.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayGetLength -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayGetLowerBound.cmd_610] -RelativePath=CoreMangLib\cti\system\array\ArrayGetLowerBound\ArrayGetLowerBound.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayGetLowerBound -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayGetUpperBound.cmd_611] -RelativePath=CoreMangLib\cti\system\array\ArrayGetUpperBound\ArrayGetUpperBound.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayGetUpperBound -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayGetValue.cmd_612] -RelativePath=CoreMangLib\cti\system\array\ArrayGetValue\ArrayGetValue.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayGetValue -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayGetValue1.cmd_613] -RelativePath=CoreMangLib\cti\system\array\ArrayGetValue1\ArrayGetValue1.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayGetValue1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayGetValue2.cmd_614] -RelativePath=CoreMangLib\cti\system\array\ArrayGetValue2\ArrayGetValue2.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayGetValue2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayGetValue2b.cmd_615] -RelativePath=CoreMangLib\cti\system\array\ArrayGetValue2b\ArrayGetValue2b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayGetValue2b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayICollectionget_Count.cmd_616] -RelativePath=CoreMangLib\cti\system\array\ArrayICollectionget_Count\ArrayICollectionget_Count.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayICollectionget_Count -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayIListAdd.cmd_617] -RelativePath=CoreMangLib\cti\system\array\ArrayIListAdd\ArrayIListAdd.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIListAdd -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayIListClear.cmd_618] -RelativePath=CoreMangLib\cti\system\array\ArrayIListClear\ArrayIListClear.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIListClear -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayIListContains.cmd_619] -RelativePath=CoreMangLib\cti\system\array\ArrayIListContains\ArrayIListContains.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIListContains -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayIListget_item.cmd_620] -RelativePath=CoreMangLib\cti\system\array\ArrayIListget_item\ArrayIListget_item.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIListget_item -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayIListIndexOF.cmd_621] -RelativePath=CoreMangLib\cti\system\array\ArrayIListIndexOF\ArrayIListIndexOF.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIListIndexOF -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayIListInsert.cmd_622] -RelativePath=CoreMangLib\cti\system\array\ArrayIListInsert\ArrayIListInsert.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIListInsert -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayIListRemove.cmd_623] -RelativePath=CoreMangLib\cti\system\array\ArrayIListRemove\ArrayIListRemove.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIListRemove -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayIListRemoveAt.cmd_624] -RelativePath=CoreMangLib\cti\system\array\ArrayIListRemoveAt\ArrayIListRemoveAt.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIListRemoveAt -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayIListset_item.cmd_625] -RelativePath=CoreMangLib\cti\system\array\ArrayIListset_item\ArrayIListset_item.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIListset_item -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayIndexOf1.cmd_626] -RelativePath=CoreMangLib\cti\system\array\ArrayIndexOf1\ArrayIndexOf1.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIndexOf1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayIndexOf1b.cmd_627] -RelativePath=CoreMangLib\cti\system\array\ArrayIndexOf1b\ArrayIndexOf1b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIndexOf1b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayIndexOf2.cmd_628] -RelativePath=CoreMangLib\cti\system\array\ArrayIndexOf2\ArrayIndexOf2.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIndexOf2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayIndexOf2b.cmd_629] -RelativePath=CoreMangLib\cti\system\array\ArrayIndexOf2b\ArrayIndexOf2b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIndexOf2b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayIndexOf3.cmd_630] -RelativePath=CoreMangLib\cti\system\array\ArrayIndexOf3\ArrayIndexOf3.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIndexOf3 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayIndexOf3b.cmd_631] -RelativePath=CoreMangLib\cti\system\array\ArrayIndexOf3b\ArrayIndexOf3b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIndexOf3b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayIndexOf4.cmd_632] -RelativePath=CoreMangLib\cti\system\array\ArrayIndexOf4\ArrayIndexOf4.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIndexOf4 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayIndexOf4b.cmd_633] -RelativePath=CoreMangLib\cti\system\array\ArrayIndexOf4b\ArrayIndexOf4b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayIndexOf4b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayInitialize.cmd_634] -RelativePath=CoreMangLib\cti\system\array\ArrayInitialize\ArrayInitialize.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayInitialize -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayLastIndexOf1.cmd_635] -RelativePath=CoreMangLib\cti\system\array\ArrayLastIndexOf1\ArrayLastIndexOf1.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayLastIndexOf1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayLastIndexOf1b.cmd_636] -RelativePath=CoreMangLib\cti\system\array\ArrayLastIndexOf1b\ArrayLastIndexOf1b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayLastIndexOf1b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayLastIndexOf2.cmd_637] -RelativePath=CoreMangLib\cti\system\array\ArrayLastIndexOf2\ArrayLastIndexOf2.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayLastIndexOf2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayLastIndexOf2b.cmd_638] -RelativePath=CoreMangLib\cti\system\array\ArrayLastIndexOf2b\ArrayLastIndexOf2b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayLastIndexOf2b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayLastIndexOf3.cmd_639] -RelativePath=CoreMangLib\cti\system\array\ArrayLastIndexOf3\ArrayLastIndexOf3.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayLastIndexOf3 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayLastIndexOf3b.cmd_640] -RelativePath=CoreMangLib\cti\system\array\ArrayLastIndexOf3b\ArrayLastIndexOf3b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayLastIndexOf3b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayLastIndexOf4.cmd_641] -RelativePath=CoreMangLib\cti\system\array\ArrayLastIndexOf4\ArrayLastIndexOf4.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayLastIndexOf4 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayLength.cmd_642] -RelativePath=CoreMangLib\cti\system\array\ArrayLength\ArrayLength.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayLength -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayRank.cmd_643] -RelativePath=CoreMangLib\cti\system\array\ArrayRank\ArrayRank.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayRank -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayReserse1.cmd_644] -RelativePath=CoreMangLib\cti\system\array\ArrayReserse1\ArrayReserse1.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayReserse1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayReserse2.cmd_645] -RelativePath=CoreMangLib\cti\system\array\ArrayReserse2\ArrayReserse2.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayReserse2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayReverse1.cmd_646] -RelativePath=CoreMangLib\cti\system\array\ArrayReverse1\ArrayReverse1.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayReverse1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArrayReverse2.cmd_647] -RelativePath=CoreMangLib\cti\system\array\ArrayReverse2\ArrayReverse2.cmd -WorkingDir=CoreMangLib\cti\system\array\ArrayReverse2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArraySetValue1.cmd_648] -RelativePath=CoreMangLib\cti\system\array\ArraySetValue1\ArraySetValue1.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySetValue1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArraySetValue1b.cmd_649] -RelativePath=CoreMangLib\cti\system\array\ArraySetValue1b\ArraySetValue1b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySetValue1b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArraySetValue2.cmd_650] -RelativePath=CoreMangLib\cti\system\array\ArraySetValue2\ArraySetValue2.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySetValue2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArraySetValue2b.cmd_651] -RelativePath=CoreMangLib\cti\system\array\ArraySetValue2b\ArraySetValue2b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySetValue2b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArraySort1.cmd_652] -RelativePath=CoreMangLib\cti\system\array\ArraySort1\ArraySort1.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArraySort10.cmd_653] -RelativePath=CoreMangLib\cti\system\array\ArraySort10\ArraySort10.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort10 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArraySort11.cmd_654] -RelativePath=CoreMangLib\cti\system\array\ArraySort11\ArraySort11.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort11 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArraySort12.cmd_655] -RelativePath=CoreMangLib\cti\system\array\ArraySort12\ArraySort12.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort12 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArraySort13.cmd_656] -RelativePath=CoreMangLib\cti\system\array\ArraySort13\ArraySort13.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort13 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArraySort14.cmd_657] -RelativePath=CoreMangLib\cti\system\array\ArraySort14\ArraySort14.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort14 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS;REQ_LARGE_GEN0 -HostStyle=0 - -[ArraySort1b.cmd_658] -RelativePath=CoreMangLib\cti\system\array\ArraySort1b\ArraySort1b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort1b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArraySort2.cmd_659] -RelativePath=CoreMangLib\cti\system\array\ArraySort2\ArraySort2.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArraySort2b.cmd_660] -RelativePath=CoreMangLib\cti\system\array\ArraySort2b\ArraySort2b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort2b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArraySort3.cmd_661] -RelativePath=CoreMangLib\cti\system\array\ArraySort3\ArraySort3.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort3 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;LONG_RUNNING;EXPECTED_PASS;GCSTRESS_EXCLUDE -HostStyle=0 - -[ArraySort3b.cmd_662] -RelativePath=CoreMangLib\cti\system\array\ArraySort3b\ArraySort3b.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort3b -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS;15381;GCSTRESS_EXCLUDE -HostStyle=0 - -[ArraySort4.cmd_663] -RelativePath=CoreMangLib\cti\system\array\ArraySort4\ArraySort4.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort4 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArraySort5.cmd_664] -RelativePath=CoreMangLib\cti\system\array\ArraySort5\ArraySort5.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort5 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArraySort6.cmd_665] -RelativePath=CoreMangLib\cti\system\array\ArraySort6\ArraySort6.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort6 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArraySort7.cmd_666] -RelativePath=CoreMangLib\cti\system\array\ArraySort7\ArraySort7.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort7 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArraySort8.cmd_667] -RelativePath=CoreMangLib\cti\system\array\ArraySort8\ArraySort8.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort8 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ArraySort9.cmd_668] -RelativePath=CoreMangLib\cti\system\array\ArraySort9\ArraySort9.cmd -WorkingDir=CoreMangLib\cti\system\array\ArraySort9 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[DDB125472_GetHashCode.cmd_672] -RelativePath=CoreMangLib\cti\system\attribute\DDB125472_GetHashCode\DDB125472_GetHashCode.cmd -WorkingDir=CoreMangLib\cti\system\attribute\DDB125472_GetHashCode -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[GetHashCode.cmd_673] -RelativePath=CoreMangLib\cti\system\attribute\GetHashCode\GetHashCode.cmd -WorkingDir=CoreMangLib\cti\system\attribute\GetHashCode -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[AttributeTargetsAll.cmd_674] -RelativePath=CoreMangLib\cti\system\attributetargets\AttributeTargetsAll\AttributeTargetsAll.cmd -WorkingDir=CoreMangLib\cti\system\attributetargets\AttributeTargetsAll -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[AttributeTargetsAssembly.cmd_675] -RelativePath=CoreMangLib\cti\system\attributetargets\AttributeTargetsAssembly\AttributeTargetsAssembly.cmd -WorkingDir=CoreMangLib\cti\system\attributetargets\AttributeTargetsAssembly -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[AttributeTargetsClass.cmd_676] -RelativePath=CoreMangLib\cti\system\attributetargets\AttributeTargetsClass\AttributeTargetsClass.cmd -WorkingDir=CoreMangLib\cti\system\attributetargets\AttributeTargetsClass -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[AttributeTargetsConstructor.cmd_677] -RelativePath=CoreMangLib\cti\system\attributetargets\AttributeTargetsConstructor\AttributeTargetsConstructor.cmd -WorkingDir=CoreMangLib\cti\system\attributetargets\AttributeTargetsConstructor -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[AttributeTargetsDelegate.cmd_678] -RelativePath=CoreMangLib\cti\system\attributetargets\AttributeTargetsDelegate\AttributeTargetsDelegate.cmd -WorkingDir=CoreMangLib\cti\system\attributetargets\AttributeTargetsDelegate -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[AttributeTargetsEnum.cmd_679] -RelativePath=CoreMangLib\cti\system\attributetargets\AttributeTargetsEnum\AttributeTargetsEnum.cmd -WorkingDir=CoreMangLib\cti\system\attributetargets\AttributeTargetsEnum -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[AttributeTargetsEvent.cmd_680] -RelativePath=CoreMangLib\cti\system\attributetargets\AttributeTargetsEvent\AttributeTargetsEvent.cmd -WorkingDir=CoreMangLib\cti\system\attributetargets\AttributeTargetsEvent -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[AttributeTargetsField.cmd_681] -RelativePath=CoreMangLib\cti\system\attributetargets\AttributeTargetsField\AttributeTargetsField.cmd -WorkingDir=CoreMangLib\cti\system\attributetargets\AttributeTargetsField -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[AttributeTargetsGenericParameter.cmd_682] -RelativePath=CoreMangLib\cti\system\attributetargets\AttributeTargetsGenericParameter\AttributeTargetsGenericParameter.cmd -WorkingDir=CoreMangLib\cti\system\attributetargets\AttributeTargetsGenericParameter -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[AttributeTargetsInterface.cmd_683] -RelativePath=CoreMangLib\cti\system\attributetargets\AttributeTargetsInterface\AttributeTargetsInterface.cmd -WorkingDir=CoreMangLib\cti\system\attributetargets\AttributeTargetsInterface -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[AttributeTargetsMethod.cmd_684] -RelativePath=CoreMangLib\cti\system\attributetargets\AttributeTargetsMethod\AttributeTargetsMethod.cmd -WorkingDir=CoreMangLib\cti\system\attributetargets\AttributeTargetsMethod -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[AttributeTargetsModule.cmd_685] -RelativePath=CoreMangLib\cti\system\attributetargets\AttributeTargetsModule\AttributeTargetsModule.cmd -WorkingDir=CoreMangLib\cti\system\attributetargets\AttributeTargetsModule -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[AttributeTargetsParameter.cmd_686] -RelativePath=CoreMangLib\cti\system\attributetargets\AttributeTargetsParameter\AttributeTargetsParameter.cmd -WorkingDir=CoreMangLib\cti\system\attributetargets\AttributeTargetsParameter -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[AttributeTargetsProperty.cmd_687] -RelativePath=CoreMangLib\cti\system\attributetargets\AttributeTargetsProperty\AttributeTargetsProperty.cmd -WorkingDir=CoreMangLib\cti\system\attributetargets\AttributeTargetsProperty -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[AttributeTargetsReturnValue.cmd_688] -RelativePath=CoreMangLib\cti\system\attributetargets\AttributeTargetsReturnValue\AttributeTargetsReturnValue.cmd -WorkingDir=CoreMangLib\cti\system\attributetargets\AttributeTargetsReturnValue -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[AttributeTargetsStruct.cmd_689] -RelativePath=CoreMangLib\cti\system\attributetargets\AttributeTargetsStruct\AttributeTargetsStruct.cmd -WorkingDir=CoreMangLib\cti\system\attributetargets\AttributeTargetsStruct -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[AttributeUsageAttributeAllowMultiple.cmd_690] -RelativePath=CoreMangLib\cti\system\attributeusageattribute\AttributeUsageAttributeAllowMultiple\AttributeUsageAttributeAllowMultiple.cmd -WorkingDir=CoreMangLib\cti\system\attributeusageattribute\AttributeUsageAttributeAllowMultiple -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[AttributeUsageAttributeCtor.cmd_691] -RelativePath=CoreMangLib\cti\system\attributeusageattribute\AttributeUsageAttributeCtor\AttributeUsageAttributeCtor.cmd -WorkingDir=CoreMangLib\cti\system\attributeusageattribute\AttributeUsageAttributeCtor -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - [BooleanCompareTo_Boolean.cmd_697] RelativePath=CoreMangLib\cti\system\boolean\BooleanCompareTo_Boolean\BooleanCompareTo_Boolean.cmd WorkingDir=CoreMangLib\cti\system\boolean\BooleanCompareTo_Boolean @@ -6628,46 +5820,6 @@ MaxAllowedDurationSeconds=600 Categories=Pri1;RT;EXPECTED_PASS HostStyle=0 -[DebuggingModesDefault.cmd_1353] -RelativePath=CoreMangLib\cti\system\diagnostics\debuggingmodes\DebuggingModesDefault\DebuggingModesDefault.cmd -WorkingDir=CoreMangLib\cti\system\diagnostics\debuggingmodes\DebuggingModesDefault -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[DebuggingModesDisableOptimizations.cmd_1354] -RelativePath=CoreMangLib\cti\system\diagnostics\debuggingmodes\DebuggingModesDisableOptimizations\DebuggingModesDisableOptimizations.cmd -WorkingDir=CoreMangLib\cti\system\diagnostics\debuggingmodes\DebuggingModesDisableOptimizations -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[DebuggingModesEnableEditAndContinue.cmd_1355] -RelativePath=CoreMangLib\cti\system\diagnostics\debuggingmodes\DebuggingModesEnableEditAndContinue\DebuggingModesEnableEditAndContinue.cmd -WorkingDir=CoreMangLib\cti\system\diagnostics\debuggingmodes\DebuggingModesEnableEditAndContinue -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[DebuggingModesIgnoreSymbolStoreSequencePoints.cmd_1356] -RelativePath=CoreMangLib\cti\system\diagnostics\debuggingmodes\DebuggingModesIgnoreSymbolStoreSequencePoints\DebuggingModesIgnoreSymbolStoreSequencePoints.cmd -WorkingDir=CoreMangLib\cti\system\diagnostics\debuggingmodes\DebuggingModesIgnoreSymbolStoreSequencePoints -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[DebuggingModesNone.cmd_1357] -RelativePath=CoreMangLib\cti\system\diagnostics\debuggingmodes\DebuggingModesNone\DebuggingModesNone.cmd -WorkingDir=CoreMangLib\cti\system\diagnostics\debuggingmodes\DebuggingModesNone -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - [DllNotFoundException1.cmd_1361] RelativePath=CoreMangLib\cti\system\dllnotfoundexception\DllNotFoundException1\DllNotFoundException1.cmd WorkingDir=CoreMangLib\cti\system\dllnotfoundexception\DllNotFoundException1 @@ -6956,94 +6108,6 @@ MaxAllowedDurationSeconds=600 Categories=Pri1;RT;EXPECTED_PASS HostStyle=0 -[EnumIsDefined.cmd_1400] -RelativePath=CoreMangLib\cti\system\enum\EnumIsDefined\EnumIsDefined.cmd -WorkingDir=CoreMangLib\cti\system\enum\EnumIsDefined -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[EnumToObjectb.cmd_1401] -RelativePath=CoreMangLib\cti\system\enum\EnumToObjectb\EnumToObjectb.cmd -WorkingDir=CoreMangLib\cti\system\enum\EnumToObjectb -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[EnumToString.cmd_1402] -RelativePath=CoreMangLib\cti\system\enum\EnumToString\EnumToString.cmd -WorkingDir=CoreMangLib\cti\system\enum\EnumToString -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[EnumToString3.cmd_1403] -RelativePath=CoreMangLib\cti\system\enum\EnumToString3\EnumToString3.cmd -WorkingDir=CoreMangLib\cti\system\enum\EnumToString3 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[EnvironmentNewLine.cmd_1404] -RelativePath=CoreMangLib\cti\system\environment\EnvironmentNewLine\EnvironmentNewLine.cmd -WorkingDir=CoreMangLib\cti\system\environment\EnvironmentNewLine -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[EventArgsctor.cmd_1405] -RelativePath=CoreMangLib\cti\system\eventargs\EventArgsctor\EventArgsctor.cmd -WorkingDir=CoreMangLib\cti\system\eventargs\EventArgsctor -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[EventHandlerInvoke.cmd_1406] -RelativePath=CoreMangLib\cti\system\eventhandler\EventHandlerInvoke\EventHandlerInvoke.cmd -WorkingDir=CoreMangLib\cti\system\eventhandler\EventHandlerInvoke -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[EventHandlerBeginInvoke.cmd_1407] -RelativePath=CoreMangLib\cti\system\eventhandler_generic\EventHandlerBeginInvoke\EventHandlerBeginInvoke.cmd -WorkingDir=CoreMangLib\cti\system\eventhandler_generic\EventHandlerBeginInvoke -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[EventHandlerCtor.cmd_1408] -RelativePath=CoreMangLib\cti\system\eventhandler_generic\EventHandlerCtor\EventHandlerCtor.cmd -WorkingDir=CoreMangLib\cti\system\eventhandler_generic\EventHandlerCtor -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[EventHandlerEndInvoke.cmd_1409] -RelativePath=CoreMangLib\cti\system\eventhandler_generic\EventHandlerEndInvoke\EventHandlerEndInvoke.cmd -WorkingDir=CoreMangLib\cti\system\eventhandler_generic\EventHandlerEndInvoke -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[EventHandlerInvoke.cmd_1410] -RelativePath=CoreMangLib\cti\system\eventhandler_generic\EventHandlerInvoke\EventHandlerInvoke.cmd -WorkingDir=CoreMangLib\cti\system\eventhandler_generic\EventHandlerInvoke -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - [FlagsAttributeCtor.cmd_1415] RelativePath=CoreMangLib\cti\system\flagsattribute\FlagsAttributeCtor\FlagsAttributeCtor.cmd WorkingDir=CoreMangLib\cti\system\flagsattribute\FlagsAttributeCtor @@ -7692,478 +6756,6 @@ MaxAllowedDurationSeconds=600 Categories=Pri1;RT;EXPECTED_PASS HostStyle=0 -[MathAbs1.cmd_1758] -RelativePath=CoreMangLib\cti\system\math\MathAbs1\MathAbs1.cmd -WorkingDir=CoreMangLib\cti\system\math\MathAbs1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathAbs2.cmd_1759] -RelativePath=CoreMangLib\cti\system\math\MathAbs2\MathAbs2.cmd -WorkingDir=CoreMangLib\cti\system\math\MathAbs2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathAbs3.cmd_1760] -RelativePath=CoreMangLib\cti\system\math\MathAbs3\MathAbs3.cmd -WorkingDir=CoreMangLib\cti\system\math\MathAbs3 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathAbs4.cmd_1761] -RelativePath=CoreMangLib\cti\system\math\MathAbs4\MathAbs4.cmd -WorkingDir=CoreMangLib\cti\system\math\MathAbs4 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathAbs5.cmd_1762] -RelativePath=CoreMangLib\cti\system\math\MathAbs5\MathAbs5.cmd -WorkingDir=CoreMangLib\cti\system\math\MathAbs5 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathAbs6.cmd_1763] -RelativePath=CoreMangLib\cti\system\math\MathAbs6\MathAbs6.cmd -WorkingDir=CoreMangLib\cti\system\math\MathAbs6 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathAbs7.cmd_1764] -RelativePath=CoreMangLib\cti\system\math\MathAbs7\MathAbs7.cmd -WorkingDir=CoreMangLib\cti\system\math\MathAbs7 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathAcos.cmd_1765] -RelativePath=CoreMangLib\cti\system\math\MathAcos\MathAcos.cmd -WorkingDir=CoreMangLib\cti\system\math\MathAcos -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathAtan.cmd_1766] -RelativePath=CoreMangLib\cti\system\math\MathAtan\MathAtan.cmd -WorkingDir=CoreMangLib\cti\system\math\MathAtan -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathAtan2.cmd_1767] -RelativePath=CoreMangLib\cti\system\math\MathAtan2\MathAtan2.cmd -WorkingDir=CoreMangLib\cti\system\math\MathAtan2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathCeiling.cmd_1768] -RelativePath=CoreMangLib\cti\system\math\MathCeiling\MathCeiling.cmd -WorkingDir=CoreMangLib\cti\system\math\MathCeiling -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathCos.cmd_1769] -RelativePath=CoreMangLib\cti\system\math\MathCos\MathCos.cmd -WorkingDir=CoreMangLib\cti\system\math\MathCos -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathCosh.cmd_1770] -RelativePath=CoreMangLib\cti\system\math\MathCosh\MathCosh.cmd -WorkingDir=CoreMangLib\cti\system\math\MathCosh -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathE.cmd_1771] -RelativePath=CoreMangLib\cti\system\math\MathE\MathE.cmd -WorkingDir=CoreMangLib\cti\system\math\MathE -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathExp.cmd_1772] -RelativePath=CoreMangLib\cti\system\math\MathExp\MathExp.cmd -WorkingDir=CoreMangLib\cti\system\math\MathExp -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathFloor.cmd_1773] -RelativePath=CoreMangLib\cti\system\math\MathFloor\MathFloor.cmd -WorkingDir=CoreMangLib\cti\system\math\MathFloor -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathIEEERemainder.cmd_1774] -RelativePath=CoreMangLib\cti\system\math\MathIEEERemainder\MathIEEERemainder.cmd -WorkingDir=CoreMangLib\cti\system\math\MathIEEERemainder -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathLog.cmd_1775] -RelativePath=CoreMangLib\cti\system\math\MathLog\MathLog.cmd -WorkingDir=CoreMangLib\cti\system\math\MathLog -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathLog10.cmd_1776] -RelativePath=CoreMangLib\cti\system\math\MathLog10\MathLog10.cmd -WorkingDir=CoreMangLib\cti\system\math\MathLog10 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathMax1.cmd_1777] -RelativePath=CoreMangLib\cti\system\math\MathMax1\MathMax1.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMax1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathMax10.cmd_1778] -RelativePath=CoreMangLib\cti\system\math\MathMax10\MathMax10.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMax10 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathMax11.cmd_1779] -RelativePath=CoreMangLib\cti\system\math\MathMax11\MathMax11.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMax11 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathMax2.cmd_1780] -RelativePath=CoreMangLib\cti\system\math\MathMax2\MathMax2.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMax2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathMax3.cmd_1781] -RelativePath=CoreMangLib\cti\system\math\MathMax3\MathMax3.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMax3 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathMax4.cmd_1782] -RelativePath=CoreMangLib\cti\system\math\MathMax4\MathMax4.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMax4 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathMax5.cmd_1783] -RelativePath=CoreMangLib\cti\system\math\MathMax5\MathMax5.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMax5 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathMax6.cmd_1784] -RelativePath=CoreMangLib\cti\system\math\MathMax6\MathMax6.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMax6 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathMax7.cmd_1785] -RelativePath=CoreMangLib\cti\system\math\MathMax7\MathMax7.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMax7 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathMax8.cmd_1786] -RelativePath=CoreMangLib\cti\system\math\MathMax8\MathMax8.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMax8 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathMax9.cmd_1787] -RelativePath=CoreMangLib\cti\system\math\MathMax9\MathMax9.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMax9 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathMin1.cmd_1788] -RelativePath=CoreMangLib\cti\system\math\MathMin1\MathMin1.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMin1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathMin10.cmd_1789] -RelativePath=CoreMangLib\cti\system\math\MathMin10\MathMin10.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMin10 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathMin11.cmd_1790] -RelativePath=CoreMangLib\cti\system\math\MathMin11\MathMin11.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMin11 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathMin2.cmd_1791] -RelativePath=CoreMangLib\cti\system\math\MathMin2\MathMin2.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMin2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathMin3.cmd_1792] -RelativePath=CoreMangLib\cti\system\math\MathMin3\MathMin3.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMin3 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathMin4.cmd_1793] -RelativePath=CoreMangLib\cti\system\math\MathMin4\MathMin4.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMin4 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathMin5.cmd_1794] -RelativePath=CoreMangLib\cti\system\math\MathMin5\MathMin5.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMin5 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathMin6.cmd_1795] -RelativePath=CoreMangLib\cti\system\math\MathMin6\MathMin6.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMin6 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathMin7.cmd_1796] -RelativePath=CoreMangLib\cti\system\math\MathMin7\MathMin7.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMin7 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathMin8.cmd_1797] -RelativePath=CoreMangLib\cti\system\math\MathMin8\MathMin8.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMin8 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathMin9.cmd_1798] -RelativePath=CoreMangLib\cti\system\math\MathMin9\MathMin9.cmd -WorkingDir=CoreMangLib\cti\system\math\MathMin9 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathPI.cmd_1799] -RelativePath=CoreMangLib\cti\system\math\MathPI\MathPI.cmd -WorkingDir=CoreMangLib\cti\system\math\MathPI -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathPow.cmd_1800] -RelativePath=CoreMangLib\cti\system\math\MathPow\MathPow.cmd -WorkingDir=CoreMangLib\cti\system\math\MathPow -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[mathRound1.cmd_1801] -RelativePath=CoreMangLib\cti\system\math\mathRound1\mathRound1.cmd -WorkingDir=CoreMangLib\cti\system\math\mathRound1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathRound2.cmd_1802] -RelativePath=CoreMangLib\cti\system\math\MathRound2\MathRound2.cmd -WorkingDir=CoreMangLib\cti\system\math\MathRound2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathRound3.cmd_1803] -RelativePath=CoreMangLib\cti\system\math\MathRound3\MathRound3.cmd -WorkingDir=CoreMangLib\cti\system\math\MathRound3 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathRound4.cmd_1804] -RelativePath=CoreMangLib\cti\system\math\MathRound4\MathRound4.cmd -WorkingDir=CoreMangLib\cti\system\math\MathRound4 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathSign1.cmd_1805] -RelativePath=CoreMangLib\cti\system\math\MathSign1\MathSign1.cmd -WorkingDir=CoreMangLib\cti\system\math\MathSign1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathSign2.cmd_1806] -RelativePath=CoreMangLib\cti\system\math\MathSign2\MathSign2.cmd -WorkingDir=CoreMangLib\cti\system\math\MathSign2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathSign3.cmd_1807] -RelativePath=CoreMangLib\cti\system\math\MathSign3\MathSign3.cmd -WorkingDir=CoreMangLib\cti\system\math\MathSign3 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathSign4.cmd_1808] -RelativePath=CoreMangLib\cti\system\math\MathSign4\MathSign4.cmd -WorkingDir=CoreMangLib\cti\system\math\MathSign4 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathSign5.cmd_1809] -RelativePath=CoreMangLib\cti\system\math\MathSign5\MathSign5.cmd -WorkingDir=CoreMangLib\cti\system\math\MathSign5 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathSign6.cmd_1810] -RelativePath=CoreMangLib\cti\system\math\MathSign6\MathSign6.cmd -WorkingDir=CoreMangLib\cti\system\math\MathSign6 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathSign7.cmd_1811] -RelativePath=CoreMangLib\cti\system\math\MathSign7\MathSign7.cmd -WorkingDir=CoreMangLib\cti\system\math\MathSign7 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathSin.cmd_1812] -RelativePath=CoreMangLib\cti\system\math\MathSin\MathSin.cmd -WorkingDir=CoreMangLib\cti\system\math\MathSin -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathSinh.cmd_1813] -RelativePath=CoreMangLib\cti\system\math\MathSinh\MathSinh.cmd -WorkingDir=CoreMangLib\cti\system\math\MathSinh -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathSqrt.cmd_1814] -RelativePath=CoreMangLib\cti\system\math\MathSqrt\MathSqrt.cmd -WorkingDir=CoreMangLib\cti\system\math\MathSqrt -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathTan.cmd_1815] -RelativePath=CoreMangLib\cti\system\math\MathTan\MathTan.cmd -WorkingDir=CoreMangLib\cti\system\math\MathTan -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MathTanh.cmd_1816] -RelativePath=CoreMangLib\cti\system\math\MathTanh\MathTanh.cmd -WorkingDir=CoreMangLib\cti\system\math\MathTanh -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - [MulticastDelegateCombineImpl.cmd_1835] RelativePath=CoreMangLib\cti\system\multicastdelegate\MulticastDelegateCombineImpl\MulticastDelegateCombineImpl.cmd WorkingDir=CoreMangLib\cti\system\multicastdelegate\MulticastDelegateCombineImpl @@ -8260,54 +6852,6 @@ MaxAllowedDurationSeconds=600 Categories=Pri1;RT;EXPECTED_PASS HostStyle=0 -[ObsoleteAttributeCtor1.cmd_1867] -RelativePath=CoreMangLib\cti\system\obsoleteattribute\ObsoleteAttributeCtor1\ObsoleteAttributeCtor1.cmd -WorkingDir=CoreMangLib\cti\system\obsoleteattribute\ObsoleteAttributeCtor1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ObsoleteAttributeCtor2.cmd_1868] -RelativePath=CoreMangLib\cti\system\obsoleteattribute\ObsoleteAttributeCtor2\ObsoleteAttributeCtor2.cmd -WorkingDir=CoreMangLib\cti\system\obsoleteattribute\ObsoleteAttributeCtor2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ObsoleteAttributeCtor3.cmd_1869] -RelativePath=CoreMangLib\cti\system\obsoleteattribute\ObsoleteAttributeCtor3\ObsoleteAttributeCtor3.cmd -WorkingDir=CoreMangLib\cti\system\obsoleteattribute\ObsoleteAttributeCtor3 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ObsoleteAttributeIsError.cmd_1870] -RelativePath=CoreMangLib\cti\system\obsoleteattribute\ObsoleteAttributeIsError\ObsoleteAttributeIsError.cmd -WorkingDir=CoreMangLib\cti\system\obsoleteattribute\ObsoleteAttributeIsError -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ObsoleteAttributeMessage.cmd_1871] -RelativePath=CoreMangLib\cti\system\obsoleteattribute\ObsoleteAttributeMessage\ObsoleteAttributeMessage.cmd -WorkingDir=CoreMangLib\cti\system\obsoleteattribute\ObsoleteAttributeMessage -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[ParamArrayAttributeCtor.cmd_1878] -RelativePath=CoreMangLib\cti\system\paramarrayattribute\ParamArrayAttributeCtor\ParamArrayAttributeCtor.cmd -WorkingDir=CoreMangLib\cti\system\paramarrayattribute\ParamArrayAttributeCtor -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - [AmbiguousMatchExceptionCtor1.cmd_1896] RelativePath=CoreMangLib\cti\system\reflection\ambiguousmatchexception\AmbiguousMatchExceptionCtor1\AmbiguousMatchExceptionCtor1.cmd WorkingDir=CoreMangLib\cti\system\reflection\ambiguousmatchexception\AmbiguousMatchExceptionCtor1 @@ -8556,62 +7100,6 @@ MaxAllowedDurationSeconds=600 Categories=Pri1;RT;EXPECTED_PASS HostStyle=0 -[MissingManifestResourceExceptionCtor1.cmd_2332] -RelativePath=CoreMangLib\cti\system\resources\missingmanifestresourceexception\MissingManifestResourceExceptionCtor1\MissingManifestResourceExceptionCtor1.cmd -WorkingDir=CoreMangLib\cti\system\resources\missingmanifestresourceexception\MissingManifestResourceExceptionCtor1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MissingManifestResourceExceptionCtor2.cmd_2333] -RelativePath=CoreMangLib\cti\system\resources\missingmanifestresourceexception\MissingManifestResourceExceptionCtor2\MissingManifestResourceExceptionCtor2.cmd -WorkingDir=CoreMangLib\cti\system\resources\missingmanifestresourceexception\MissingManifestResourceExceptionCtor2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[MissingManifestResourceExceptionCtor3.cmd_2334] -RelativePath=CoreMangLib\cti\system\resources\missingmanifestresourceexception\MissingManifestResourceExceptionCtor3\MissingManifestResourceExceptionCtor3.cmd -WorkingDir=CoreMangLib\cti\system\resources\missingmanifestresourceexception\MissingManifestResourceExceptionCtor3 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[CultureName.cmd_2335] -RelativePath=CoreMangLib\cti\system\resources\neutralresourceslanguageattribute\CultureName\CultureName.cmd -WorkingDir=CoreMangLib\cti\system\resources\neutralresourceslanguageattribute\CultureName -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[NeutralResourcesLanguageAttributeCtor.cmd_2336] -RelativePath=CoreMangLib\cti\system\resources\neutralresourceslanguageattribute\NeutralResourcesLanguageAttributeCtor\NeutralResourcesLanguageAttributeCtor.cmd -WorkingDir=CoreMangLib\cti\system\resources\neutralresourceslanguageattribute\NeutralResourcesLanguageAttributeCtor -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[AttributeCtor.cmd_2337] -RelativePath=CoreMangLib\cti\system\resources\satellitecontractversionattribute\AttributeCtor\AttributeCtor.cmd -WorkingDir=CoreMangLib\cti\system\resources\satellitecontractversionattribute\AttributeCtor -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[AttributeVersion.cmd_2338] -RelativePath=CoreMangLib\cti\system\resources\satellitecontractversionattribute\AttributeVersion\AttributeVersion.cmd -WorkingDir=CoreMangLib\cti\system\resources\satellitecontractversionattribute\AttributeVersion -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - [ATPACtor.cmd_2339] RelativePath=CoreMangLib\cti\system\runtime\compilerservices\accessedthroughpropertyattribute\ATPACtor\ATPACtor.cmd WorkingDir=CoreMangLib\cti\system\runtime\compilerservices\accessedthroughpropertyattribute\ATPACtor @@ -8708,14 +7196,6 @@ MaxAllowedDurationSeconds=600 Categories=Pri1;RT;EXPECTED_PASS HostStyle=0 -[GetHashCode.cmd_2351] -RelativePath=CoreMangLib\cti\system\runtime\compilerservices\runtimehelpers\GetHashCode\GetHashCode.cmd -WorkingDir=CoreMangLib\cti\system\runtime\compilerservices\runtimehelpers\GetHashCode -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - [DecimalConstantAttributeCtor.cmd_2352] RelativePath=CoreMangLib\cti\system\runtime\decimalconstantattribute\DecimalConstantAttributeCtor\DecimalConstantAttributeCtor.cmd WorkingDir=CoreMangLib\cti\system\runtime\decimalconstantattribute\DecimalConstantAttributeCtor @@ -8756,22 +7236,6 @@ MaxAllowedDurationSeconds=600 Categories=Pri1;RT;EXPECTED_PASS HostStyle=0 -[CallingConventionWinapi.cmd_2357] -RelativePath=CoreMangLib\cti\system\runtime\interopservices\callingconvention\CallingConventionWinapi\CallingConventionWinapi.cmd -WorkingDir=CoreMangLib\cti\system\runtime\interopservices\callingconvention\CallingConventionWinapi -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[CharSetUnicode.cmd_2358] -RelativePath=CoreMangLib\cti\system\runtime\interopservices\charset\CharSetUnicode\CharSetUnicode.cmd -WorkingDir=CoreMangLib\cti\system\runtime\interopservices\charset\CharSetUnicode -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - [FieldOffsetAttributeCtor.cmd_2359] RelativePath=CoreMangLib\cti\system\runtime\interopservices\fieldoffsetattribute\FieldOffsetAttributeCtor\FieldOffsetAttributeCtor.cmd WorkingDir=CoreMangLib\cti\system\runtime\interopservices\fieldoffsetattribute\FieldOffsetAttributeCtor @@ -8820,38 +7284,6 @@ MaxAllowedDurationSeconds=600 Categories=Pri1;RT;EXPECTED_PASS HostStyle=0 -[GCHandleTypeNormal.cmd_2365] -RelativePath=CoreMangLib\cti\system\runtime\interopservices\gchandletype\GCHandleTypeNormal\GCHandleTypeNormal.cmd -WorkingDir=CoreMangLib\cti\system\runtime\interopservices\gchandletype\GCHandleTypeNormal -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[GCHandleTypePinned.cmd_2366] -RelativePath=CoreMangLib\cti\system\runtime\interopservices\gchandletype\GCHandleTypePinned\GCHandleTypePinned.cmd -WorkingDir=CoreMangLib\cti\system\runtime\interopservices\gchandletype\GCHandleTypePinned -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[GCHandleTypeWeak.cmd_2367] -RelativePath=CoreMangLib\cti\system\runtime\interopservices\gchandletype\GCHandleTypeWeak\GCHandleTypeWeak.cmd -WorkingDir=CoreMangLib\cti\system\runtime\interopservices\gchandletype\GCHandleTypeWeak -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[GCHandleTypeWeakTrackResurrection.cmd_2368] -RelativePath=CoreMangLib\cti\system\runtime\interopservices\gchandletype\GCHandleTypeWeakTrackResurrection\GCHandleTypeWeakTrackResurrection.cmd -WorkingDir=CoreMangLib\cti\system\runtime\interopservices\gchandletype\GCHandleTypeWeakTrackResurrection -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - [InAttributeCtor.cmd_2369] RelativePath=CoreMangLib\cti\system\runtime\interopservices\inattribute\InAttributeCtor\InAttributeCtor.cmd WorkingDir=CoreMangLib\cti\system\runtime\interopservices\inattribute\InAttributeCtor @@ -8860,22 +7292,6 @@ MaxAllowedDurationSeconds=600 Categories=Pri1;RT;EXPECTED_PASS HostStyle=0 -[LayoutKindAuto.cmd_2370] -RelativePath=CoreMangLib\cti\system\runtime\interopservices\layoutkind\LayoutKindAuto\LayoutKindAuto.cmd -WorkingDir=CoreMangLib\cti\system\runtime\interopservices\layoutkind\LayoutKindAuto -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[LayoutKindSequential.cmd_2371] -RelativePath=CoreMangLib\cti\system\runtime\interopservices\layoutkind\LayoutKindSequential\LayoutKindSequential.cmd -WorkingDir=CoreMangLib\cti\system\runtime\interopservices\layoutkind\LayoutKindSequential -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - [MarshalSizeOf1_PSC.cmd_2372] RelativePath=CoreMangLib\cti\system\runtime\interopservices\marshal\MarshalSizeOf1_PSC\MarshalSizeOf1_PSC.cmd WorkingDir=CoreMangLib\cti\system\runtime\interopservices\marshal\MarshalSizeOf1_PSC @@ -9108,62 +7524,6 @@ MaxAllowedDurationSeconds=600 Categories=Pri1;RT;EXPECTED_PASS HostStyle=0 -[UnmanagedType.cmd_2401] -RelativePath=CoreMangLib\cti\system\runtime\interopservices\unmanagedtype\UnmanagedType\UnmanagedType.cmd -WorkingDir=CoreMangLib\cti\system\runtime\interopservices\unmanagedtype\UnmanagedType -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[RuntimeFieldHandleEquals.cmd_2402] -RelativePath=CoreMangLib\cti\system\runtimefieldhandle\RuntimeFieldHandleEquals\RuntimeFieldHandleEquals.cmd -WorkingDir=CoreMangLib\cti\system\runtimefieldhandle\RuntimeFieldHandleEquals -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[RuntimeFieldHandleGetHashCode.cmd_2403] -RelativePath=CoreMangLib\cti\system\runtimefieldhandle\RuntimeFieldHandleGetHashCode\RuntimeFieldHandleGetHashCode.cmd -WorkingDir=CoreMangLib\cti\system\runtimefieldhandle\RuntimeFieldHandleGetHashCode -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[RuntimeMethodHandleEquals.cmd_2404] -RelativePath=CoreMangLib\cti\system\runtimemethodhandle\RuntimeMethodHandleEquals\RuntimeMethodHandleEquals.cmd -WorkingDir=CoreMangLib\cti\system\runtimemethodhandle\RuntimeMethodHandleEquals -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[RuntimeMethodHanldeGetHashCode.cmd_2405] -RelativePath=CoreMangLib\cti\system\runtimemethodhandle\RuntimeMethodHanldeGetHashCode\RuntimeMethodHanldeGetHashCode.cmd -WorkingDir=CoreMangLib\cti\system\runtimemethodhandle\RuntimeMethodHanldeGetHashCode -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[RuntimeTypeHandleEquals.cmd_2406] -RelativePath=CoreMangLib\cti\system\runtimetypehandle\RuntimeTypeHandleEquals\RuntimeTypeHandleEquals.cmd -WorkingDir=CoreMangLib\cti\system\runtimetypehandle\RuntimeTypeHandleEquals -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[RuntimeTypeHandleGetHashCode.cmd_2407] -RelativePath=CoreMangLib\cti\system\runtimetypehandle\RuntimeTypeHandleGetHashCode\RuntimeTypeHandleGetHashCode.cmd -WorkingDir=CoreMangLib\cti\system\runtimetypehandle\RuntimeTypeHandleGetHashCode -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - [SByteCompareTo2.cmd_2408] RelativePath=CoreMangLib\cti\system\sbyte\SByteCompareTo2\SByteCompareTo2.cmd WorkingDir=CoreMangLib\cti\system\sbyte\SByteCompareTo2 @@ -10292,38 +8652,6 @@ MaxAllowedDurationSeconds=600 Categories=Pri1;RT;EXPECTED_PASS HostStyle=0 -[TypeLoadExceptionCtor1.cmd_2727] -RelativePath=CoreMangLib\cti\system\typeloadexception\TypeLoadExceptionCtor1\TypeLoadExceptionCtor1.cmd -WorkingDir=CoreMangLib\cti\system\typeloadexception\TypeLoadExceptionCtor1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[TypeLoadExceptionCtor2.cmd_2728] -RelativePath=CoreMangLib\cti\system\typeloadexception\TypeLoadExceptionCtor2\TypeLoadExceptionCtor2.cmd -WorkingDir=CoreMangLib\cti\system\typeloadexception\TypeLoadExceptionCtor2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[TypeLoadExceptionCtor3.cmd_2729] -RelativePath=CoreMangLib\cti\system\typeloadexception\TypeLoadExceptionCtor3\TypeLoadExceptionCtor3.cmd -WorkingDir=CoreMangLib\cti\system\typeloadexception\TypeLoadExceptionCtor3 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - -[TypeLoadExceptionMessage.cmd_2730] -RelativePath=CoreMangLib\cti\system\typeloadexception\TypeLoadExceptionMessage\TypeLoadExceptionMessage.cmd -WorkingDir=CoreMangLib\cti\system\typeloadexception\TypeLoadExceptionMessage -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=Pri1;RT;EXPECTED_PASS -HostStyle=0 - [UInt16CompareTo1.cmd_2731] RelativePath=CoreMangLib\cti\system\uint16\UInt16CompareTo1\UInt16CompareTo1.cmd WorkingDir=CoreMangLib\cti\system\uint16\UInt16CompareTo1 @@ -79268,14 +77596,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;NEW;Pri1 HostStyle=0 -[MathFCos.cmd_11565] -RelativePath=CoreMangLib\cti\system\mathf\MathFCos\MathFCos.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFCos -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;NEW;Pri1 -HostStyle=0 - [sealeddefault.cmd_11566] RelativePath=JIT\opt\Devirtualization\sealeddefault\sealeddefault.cmd WorkingDir=JIT\opt\Devirtualization\sealeddefault @@ -79292,14 +77612,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;NEW;Pri1 HostStyle=0 -[MathFRound1.cmd_11568] -RelativePath=CoreMangLib\cti\system\mathf\MathFRound1\MathFRound1.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFRound1 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;NEW;Pri1 -HostStyle=0 - [ArrayJagged.cmd_11569] RelativePath=JIT\CodeGenBringUpTests\ArrayJagged_ro\ArrayJagged_ro.cmd WorkingDir=JIT\CodeGenBringUpTests\ArrayJagged_ro @@ -79308,14 +77620,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;NEW;Pri1 HostStyle=0 -[MathFFloor.cmd_11570] -RelativePath=CoreMangLib\cti\system\mathf\MathFFloor\MathFFloor.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFFloor -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;NEW;Pri1 -HostStyle=0 - [comparable.cmd_11571] RelativePath=JIT\opt\Devirtualization\comparable\comparable.cmd WorkingDir=JIT\opt\Devirtualization\comparable @@ -79348,46 +77652,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;NEW HostStyle=0 -[MathFExp.cmd_11575] -RelativePath=CoreMangLib\cti\system\mathf\MathFExp\MathFExp.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFExp -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;NEW;Pri1 -HostStyle=0 - -[MathFMax.cmd_11576] -RelativePath=CoreMangLib\cti\system\mathf\MathFMax\MathFMax.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFMax -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;NEW;Pri1 -HostStyle=0 - -[MathFAtan2.cmd_11577] -RelativePath=CoreMangLib\cti\system\mathf\MathFAtan2\MathFAtan2.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFAtan2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;NEW;Pri1 -HostStyle=0 - -[MathFAtan.cmd_11578] -RelativePath=CoreMangLib\cti\system\mathf\MathFAtan\MathFAtan.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFAtan -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;NEW;Pri1 -HostStyle=0 - -[MathFRound2.cmd_11579] -RelativePath=CoreMangLib\cti\system\mathf\MathFRound2\MathFRound2.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFRound2 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;NEW;Pri1 -HostStyle=0 - [fromcollection.cmd_11580] RelativePath=JIT\opt\Devirtualization\fromcollection\fromcollection.cmd WorkingDir=JIT\opt\Devirtualization\fromcollection @@ -79412,22 +77676,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;NEW;Pri1 HostStyle=0 -[MathFIEEERemainder.cmd_11583] -RelativePath=CoreMangLib\cti\system\mathf\MathFIEEERemainder\MathFIEEERemainder.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFIEEERemainder -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;NEW;Pri1 -HostStyle=0 - -[MathFCosh.cmd_11584] -RelativePath=CoreMangLib\cti\system\mathf\MathFCosh\MathFCosh.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFCosh -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;NEW;Pri1 -HostStyle=0 - [ArrayExc.cmd_11585] RelativePath=JIT\CodeGenBringUpTests\ArrayExc_ro\ArrayExc_ro.cmd WorkingDir=JIT\CodeGenBringUpTests\ArrayExc_ro @@ -79436,14 +77684,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;NEW HostStyle=0 -[MathFSqrt.cmd_11586] -RelativePath=CoreMangLib\cti\system\mathf\MathFSqrt\MathFSqrt.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFSqrt -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;NEW;Pri1 -HostStyle=0 - [Vector3GetHash_r.cmd_11587] RelativePath=JIT\SIMD\Vector3GetHash_r\Vector3GetHash_r.cmd WorkingDir=JIT\SIMD\Vector3GetHash_r @@ -79460,14 +77700,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;NEW;Pri1 HostStyle=0 -[MathFMin.cmd_11589] -RelativePath=CoreMangLib\cti\system\mathf\MathFMin\MathFMin.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFMin -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;NEW;Pri1 -HostStyle=0 - [sealedclass.cmd_11590] RelativePath=JIT\opt\Devirtualization\sealedclass\sealedclass.cmd WorkingDir=JIT\opt\Devirtualization\sealedclass @@ -79508,14 +77740,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;NEW;Pri1 HostStyle=0 -[MathFSin.cmd_11595] -RelativePath=CoreMangLib\cti\system\mathf\MathFSin\MathFSin.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFSin -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;NEW;Pri1 -HostStyle=0 - [CheckProjects.cmd_11596] RelativePath=JIT\CheckProjects\CheckProjects\CheckProjects.cmd WorkingDir=JIT\CheckProjects\CheckProjects @@ -79532,38 +77756,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;NEW;Pri1 HostStyle=0 -[MathFLog10.cmd_11598] -RelativePath=CoreMangLib\cti\system\mathf\MathFLog10\MathFLog10.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFLog10 -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;NEW;Pri1 -HostStyle=0 - -[MathFSign.cmd_11599] -RelativePath=CoreMangLib\cti\system\mathf\MathFSign\MathFSign.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFSign -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;NEW;Pri1 -HostStyle=0 - -[MathFE.cmd_11600] -RelativePath=CoreMangLib\cti\system\mathf\MathFE\MathFE.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFE -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;NEW;Pri1 -HostStyle=0 - -[MathFCeiling.cmd_11601] -RelativePath=CoreMangLib\cti\system\mathf\MathFCeiling\MathFCeiling.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFCeiling -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;NEW;Pri1 -HostStyle=0 - [GitHub_10311.cmd_11602] RelativePath=JIT\opt\Devirtualization\GitHub_10311\GitHub_10311.cmd WorkingDir=JIT\opt\Devirtualization\GitHub_10311 @@ -79588,30 +77780,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;NEW;Pri1 HostStyle=0 -[MathFSinh.cmd_11605] -RelativePath=CoreMangLib\cti\system\mathf\MathFSinh\MathFSinh.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFSinh -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;NEW;Pri1 -HostStyle=0 - -[MathFPI.cmd_11606] -RelativePath=CoreMangLib\cti\system\mathf\MathFPI\MathFPI.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFPI -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;NEW;Pri1 -HostStyle=0 - -[MathFAbs.cmd_11607] -RelativePath=CoreMangLib\cti\system\mathf\MathFAbs\MathFAbs.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFAbs -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;NEW;Pri1 -HostStyle=0 - [sharedoverride.cmd_11608] RelativePath=JIT\opt\Devirtualization\sharedoverride\sharedoverride.cmd WorkingDir=JIT\opt\Devirtualization\sharedoverride @@ -79620,14 +77788,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;NEW;Pri1 HostStyle=0 -[MathFTan.cmd_11609] -RelativePath=CoreMangLib\cti\system\mathf\MathFTan\MathFTan.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFTan -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;NEW;Pri1 -HostStyle=0 - [Vector3GetHash_ro.cmd_11610] RelativePath=JIT\SIMD\Vector3GetHash_ro\Vector3GetHash_ro.cmd WorkingDir=JIT\SIMD\Vector3GetHash_ro @@ -79684,14 +77844,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;NEW;Pri1 HostStyle=0 -[MathFLog.cmd_11617] -RelativePath=CoreMangLib\cti\system\mathf\MathFLog\MathFLog.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFLog -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;NEW;Pri1 -HostStyle=0 - [Array1.cmd_11618] RelativePath=JIT\CodeGenBringUpTests\Array1_ro\Array1_ro.cmd WorkingDir=JIT\CodeGenBringUpTests\Array1_ro @@ -79700,22 +77852,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;NEW;Pri1 HostStyle=0 -[MathFAcos.cmd_11619] -RelativePath=CoreMangLib\cti\system\mathf\MathFAcos\MathFAcos.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFAcos -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;NEW;Pri1 -HostStyle=0 - -[MathFPow.cmd_11620] -RelativePath=CoreMangLib\cti\system\mathf\MathFPow\MathFPow.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFPow -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;NEW;Pri1 -HostStyle=0 - [covariance.cmd_11621] RelativePath=JIT\opt\Devirtualization\covariance\covariance.cmd WorkingDir=JIT\opt\Devirtualization\covariance @@ -79748,14 +77884,6 @@ MaxAllowedDurationSeconds=600 Categories=EXPECTED_PASS;NEW;Pri1 HostStyle=0 -[MathFTanh.cmd_11625] -RelativePath=CoreMangLib\cti\system\mathf\MathFTanh\MathFTanh.cmd -WorkingDir=CoreMangLib\cti\system\mathf\MathFTanh -Expected=0 -MaxAllowedDurationSeconds=600 -Categories=EXPECTED_PASS;NEW;Pri1 -HostStyle=0 - [ArrayMD2.cmd_11626] RelativePath=JIT\CodeGenBringUpTests\ArrayMD2_ro\ArrayMD2_ro.cmd WorkingDir=JIT\CodeGenBringUpTests\ArrayMD2_ro diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayBinarySearch1.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayBinarySearch1.csproj deleted file mode 100644 index d395a4e0bb..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayBinarySearch1.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraybinarysearch1.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayBinarySearch1b.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayBinarySearch1b.csproj deleted file mode 100644 index 22c66b7a80..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayBinarySearch1b.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraybinarysearch1b.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayBinarySearch2.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayBinarySearch2.csproj deleted file mode 100644 index e20879795b..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayBinarySearch2.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraybinarysearch2.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayBinarySearch2b.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayBinarySearch2b.csproj deleted file mode 100644 index 65f2395a5f..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayBinarySearch2b.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraybinarysearch2b.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayBinarySearch3.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayBinarySearch3.csproj deleted file mode 100644 index 9696b816bf..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayBinarySearch3.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraybinarysearch3.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayBinarySearch3b.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayBinarySearch3b.csproj deleted file mode 100644 index 0816e7798e..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayBinarySearch3b.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraybinarysearch3b.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayBinarySearch4.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayBinarySearch4.csproj deleted file mode 100644 index 2b3015d220..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayBinarySearch4.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraybinarysearch4.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayBinarySearch4b.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayBinarySearch4b.csproj deleted file mode 100644 index b6ce5688c5..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayBinarySearch4b.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraybinarysearch4b.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayBinarySearch5.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayBinarySearch5.csproj deleted file mode 100644 index 79584a5df9..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayBinarySearch5.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraybinarysearch5.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayBinarySearch5b.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayBinarySearch5b.csproj deleted file mode 100644 index 9ca726e8a2..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayBinarySearch5b.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraybinarysearch5b.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayBinarySearch6.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayBinarySearch6.csproj deleted file mode 100644 index 0e6c2e7c40..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayBinarySearch6.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraybinarysearch6.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayClear.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayClear.csproj deleted file mode 100644 index 71b93e324e..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayClear.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arrayclear.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayClone.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayClone.csproj deleted file mode 100644 index a82641615d..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayClone.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arrayclone.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayCopy1.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayCopy1.csproj deleted file mode 100644 index a57c2dc7be..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayCopy1.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraycopy1.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayCopy2.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayCopy2.csproj deleted file mode 100644 index 6bbcc16c61..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayCopy2.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraycopy2.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayCopyTo.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayCopyTo.csproj deleted file mode 100644 index c4b5982cc4..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayCopyTo.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraycopyto.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayCreateInstance1.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayCreateInstance1.csproj deleted file mode 100644 index d5997c95d4..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayCreateInstance1.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraycreateinstance1.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayCreateInstance1b.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayCreateInstance1b.csproj deleted file mode 100644 index 0b54a72d2e..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayCreateInstance1b.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraycreateinstance1b.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayCreateInstance2.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayCreateInstance2.csproj deleted file mode 100644 index 0a630be9a5..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayCreateInstance2.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraycreateinstance2.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayCreateInstance2b.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayCreateInstance2b.csproj deleted file mode 100644 index bcf4565105..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayCreateInstance2b.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraycreateinstance2b.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayGetEnumerator.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayGetEnumerator.csproj deleted file mode 100644 index c99d995125..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayGetEnumerator.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraygetenumerator.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayGetLength.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayGetLength.csproj deleted file mode 100644 index 0cc9d03954..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayGetLength.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraygetlength.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayGetLowerBound.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayGetLowerBound.csproj deleted file mode 100644 index 0356a4ac47..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayGetLowerBound.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraygetlowerbound.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayGetUpperBound.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayGetUpperBound.csproj deleted file mode 100644 index 9d5368261b..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayGetUpperBound.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraygetupperbound.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayGetValue.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayGetValue.csproj deleted file mode 100644 index ee6382714d..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayGetValue.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraygetvalue.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayGetValue1.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayGetValue1.csproj deleted file mode 100644 index 315ca5e858..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayGetValue1.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraygetvalue1.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayGetValue2.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayGetValue2.csproj deleted file mode 100644 index 99a8a998c2..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayGetValue2.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraygetvalue2.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayGetValue2b.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayGetValue2b.csproj deleted file mode 100644 index 41bc56e42f..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayGetValue2b.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraygetvalue2b.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayICollectionget_Count.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayICollectionget_Count.csproj deleted file mode 100644 index fd1e9e5404..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayICollectionget_Count.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arrayicollectionget_count.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayIListAdd.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayIListAdd.csproj deleted file mode 100644 index 120d02f1bc..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayIListAdd.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arrayilistadd.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayIListClear.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayIListClear.csproj deleted file mode 100644 index a4eeb1365b..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayIListClear.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arrayilistclear.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayIListContains.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayIListContains.csproj deleted file mode 100644 index 02fca34d84..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayIListContains.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arrayilistcontains.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayIListIndexOF.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayIListIndexOF.csproj deleted file mode 100644 index 6cebffc748..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayIListIndexOF.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arrayilistindexof.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayIListInsert.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayIListInsert.csproj deleted file mode 100644 index 06c7752251..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayIListInsert.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arrayilistinsert.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayIListRemove.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayIListRemove.csproj deleted file mode 100644 index 3ae4f737d1..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayIListRemove.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arrayilistremove.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayIListRemoveAt.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayIListRemoveAt.csproj deleted file mode 100644 index 659e5a137f..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayIListRemoveAt.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arrayilistremoveat.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayIListget_item.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayIListget_item.csproj deleted file mode 100644 index 5b93471e99..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayIListget_item.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arrayilistget_item.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayIListset_item.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayIListset_item.csproj deleted file mode 100644 index 9b28b9ca1b..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayIListset_item.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arrayilistset_item.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayIndexOf1.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayIndexOf1.csproj deleted file mode 100644 index 2fa11943d4..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayIndexOf1.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arrayindexof1.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayIndexOf1b.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayIndexOf1b.csproj deleted file mode 100644 index adb610c428..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayIndexOf1b.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arrayindexof1b.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayIndexOf2.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayIndexOf2.csproj deleted file mode 100644 index 1b8c8f6504..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayIndexOf2.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arrayindexof2.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayIndexOf2b.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayIndexOf2b.csproj deleted file mode 100644 index 77d4844636..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayIndexOf2b.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arrayindexof2b.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayIndexOf3.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayIndexOf3.csproj deleted file mode 100644 index 1c8d8ef7f5..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayIndexOf3.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arrayindexof3.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayIndexOf3b.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayIndexOf3b.csproj deleted file mode 100644 index 54bad4bf68..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayIndexOf3b.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arrayindexof3b.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayIndexOf4.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayIndexOf4.csproj deleted file mode 100644 index 6d40c697af..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayIndexOf4.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arrayindexof4.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayIndexOf4b.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayIndexOf4b.csproj deleted file mode 100644 index 75dfa1d059..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayIndexOf4b.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arrayindexof4b.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayInitialize.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayInitialize.csproj deleted file mode 100644 index 14d2427b6a..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayInitialize.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arrayinitialize.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayLastIndexOf1.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayLastIndexOf1.csproj deleted file mode 100644 index 24c95286c9..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayLastIndexOf1.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraylastindexof1.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayLastIndexOf1b.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayLastIndexOf1b.csproj deleted file mode 100644 index 32aed24cc7..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayLastIndexOf1b.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraylastindexof1b.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayLastIndexOf2.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayLastIndexOf2.csproj deleted file mode 100644 index 86173d1ba5..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayLastIndexOf2.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraylastindexof2.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayLastIndexOf2b.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayLastIndexOf2b.csproj deleted file mode 100644 index 95fe800633..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayLastIndexOf2b.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraylastindexof2b.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayLastIndexOf3.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayLastIndexOf3.csproj deleted file mode 100644 index 51f4d1dfd4..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayLastIndexOf3.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraylastindexof3.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayLastIndexOf3b.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayLastIndexOf3b.csproj deleted file mode 100644 index 319273b1ab..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayLastIndexOf3b.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraylastindexof3b.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayLastIndexOf4.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayLastIndexOf4.csproj deleted file mode 100644 index 83922ebdf8..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayLastIndexOf4.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraylastindexof4.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayLength.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayLength.csproj deleted file mode 100644 index 5f4a796939..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayLength.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraylength.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayRank.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayRank.csproj deleted file mode 100644 index 3452d6aacb..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayRank.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arrayrank.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayReserse1.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayReserse1.csproj deleted file mode 100644 index 8ffa772a7f..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayReserse1.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arrayreserse1.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayReserse2.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayReserse2.csproj deleted file mode 100644 index 393ec8b70c..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayReserse2.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arrayreserse2.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayReverse1.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayReverse1.csproj deleted file mode 100644 index 99f9b413cc..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayReverse1.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arrayreverse1.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArrayReverse2.csproj b/tests/src/CoreMangLib/cti/system/array/ArrayReverse2.csproj deleted file mode 100644 index 0b444ee43a..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArrayReverse2.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arrayreverse2.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArraySetValue1.csproj b/tests/src/CoreMangLib/cti/system/array/ArraySetValue1.csproj deleted file mode 100644 index 58aabd2fc5..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArraySetValue1.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraysetvalue1.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArraySetValue1b.csproj b/tests/src/CoreMangLib/cti/system/array/ArraySetValue1b.csproj deleted file mode 100644 index 33d67b33db..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArraySetValue1b.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraysetvalue1b.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArraySetValue2.csproj b/tests/src/CoreMangLib/cti/system/array/ArraySetValue2.csproj deleted file mode 100644 index 52cde865d3..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArraySetValue2.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraysetvalue2.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArraySetValue2b.csproj b/tests/src/CoreMangLib/cti/system/array/ArraySetValue2b.csproj deleted file mode 100644 index a7ae91e3b8..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArraySetValue2b.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraysetvalue2b.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArraySort1.csproj b/tests/src/CoreMangLib/cti/system/array/ArraySort1.csproj deleted file mode 100644 index 8fba29f0d6..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArraySort1.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraysort1.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArraySort10.csproj b/tests/src/CoreMangLib/cti/system/array/ArraySort10.csproj deleted file mode 100644 index f1e561273e..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArraySort10.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraysort10.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArraySort11.csproj b/tests/src/CoreMangLib/cti/system/array/ArraySort11.csproj deleted file mode 100644 index 3ec4b8f894..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArraySort11.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraysort11.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArraySort12.csproj b/tests/src/CoreMangLib/cti/system/array/ArraySort12.csproj deleted file mode 100644 index 88fae4a4a2..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArraySort12.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraysort12.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArraySort13.csproj b/tests/src/CoreMangLib/cti/system/array/ArraySort13.csproj deleted file mode 100644 index 6c59256f15..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArraySort13.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraysort13.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArraySort14.csproj b/tests/src/CoreMangLib/cti/system/array/ArraySort14.csproj deleted file mode 100644 index cade11bb37..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArraySort14.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraysort14.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArraySort1b.csproj b/tests/src/CoreMangLib/cti/system/array/ArraySort1b.csproj deleted file mode 100644 index e9c475e0e4..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArraySort1b.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraysort1b.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArraySort2.csproj b/tests/src/CoreMangLib/cti/system/array/ArraySort2.csproj deleted file mode 100644 index 20fc912be9..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArraySort2.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraysort2.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArraySort2b.csproj b/tests/src/CoreMangLib/cti/system/array/ArraySort2b.csproj deleted file mode 100644 index 74319cb2e9..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArraySort2b.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraysort2b.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArraySort3.csproj b/tests/src/CoreMangLib/cti/system/array/ArraySort3.csproj deleted file mode 100644 index 0aaee98ad7..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArraySort3.csproj +++ /dev/null @@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - <GCStressIncompatible>true</GCStressIncompatible> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraysort3.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArraySort3b.csproj b/tests/src/CoreMangLib/cti/system/array/ArraySort3b.csproj deleted file mode 100644 index ca32b6b5f6..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArraySort3b.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraysort3b.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArraySort4.csproj b/tests/src/CoreMangLib/cti/system/array/ArraySort4.csproj deleted file mode 100644 index 2cd318698d..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArraySort4.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraysort4.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArraySort5.csproj b/tests/src/CoreMangLib/cti/system/array/ArraySort5.csproj deleted file mode 100644 index 5c7178b3df..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArraySort5.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraysort5.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArraySort6.csproj b/tests/src/CoreMangLib/cti/system/array/ArraySort6.csproj deleted file mode 100644 index d8362bff3b..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArraySort6.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraysort6.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArraySort7.csproj b/tests/src/CoreMangLib/cti/system/array/ArraySort7.csproj deleted file mode 100644 index 5352aab548..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArraySort7.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraysort7.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArraySort8.csproj b/tests/src/CoreMangLib/cti/system/array/ArraySort8.csproj deleted file mode 100644 index dbe5ec0d25..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArraySort8.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraysort8.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/ArraySort9.csproj b/tests/src/CoreMangLib/cti/system/array/ArraySort9.csproj deleted file mode 100644 index 56848bf34b..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/ArraySort9.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="arraysort9.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/array/arraybinarysearch1.cs b/tests/src/CoreMangLib/cti/system/array/arraybinarysearch1.cs Binary files differdeleted file mode 100644 index 654a9cb1f0..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraybinarysearch1.cs +++ /dev/null diff --git a/tests/src/CoreMangLib/cti/system/array/arraybinarysearch1b.cs b/tests/src/CoreMangLib/cti/system/array/arraybinarysearch1b.cs deleted file mode 100644 index 23639b23a9..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraybinarysearch1b.cs +++ /dev/null @@ -1,614 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -public class ArrayBinarySearch1 -{ - private const int c_MIN_SIZE = 64; - private const int c_MAX_SIZE = 1024; - private const int c_MIN_STRLEN = 1; - private const int c_MAX_STRLEN = 1024; - - public static int Main() - { - ArrayBinarySearch1 ac = new ArrayBinarySearch1(); - - TestLibrary.TestFramework.BeginTestCase("Array.BinarySearch(Array, int, int, object, IComparer)"); - - if (ac.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - retVal = NegTest4() && retVal; - retVal = NegTest5() && retVal; - retVal = NegTest6() && retVal; - retVal = NegTest7() && retVal; - retVal = NegTest8() && retVal; - retVal = NegTest9() && retVal; - retVal = NegTest10() && retVal; - retVal = NegTest11() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - Array array; - int length; - int element; - int index; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Array.BinarySearch(Array, int, int, object, IComparer) where element is found"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), length); - - element = TestLibrary.Generator.GetInt32(-55); - - // fill the array - for (int i=0; i<array.Length; i++) - { - do - { - array.SetValue((object)TestLibrary.Generator.GetInt32(-55), i); - } - while(element == (int)array.GetValue(i)); - } - - // set the lucky index - index = TestLibrary.Generator.GetInt32(-55) % length; - - // set the value - array.SetValue( element, index); - - Array.Sort(array); - - newIndex = Array.BinarySearch(array, 0, array.Length, (object)element, null); - - if (element != (int)array.GetValue(newIndex)) - { - TestLibrary.TestFramework.LogError("000", "Unexpected value: Expected(" + element + ") Actual(" + (int)array.GetValue(newIndex) + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - Array array; - int length; - MyStruct element; - int index; - int newIndex; - MyStructComparer msc = new MyStructComparer(); - - TestLibrary.TestFramework.BeginScenario("PosTest2: Array.BinarySearch(Array, int, int, object, IComparer) non-primitive type (not derived from object)"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(MyStruct), length); - - element = new MyStruct(TestLibrary.Generator.GetSingle(-55)); - - // fill the array - for (int i=0; i<array.Length; i++) - { - do - { - array.SetValue(new MyStruct(TestLibrary.Generator.GetSingle(-55)), i); - } - while(element.f == ((MyStruct)array.GetValue(i)).f); - } - - // set the lucky index - index = TestLibrary.Generator.GetInt32(-55) % length; - - // set the value - array.SetValue( element, index); - - Array.Sort(array); - - newIndex = Array.BinarySearch(array, 0, array.Length, (object)element, msc); - - if (element.f != ((MyStruct)array.GetValue(newIndex)).f) - { - TestLibrary.TestFramework.LogError("002", "Unexpected value: Expected(" + element.f + ") Actual(" + ((MyStruct)array.GetValue(newIndex)).f + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - Array array; - int length; - int element; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("NegTest1: Array.BinarySearch(Array, int, int, object, IComparer) where element is not found"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), length); - - element = TestLibrary.Generator.GetInt32(-55); - - // fill the array - for (int i=0; i<array.Length; i++) - { - do - { - array.SetValue((object)TestLibrary.Generator.GetInt32(-55), i); - } - while(element == (int)array.GetValue(i)); - } - - Array.Sort(array); - - newIndex = Array.BinarySearch(array, 0, array.Length, (object)element, null); - - if (0 <= newIndex) - { - TestLibrary.TestFramework.LogError("004", "Unexpected index: Expected(<0) Actual(" + newIndex + ")"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("005", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - Array array; - int length; - MyStruct element; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("NegTest2: Array.BinarySearch(Array, int, int, object, IComparer) non-primitive type (not derived from object) not found"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(MyStruct), length); - - element = new MyStruct(TestLibrary.Generator.GetSingle(-55)); - - // fill the array - for (int i=0; i<array.Length; i++) - { - do - { - array.SetValue(new MyStruct(TestLibrary.Generator.GetSingle(-55)), i); - } - while(element.f == ((MyStruct)array.GetValue(i)).f); - } - - Array.Sort(array); - - newIndex = Array.BinarySearch(array, 0, array.Length, (object)element, null); - - if (0 <= newIndex) - { - TestLibrary.TestFramework.LogError("006", "Unexpected index: Expected(<0) Actual(" + newIndex + ")"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("007", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - Array array; - int length; - int element; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("NegTest3: Array.BinarySearch(Array, int, int, object, IComparer) array full of null's"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), length); - - element = TestLibrary.Generator.GetInt32(-55); - - // fill the array - for (int i=0; i<array.Length; i++) - { - array.SetValue(null, i); - } - - newIndex = Array.BinarySearch(array, 0, array.Length, (object)element, null); - - if (0 <= newIndex) - { - TestLibrary.TestFramework.LogError("008", "Unexpected index: Actual(" + newIndex + ")"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("009", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest4: Array.BinarySearch(Array, int, int, object, IComparer) array is null"); - - try - { - Array.BinarySearch(null, 0, 0, (object)1, null); - - TestLibrary.TestFramework.LogError("010", "Should have thrown an expection"); - retVal = false; - } - catch (ArgumentNullException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("011", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - - public bool NegTest5() - { - bool retVal = true; - Array array; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("NegTest5: Array.BinarySearch(Array, int, int, object, IComparer) array of length 0"); - - try - { - // creat the array - array = Array.CreateInstance(typeof(Int32), 0); - - newIndex = Array.BinarySearch(array, 0, array.Length, (object)null, null); - - if (0 <= newIndex) - { - TestLibrary.TestFramework.LogError("012", "Unexpected index: Actual(" + newIndex + ")"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("013", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest6() - { - bool retVal = true; - Array array; - int length; - - TestLibrary.TestFramework.BeginScenario("NegTest6: Array.BinarySearch(Array, int, int, object, IComparer) start index less than lower bound"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), length); - - Array.BinarySearch(array, -1, array.Length, (object)null, null); - - TestLibrary.TestFramework.LogError("014", "Should have thrown an exception"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("015", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest7() - { - bool retVal = true; - Array array; - int length; - - TestLibrary.TestFramework.BeginScenario("NegTest7: Array.BinarySearch(Array, int, int, object, IComparer) start index greater than upper bound"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), length); - - Array.BinarySearch(array, array.Length, array.Length, (object)null, null); - - TestLibrary.TestFramework.LogError("016", "Should have thrown an exception"); - retVal = false; - } - catch (ArgumentException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("017", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest8() - { - bool retVal = true; - Array array; - int length; - - TestLibrary.TestFramework.BeginScenario("NegTest8: Array.BinarySearch(Array, int, int, object, IComparer) count less than 0"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), length); - - Array.BinarySearch(array, 0, -1, (object)null, null); - - TestLibrary.TestFramework.LogError("018", "Should have thrown an exception"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("019", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest9() - { - bool retVal = true; - Array array; - int length; - - TestLibrary.TestFramework.BeginScenario("NegTest9: Array.BinarySearch(Array, int, int, object, IComparer) (startindex < 0)"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), length); - - Array.BinarySearch(array, -1, array.Length, (object)null, null); - - TestLibrary.TestFramework.LogError("020", "Should have thrown an exception"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("021", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest10() - { - bool retVal = true; - Array array; - int length; - - TestLibrary.TestFramework.BeginScenario("NegTest10: Array.BinarySearch(Array, int, int, object, IComparer) multi dim array"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), new int[2] {length, length}); - - Array.BinarySearch(array, 0, array.Length, (object)null, null); - - TestLibrary.TestFramework.LogError("022", "Should have thrown an exception"); - retVal = false; - } - catch (RankException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("023", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest11() - { - bool retVal = true; - Array array; - int length; - MyStruct2 element; - int index; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("NegTest11: Array.BinarySearch(Array, int, int, object, IComparer) non-primitive type (not derived from object or IComparable)"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(MyStruct2), length); - - element = new MyStruct2(TestLibrary.Generator.GetSingle(-55)); - - // fill the array - for (int i=0; i<array.Length; i++) - { - do - { - array.SetValue(new MyStruct2(TestLibrary.Generator.GetSingle(-55)), i); - } - while(element.f == ((MyStruct2)array.GetValue(i)).f); - } - - // set the lucky index - index = TestLibrary.Generator.GetInt32(-55) % length; - - // set the value - array.SetValue( element, index); - - Array.Sort(array); - - newIndex = Array.BinarySearch(array, 0, array.Length, (object)element, null); - - TestLibrary.TestFramework.LogError("024", "Exception expected"); - retVal = false; - } - catch (InvalidOperationException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("025", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - - public struct MyStruct : IComparable - { - public float f; - - public MyStruct(float ff) { f = ff; } - - public int CompareTo(object obj) - { - MyStruct m1 = (MyStruct)obj; - - if (m1.f == f) return 0; - - return ((m1.f < f)?1:-1); - } - } - - public struct MyStruct2 - { - public float f; - - public MyStruct2(float ff) { f = ff; } - } - - public class MyStructComparer : IComparer - { - public int Compare(object x, object y) - { - MyStruct m1 = (MyStruct)x; - MyStruct m2 = (MyStruct)y; - - if (m1.f == m2.f) return 0; - - return ((m1.f < m2.f)?-1:1); - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraybinarysearch2.cs b/tests/src/CoreMangLib/cti/system/array/arraybinarysearch2.cs Binary files differdeleted file mode 100644 index a477f5a484..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraybinarysearch2.cs +++ /dev/null diff --git a/tests/src/CoreMangLib/cti/system/array/arraybinarysearch2b.cs b/tests/src/CoreMangLib/cti/system/array/arraybinarysearch2b.cs deleted file mode 100644 index 57b7a52c7b..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraybinarysearch2b.cs +++ /dev/null @@ -1,142 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -public class ArrayBinarySearch2 -{ - private const int c_MIN_SIZE = 64; - private const int c_MAX_SIZE = 1024; - private const int c_MIN_STRLEN = 1; - private const int c_MAX_STRLEN = 1024; - - public static int Main() - { - ArrayBinarySearch2 ac = new ArrayBinarySearch2(); - - TestLibrary.TestFramework.BeginTestCase("Array.BinarySearch<T>(T[], T)"); - - if (ac.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - retVal = PosTest8() && retVal; - retVal = PosTest9() && retVal; - retVal = PosTest10() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - - return retVal; - } - - public bool PosTest1() { return PosBinarySearch<Int64>(1, TestLibrary.Generator.GetInt64(), TestLibrary.Generator.GetInt64()); } - public bool PosTest2() { return PosBinarySearch<Int32>(2, TestLibrary.Generator.GetInt32(), TestLibrary.Generator.GetInt32()); } - public bool PosTest3() { return PosBinarySearch<Int16>(3, TestLibrary.Generator.GetInt16(), TestLibrary.Generator.GetInt16()); } - public bool PosTest4() { return PosBinarySearch<Byte>(4, TestLibrary.Generator.GetByte(), TestLibrary.Generator.GetByte()); } - public bool PosTest5() { return PosBinarySearch<double>(5, TestLibrary.Generator.GetDouble(), TestLibrary.Generator.GetDouble()); } - public bool PosTest6() { return PosBinarySearch<float>(6, TestLibrary.Generator.GetSingle(), TestLibrary.Generator.GetSingle()); } - public bool PosTest7() { return PosBinarySearch<char>(7, TestLibrary.Generator.GetCharLetter(), TestLibrary.Generator.GetCharLetter()); } - public bool PosTest8() { return PosBinarySearch<char>(8, TestLibrary.Generator.GetCharNumber(), TestLibrary.Generator.GetCharNumber()); } - public bool PosTest9() { return PosBinarySearch<char>(9, TestLibrary.Generator.GetChar(), TestLibrary.Generator.GetChar()); } - public bool PosTest10() { return PosBinarySearch<string>(10, TestLibrary.Generator.GetString(false, c_MIN_STRLEN, c_MAX_STRLEN), TestLibrary.Generator.GetString(false, c_MIN_STRLEN, c_MAX_STRLEN)); } - - public bool PosBinarySearch<T>(int id, T element, T otherElem) where T : IComparable<T> - { - bool retVal = true; - T[] array; - int length; - int index; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("PosTest"+id+": Array.BinarySearch<T>(T[], T) (T == "+typeof(T)+") where element is found"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32() % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = new T[length]; - - // fill the array - for (int i=0; i<array.Length; i++) - { - array.SetValue(otherElem, i); - } - - // set the lucky index - index = TestLibrary.Generator.GetInt32() % length; - - // set the value - array.SetValue( element, index); - - Array.Sort(array); - - newIndex = Array.BinarySearch<T>(array, element); - - if (0 != element.CompareTo((T) array.GetValue(newIndex))) - { - TestLibrary.TestFramework.LogError("000", "Unexpected value: Expected(" + element + ") Actual(" + array.GetValue(newIndex) + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest4: Array.BinarySearch<T>(T[], T) array is null"); - - try - { - Array.BinarySearch<Int32>(null, 1); - - TestLibrary.TestFramework.LogError("002", "Should have thrown an expection"); - retVal = false; - } - catch (ArgumentNullException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraybinarysearch3.cs b/tests/src/CoreMangLib/cti/system/array/arraybinarysearch3.cs Binary files differdeleted file mode 100644 index 359280877c..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraybinarysearch3.cs +++ /dev/null diff --git a/tests/src/CoreMangLib/cti/system/array/arraybinarysearch3b.cs b/tests/src/CoreMangLib/cti/system/array/arraybinarysearch3b.cs deleted file mode 100644 index 35db07f0bb..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraybinarysearch3b.cs +++ /dev/null @@ -1,144 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; - -public class ArrayBinarySearch3 -{ - private const int c_MIN_SIZE = 64; - private const int c_MAX_SIZE = 1024; - private const int c_MIN_STRLEN = 1; - private const int c_MAX_STRLEN = 1024; - - public static int Main() - { - ArrayBinarySearch3 ac = new ArrayBinarySearch3(); - - TestLibrary.TestFramework.BeginTestCase("Array.BinarySearch<T>(T[], T)"); - - if (ac.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - retVal = PosTest8() && retVal; - retVal = PosTest9() && retVal; - retVal = PosTest10() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - - return retVal; - } - - public bool PosTest1() { return PosBinarySearch<Int64>(1, TestLibrary.Generator.GetInt64(), TestLibrary.Generator.GetInt64()); } - public bool PosTest2() { return PosBinarySearch<Int32>(2, TestLibrary.Generator.GetInt32(), TestLibrary.Generator.GetInt32()); } - public bool PosTest3() { return PosBinarySearch<Int16>(3, TestLibrary.Generator.GetInt16(), TestLibrary.Generator.GetInt16()); } - public bool PosTest4() { return PosBinarySearch<Byte>(4, TestLibrary.Generator.GetByte(), TestLibrary.Generator.GetByte()); } - public bool PosTest5() { return PosBinarySearch<double>(5, TestLibrary.Generator.GetDouble(), TestLibrary.Generator.GetDouble()); } - public bool PosTest6() { return PosBinarySearch<float>(6, TestLibrary.Generator.GetSingle(), TestLibrary.Generator.GetSingle()); } - public bool PosTest7() { return PosBinarySearch<char>(7, TestLibrary.Generator.GetCharLetter(), TestLibrary.Generator.GetCharLetter()); } - public bool PosTest8() { return PosBinarySearch<char>(8, TestLibrary.Generator.GetCharNumber(), TestLibrary.Generator.GetCharNumber()); } - public bool PosTest9() { return PosBinarySearch<char>(9, TestLibrary.Generator.GetChar(), TestLibrary.Generator.GetChar()); } - public bool PosTest10() { return PosBinarySearch<string>(10, TestLibrary.Generator.GetString(false, c_MIN_STRLEN, c_MAX_STRLEN), TestLibrary.Generator.GetString(false, c_MIN_STRLEN, c_MAX_STRLEN)); } - - public bool PosBinarySearch<T>(int id, T element, T otherElem) where T:IComparable<T> - { - bool retVal = true; - T[] array; - int length; - int index; - int newIndex; - IComparer<T> ic = null; - - TestLibrary.TestFramework.BeginScenario("PosTest"+id+": Array.BinarySearch<T>(T[], T, IComparer) (T == "+typeof(T)+") where element is found"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32() % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = new T[length]; - - // fill the array - for (int i=0; i<array.Length; i++) - { - array.SetValue(otherElem, i); - } - - // set the lucky index - index = TestLibrary.Generator.GetInt32() % length; - - // set the value - array.SetValue( element, index); - - Array.Sort(array); - - newIndex = Array.BinarySearch<T>(array, element, ic); - - if (0 != element.CompareTo((T) array.GetValue(newIndex))) - { - TestLibrary.TestFramework.LogError("000", "Unexpected value: Expected(" + element + ") Actual(" + array.GetValue(newIndex) + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - IComparer<Int32> ic = null; - - TestLibrary.TestFramework.BeginScenario("NegTest4: Array.BinarySearch<T>(T[], T, IComparer) array is null"); - - try - { - Array.BinarySearch<Int32>(null, 1, ic); - - TestLibrary.TestFramework.LogError("002", "Should have thrown an expection"); - retVal = false; - } - catch (ArgumentNullException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraybinarysearch4.cs b/tests/src/CoreMangLib/cti/system/array/arraybinarysearch4.cs Binary files differdeleted file mode 100644 index 3e14674811..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraybinarysearch4.cs +++ /dev/null diff --git a/tests/src/CoreMangLib/cti/system/array/arraybinarysearch4b.cs b/tests/src/CoreMangLib/cti/system/array/arraybinarysearch4b.cs deleted file mode 100644 index b0923ab554..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraybinarysearch4b.cs +++ /dev/null @@ -1,142 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -public class ArrayBinarySearch4 -{ - private const int c_MIN_SIZE = 64; - private const int c_MAX_SIZE = 1024; - private const int c_MIN_STRLEN = 1; - private const int c_MAX_STRLEN = 1024; - - public static int Main() - { - ArrayBinarySearch4 ac = new ArrayBinarySearch4(); - - TestLibrary.TestFramework.BeginTestCase("Array.BinarySearch<T>(T[], T)"); - - if (ac.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - retVal = PosTest8() && retVal; - retVal = PosTest9() && retVal; - retVal = PosTest10() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - - return retVal; - } - - public bool PosTest1() { return PosBinarySearch<Int64>(1, TestLibrary.Generator.GetInt64(), TestLibrary.Generator.GetInt64()); } - public bool PosTest2() { return PosBinarySearch<Int32>(2, TestLibrary.Generator.GetInt32(), TestLibrary.Generator.GetInt32()); } - public bool PosTest3() { return PosBinarySearch<Int16>(3, TestLibrary.Generator.GetInt16(), TestLibrary.Generator.GetInt16()); } - public bool PosTest4() { return PosBinarySearch<Byte>(4, TestLibrary.Generator.GetByte(), TestLibrary.Generator.GetByte()); } - public bool PosTest5() { return PosBinarySearch<double>(5, TestLibrary.Generator.GetDouble(), TestLibrary.Generator.GetDouble()); } - public bool PosTest6() { return PosBinarySearch<float>(6, TestLibrary.Generator.GetSingle(), TestLibrary.Generator.GetSingle()); } - public bool PosTest7() { return PosBinarySearch<char>(7, TestLibrary.Generator.GetCharLetter(), TestLibrary.Generator.GetCharLetter()); } - public bool PosTest8() { return PosBinarySearch<char>(8, TestLibrary.Generator.GetCharNumber(), TestLibrary.Generator.GetCharNumber()); } - public bool PosTest9() { return PosBinarySearch<char>(9, TestLibrary.Generator.GetChar(), TestLibrary.Generator.GetChar()); } - public bool PosTest10() { return PosBinarySearch<string>(10, TestLibrary.Generator.GetString(false, c_MIN_STRLEN, c_MAX_STRLEN), TestLibrary.Generator.GetString(false, c_MIN_STRLEN, c_MAX_STRLEN)); } - - public bool PosBinarySearch<T>(int id, T element, T otherElem) where T : IComparable<T> - { - bool retVal = true; - T[] array; - int length; - int index; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("PosTest"+id+": Array.BinarySearch<T>(T[], int, int, T) (T == "+typeof(T)+") where element is found"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32() % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = new T[length]; - - // fill the array - for (int i=0; i<array.Length; i++) - { - array.SetValue(otherElem, i); - } - - // set the lucky index - index = TestLibrary.Generator.GetInt32() % length; - - // set the value - array.SetValue( element, index); - - Array.Sort(array); - - newIndex = Array.BinarySearch<T>(array, 0, length, element); - - if (0 != element.CompareTo((T) array.GetValue(newIndex))) - { - TestLibrary.TestFramework.LogError("000", "Unexpected value: Expected(" + element + ") Actual(" + array.GetValue(newIndex) + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest4: Array.BinarySearch<T>(T[], T) array is null"); - - try - { - Array.BinarySearch<Int32>(null, 0, 0, 1); - - TestLibrary.TestFramework.LogError("002", "Should have thrown an expection"); - retVal = false; - } - catch (ArgumentNullException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraybinarysearch5.cs b/tests/src/CoreMangLib/cti/system/array/arraybinarysearch5.cs Binary files differdeleted file mode 100644 index f68a738516..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraybinarysearch5.cs +++ /dev/null diff --git a/tests/src/CoreMangLib/cti/system/array/arraybinarysearch5b.cs b/tests/src/CoreMangLib/cti/system/array/arraybinarysearch5b.cs deleted file mode 100644 index a31c0afd9a..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraybinarysearch5b.cs +++ /dev/null @@ -1,185 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -public class ArrayBinarySearch5 -{ - private const int c_MIN_SIZE = 64; - private const int c_MAX_SIZE = 1024; - private const int c_MIN_STRLEN = 1; - private const int c_MAX_STRLEN = 1024; - - public static int Main() - { - ArrayBinarySearch5 ac = new ArrayBinarySearch5(); - - TestLibrary.TestFramework.BeginTestCase("Array.BinarySearch<T>(T[], T)"); - - if (ac.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - retVal = PosTest8() && retVal; - retVal = PosTest9() && retVal; - retVal = PosTest10() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - retVal = NegTest4() && retVal; - - return retVal; - } - - public bool PosTest1() { return PosBinarySearch<Int64>(1, TestLibrary.Generator.GetInt64(), TestLibrary.Generator.GetInt64()); } - public bool PosTest2() { return PosBinarySearch<Int32>(2, TestLibrary.Generator.GetInt32(), TestLibrary.Generator.GetInt32()); } - public bool PosTest3() { return PosBinarySearch<Int16>(3, TestLibrary.Generator.GetInt16(), TestLibrary.Generator.GetInt16()); } - public bool PosTest4() { return PosBinarySearch<Byte>(4, TestLibrary.Generator.GetByte(), TestLibrary.Generator.GetByte()); } - public bool PosTest5() { return PosBinarySearch<double>(5, TestLibrary.Generator.GetDouble(), TestLibrary.Generator.GetDouble()); } - public bool PosTest6() { return PosBinarySearch<float>(6, TestLibrary.Generator.GetSingle(), TestLibrary.Generator.GetSingle()); } - public bool PosTest7() { return PosBinarySearch<char>(7, TestLibrary.Generator.GetCharLetter(), TestLibrary.Generator.GetCharLetter()); } - public bool PosTest8() { return PosBinarySearch<char>(8, TestLibrary.Generator.GetCharNumber(), TestLibrary.Generator.GetCharNumber()); } - public bool PosTest9() { return PosBinarySearch<char>(9, TestLibrary.Generator.GetChar(), TestLibrary.Generator.GetChar()); } - public bool PosTest10() { return PosBinarySearch<string>(10, TestLibrary.Generator.GetString(false, c_MIN_STRLEN, c_MAX_STRLEN), TestLibrary.Generator.GetString(false, c_MIN_STRLEN, c_MAX_STRLEN)); } - - //index length element - public bool NegTest2() { return NegBinarySearch2<Int32>(2, -1, 1, 1); } - public bool NegTest3() { return NegBinarySearch2<Int32>(3, 0, -1, 1); } - public bool NegTest4() { return NegBinarySearch2<Int32>(4, 2, 1, 1); } - - public bool PosBinarySearch<T>(int id, T element, T otherElem) where T : IComparable<T> - { - bool retVal = true; - T[] array; - int length; - int index; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("PosTest"+id+": Array.BinarySearch<T>(T[], int, int, T, IComparer<T>) (T == "+typeof(T)+") where element is found"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32() % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = new T[length]; - - // fill the array - for (int i=0; i<array.Length; i++) - { - array.SetValue(otherElem, i); - } - - // set the lucky index - index = TestLibrary.Generator.GetInt32() % length; - - // set the value - array.SetValue( element, index); - - Array.Sort(array); - - newIndex = Array.BinarySearch<T>(array, 0, length, element, null); - - if (0 != element.CompareTo((T) array.GetValue(newIndex))) - { - TestLibrary.TestFramework.LogError("000", "Unexpected value: Expected(" + element + ") Actual(" + array.GetValue(newIndex) + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest4: Array.BinarySearch<T>(T[], T) array is null"); - - try - { - Array.BinarySearch<Int32>(null, 0, 0, 1, null); - - TestLibrary.TestFramework.LogError("002", "Should have thrown an expection"); - retVal = false; - } - catch (ArgumentNullException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegBinarySearch2<T>(int id, int index, int length, T element) - { - bool retVal = true; - T[] array; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("NegTest"+id+": Array.BinarySearch<T>(T[], "+index+", "+length+", T, IComparer<T>) (T == "+typeof(T)+")"); - - try - { - // creat the array - array = new T[1]; - - newIndex = Array.BinarySearch<T>(array, index, length, element, null); - - TestLibrary.TestFramework.LogError("004", "Exception expected"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - // expected - } - catch (ArgumentException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("005", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraybinarysearch6.cs b/tests/src/CoreMangLib/cti/system/array/arraybinarysearch6.cs Binary files differdeleted file mode 100644 index 7c5f58c904..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraybinarysearch6.cs +++ /dev/null diff --git a/tests/src/CoreMangLib/cti/system/array/arrayclear.cs b/tests/src/CoreMangLib/cti/system/array/arrayclear.cs Binary files differdeleted file mode 100644 index ce4388bb21..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arrayclear.cs +++ /dev/null diff --git a/tests/src/CoreMangLib/cti/system/array/arrayclone.cs b/tests/src/CoreMangLib/cti/system/array/arrayclone.cs Binary files differdeleted file mode 100644 index 511c620a68..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arrayclone.cs +++ /dev/null diff --git a/tests/src/CoreMangLib/cti/system/array/arraycopy1.cs b/tests/src/CoreMangLib/cti/system/array/arraycopy1.cs deleted file mode 100644 index 2837d95b33..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraycopy1.cs +++ /dev/null @@ -1,537 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Globalization; -using System.Collections; -/// <summary> -/// Copy(System.Array,System.Array,System.Int32) -/// </summary> -public class ArrayCopy1 -{ - const int c_MaxValue = 10; - const int c_MinValue = 0; - public static int Main() - { - ArrayCopy1 ArrayCopy1 = new ArrayCopy1(); - - TestLibrary.TestFramework.BeginTestCase("ArrayCopy1"); - if (ArrayCopy1.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - retVal = NegTest4() && retVal; - retVal = NegTest5() && retVal; - retVal = NegTest6() && retVal; - retVal = NegTest7() && retVal; - retVal = NegTest8() && retVal; - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1:Copies a range of elements from an Array starting at the first element and pastes them into another Array starting at the first element,the two array have the same value type."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(Int32), c_MaxValue); - Array myTargetArray = Array.CreateInstance(typeof(Int32), c_MaxValue*2); - for(int i=0;i<c_MaxValue;i++) - { - myOriginalArray.SetValue(i, i); - myTargetArray.SetValue(i + c_MaxValue, i); - } - Array.Copy(myOriginalArray, myTargetArray, c_MaxValue); - int index = 0; - for (IEnumerator itr = myOriginalArray.GetEnumerator(); itr.MoveNext(); ) - { - object current = itr.Current ; - if (!current.Equals(myTargetArray.GetValue(index))) - { - TestLibrary.TestFramework.LogError("001", "Copy error"); - retVal = false; - break; - } - index++; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2:Copies a range of elements from an Array starting at the first element and pastes them into another Array starting at the first element,the two array have the same reference type."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(string), c_MaxValue); - Array myTargetArray = Array.CreateInstance(typeof(string), c_MaxValue * 2); - string generator1 = string.Empty; - string generator2 = string.Empty; - for (int i = 0; i < c_MaxValue; i++) - { - generator1 = TestLibrary.Generator.GetString(-55, true, c_MinValue, c_MaxValue); - generator2 = TestLibrary.Generator.GetString(-55, true, c_MinValue, c_MaxValue); - myOriginalArray.SetValue(generator1, i); - myTargetArray.SetValue(generator2, i); - } - Array.Copy(myOriginalArray, myTargetArray, c_MaxValue); - int index = 0; - for (IEnumerator itr = myOriginalArray.GetEnumerator(); itr.MoveNext(); ) - { - object current = itr.Current; - if (!current.Equals(myTargetArray.GetValue(index))) - { - TestLibrary.TestFramework.LogError("003", "Copy error"); - retVal = false; - break; - } - index++; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3:Copies a range of elements from an Array starting at the first element and pastes them into another Array starting at the first element,the two array can upcast."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(TestDeriveClass), c_MaxValue); - Array myTargetArray = Array.CreateInstance(typeof(TestBaseClass), c_MaxValue * 2); - TestDeriveClass generator1; - TestBaseClass generator2 ; - for (int i = 0; i < c_MaxValue; i++) - { - generator1 = new TestDeriveClass(i); - generator2 = new TestDeriveClass(i + c_MaxValue); - myOriginalArray.SetValue(generator1, i); - myTargetArray.SetValue(generator2, i); - } - Array.Copy(myOriginalArray, myTargetArray, c_MaxValue); - int index = 0; - for (IEnumerator itr = myOriginalArray.GetEnumerator(); itr.MoveNext(); ) - { - object current = itr.Current; - if (!current.Equals(myTargetArray.GetValue(index))) - { - TestLibrary.TestFramework.LogError("005", "Copy error"); - retVal = false; - break; - } - index++; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool PosTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest4:Copies a range of elements from an Array starting at the first element and pastes them into another Array starting at the first element,the two array can boxing."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(Int32), c_MaxValue); - Array myTargetArray = Array.CreateInstance(typeof(Object), c_MaxValue * 2); - int generator1; - object generator2; - for (int i = 0; i < c_MaxValue; i++) - { - generator1 =i; - generator2 = i+c_MaxValue; - myOriginalArray.SetValue(generator1, i); - myTargetArray.SetValue(generator2, i); - } - Array.Copy(myOriginalArray, myTargetArray, c_MaxValue); - int index = 0; - for (IEnumerator itr = myOriginalArray.GetEnumerator(); itr.MoveNext(); ) - { - object current = itr.Current; - if (!current.Equals(myTargetArray.GetValue(index))) - { - TestLibrary.TestFramework.LogError("007", "Copy error"); - retVal = false; - break; - } - index++; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1:sourceArray is a null reference."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(Int32), c_MaxValue); - Array myTargetArray = Array.CreateInstance(typeof(Int32), c_MaxValue * 2); - for (int i = 0; i < c_MaxValue; i++) - { - myOriginalArray.SetValue(i, i); - myTargetArray.SetValue(i + c_MaxValue, i); - } - myOriginalArray = null; - Array.Copy(myOriginalArray, myTargetArray, c_MaxValue); - TestLibrary.TestFramework.LogError("009", "Copy error"); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2:destinationArray is a null reference ."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(Int32), c_MaxValue); - Array myTargetArray = Array.CreateInstance(typeof(Int32), c_MaxValue * 2); - for (int i = 0; i < c_MaxValue; i++) - { - myOriginalArray.SetValue(i, i); - myTargetArray.SetValue(i + c_MaxValue, i); - } - myTargetArray = null; - Array.Copy(myOriginalArray, myTargetArray, c_MaxValue); - TestLibrary.TestFramework.LogError("011", "Copy error"); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest3:sourceArray and destinationArray have different ranks."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(Int32), c_MaxValue); - int[] parameter ={ c_MaxValue, c_MaxValue }; - Array myTargetArray = Array.CreateInstance(typeof(Int32), parameter); - Array.Copy(myOriginalArray, myTargetArray, c_MaxValue); - TestLibrary.TestFramework.LogError("013", "Copy error"); - retVal = false; - } - catch (RankException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("014", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest4:sourceArray and destinationArray are of incompatible types."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(Int32), c_MaxValue); - Array myTargetArray = Array.CreateInstance(typeof(string), c_MaxValue * 2); - Array.Copy(myOriginalArray, myTargetArray, c_MaxValue); - TestLibrary.TestFramework.LogError("015", "Copy error"); - retVal = false; - } - catch (ArrayTypeMismatchException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("016", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest5:At least one element in sourceArray cannot be cast to the type of destinationArray."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(ITestInterface), c_MaxValue); - Array myTargetArray = Array.CreateInstance(typeof(TestBaseClass), c_MaxValue * 2); - TestDeriveClass generator1; - TestBaseClass generator2; - TestDeriveClass1 generator3=new TestDeriveClass1(100); - for (int i = 0; i < c_MaxValue; i++) - { - generator1 = new TestDeriveClass(i); - generator2 = new TestDeriveClass(i + c_MaxValue); - myOriginalArray.SetValue(generator1, i); - myTargetArray.SetValue(generator2, i); - } - - myOriginalArray.SetValue(generator3, c_MaxValue - 1); - Array.Copy(myOriginalArray, myTargetArray, c_MaxValue); - TestLibrary.TestFramework.LogError("017", "Copy error"); - retVal = false; - } - catch (InvalidCastException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("018", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest6() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest6:length is less than zero."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(Int32), c_MaxValue); - Array myTargetArray = Array.CreateInstance(typeof(Int32), c_MaxValue * 2); - for (int i = 0; i < c_MaxValue; i++) - { - myOriginalArray.SetValue(i, i); - myTargetArray.SetValue(i + c_MaxValue, i); - } - Array.Copy(myOriginalArray, myTargetArray, c_MinValue-1); - TestLibrary.TestFramework.LogError("019", "Copy error"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("020", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest7() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest7:length is greater than the number of elements in sourceArray."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(Int32), c_MaxValue); - Array myTargetArray = Array.CreateInstance(typeof(Int32), c_MaxValue * 2); - for (int i = 0; i < c_MaxValue; i++) - { - myOriginalArray.SetValue(i, i); - myTargetArray.SetValue(i + c_MaxValue, i); - } - Array.Copy(myOriginalArray, myTargetArray, c_MaxValue+1); - TestLibrary.TestFramework.LogError("021", "Copy error"); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("022", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest8() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest8:length is greater than the number of elements in destinationArray."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(Int32), c_MaxValue); - Array myTargetArray = Array.CreateInstance(typeof(Int32), c_MaxValue * 2); - for (int i = 0; i < c_MaxValue; i++) - { - myOriginalArray.SetValue(i, i); - myTargetArray.SetValue(i + c_MaxValue, i); - } - Array.Copy(myOriginalArray, myTargetArray, c_MaxValue * 2+1); - TestLibrary.TestFramework.LogError("023", "Copy error"); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("024", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } -} - - - -//create ITestInterface for Negtest5. -interface ITestInterface -{ - string GetName(); -} -//create TestBaseClass for provding test method and test target. -public abstract class TestBaseClass -{ - // The value holder - protected int id; - public TestBaseClass(int Id) - { - id = Id; - } - protected int m_value; - protected abstract int GetValue(); - -} -//create TestDeriveClass for provding test method and test source. -public class TestDeriveClass : TestBaseClass, ITestInterface -{ - int deriveId; - public TestDeriveClass(int Id) - : base(Id) - { - deriveId = Id; - } - - protected override int GetValue() - { - return deriveId; - } - - - #region ITestInterface Members - - public string GetName() - { - return "TestDeriveClass"; - } - - #endregion -} -//create TestDeriveClass for provding test method and test source. -public class TestDeriveClass1 : ITestInterface -{ - int deriveId; - public TestDeriveClass1(int Id) - - { - deriveId = Id; - } - - protected int GetValue() - { - return deriveId; - } - #region ITestInterface Members - - public string GetName() - { - return "TestDeriveClass1"; - } - - #endregion -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraycopy2.cs b/tests/src/CoreMangLib/cti/system/array/arraycopy2.cs deleted file mode 100644 index 7015fc9a7d..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraycopy2.cs +++ /dev/null @@ -1,597 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Globalization; -using System.Collections; -/// <summary> -/// Array.Copy Method (Array, Int32, Array, Int32, Int32) -/// </summary> -public class ArrayCopy2 -{ - const int c_MaxValue = 10; - const int c_MinValue = 0; - public static int Main() - { - ArrayCopy2 ArrayCopy2 = new ArrayCopy2(); - - TestLibrary.TestFramework.BeginTestCase("ArrayCopy2"); - if (ArrayCopy2.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - retVal = NegTest4() && retVal; - retVal = NegTest5() && retVal; - retVal = NegTest6() && retVal; - retVal = NegTest7() && retVal; - retVal = NegTest8() && retVal; - retVal = NegTest9() && retVal; - retVal = NegTest10() && retVal; - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1:Copies a range of elements from an Array starting at the Sourceindex element and pastes them into another Array starting at the Target index element,the two array have the same value type."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(Int32), c_MaxValue); - Array myTargetArray = Array.CreateInstance(typeof(Int32), c_MaxValue * 2); - for (int i = 0; i < c_MaxValue; i++) - { - myOriginalArray.SetValue(i, i); - myTargetArray.SetValue(i + c_MaxValue, i); - } - Array.Copy(myOriginalArray,c_MinValue, myTargetArray,c_MaxValue, c_MaxValue); - int index = c_MaxValue; - for (IEnumerator itr = myOriginalArray.GetEnumerator(); itr.MoveNext(); ) - { - object current = itr.Current; - if (!current.Equals(myTargetArray.GetValue(index))) - { - TestLibrary.TestFramework.LogError("001", "Copy error"); - retVal = false; - break; - } - index++; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2:Copies a range of elements from an Array starting at the Sourceindex element and pastes them into another Array starting at the Target index element,the two array have the same reference type."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(string), c_MaxValue); - Array myTargetArray = Array.CreateInstance(typeof(string), c_MaxValue * 2); - string generator1 = string.Empty; - string generator2 = string.Empty; - for (int i = 0; i < c_MaxValue; i++) - { - generator1 = TestLibrary.Generator.GetString(-55, true, c_MinValue, c_MaxValue); - generator2 = TestLibrary.Generator.GetString(-55, true, c_MinValue, c_MaxValue); - myOriginalArray.SetValue(generator1, i); - myTargetArray.SetValue(generator2, i); - } - Array.Copy(myOriginalArray, c_MinValue, myTargetArray, c_MaxValue, c_MaxValue); - int index = c_MaxValue; - for (IEnumerator itr = myOriginalArray.GetEnumerator(); itr.MoveNext(); ) - { - object current = itr.Current; - if (!current.Equals(myTargetArray.GetValue(index))) - { - TestLibrary.TestFramework.LogError("003", "Copy error"); - retVal = false; - break; - } - index++; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3:Copies a range of elements from an Array starting at the Sourceindex element and pastes them into another Array starting at the Target index element,the two array can upcast."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(TestDeriveClass), c_MaxValue); - Array myTargetArray = Array.CreateInstance(typeof(TestBaseClass), c_MaxValue * 2); - TestDeriveClass generator1; - TestBaseClass generator2; - for (int i = 0; i < c_MaxValue; i++) - { - generator1 = new TestDeriveClass(i); - generator2 = new TestDeriveClass(i + c_MaxValue); - myOriginalArray.SetValue(generator1, i); - myTargetArray.SetValue(generator2, i); - } - Array.Copy(myOriginalArray, c_MinValue, myTargetArray, c_MaxValue, c_MaxValue); - int index = c_MaxValue; - for (IEnumerator itr = myOriginalArray.GetEnumerator(); itr.MoveNext(); ) - { - object current = itr.Current; - if (!current.Equals(myTargetArray.GetValue(index))) - { - TestLibrary.TestFramework.LogError("005", "Copy error"); - retVal = false; - break; - } - index++; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3:Copies a range of elements from an Array starting at the Sourceindex element and pastes them into another Array starting at the Target index element,the two array can boxing."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(Int32), c_MaxValue); - Array myTargetArray = Array.CreateInstance(typeof(Object), c_MaxValue * 2); - int generator1; - object generator2; - for (int i = 0; i < c_MaxValue; i++) - { - generator1 = i; - generator2 = i + c_MaxValue; - myOriginalArray.SetValue(generator1, i); - myTargetArray.SetValue(generator2, i); - } - Array.Copy(myOriginalArray, c_MinValue, myTargetArray, c_MaxValue, c_MaxValue); - int index = c_MaxValue; - for (IEnumerator itr = myOriginalArray.GetEnumerator(); itr.MoveNext(); ) - { - object current = itr.Current; - if (!current.Equals(myTargetArray.GetValue(index))) - { - TestLibrary.TestFramework.LogError("007", "Copy error"); - retVal = false; - break; - } - index++; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1:sourceArray is a null reference."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(Int32), c_MaxValue); - Array myTargetArray = Array.CreateInstance(typeof(Int32), c_MaxValue * 2); - for (int i = 0; i < c_MaxValue; i++) - { - myOriginalArray.SetValue(i, i); - myTargetArray.SetValue(i + c_MaxValue, i); - } - myOriginalArray = null; - Array.Copy(myOriginalArray, c_MinValue, myTargetArray, c_MaxValue, c_MaxValue); - TestLibrary.TestFramework.LogError("009", "Copy error"); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2:destinationArray is a null reference ."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(Int32), c_MaxValue); - Array myTargetArray = Array.CreateInstance(typeof(Int32), c_MaxValue * 2); - for (int i = 0; i < c_MaxValue; i++) - { - myOriginalArray.SetValue(i, i); - myTargetArray.SetValue(i + c_MaxValue, i); - } - myTargetArray = null; - Array.Copy(myOriginalArray, c_MinValue, myTargetArray, c_MaxValue, c_MaxValue); - TestLibrary.TestFramework.LogError("011", "Copy error"); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest3:sourceArray and destinationArray have different ranks."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(Int32), c_MaxValue); - int[] parameter ={ c_MaxValue, c_MaxValue }; - Array myTargetArray = Array.CreateInstance(typeof(Int32), parameter); - Array.Copy(myOriginalArray, c_MinValue, myTargetArray, c_MaxValue, c_MaxValue); - TestLibrary.TestFramework.LogError("013", "Copy error"); - retVal = false; - } - catch (RankException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("014", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest4:sourceArray and destinationArray are of incompatible types."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(Int32), c_MaxValue); - Array myTargetArray = Array.CreateInstance(typeof(string), c_MaxValue * 2); - Array.Copy(myOriginalArray, c_MinValue, myTargetArray, c_MaxValue, c_MaxValue); - TestLibrary.TestFramework.LogError("015", "Copy error"); - retVal = false; - } - catch (ArrayTypeMismatchException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("016", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest5:At least one element in sourceArray cannot be cast to the type of destinationArray."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(ITestInterface), c_MaxValue); - Array myTargetArray = Array.CreateInstance(typeof(TestBaseClass), c_MaxValue * 2); - TestDeriveClass generator1; - TestBaseClass generator2; - TestDeriveClass1 generator3 = new TestDeriveClass1(100); - for (int i = 0; i < c_MaxValue; i++) - { - generator1 = new TestDeriveClass(i); - generator2 = new TestDeriveClass(i + c_MaxValue); - myOriginalArray.SetValue(generator1, i); - myTargetArray.SetValue(generator2, i); - } - - myOriginalArray.SetValue(generator3, c_MaxValue - 1); - Array.Copy(myOriginalArray, c_MinValue, myTargetArray, c_MaxValue, c_MaxValue); - TestLibrary.TestFramework.LogError("017", "Copy error"); - retVal = false; - } - catch (InvalidCastException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("018", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest6() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest6:length is less than zero."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(Int32), c_MaxValue); - Array myTargetArray = Array.CreateInstance(typeof(Int32), c_MaxValue * 2); - for (int i = 0; i < c_MaxValue; i++) - { - myOriginalArray.SetValue(i, i); - myTargetArray.SetValue(i + c_MaxValue, i); - } - Array.Copy(myOriginalArray, c_MinValue, myTargetArray, c_MaxValue, c_MinValue - 1); - TestLibrary.TestFramework.LogError("019", "Copy error"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("020", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest7() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest7:sourceIndex is less than the lower bound of the first dimension of sourceArray."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(Int32), c_MaxValue); - Array myTargetArray = Array.CreateInstance(typeof(Int32), c_MaxValue * 2); - for (int i = 0; i < c_MaxValue; i++) - { - myOriginalArray.SetValue(i, i); - myTargetArray.SetValue(i + c_MaxValue, i); - } - Array.Copy(myOriginalArray, c_MinValue-1, myTargetArray, c_MaxValue, c_MaxValue); - TestLibrary.TestFramework.LogError("019", "Copy error"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("020", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest8() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest8:destinationIndex is less than the lower bound of the first dimension of destinationArray."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(Int32), c_MaxValue); - Array myTargetArray = Array.CreateInstance(typeof(Int32), c_MaxValue * 2); - for (int i = 0; i < c_MaxValue; i++) - { - myOriginalArray.SetValue(i, i); - myTargetArray.SetValue(i + c_MaxValue, i); - } - Array.Copy(myOriginalArray, c_MinValue, myTargetArray, c_MinValue-1, c_MaxValue); - TestLibrary.TestFramework.LogError("019", "Copy error"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("020", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest9() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest9:length is greater than the number of elements in sourceArray."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(Int32), c_MaxValue); - Array myTargetArray = Array.CreateInstance(typeof(Int32), c_MaxValue * 2); - for (int i = 0; i < c_MaxValue; i++) - { - myOriginalArray.SetValue(i, i); - myTargetArray.SetValue(i + c_MaxValue, i); - } - Array.Copy(myOriginalArray, c_MinValue, myTargetArray, c_MaxValue, c_MaxValue + 1); - TestLibrary.TestFramework.LogError("021", "Copy error"); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("022", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest10() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest10:length is greater than the number of elements in destinationArray."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(Int32), c_MaxValue); - Array myTargetArray = Array.CreateInstance(typeof(Int32), c_MaxValue * 2); - for (int i = 0; i < c_MaxValue; i++) - { - myOriginalArray.SetValue(i, i); - myTargetArray.SetValue(i + c_MaxValue, i); - } - Array.Copy(myOriginalArray, c_MinValue, myTargetArray, c_MaxValue, c_MaxValue * 2 + 1); - TestLibrary.TestFramework.LogError("023", "Copy error"); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("024", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } -} - - - -//create ITestInterface for Negtest5. -interface ITestInterface -{ - string GetName(); -} -//create TestBaseClass for provding test method and test target. -public abstract class TestBaseClass -{ - // The value holder - protected int id; - public TestBaseClass(int Id) - { - id = Id; - } - protected int m_value; - protected abstract int GetValue(); - -} -//create TestDeriveClass for provding test method and test source. -public class TestDeriveClass : TestBaseClass, ITestInterface -{ - int deriveId; - public TestDeriveClass(int Id) - : base(Id) - { - deriveId = Id; - } - - protected override int GetValue() - { - return deriveId; - } - - - #region ITestInterface Members - - public string GetName() - { - return "TestDeriveClass"; - } - - #endregion -} -//create TestDeriveClass for provding test method and test source. -public class TestDeriveClass1 : ITestInterface -{ - int deriveId; - public TestDeriveClass1(int Id) - { - deriveId = Id; - } - - protected int GetValue() - { - return deriveId; - } - #region ITestInterface Members - - public string GetName() - { - return "TestDeriveClass1"; - } - - #endregion -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraycopyto.cs b/tests/src/CoreMangLib/cti/system/array/arraycopyto.cs deleted file mode 100644 index 73e22cb1a7..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraycopyto.cs +++ /dev/null @@ -1,534 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Globalization; -using System.Collections; -/// <summary> -/// CopyTo -/// </summary> -public class ArrayCopyTo -{ - const int c_MaxValue = 10; - const int c_MinValue = 0; - public static int Main() - { - ArrayCopyTo ArrayCopyTo = new ArrayCopyTo(); - - TestLibrary.TestFramework.BeginTestCase("ArrayCopyTo"); - if (ArrayCopyTo.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - retVal = NegTest4() && retVal; - retVal = NegTest5() && retVal; - retVal = NegTest6() && retVal; - retVal = NegTest7() && retVal; - retVal = NegTest8() && retVal; - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1:Copies all the elements of the current one-dimensional Array to the specified one-dimensional Array starting at the specified destination Array index,the two array have the same value type."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(Int32), c_MaxValue); - Array myTargetArray = Array.CreateInstance(typeof(Int32), c_MaxValue * 2); - for (int i = 0; i < c_MaxValue; i++) - { - myOriginalArray.SetValue(i, i); - myTargetArray.SetValue(i + c_MaxValue, i); - } - myOriginalArray.CopyTo(myTargetArray, c_MaxValue); - int index = c_MaxValue; - for (IEnumerator itr = myOriginalArray.GetEnumerator(); itr.MoveNext(); ) - { - object current = itr.Current; - if (!current.Equals(myTargetArray.GetValue(index))) - { - TestLibrary.TestFramework.LogError("001", "Copy error"); - retVal = false; - break; - } - index++; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2:Copies all the elements of the current one-dimensional Array to the specified one-dimensional Array starting at the specified destination Array index,the two array have the same reference type."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(string), c_MaxValue); - Array myTargetArray = Array.CreateInstance(typeof(string), c_MaxValue * 2); - string generator1 = string.Empty; - string generator2 = string.Empty; - for (int i = 0; i < c_MaxValue; i++) - { - generator1 = TestLibrary.Generator.GetString(-55, true, c_MinValue, c_MaxValue); - generator2 = TestLibrary.Generator.GetString(-55, true, c_MinValue, c_MaxValue); - myOriginalArray.SetValue(generator1, i); - myTargetArray.SetValue(generator2, i); - } - myOriginalArray.CopyTo(myTargetArray, c_MaxValue); - int index = c_MaxValue; - for (IEnumerator itr = myOriginalArray.GetEnumerator(); itr.MoveNext(); ) - { - object current = itr.Current; - if (!current.Equals(myTargetArray.GetValue(index))) - { - TestLibrary.TestFramework.LogError("003", "Copy error"); - retVal = false; - break; - } - index++; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3:Copies all the elements of the current one-dimensional Array to the specified one-dimensional Array starting at the specified destination Array index,the two array can upcast."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(TestDeriveClass), c_MaxValue); - Array myTargetArray = Array.CreateInstance(typeof(TestBaseClass), c_MaxValue * 2); - TestDeriveClass generator1; - TestBaseClass generator2; - for (int i = 0; i < c_MaxValue; i++) - { - generator1 = new TestDeriveClass(i); - generator2 = new TestDeriveClass(i + c_MaxValue); - myOriginalArray.SetValue(generator1, i); - myTargetArray.SetValue(generator2, i); - } - myOriginalArray.CopyTo(myTargetArray, c_MaxValue); - int index = c_MaxValue; - for (IEnumerator itr = myOriginalArray.GetEnumerator(); itr.MoveNext(); ) - { - object current = itr.Current; - if (!current.Equals(myTargetArray.GetValue(index))) - { - TestLibrary.TestFramework.LogError("005", "Copy error"); - retVal = false; - break; - } - index++; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool PosTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest4:Copies all the elements of the current one-dimensional Array to the specified one-dimensional Array starting at the specified destination Array index,the two array can boxing."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(Int32), c_MaxValue); - Array myTargetArray = Array.CreateInstance(typeof(Object), c_MaxValue * 2); - int generator1; - object generator2; - for (int i = 0; i < c_MaxValue; i++) - { - generator1 = i; - generator2 = i + c_MaxValue; - myOriginalArray.SetValue(generator1, i); - myTargetArray.SetValue(generator2, i); - } - myOriginalArray.CopyTo(myTargetArray, c_MaxValue); - int index = c_MaxValue; - for (IEnumerator itr = myOriginalArray.GetEnumerator(); itr.MoveNext(); ) - { - object current = itr.Current; - if (!current.Equals(myTargetArray.GetValue(index))) - { - TestLibrary.TestFramework.LogError("007", "Copy error"); - retVal = false; - break; - } - index++; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1:myTargetArray is a null reference."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(Int32), c_MaxValue); - Array myTargetArray = Array.CreateInstance(typeof(Int32), c_MaxValue * 2); - for (int i = 0; i < c_MaxValue; i++) - { - myOriginalArray.SetValue(i, i); - myTargetArray.SetValue(i + c_MaxValue, i); - } - myTargetArray = null; - myOriginalArray.CopyTo(myTargetArray, c_MaxValue); - TestLibrary.TestFramework.LogError("009", "Copy error"); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest6:index is less than the lower bound of array."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(Int32), c_MaxValue); - Array myTargetArray = Array.CreateInstance(typeof(Int32), c_MaxValue * 2); - for (int i = 0; i < c_MaxValue; i++) - { - myOriginalArray.SetValue(i, i); - myTargetArray.SetValue(i + c_MaxValue, i); - } - myOriginalArray.CopyTo(myTargetArray, c_MinValue-1); - TestLibrary.TestFramework.LogError("011", "Copy error"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest3:The source Array is multidimensional."); - try - { - int[] parameter ={ c_MaxValue, c_MaxValue }; - Array myOriginalArray = Array.CreateInstance(typeof(Int32), parameter); - Array myTargetArray = Array.CreateInstance(typeof(Int32), c_MaxValue*3); - myOriginalArray.CopyTo(myTargetArray, c_MinValue - 1); - TestLibrary.TestFramework.LogError("013", "Copy error"); - retVal = false; - } - catch (RankException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("014", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest4:The type of the source Array cannot be cast automatically to the type of the destination array."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(Int32), c_MaxValue); - Array myTargetArray = Array.CreateInstance(typeof(string), c_MaxValue * 2); - myOriginalArray.CopyTo(myTargetArray, c_MaxValue); - TestLibrary.TestFramework.LogError("015", "Copy error"); - retVal = false; - } - catch (ArrayTypeMismatchException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("016", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest5:array is multidimensional."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(Int32), c_MaxValue); - int[] parameter ={ c_MaxValue, c_MaxValue }; - Array myTargetArray = Array.CreateInstance(typeof(Int32), parameter); - for (int i = 0; i < c_MaxValue; i++) - { - myOriginalArray.SetValue(i, i); - } - myOriginalArray.CopyTo(myTargetArray, c_MaxValue); - TestLibrary.TestFramework.LogError("017", "Copy error"); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("018", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest6() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest6:index is equal to or greater than the length of array."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(Int32), c_MaxValue); - Array myTargetArray = Array.CreateInstance(typeof(Int32), c_MaxValue); - for (int i = 0; i < c_MaxValue; i++) - { - myOriginalArray.SetValue(i, i); - } - myOriginalArray.CopyTo(myTargetArray, c_MaxValue); - TestLibrary.TestFramework.LogError("019", "Copy error"); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("020", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest7() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest7:The number of elements in the source Array is greater than the available space from index to the end of the destination array."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(Int32), c_MaxValue * 2); - Array myTargetArray = Array.CreateInstance(typeof(Int32), c_MaxValue); - for (int i = 0; i < c_MaxValue; i++) - { - myOriginalArray.SetValue(i, i); - } - myOriginalArray.CopyTo(myTargetArray, c_MinValue); - TestLibrary.TestFramework.LogError("021", "Copy error"); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("022", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest8() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest8:At least one element in sourceArray cannot be cast to the type of destinationArray."); - try - { - Array myOriginalArray = Array.CreateInstance(typeof(ITestInterface), c_MaxValue); - Array myTargetArray = Array.CreateInstance(typeof(TestBaseClass), c_MaxValue * 2); - TestDeriveClass generator1; - TestBaseClass generator2; - TestDeriveClass1 generator3 = new TestDeriveClass1(100); - for (int i = 0; i < c_MaxValue; i++) - { - generator1 = new TestDeriveClass(i); - generator2 = new TestDeriveClass(i + c_MaxValue); - myOriginalArray.SetValue(generator1, i); - myTargetArray.SetValue(generator2, i); - } - - myOriginalArray.SetValue(generator3, c_MaxValue - 1); - myOriginalArray.CopyTo(myTargetArray, c_MinValue); - TestLibrary.TestFramework.LogError("023", "Copy error"); - retVal = false; - } - catch (InvalidCastException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("024", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } -} - - - -//create ITestInterface for Negtest8. -interface ITestInterface -{ - string GetName(); -} -//create TestBaseClass for provding test method and test target. -public abstract class TestBaseClass -{ - // The value holder - protected int id; - public TestBaseClass(int Id) - { - id = Id; - } - protected int m_value; - protected abstract int GetValue(); - -} -//create TestDeriveClass for provding test method and test source. -public class TestDeriveClass : TestBaseClass, ITestInterface -{ - int deriveId; - public TestDeriveClass(int Id) - : base(Id) - { - deriveId = Id; - } - - protected override int GetValue() - { - return deriveId; - } - - - #region ITestInterface Members - - public string GetName() - { - return "TestDeriveClass"; - } - - #endregion -} -//create TestDeriveClass for provding test method and test source. -public class TestDeriveClass1 : ITestInterface -{ - int deriveId; - public TestDeriveClass1(int Id) - { - deriveId = Id; - } - - protected int GetValue() - { - return deriveId; - } - #region ITestInterface Members - - public string GetName() - { - return "TestDeriveClass1"; - } - - #endregion -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraycreateinstance1.cs b/tests/src/CoreMangLib/cti/system/array/arraycreateinstance1.cs deleted file mode 100644 index ae653d24c4..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraycreateinstance1.cs +++ /dev/null @@ -1,370 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Globalization; -using System.Collections; -/// <summary> -/// CreateInstance Method (Type, Int32) -/// </summary> -public class ArrayCreateInstance1 -{ - const int c_MaxValue = 10; - const int c_MinValue = 0; - public static int Main() - { - ArrayCreateInstance1 ArrayCreateInstance1 = new ArrayCreateInstance1(); - - TestLibrary.TestFramework.BeginTestCase("ArrayCreateInstance1"); - if (ArrayCreateInstance1.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - retVal = NegTest4() && retVal; - - return retVal; - } - - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: create a one-dimensional Array with int type."); - try - { - - Array myArray = Array.CreateInstance(typeof(int), c_MaxValue); - int[] myIntArray = new int[c_MaxValue]; - int generator = 0; - for (int i = 0; i < c_MaxValue; i++) - { - generator = TestLibrary.Generator.GetInt32(-55); - myArray.SetValue(generator, i); - myIntArray[i] = generator; - } - int index = c_MinValue; - for (IEnumerator itr = myArray.GetEnumerator(); itr.MoveNext(); ) - { - object current = itr.Current; - if (!current.Equals(myIntArray[index])) - { - TestLibrary.TestFramework.LogError("001", "Create error."); - retVal = false; - break; - } - index++; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: create a one-dimensional Array with string type."); - try - { - Array myArray = Array.CreateInstance(typeof(string), c_MaxValue); - string[] myStringArray = new string[c_MaxValue]; - string generator = string.Empty; - for (int i = 0; i < c_MaxValue; i++) - { - generator = TestLibrary.Generator.GetString(-55, true, c_MinValue, c_MaxValue); - myArray.SetValue(generator, i); - myStringArray[i] = generator; - } - int index = c_MinValue; - for (IEnumerator itr = myArray.GetEnumerator(); itr.MoveNext(); ) - { - object current = itr.Current; - if (!current.Equals(myStringArray[index])) - { - TestLibrary.TestFramework.LogError("003", "Create error."); - retVal = false; - break; - } - index++; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: create a one-dimensional Array with user define type."); - - try - { - Array myArray = Array.CreateInstance(typeof(Temperature), c_MaxValue); - Temperature[] myTemperatureArray = new Temperature[c_MaxValue]; - Temperature generator = null; - for (int i = 0; i < c_MaxValue; i++) - { - generator = new Temperature(); - generator.Value = i * 4; - myArray.SetValue(generator, i); - myTemperatureArray[i] = generator; - } - int index = c_MinValue; - for (IEnumerator itr = myArray.GetEnumerator(); itr.MoveNext(); ) - { - object current = itr.Current; - if (!current.Equals(myTemperatureArray[index])) - { - TestLibrary.TestFramework.LogError("005", "Create error."); - retVal = false; - break; - } - index++; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool PosTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest4: create a one-dimensional Array with user define Generic type."); - try - { - Array myArray = Array.CreateInstance(typeof(TestClass1<int>), c_MaxValue); - TestClass1<int>[] myTemperatureArray = new TestClass1<int>[c_MaxValue]; - TestClass1<int> generator = null; - for (int i = 0; i < c_MaxValue; i++) - { - generator = new TestClass1<int>(); - generator.Value = i * 4; - myArray.SetValue(generator, i); - myTemperatureArray[i] = generator; - } - int index = c_MinValue; - for (IEnumerator itr = myArray.GetEnumerator(); itr.MoveNext(); ) - { - object current = itr.Current; - if (!current.Equals(myTemperatureArray[index])) - { - TestLibrary.TestFramework.LogError("007", "Create error."); - retVal = false; - break; - } - index++; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: elementType is a null reference ."); - - try - { - Array myArray = Array.CreateInstance(null, c_MaxValue); - TestLibrary.TestFramework.LogError("009", "elementType is a null reference should not be created."); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2: elementType is not supported. Void is not supported."); - try - { - Array myArray = Array.CreateInstance(typeof(void), c_MaxValue); - TestLibrary.TestFramework.LogError("011", "Void should not be supported."); - retVal = false; - } - catch (NotSupportedException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest3: elementType is an open generic type."); - - try - { - Array myArray = Array.CreateInstance(typeof(TestClass1<>), c_MaxValue); - TestLibrary.TestFramework.LogError("013", "elementType is an open generic type."); - retVal = false; - } - catch (NotSupportedException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("014", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest4: length is less than zero."); - - try - { - Array myArray = Array.CreateInstance(typeof(int), c_MinValue -1); - TestLibrary.TestFramework.LogError("015", "length is less than zero."); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("016", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - -} -//create Temperature for provding test method and test target. -public class Temperature : System.Collections.IComparer -{ - - // The value holder - protected int m_value; - - public int Value - { - get - { - return m_value; - } - set - { - m_value = value; - } - } - #region IComparer Members - - public int Compare(object x, object y) - { - if (x is Temperature) - { - Temperature temp = (Temperature)x; - - return ((Temperature)y).m_value.CompareTo(temp.m_value); - } - - throw new Exception("The method parameter x is not expected."); - } - - #endregion -} - -public class TestClass1<T> -{ - // The value holder - protected int m_value; - - public int Value - { - get - { - return m_value; - } - set - { - m_value = value; - } - } -} - - diff --git a/tests/src/CoreMangLib/cti/system/array/arraycreateinstance1b.cs b/tests/src/CoreMangLib/cti/system/array/arraycreateinstance1b.cs deleted file mode 100644 index 070175b4a0..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraycreateinstance1b.cs +++ /dev/null @@ -1,169 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -public class ArrayCreateInstance1 -{ - private const int c_MIN_SIZE = 64; - private const int c_MAX_SIZE = 1024; - private const int c_MIN_STRLEN = 1; - private const int c_MAX_STRLEN = 1024; - - public static int Main() - { - ArrayCreateInstance1 ac = new ArrayCreateInstance1(); - - TestLibrary.TestFramework.BeginTestCase("Array.CreateInstance(Type, int)"); - - if (ac.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - retVal = PosTest8() && retVal; - retVal = PosTest9() && retVal; - retVal = PosTest10() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - - return retVal; - } - - public bool PosTest1() { return PosCreateInstance<Int64>(1, TestLibrary.Generator.GetInt64(-55)); } - public bool PosTest2() { return PosCreateInstance<Int32>(2, TestLibrary.Generator.GetInt32(-55)); } - public bool PosTest3() { return PosCreateInstance<Int16>(3, TestLibrary.Generator.GetInt16(-55)); } - public bool PosTest4() { return PosCreateInstance<Byte>(4, TestLibrary.Generator.GetByte(-55)); } - public bool PosTest5() { return PosCreateInstance<double>(5, TestLibrary.Generator.GetDouble(-55)); } - public bool PosTest6() { return PosCreateInstance<float>(6, TestLibrary.Generator.GetSingle(-55)); } - public bool PosTest7() { return PosCreateInstance<char>(7, TestLibrary.Generator.GetCharLetter(-55)); } - public bool PosTest8() { return PosCreateInstance<char>(8, TestLibrary.Generator.GetCharNumber(-55)); } - public bool PosTest9() { return PosCreateInstance<char>(9, TestLibrary.Generator.GetChar(-55)); } - public bool PosTest10() { return PosCreateInstance<string>(10, TestLibrary.Generator.GetString(-55, false, c_MIN_STRLEN, c_MAX_STRLEN)); } - - - - public bool PosCreateInstance<T>(int id, T defaultValue) - { - bool retVal = true; - Array array; - int length; - - TestLibrary.TestFramework.BeginScenario("PosTest"+id+": Array.CreateInstance(Type, int) (T == "+typeof(T)+")"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - - array = Array.CreateInstance(typeof(T), length); - - array.SetValue(defaultValue, 0); - - if (length != array.Length) - { - TestLibrary.TestFramework.LogError("000", "Unexpected length: Expected(" + length + ") Actual(" + array.Length + ")"); - retVal = false; - } - - if (typeof(T) != array.GetValue(0).GetType()) - { - TestLibrary.TestFramework.LogError("001", "Type mismatch: Expected(" + typeof(T) + ") Actual(" + array.GetValue(0).GetType() + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - Array array; - int length; - - TestLibrary.TestFramework.BeginScenario("NegTest1: Array.CreateInstance(Type, int) where T is null"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - - array = Array.CreateInstance(null, length); - - TestLibrary.TestFramework.LogError("003", "Execption expected"); - retVal = false; - } - catch (ArgumentNullException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - Array array; - - TestLibrary.TestFramework.BeginScenario("NegTest2: Array.CreateInstance(Type, int) length < 0"); - - try - { - // creat the array - array = Array.CreateInstance(typeof(Int32), -1); - - TestLibrary.TestFramework.LogError("005", "Exception expected"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraycreateinstance2.cs b/tests/src/CoreMangLib/cti/system/array/arraycreateinstance2.cs deleted file mode 100644 index dbdf3efd03..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraycreateinstance2.cs +++ /dev/null @@ -1,205 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -public class ArrayCreateInstance2 -{ - private const int c_MIN_SIZE = 64; - private const int c_MAX_SIZE = 1024; - private const int c_MIN_STRLEN = 1; - private const int c_MAX_STRLEN = 1024; - - public static int Main() - { - ArrayCreateInstance2 ac = new ArrayCreateInstance2(); - - TestLibrary.TestFramework.BeginTestCase("Array.CreateInstance(Type, int[])"); - - if (ac.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - retVal = PosTest8() && retVal; - retVal = PosTest9() && retVal; - retVal = PosTest10() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - - return retVal; - } - - public bool PosTest1() { return PosCreateInstance<Int64>(1, TestLibrary.Generator.GetInt64(-55)); } - public bool PosTest2() { return PosCreateInstance<Int32>(2, TestLibrary.Generator.GetInt32(-55)); } - public bool PosTest3() { return PosCreateInstance<Int16>(3, TestLibrary.Generator.GetInt16(-55)); } - public bool PosTest4() { return PosCreateInstance<Byte>(4, TestLibrary.Generator.GetByte(-55)); } - public bool PosTest5() { return PosCreateInstance<double>(5, TestLibrary.Generator.GetDouble(-55)); } - public bool PosTest6() { return PosCreateInstance<float>(6, TestLibrary.Generator.GetSingle(-55)); } - public bool PosTest7() { return PosCreateInstance<char>(7, TestLibrary.Generator.GetCharLetter(-55)); } - public bool PosTest8() { return PosCreateInstance<char>(8, TestLibrary.Generator.GetCharNumber(-55)); } - public bool PosTest9() { return PosCreateInstance<char>(9, TestLibrary.Generator.GetChar(-55)); } - public bool PosTest10() { return PosCreateInstance<string>(10, TestLibrary.Generator.GetString(-55, false, c_MIN_STRLEN, c_MAX_STRLEN)); } - - - - public bool PosCreateInstance<T>(int id, T defaultValue) - { - bool retVal = true; - Array array; - int length; - int[] dims; - - TestLibrary.TestFramework.BeginScenario("PosTest"+id+": Array.CreateInstance(Type, int[]) (T == "+typeof(T)+")"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % 5) + 1; - - dims = new int[ length ]; - - for(int i=0; i<dims.Length; i++) dims[i] = (TestLibrary.Generator.GetInt32(-55) % 10); - - array = Array.CreateInstance(typeof(T), dims); - - if (length != array.Rank) - { - TestLibrary.TestFramework.LogError("000", "Unexpected rank: Expected(" + length + ") Actual(" + array.Rank + ")"); - retVal = false; - } - - for(int i=0; i<dims.Length; i++) - { - if (dims[i] != array.GetLength(i)) - { - TestLibrary.TestFramework.LogError("001", "Unexpected length (dim "+i+"): Expected(" + dims[i] + ") Actual(" + array.GetLength(i) + ")"); - retVal = false; - } - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - Array array; - int length; - - TestLibrary.TestFramework.BeginScenario("NegTest1: Array.CreateInstance(Type, int[]) where T is null"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - - array = Array.CreateInstance(null, new int[2] {length, length}); - - TestLibrary.TestFramework.LogError("003", "Execption expected"); - retVal = false; - } - catch (ArgumentNullException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - Array array; - int[] dims = null; - - TestLibrary.TestFramework.BeginScenario("NegTest2: Array.CreateInstance(Type, int[]) length == null"); - - try - { - // creat the array - array = Array.CreateInstance(typeof(Int32), dims); - - TestLibrary.TestFramework.LogError("005", "Exception expected"); - retVal = false; - } - catch (ArgumentNullException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - Array array; - - TestLibrary.TestFramework.BeginScenario("NegTest3: Array.CreateInstance(Type, int[]) length.Length == 0"); - - try - { - // creat the array - array = Array.CreateInstance(typeof(Int32), new int[0]); - - TestLibrary.TestFramework.LogError("007", "Exception expected"); - retVal = false; - } - catch (ArgumentException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraycreateinstance2b.cs b/tests/src/CoreMangLib/cti/system/array/arraycreateinstance2b.cs deleted file mode 100644 index 7b77e9ed3f..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraycreateinstance2b.cs +++ /dev/null @@ -1,495 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Globalization; -using System.Collections; -/// <summary> -/// CreateInstance Method (Type, Int32[]) -/// </summary> -public class ArrayCreateInstance2 -{ - const int c_MaxValue = 10; - const int c_MinValue = 0; - public static int Main() - { - ArrayCreateInstance2 ArrayCreateInstance2 = new ArrayCreateInstance2(); - - TestLibrary.TestFramework.BeginTestCase("ArrayCreateInstance2"); - if (ArrayCreateInstance2.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - retVal = NegTest4() && retVal; - retVal = NegTest5() && retVal; - retVal = NegTest6() && retVal; - return retVal; - } - - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: create a multidimensional Array with int type."); - try - { - int[] parameter ={ c_MaxValue, c_MaxValue }; - Array myArray = Array.CreateInstance(typeof(int), parameter); - int[,] myIntArray = new int[c_MaxValue, c_MaxValue]; - int generator = 0; - for (int i = 0; i < c_MaxValue; i++) - { - for (int j = 0; j < c_MaxValue;j++) - { - generator = TestLibrary.Generator.GetInt32(-55); - myArray.SetValue(generator, i, j); - myIntArray[i,j] = generator; - } - } - if (!ToAssureReturnValue(myArray, myIntArray)) - { - TestLibrary.TestFramework.LogError("001", "Create error."); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: create a multidimensional Array with string type."); - try - { - int[] parameter ={ c_MaxValue, c_MaxValue }; - Array myArray = Array.CreateInstance(typeof(string), parameter); - string[,] myStringArray = new string[c_MaxValue, c_MaxValue]; - string generator = string.Empty; - for (int i = 0; i < c_MaxValue; i++) - { - for (int j = 0; j < c_MaxValue; j++) - { - generator = TestLibrary.Generator.GetString(-55, true, c_MinValue, c_MaxValue); - myArray.SetValue(generator, i, j); - myStringArray[i,j] = generator; - } - } - if (!ToAssureReturnValue(myArray, myStringArray)) - { - TestLibrary.TestFramework.LogError("003", "Create error."); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: create a multidimensional Array with user define type."); - - try - { - int[] parameter ={ c_MaxValue, c_MaxValue }; - Array myArray = Array.CreateInstance(typeof(Temperature), parameter); - Temperature[,] myTemperatureArray = new Temperature[c_MaxValue, c_MaxValue]; - Temperature generator = null; - for (int i = 0; i < c_MaxValue; i++) - { - for (int j = 0; j < c_MaxValue; j++) - { - generator = new Temperature(); - generator.Value = i * 4 + j; - myArray.SetValue(generator, i, j); - myTemperatureArray[i,j] = generator; - } - } - if (!ToAssureReturnValue(myArray, myTemperatureArray)) - { - TestLibrary.TestFramework.LogError("005", "Create error."); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool PosTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest4: create a multidimensional Array with user define Generic type."); - try - { - int[] parameter ={ c_MaxValue, c_MaxValue }; - Array myArray = Array.CreateInstance(typeof(TestClass1<int>), parameter); - TestClass1<int>[,] myTemperatureArray = new TestClass1<int>[c_MaxValue, c_MaxValue]; - TestClass1<int> generator = null; - for (int i = 0; i < c_MaxValue; i++) - { - for (int j = 0; j < c_MaxValue; j++) - { - generator = new TestClass1<int>(); - generator.Value = i * 4+j; - myArray.SetValue(generator, i, j); - myTemperatureArray[i,j] = generator; - } - } - if (!ToAssureReturnValue(myArray, myTemperatureArray)) - { - TestLibrary.TestFramework.LogError("007", "Create error."); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: elementType is a null reference ."); - - try - { - int[] parameter ={ c_MaxValue, c_MaxValue }; - Array myArray = Array.CreateInstance(null, parameter); - TestLibrary.TestFramework.LogError("009", "elementType is a null reference should not be created."); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2: lengths is a null reference ."); - - try - { - int[] parameter =null; - Array myArray = Array.CreateInstance(typeof(int), parameter); - TestLibrary.TestFramework.LogError("011", "lengths is a null reference should not be created."); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest3: elementType is not supported. Void is not supported."); - try - { - int[] parameter ={ c_MaxValue, c_MaxValue }; - Array myArray = Array.CreateInstance(typeof(void), parameter); - TestLibrary.TestFramework.LogError("013", "Void should not be supported."); - retVal = false; - } - catch (NotSupportedException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("014", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest4: elementType is an open generic type."); - - try - { - int[] parameter ={ c_MaxValue, c_MaxValue }; - Array myArray = Array.CreateInstance(typeof(TestClass1<>), parameter); - TestLibrary.TestFramework.LogError("015", "elementType is an open generic type."); - retVal = false; - } - catch (NotSupportedException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("016", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest5: Any value in lengths is less than zero."); - - try - { - int[] parameter ={ c_MinValue - 1, c_MaxValue }; - Array myArray = Array.CreateInstance(typeof(int), parameter); - TestLibrary.TestFramework.LogError("017", "Any value in lengths is less than zero."); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("018", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool NegTest6() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest6: The lengths array contains less than one element."); - - try - { - int[] parameter ={ }; - Array myArray = Array.CreateInstance(typeof(int), parameter); - TestLibrary.TestFramework.LogError("019", "The lengths array contains less than one element."); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("020", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #region private method - private bool ToAssureReturnValue(Array myArray, int [,] myExpectArray) - { - int indexi = c_MinValue; - int indexj = c_MinValue; - for (IEnumerator itr = myArray.GetEnumerator(); itr.MoveNext(); ) - { - object current = itr.Current; - if (!current.Equals(myExpectArray[indexi, indexj])) - { - return false; - } - indexj++; - if (indexj == c_MaxValue) - { - indexj = c_MinValue; - indexi++; - } - } - return true; - } - private bool ToAssureReturnValue(Array myArray, string[,] myExpectArray) - { - int indexi = c_MinValue; - int indexj = c_MinValue; - for (IEnumerator itr = myArray.GetEnumerator(); itr.MoveNext(); ) - { - object current = itr.Current; - if (!current.Equals(myExpectArray[indexi, indexj])) - { - return false; - } - indexj++; - if (indexj == c_MaxValue) - { - indexj = c_MinValue; - indexi++; - } - } - return true; - } - private bool ToAssureReturnValue(Array myArray, Temperature [,] myExpectArray) - { - int indexi = c_MinValue; - int indexj = c_MinValue; - for (IEnumerator itr = myArray.GetEnumerator(); itr.MoveNext(); ) - { - object current = itr.Current; - if (!current.Equals(myExpectArray[indexi, indexj])) - { - return false; - } - indexj++; - if (indexj == c_MaxValue) - { - indexj = c_MinValue; - indexi++; - } - } - return true; - } - private bool ToAssureReturnValue(Array myArray, TestClass1<int>[,] myExpectArray) - { - int indexi = c_MinValue; - int indexj = c_MinValue; - for (IEnumerator itr = myArray.GetEnumerator(); itr.MoveNext(); ) - { - object current = itr.Current; - if (!current.Equals(myExpectArray[indexi, indexj])) - { - return false; - } - indexj++; - if (indexj == c_MaxValue) - { - indexj = c_MinValue; - indexi++; - } - } - return true; - } - #endregion -} -//create Temperature for provding test method and test target. -public class Temperature : System.Collections.IComparer -{ - - // The value holder - protected int m_value; - - public int Value - { - get - { - return m_value; - } - set - { - m_value = value; - } - } - #region IComparer Members - - public int Compare(object x, object y) - { - if (x is Temperature) - { - Temperature temp = (Temperature)x; - - return ((Temperature)y).m_value.CompareTo(temp.m_value); - } - - throw new Exception("The method parameter x is not expected."); - } - - #endregion -} - -public class TestClass1<T> -{ - // The value holder - protected int m_value; - - public int Value - { - get - { - return m_value; - } - set - { - m_value = value; - } - } -} - diff --git a/tests/src/CoreMangLib/cti/system/array/arraygetenumerator.cs b/tests/src/CoreMangLib/cti/system/array/arraygetenumerator.cs deleted file mode 100644 index 0b7b7950a5..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraygetenumerator.cs +++ /dev/null @@ -1,375 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Globalization; -using System.Collections; -/// <summary> -///GetEnumerator -/// </summary> -public class ArrayGetEnumerator -{ - const int c_MaxValue = 10; - const int c_MinValue = 0; - public static int Main() - { - ArrayGetEnumerator ArrayGetEnumerator = new ArrayGetEnumerator(); - - TestLibrary.TestFramework.BeginTestCase("ArrayGetEnumerator"); - if (ArrayGetEnumerator.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - return retVal; - } - - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: create a multidimensional Array with int type.GetEnumerator method Returns an IEnumerator for the Array."); - try - { - int[] parameter ={ c_MaxValue, c_MaxValue }; - Array myArray = Array.CreateInstance(typeof(int), parameter); - int[,] myIntArray = new int[c_MaxValue, c_MaxValue]; - int generator = 0; - for (int i = 0; i < c_MaxValue; i++) - { - for (int j = 0; j < c_MaxValue;j++) - { - generator = TestLibrary.Generator.GetInt32(-55); - myArray.SetValue(generator, i, j); - myIntArray[i,j] = generator; - } - } - if (!ToAssureIenumeratorReturnandCorrect(myArray, myIntArray)) - { - TestLibrary.TestFramework.LogError("001", "Getenumerator method should returns an IEnumerator for the Array. "); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: create a multidimensional Array with string type..GetEnumerator method Returns an IEnumerator for the Array."); - try - { - int[] parameter ={ c_MaxValue, c_MaxValue }; - Array myArray = Array.CreateInstance(typeof(string), parameter); - string[,] myStringArray = new string[c_MaxValue, c_MaxValue]; - string generator = string.Empty; - for (int i = 0; i < c_MaxValue; i++) - { - for (int j = 0; j < c_MaxValue; j++) - { - generator = TestLibrary.Generator.GetString(-55, true, c_MinValue, c_MaxValue); - myArray.SetValue(generator, i, j); - myStringArray[i,j] = generator; - } - } - if (!ToAssureIenumeratorReturnandCorrect(myArray, myStringArray)) - { - TestLibrary.TestFramework.LogError("003", "Getenumerator method should returns an IEnumerator for the Array. "); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: create a multidimensional Array with user define type..GetEnumerator method Returns an IEnumerator for the Array."); - - try - { - int[] parameter ={ c_MaxValue, c_MaxValue }; - Array myArray = Array.CreateInstance(typeof(Temperature), parameter); - Temperature[,] myTemperatureArray = new Temperature[c_MaxValue, c_MaxValue]; - Temperature generator = null; - for (int i = 0; i < c_MaxValue; i++) - { - for (int j = 0; j < c_MaxValue; j++) - { - generator = new Temperature(); - generator.Value = i * 4 + j; - myArray.SetValue(generator, i, j); - myTemperatureArray[i,j] = generator; - } - } - if (!ToAssureIenumeratorReturnandCorrect(myArray, myTemperatureArray)) - { - TestLibrary.TestFramework.LogError("005", "Getenumerator method should returns an IEnumerator for the Array. "); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool PosTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest4: create a multidimensional Array with user define Generic type..GetEnumerator method Returns an IEnumerator for the Array."); - try - { - int[] parameter ={ c_MaxValue, c_MaxValue }; - Array myArray = Array.CreateInstance(typeof(TestClass1<int>), parameter); - TestClass1<int>[,] myTemperatureArray = new TestClass1<int>[c_MaxValue, c_MaxValue]; - TestClass1<int> generator = null; - for (int i = 0; i < c_MaxValue; i++) - { - for (int j = 0; j < c_MaxValue; j++) - { - generator = new TestClass1<int>(); - generator.Value = i * 4+j; - myArray.SetValue(generator, i, j); - myTemperatureArray[i,j] = generator; - } - } - if (!ToAssureIenumeratorReturnandCorrect(myArray, myTemperatureArray)) - { - TestLibrary.TestFramework.LogError("007", "Getenumerator method should returns an IEnumerator for the Array. "); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - // Returns true if the expected result is right - // Returns false if the expected result is wrong - public bool PosTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest5: create a one-dimensional Array with int type.Getenumerator method Returns an IEnumerator for the Array."); - try - { - - Array myArray = Array.CreateInstance(typeof(int), c_MaxValue); - int[] myIntArray = new int[c_MaxValue]; - int generator = 0; - for (int i = 0; i < c_MaxValue; i++) - { - generator = TestLibrary.Generator.GetInt32(-55); - myArray.SetValue(generator, i); - myIntArray[i] = generator; - } - int index = c_MinValue; - for (IEnumerator itr = myArray.GetEnumerator(); itr.MoveNext(); ) - { - object current = itr.Current; - if (!current.Equals(myIntArray[index])) - { - TestLibrary.TestFramework.LogError("009", "Getenumerator method should returns an IEnumerator for the Array. "); - retVal = false; - break; - } - index++; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - #region private method - - private bool ToAssureIenumeratorReturnandCorrect(Array myArray, int [,] myExpectArray) - { - int indexi = c_MinValue; - int indexj = c_MinValue; - for (IEnumerator itr = myArray.GetEnumerator(); itr.MoveNext(); ) - { - object current = itr.Current; - if (!current.Equals(myExpectArray[indexi, indexj])) - { - return false; - } - indexj++; - if (indexj == c_MaxValue) - { - indexj = c_MinValue; - indexi++; - } - } - return true; - } - private bool ToAssureIenumeratorReturnandCorrect(Array myArray, string[,] myExpectArray) - { - int indexi = c_MinValue; - int indexj = c_MinValue; - for (IEnumerator itr = myArray.GetEnumerator(); itr.MoveNext(); ) - { - object current = itr.Current; - if (!current.Equals(myExpectArray[indexi, indexj])) - { - return false; - } - indexj++; - if (indexj == c_MaxValue) - { - indexj = c_MinValue; - indexi++; - } - } - return true; - } - private bool ToAssureIenumeratorReturnandCorrect(Array myArray, Temperature [,] myExpectArray) - { - int indexi = c_MinValue; - int indexj = c_MinValue; - for (IEnumerator itr = myArray.GetEnumerator(); itr.MoveNext(); ) - { - object current = itr.Current; - if (!current.Equals(myExpectArray[indexi, indexj])) - { - return false; - } - indexj++; - if (indexj == c_MaxValue) - { - indexj = c_MinValue; - indexi++; - } - } - return true; - } - private bool ToAssureIenumeratorReturnandCorrect(Array myArray, TestClass1<int>[,] myExpectArray) - { - int indexi = c_MinValue; - int indexj = c_MinValue; - for (IEnumerator itr = myArray.GetEnumerator(); itr.MoveNext(); ) - { - object current = itr.Current; - if (!current.Equals(myExpectArray[indexi, indexj])) - { - return false; - } - indexj++; - if (indexj == c_MaxValue) - { - indexj = c_MinValue; - indexi++; - } - } - return true; - } - #endregion -} -//create Temperature for provding test method and test target. -public class Temperature : System.Collections.IComparer -{ - - // The value holder - protected int m_value; - - public int Value - { - get - { - return m_value; - } - set - { - m_value = value; - } - } - #region IComparer Members - - public int Compare(object x, object y) - { - if (x is Temperature) - { - Temperature temp = (Temperature)x; - - return ((Temperature)y).m_value.CompareTo(temp.m_value); - } - - throw new Exception("The method parameter x is not expected."); - } - - #endregion -} - -public class TestClass1<T> -{ - // The value holder - protected int m_value; - - public int Value - { - get - { - return m_value; - } - set - { - m_value = value; - } - } -} - - diff --git a/tests/src/CoreMangLib/cti/system/array/arraygetlength.cs b/tests/src/CoreMangLib/cti/system/array/arraygetlength.cs deleted file mode 100644 index 2c1d146f98..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraygetlength.cs +++ /dev/null @@ -1,202 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -//System.Array.GetLength(System.Int32) -public class ArrayGetLength -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Test the one dimension array "); - - try - { - int length = TestLibrary.Generator.GetByte(-55); - int[] i1 = new int[length]; - for (int i = 0; i < length; i++) - { - i1[i] = i; - } - if (i1.GetLength(0) != length) - { - TestLibrary.TestFramework.LogError("001", "The result is not the value as expected. "); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Test the two dimension array "); - - try - { - int[] length = { TestLibrary.Generator.GetInt16(-55), TestLibrary.Generator.GetByte() }; - string[,] s1 = new string[length[0], length[1]]; - int d1, d2; - d1 = s1.GetLength(0); - d2 = s1.GetLength(1); - if ((d1 != length[0]) || (d2 != length[1])) - { - TestLibrary.TestFramework.LogError("003", "The result is not the value as expected. "); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: Test the multiple dimension array "); - - try - { - int dimen = 5; - int[] d = new int[5];// the return value array of GetLength methods, - int[] length = new int[dimen]; - for (int y = 0; y < 5; y++) - { - do - { - length[y] = TestLibrary.Generator.GetByte(-55) % 10; - } - while (length[y] == 0); - } - double[, , , ,] s1 = new double[length[0], length[1], length[2], length[3], length[4]]; - - for (int i = 0; i < dimen; i++) - { - d[i] = s1.GetLength(i); - } - for (int i = 0; i < dimen; i++) - { - if (d[i] != length[i]) - { - TestLibrary.TestFramework.LogError("005", "The result is not the value as expected. "); - retVal = false; - } - - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: The dimension is less than zero"); - - try - { - int[] i1 = new int[TestLibrary.Generator.GetByte(-55)]; - int length = i1.GetLength(-1); - TestLibrary.TestFramework.LogError("101", "The IndexOutOfRangeException is not thrown as expected "); - retVal = false; - } - catch (IndexOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2: The dimension is greater than the rank"); - - try - { - int rank = TestLibrary.Generator.GetByte(-55); - int[] i1 = new int[rank]; - int length = i1.GetLength(rank + 1); - TestLibrary.TestFramework.LogError("103", "The IndexOutOfRangeException is not thrown as expected "); - retVal = false; - } - catch (IndexOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - ArrayGetLength test = new ArrayGetLength(); - - TestLibrary.TestFramework.BeginTestCase("ArrayGetLength"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraygetlowerbound.cs b/tests/src/CoreMangLib/cti/system/array/arraygetlowerbound.cs deleted file mode 100644 index 2dc0545baa..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraygetlowerbound.cs +++ /dev/null @@ -1,208 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -//System.Array.GetLowerBound(System.Int32) -public class ArrayGetLowerBound -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Test the one dimension array "); - - try - { - int length = TestLibrary.Generator.GetByte(-55); - int[] i1 = new int[length]; - if (i1.GetLowerBound(0) != 0) - { - TestLibrary.TestFramework.LogError("001", "The result is not the value as expected. "); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Test the multiple dimension array "); - - try - { - int dimen = 3; - int[] d = new int[dimen];// the return value array of Getlowerbound methods, - int[] length = new int[dimen]; - for (int y = 0; y < 3; y++) - { - do - { - length[y] = TestLibrary.Generator.GetByte(-55) % 10; - } - while (length[y] == 0); - } - double[, ,] s1 = new double[length[0], length[1], length[2]]; - - for (int i = 0; i < dimen; i++) - { - d[i] = s1.GetLowerBound(i); - } - for (int i = 0; i < dimen; i++) - { - if (d[i] != 0) - { - TestLibrary.TestFramework.LogError("005", "The result is not the value as expected. "); - retVal = false; - } - - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - - #region Negative Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: The dimension is less than zero"); - - try - { - int[] i1 = new int[TestLibrary.Generator.GetByte(-55) + 1]; - int bound = i1.GetLowerBound(-1); - TestLibrary.TestFramework.LogError("101", "The IndexOutOfRangeException is not thrown as expected "); - retVal = false; - } - catch (IndexOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - - - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2: The dimension is greater than the rank"); - - try - { - int rank = (TestLibrary.Generator.GetByte(-55) % 12) + 1; - Array theArray = GetArrayOfRank(rank, 2); - int bound = theArray.GetLowerBound(theArray.Rank + 1); - TestLibrary.TestFramework.LogError("103", "The IndexOutOfRangeException is not thrown as expected "); - retVal = false; - } - catch (IndexOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest3: The dimension is equal to the rank"); - - try - { - int rank = (TestLibrary.Generator.GetByte(-55) % 12) + 1; - Array theArray = GetArrayOfRank(rank, 2); - int bound = theArray.GetLowerBound(theArray.Rank); - TestLibrary.TestFramework.LogError("105", "The IndexOutOfRangeException is not thrown as expected "); - retVal = false; - } - catch (IndexOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("106", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - - // Return an (integer) System.Array with specified rank, each dimension of size dimSize - // ex. GetArrayOfRank(4, 3) is equivalent to new int[3,3,3,3] - private Array GetArrayOfRank(int rank, int dimSize) - { - int[] sizeArray = new int[rank]; - for (int j = 0; j < rank; j++) - sizeArray[j] = dimSize; - return Array.CreateInstance(typeof(int), sizeArray); - } - #endregion - - public static int Main() - { - ArrayGetLowerBound test = new ArrayGetLowerBound(); - - TestLibrary.TestFramework.BeginTestCase("ArrayGetLowerBound"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraygetupperbound.cs b/tests/src/CoreMangLib/cti/system/array/arraygetupperbound.cs deleted file mode 100644 index afacbd03d8..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraygetupperbound.cs +++ /dev/null @@ -1,215 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -//System.Array.GetUpperBound(System.Int32) -public class ArrayGetUpperBound -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Test the one dimension array "); - - try - { - int length = GetInt(1, Byte.MaxValue); - int[] i1 = new int[length]; - if (i1.GetUpperBound(0) != (length - 1)) - { - TestLibrary.TestFramework.LogError("001", "The result is not the value as expected. "); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Test the multiple dimension array "); - - try - { - int dimen = 3; - int[] d = new int[dimen];// the return value array of Getlowerbound methods, - int[] length = new int[dimen]; - for (int y = 0; y < 3; y++) - { - do - { - length[y] = TestLibrary.Generator.GetByte() % 10; - } - while (length[y] == 0); - } - double[, ,] s1 = new double[length[0], length[1], length[2]]; - - for (int i = 0; i < dimen; i++) - { - d[i] = s1.GetUpperBound(i); - } - for (int i = 0; i < dimen; i++) - { - if (d[i] != (length[i] - 1)) - { - TestLibrary.TestFramework.LogError("005", "The result is not the value as expected. "); - retVal = false; - } - - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: The dimension is less than zero"); - - try - { - int[] i1 = new int[GetInt(1, Byte.MaxValue)]; - int bound = i1.GetUpperBound(-1); - TestLibrary.TestFramework.LogError("101", "The IndexOutOfRangeException is not thrown as expected "); - retVal = false; - } - catch (IndexOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2: The dimension is equal to the rank"); - - try - { - int rank = GetInt(1, Byte.MaxValue); - int[] i1 = new int[rank]; - int bound = i1.GetUpperBound(rank); - TestLibrary.TestFramework.LogError("103", "The IndexOutOfRangeException is not thrown as expected "); - retVal = false; - } - catch (IndexOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest3: The dimension is greater than the rank"); - - try - { - int rank = GetInt(1, Byte.MaxValue); - int range = GetInt(1, Byte.MaxValue); - int[] i1 = new int[rank]; - int bound = i1.GetUpperBound(rank + range); - TestLibrary.TestFramework.LogError("105", "The IndexOutOfRangeException is not thrown as expected "); - retVal = false; - } - catch (IndexOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("106", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - #region Help method for geting test data - - private Int32 GetInt(Int32 minValue, Int32 maxValue) - { - if (minValue == maxValue) - { - return minValue; - } - if (minValue < maxValue) - { - return minValue + TestLibrary.Generator.GetInt32() % (maxValue - minValue); - } - - return minValue; - } - - #endregion - - public static int Main() - { - ArrayGetUpperBound test = new ArrayGetUpperBound(); - - TestLibrary.TestFramework.BeginTestCase("ArrayGetUpperBound"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraygetvalue.cs b/tests/src/CoreMangLib/cti/system/array/arraygetvalue.cs deleted file mode 100644 index c345da1f71..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraygetvalue.cs +++ /dev/null @@ -1,160 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.Array.GetValue(System.Int32) -/// </summary> -public class ArrayGetValue1 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Test the one dimension array "); - - try - { - int[] i1 = new int[1000]; - for (int i = 0; i < 1000; i++) // set the value in every element of the array - { - i1[i] = i; - } - for (int i = 0; i < 1000; i++) - { - if (i1[i] != (int)i1.GetValue(i)) - { - TestLibrary.TestFramework.LogError("001", "The result is not the value as expected. "); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - #endregion - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: The dimension is greater than one"); - - try - { - int[,] i1 = new int[6, 8]; - object o1 = i1.GetValue(3); - TestLibrary.TestFramework.LogError("101", "The ArgumentException is not thrown as expected "); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2: The index is less than zero"); - - try - { - int rank = TestLibrary.Generator.GetByte(-55); - int[] i1 = new int[rank]; - object i2 = i1.GetValue(-1); - TestLibrary.TestFramework.LogError("103", "The IndexOutOfRangeException is not thrown as expected "); - retVal = false; - } - catch (IndexOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest3: The index is greater than the upper bound"); - - try - { - int rank = TestLibrary.Generator.GetByte(-55); - int[] i1 = new int[rank]; - object i2 = i1.GetValue(rank + 1); - TestLibrary.TestFramework.LogError("105", "The IndexOutOfRangeException is not thrown as expected "); - retVal = false; - } - catch (IndexOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("106", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - ArrayGetValue1 test = new ArrayGetValue1(); - - TestLibrary.TestFramework.BeginTestCase("ArrayGetValue1"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraygetvalue1.cs b/tests/src/CoreMangLib/cti/system/array/arraygetvalue1.cs deleted file mode 100644 index 8495298208..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraygetvalue1.cs +++ /dev/null @@ -1,208 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -public class ArrayGetValue1 -{ - private const int c_MIN_SIZE = 64; - private const int c_MAX_SIZE = 1024; - private const int c_MIN_STRLEN = 1; - private const int c_MAX_STRLEN = 1024; - - public static int Main() - { - ArrayGetValue1 ac = new ArrayGetValue1(); - - TestLibrary.TestFramework.BeginTestCase("Array.GetValue(int[])"); - - if (ac.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - Array array; - int length; - int element; - int index; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Array.GetValue(int[]) single dim"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), length); - - element = TestLibrary.Generator.GetInt32(-55); - - // fill the array - for (int i=0; i<array.Length; i++) - { - array.SetValue((object)TestLibrary.Generator.GetInt32(-55), i); - } - - // set the lucky index - index = TestLibrary.Generator.GetInt32(-55) % length; - - // set the value - array.SetValue( element, index); - - if (element != (int)array.GetValue(new int[1] {index} )) - { - TestLibrary.TestFramework.LogError("000", "Unexpected value: Expected(" + element + ") Actual(" + (int)array.GetValue(new int[1] {index} ) + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - Array array; - int length; - int element; - int index; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Array.GetValue(int[]) multi dim"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), new int[2] {length, length}); - - element = TestLibrary.Generator.GetInt32(-55); - - // fill the array - for (int i=0; i<array.GetLength(0); i++) - { - array.SetValue((object)TestLibrary.Generator.GetInt32(-55), new int[2] {i,i}); - } - - // set the lucky index - index = TestLibrary.Generator.GetInt32(-55) % length; - - // set the value - array.SetValue( element, new int[2] {index,index} ); - - if (element != (int)array.GetValue(new int[2] {index,index} )) - { - TestLibrary.TestFramework.LogError("002", "Unexpected value: Expected(" + element + ") Actual(" + (int)array.GetValue(new int[2] {index, index} ) + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - Array array; - int length; - int[] dims; - - TestLibrary.TestFramework.BeginScenario("NegTest1: Array.GetValue(int[]) null dims"); - - try - { - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), length); - dims = null; - - array.GetValue(dims); - - TestLibrary.TestFramework.LogError("004", "Exception expected."); - retVal = false; - - } - catch (ArgumentNullException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("005", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - Array array; - int length; - - TestLibrary.TestFramework.BeginScenario("NegTest2: Array.GetValue(int[]) wrong dim length"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), new int[2] {length, length}); - - array.GetValue(new int[4] {0,0,0,0}); - - TestLibrary.TestFramework.LogError("006", "Exception expected."); - retVal = false; - } - catch (ArgumentException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("007", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraygetvalue2.cs b/tests/src/CoreMangLib/cti/system/array/arraygetvalue2.cs deleted file mode 100644 index 6ad224e24a..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraygetvalue2.cs +++ /dev/null @@ -1,250 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.Array.GetValue(System.Int32[]) -/// </summary> -public class ArrayGetValue2 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - retVal = NegTest4() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Test the two dimension array "); - - try - { - int length1 = TestLibrary.Generator.GetByte(-55); - int length2 = TestLibrary.Generator.GetByte(-55); - int[,] i1 = new int[length1, length2]; - for (int i = 0; i < length1; i++) - { - for (int y = 0; y < length2; y++) - { - i1[i, y] = i * length2 + y; - } - } - - for (int a = 0; a < length1; a++) - { - for (int b = 0; b < length2; b++) - { - if ((int)(i1.GetValue(a, b)) != a * length2 + b) - { - TestLibrary.TestFramework.LogError("001", "The result is not the value as expected."); - retVal = false; - } - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Test the three dimension array "); - - try - { - string[, ,] s1 = new string[9, 9, 9]; - s1[3, 4, 5] = "Hello"; - if ((string)s1.GetValue(3, 4, 5) != "Hello") - { - TestLibrary.TestFramework.LogError("003", "The result is not the value as expected. "); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: Test the multiple dimension array "); - - try - { - int[, , , , , ,] d = new int[9, 9, 9, 9, 9, 9, 9]; - int[] index1 = new int[7] { 5, 4, 3, 2, 1, 3, 4 }; - int value = TestLibrary.Generator.GetInt32(-55); - d.SetValue(value, index1); - if ((int)d.GetValue(index1) != value) - { - TestLibrary.TestFramework.LogError("005", "The result is not the value as expected. "); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: There are negative numbers in index[] "); - - try - { - int[, , ,] i1 = new int[5, 5, 5, 5]; - i1[2, 3, 4, 1] = TestLibrary.Generator.GetInt32(-55); - int result = (int)i1.GetValue(2, -3, 4, -1); - TestLibrary.TestFramework.LogError("101", "The IndexOutOfRangeException is not thrown as expected "); - retVal = false; - } - catch (IndexOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2: The index is greater than the upper bound"); - - try - { - int[, , ,] i1 = new int[5, 5, 5, 5]; - i1[2, 3, 4, 1] = TestLibrary.Generator.GetInt32(-55); - int result = (int)i1.GetValue(2, 5, 4, 4); - TestLibrary.TestFramework.LogError("103", "The IndexOutOfRangeException is not thrown as expected "); - retVal = false; - } - catch (IndexOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest3: The number of dimensions is not equal to the number of elements in index[]"); - - try - { - int[, , , , ,] i1 = new int[9, 9, 9, 9, 9, 9]; - int result = (int)i1.GetValue(2, 5, 4, 4); - TestLibrary.TestFramework.LogError("105", "The ArgumentException is not thrown as expected "); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("106", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest4: Set the argument index[] to null"); - - try - { - int[, , , , ,] i1 = new int[9, 9, 9, 9, 9, 9]; - int[] i2 = null; - int result = (int)i1.GetValue(i2); - TestLibrary.TestFramework.LogError("107", "The ArgumentNullException is not thrown as expected "); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("108", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - ArrayGetValue2 test = new ArrayGetValue2(); - - TestLibrary.TestFramework.BeginTestCase("ArrayGetValue2"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraygetvalue2b.cs b/tests/src/CoreMangLib/cti/system/array/arraygetvalue2b.cs deleted file mode 100644 index acc81f5620..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraygetvalue2b.cs +++ /dev/null @@ -1,126 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -public class ArrayGetValue2 -{ - private const int c_MIN_SIZE = 64; - private const int c_MAX_SIZE = 1024; - private const int c_MIN_STRLEN = 1; - private const int c_MAX_STRLEN = 1024; - - public static int Main() - { - ArrayGetValue2 ac = new ArrayGetValue2(); - - TestLibrary.TestFramework.BeginTestCase("Array.GetValue(int)"); - - if (ac.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - Array array; - int length; - int element; - int index; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Array.GetValue(int) single dim"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), length); - - element = TestLibrary.Generator.GetInt32(-55); - - // fill the array - for (int i=0; i<array.Length; i++) - { - array.SetValue((object)TestLibrary.Generator.GetInt32(-55), i); - } - - // set the lucky index - index = TestLibrary.Generator.GetInt32(-55) % length; - - // set the value - array.SetValue( element, index); - - if (element != (int)array.GetValue(index)) - { - TestLibrary.TestFramework.LogError("000", "Unexpected value: Expected(" + element + ") Actual(" + (int)array.GetValue(index) + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - Array array; - int length; - - TestLibrary.TestFramework.BeginScenario("NegTest1: Array.GetValue(int) wrong rank"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), new int[2] {length, length}); - - array.GetValue(0); - - TestLibrary.TestFramework.LogError("002", "Exception expected."); - retVal = false; - } - catch (ArgumentException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arrayicollectionget_count.cs b/tests/src/CoreMangLib/cti/system/array/arrayicollectionget_count.cs deleted file mode 100644 index 41729009f9..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arrayicollectionget_count.cs +++ /dev/null @@ -1,120 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -public class ArrayICollectionget_Count -{ - const int row_Length = 10; - const int column_length = 10; - const int three_dimensionlngth = 10; - - public static int Main(string[] args) - { - ArrayICollectionget_Count aICollectionCount = new ArrayICollectionget_Count(); - TestLibrary.TestFramework.BeginScenario("Testing Array.System.ICollection.get_Count..."); - - if (aICollectionCount.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify get_Count interface can fetch correct value in one-dimensional array..."); - - try - { - Array myArray = Array.CreateInstance(typeof(object), row_Length); - ICollection myIList = (ICollection)myArray; - if (myIList.Count != row_Length) - { - TestLibrary.TestFramework.LogError("001","The count is not equal to row_length in one-dimensional array!"); - return retVal; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify get_Count interface can fetch correct value in two-dimensional array..."); - - try - { - Array myArray = Array.CreateInstance(typeof(object), row_Length,column_length); - ICollection myIList = (ICollection)myArray; - if (myIList.Count != row_Length*column_length) - { - TestLibrary.TestFramework.LogError("001", "The count is not equal to total length in two-dimensional array!"); - return retVal; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify get_Count interface can fetch correct value in multi-dimensional array..."); - - try - { - int[] dimensionCount = { row_Length, column_length, three_dimensionlngth }; - Array myArray = Array.CreateInstance(typeof(object), dimensionCount); - ICollection myIList = (ICollection)myArray; - if (myIList.Count != row_Length * column_length * three_dimensionlngth) - { - TestLibrary.TestFramework.LogError("003", "The count is not equal to total length in multi-dimensional array... "); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004","Unexpected exception ouucrs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arrayilistadd.cs b/tests/src/CoreMangLib/cti/system/array/arrayilistadd.cs deleted file mode 100644 index 282a5e4abf..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arrayilistadd.cs +++ /dev/null @@ -1,68 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - - -public class ArrayIListAdd -{ - public static int Main(string[] args) - { - ArrayIListAdd aIListAdd = new ArrayIListAdd(); - TestLibrary.TestFramework.BeginScenario("Testing Array.System.Collections.IList.Add..."); - - if (aIListAdd.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify add interface is not implement..."); - - try - { - Array myObjArray = Array.CreateInstance(typeof(object), 10); - IList myObjList = (IList)myObjArray; - object addValue = (object)new Int32(); - myObjList.Add(addValue); - - TestLibrary.TestFramework.LogError("001","No exception occurs!"); - retVal = false; - } - catch (NotSupportedException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002","Unexpected exception occurs: " + e); - retVal = false; - } - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arrayilistclear.cs b/tests/src/CoreMangLib/cti/system/array/arrayilistclear.cs deleted file mode 100644 index 1b1f815b85..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arrayilistclear.cs +++ /dev/null @@ -1,175 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -public class ArrayIListClear -{ - public static int Main(string[] args) - { - ArrayIListClear aIListClear = new ArrayIListClear(); - TestLibrary.TestFramework.BeginScenario("Testing Array.System.Collections.IList.clear..."); - - if (aIListClear.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify Int array is set zero value after clear action..."); - - try - { - Array myObjArray = Array.CreateInstance(typeof(int), 10); - for (int i = 0; i < myObjArray.Length; i++) - { - myObjArray.SetValue(i + 1, i); - } - - IList myIList = (IList)myObjArray; - myIList.Clear(); - foreach (int element in myIList) - { - if (element != 0) - { - TestLibrary.TestFramework.LogError("003", "element is not removed yet!"); - retVal = false; - break; - } - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify object array is set null value after clear action..."); - - try - { - Array myObjArray = Array.CreateInstance(typeof(object), 10); - for (int i = 0; i < myObjArray.Length; i++) - { - myObjArray.SetValue((object)(i + 1), i); - } - - IList myIList = (IList)myObjArray; - myIList.Clear(); - foreach (object element in myIList) - { - if (element != null) - { - TestLibrary.TestFramework.LogError("001", "element is not removed yet!"); - retVal = false; - break; - } - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify bool array is set false value after clear action..."); - - try - { - Array myObjArray = Array.CreateInstance(typeof(bool), 10); - for (int i = 0; i < myObjArray.Length; i++) - { - myObjArray.SetValue(true, i); - } - - IList myIList = (IList)myObjArray; - myIList.Clear(); - foreach (bool element in myIList) - { - if (element) - { - TestLibrary.TestFramework.LogError("005", "element is not removed yet!"); - retVal = false; - break; - } - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify ArgumentNullException is thrown when array is null..."); - - try - { - Array myArray = null; - IList myIList = (IList)myArray; - - myIList.Clear(); - TestLibrary.TestFramework.LogError("007","No exception occurs!"); - retVal = true; - } - catch (NullReferenceException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arrayilistcontains.cs b/tests/src/CoreMangLib/cti/system/array/arrayilistcontains.cs deleted file mode 100644 index bc7e3facb0..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arrayilistcontains.cs +++ /dev/null @@ -1,136 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -public class ArrayIListContains -{ - public static int Main(string[] args) - { - ArrayIListContains aIListContains = new ArrayIListContains(); - TestLibrary.TestFramework.BeginScenario("Testing Array.System.Collections.IList.Contains..."); - - if (aIListContains.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify Contains referrence type..."); - - try - { - Array myArray = Array.CreateInstance(typeof(object), 10); - for (int i = 0; i < myArray.Length; i++) - { - myArray.SetValue((object)(i + 1), i); - } - - IList myIList = (IList)myArray; - for (int i = 0; i < myIList.Count; i++) - { - if (!myIList.Contains((object)(i + 1))) - { - TestLibrary.TestFramework.LogError("001", "Contains wrong object!"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify Contains value type..."); - - try - { - Array myArray = Array.CreateInstance(typeof(int), 10); - for (int i = 0; i < myArray.Length; i++) - { - myArray.SetValue(i + 1, i); - } - - IList myIList = (IList)myArray; - for (int i = 0; i < myIList.Count; i++) - { - if (!myIList.Contains(i + 1)) - { - TestLibrary.TestFramework.LogError("003", "Contains wrong object!"); - retVal = false; - break; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify RankException is thrown when invole contain using multiple array..."); - - try - { - object obj = new object(); - Array myMultiArray = Array.CreateInstance(typeof(object), 10, 10); - IList myIList = (IList)myMultiArray; - myIList.Contains(obj); - - TestLibrary.TestFramework.LogError("005","No exception occurs!"); - retVal = false; - } - catch (RankException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} - diff --git a/tests/src/CoreMangLib/cti/system/array/arrayilistget_item.cs b/tests/src/CoreMangLib/cti/system/array/arrayilistget_item.cs deleted file mode 100644 index 972ef6b7f7..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arrayilistget_item.cs +++ /dev/null @@ -1,180 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -public class ArrayIListget_item -{ - const int row_length = 10; - const int colomn_length = 10; - - public static int Main(string[] args) - { - ArrayIListget_item aILIstGetItem = new ArrayIListget_item(); - TestLibrary.TestFramework.BeginScenario("Testing Array.System.IList.get_item..."); - - if (aILIstGetItem.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify set_item method can get the correct object element in the range..."); - - try - { - Array myArray = Array.CreateInstance(typeof(object), row_length); - object[] myObjArray1 = new object[myArray.Length]; - for (int i = 0; i < myArray.Length; i++) - { - myObjArray1[i] = (object)(i + 1); - } - IList myIList = (IList)myArray; - - for (int j = 0; j < myIList.Count; j++) - { - myIList[j] = myObjArray1[j]; - if (Convert.ToInt32(myObjArray1[j]) != Convert.ToInt32(myIList[j])) - { - TestLibrary.TestFramework.LogError("002", "The value get from myIList is not equal to original set"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify set element before IList instance first index..."); - - try - { - Array myArray = Array.CreateInstance(typeof(object), row_length); - for (int i = 0; i < myArray.Length; i++) - { - myArray.SetValue((object)(i + 1), i); - } - IList myIList = (IList)myArray; - myIList[-1] = (object)10; - - TestLibrary.TestFramework.LogError("004", "No exception occurs!"); - retVal = false; - } - catch (IndexOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("005", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify set element after IList instance last index..."); - - try - { - Array myArray = Array.CreateInstance(typeof(object), row_length); - for (int i = 0; i < myArray.Length; i++) - { - myArray.SetValue((object)(i + 1), i); - } - IList myIList = (IList)myArray; - object myIListElement = myIList[myIList.Count]; - - TestLibrary.TestFramework.LogError("006", "No exception occurs!"); - retVal = false; - } - catch (IndexOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("007", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Testing ArgumentException is thrown when set item from multidimensional array..."); - - try - { - Array myArray = Array.CreateInstance(typeof(object), row_length, colomn_length); - object[] objArray = new object[row_length * colomn_length]; - - for (int i = 0; i < row_length; i++) - { - for (int j = 0; j < colomn_length; j++) - { - myArray.SetValue((object)((i + 1) * (j + 1)), i, j); - } - } - IList myIList = (IList)myArray; - - for (int j = 0; j < myIList.Count; j++) - { - objArray[j] = myIList[j]; - } - - TestLibrary.TestFramework.LogError("008", "No exception occurs!"); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("009", "Unexcepted exception ouucrs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arrayilistindexof.cs b/tests/src/CoreMangLib/cti/system/array/arrayilistindexof.cs deleted file mode 100644 index cd269fe1dc..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arrayilistindexof.cs +++ /dev/null @@ -1,129 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -public class ArrayIListIndexOF -{ - const int minLength = 1; - const int maxLength = 10; - string myValue = TestLibrary.Generator.GetString(-55, false, minLength, maxLength); - - public static int Main(string[] args) - { - ArrayIListIndexOF aIListIndexOf = new ArrayIListIndexOF(); - TestLibrary.TestFramework.BeginScenario("Testing Array.System.Collections.IList.IndexOf..."); - - if (aIListIndexOf.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify Indexof method return correct when multiple same objects in array..."); - - try - { - Array myArray = Array.CreateInstance(typeof(String), 10); - - for (int i = 0; i < myValue.Length; i++) - { - myArray.SetValue(myValue, i); - } - IList myIList = (IList)myArray; - if (myIList.IndexOf(myValue) != 0) - { - TestLibrary.TestFramework.LogError("001","The index if not the first place the value appears!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify NullReferrenceException is thrown when array is null..."); - - try - { - Array myArray = null; - IList myIList = (IList)myArray; - myIList.IndexOf(myValue); - - TestLibrary.TestFramework.LogError("001","No exception ouucrs!"); - retVal = false; - } - catch (NullReferenceException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify RankException is thrown when array is multidimensional..."); - - try - { - Array myMultiArray = Array.CreateInstance(typeof(string), 10, 10); - IList myIList = (IList)myMultiArray; - myIList.IndexOf(myValue); - - TestLibrary.TestFramework.LogError("003","No exception occurs!"); - retVal = false; - } - catch (RankException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} - diff --git a/tests/src/CoreMangLib/cti/system/array/arrayilistinsert.cs b/tests/src/CoreMangLib/cti/system/array/arrayilistinsert.cs deleted file mode 100644 index bde092355a..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arrayilistinsert.cs +++ /dev/null @@ -1,69 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - - -public class ArrayIListInsert -{ - public static int Main(string[] args) - { - ArrayIListInsert aIListInsert = new ArrayIListInsert(); - TestLibrary.TestFramework.BeginScenario("Testing Array.System.Collections.IList.Insert..."); - - if (aIListInsert.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - //retVal = PosTest1() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify Insert interface is not implement..."); - - try - { - Array myObjArray = Array.CreateInstance(typeof(object), 10); - IList myObjList = (IList)myObjArray; - object addValue = (object)new Int32(); - myObjList.Insert(0,addValue); - - TestLibrary.TestFramework.LogError("001", "No exception occurs!"); - retVal = false; - } - catch (NotSupportedException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e); - retVal = false; - } - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arrayilistremove.cs b/tests/src/CoreMangLib/cti/system/array/arrayilistremove.cs deleted file mode 100644 index 974f7549d2..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arrayilistremove.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - - -public class ArrayIListRemove -{ - public static int Main(string[] args) - { - ArrayIListRemove aIListRemove = new ArrayIListRemove(); - TestLibrary.TestFramework.BeginScenario("Testing Array.System.Collections.IList.Remove..."); - - if (aIListRemove.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify System.IList.Remove interface is not implement..."); - - try - { - Array myObjArray = Array.CreateInstance(typeof(object), 10); - for (int i = 0; i < myObjArray.Length; i++) - { - myObjArray.SetValue((object)(i+1),i); - } - IList myObjList = (IList)myObjArray; - - for (int j = 0; j < myObjArray.Length; j++) - { - myObjList.Remove((object)j); - } - - TestLibrary.TestFramework.LogError("001", "No exception occurs!"); - retVal = false; - } - catch (NotSupportedException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e); - retVal = false; - } - return retVal; - } -} - diff --git a/tests/src/CoreMangLib/cti/system/array/arrayilistremoveat.cs b/tests/src/CoreMangLib/cti/system/array/arrayilistremoveat.cs deleted file mode 100644 index 5e91903944..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arrayilistremoveat.cs +++ /dev/null @@ -1,74 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -public class ArrayIListRemoveAt -{ - public static int Main(string[] args) - { - ArrayIListRemoveAt aIListRemove = new ArrayIListRemoveAt(); - TestLibrary.TestFramework.BeginScenario("Testing Array,System.IList.RemoveAt..."); - - if (aIListRemove.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify System.IList.RemoveAt interface is not implement..."); - - try - { - Array myObjArray = Array.CreateInstance(typeof(object), 10); - for (int i = 0; i < myObjArray.Length; i++) - { - myObjArray.SetValue((object)(i + 1), i); - } - IList myObjList = (IList)myObjArray; - - for (int j = 0; j < myObjArray.Length; j++) - { - myObjList.RemoveAt(j); - } - - TestLibrary.TestFramework.LogError("001", "No exception occurs!"); - retVal = false; - } - catch (NotSupportedException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e); - retVal = false; - } - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arrayilistset_item.cs b/tests/src/CoreMangLib/cti/system/array/arrayilistset_item.cs deleted file mode 100644 index 0697c9e843..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arrayilistset_item.cs +++ /dev/null @@ -1,186 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -public class ArrayIListset_item -{ - const int row_length = 10; - const int column_length = 10; - - public static int Main(string[] args) - { - ArrayIListset_item aIListItem = new ArrayIListset_item(); - TestLibrary.TestFramework.BeginScenario("Testing Array.System.Collections.IList.set_item..."); - - if (aIListItem.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify get_item method can get the correct object element in the range..."); - - try - { - Array myArray = Array.CreateInstance(typeof(object), row_length); - object[] myObjArray1 = new object[myArray.Length]; - for (int i = 0; i < myArray.Length; i++) - { - myObjArray1[i] = (object)(i + 1); - myArray.SetValue((object)(i + 1), i); - } - IList myIList = (IList)myArray; - object[] myObjArray2 = new object[myIList.Count]; - if (myObjArray1.Length != myObjArray2.Length) - { - TestLibrary.TestFramework.LogError("001", "The length is not equal!"); - retVal = false; - } - else - { - for (int j = 0; j < myIList.Count; j++) - { - myObjArray2[j] = myIList[j]; - if (Convert.ToInt32(myObjArray1[j]) != Convert.ToInt32(myObjArray2[j])) - { - TestLibrary.TestFramework.LogError("002", "The value get from myIList is not equal to original set"); - retVal = false; - } - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify get element before IList instance first index..."); - - try - { - Array myArray = Array.CreateInstance(typeof(object), row_length); - for (int i = 0; i < myArray.Length; i++) - { - myArray.SetValue((object)(i + 1), i); - } - IList myIList = (IList)myArray; - object myIListElement = myIList[-1]; - - TestLibrary.TestFramework.LogError("003", "No exception occurs!"); - retVal = false; - } - catch (IndexOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify get element after IList instance last index..."); - - try - { - Array myArray = Array.CreateInstance(typeof(object), row_length); - for (int i = 0; i < myArray.Length; i++) - { - myArray.SetValue((object)(i + 1), i); - } - IList myIList = (IList)myArray; - object myIListElement = myIList[myIList.Count]; - - TestLibrary.TestFramework.LogError("005", "No exception occurs!"); - retVal = false; - } - catch (IndexOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Testing ArgumentException is thrown when get item from multidimensional array..."); - - try - { - Array myArray = Array.CreateInstance(typeof(Int32), row_length, column_length); - object[] objArray = new object[row_length * column_length]; - for (int i = 0; i < myArray.Length; i++) - { - myArray.SetValue(i + 1, i); - } - IList myIList = (IList)myArray; - - for (int j = 0; j < myIList.Count; j++) - { - objArray[j] = myIList[j]; - } - - TestLibrary.TestFramework.LogError("007", "No exception occurs!"); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexcepted exception ouucrs: " + e); - retVal = false; - } - - return retVal; - } -} - diff --git a/tests/src/CoreMangLib/cti/system/array/arrayindexof1.cs b/tests/src/CoreMangLib/cti/system/array/arrayindexof1.cs deleted file mode 100644 index 3a1be5986e..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arrayindexof1.cs +++ /dev/null @@ -1,394 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.Array.IndexOf(System.Array,System.Object,System.Int32,System.Int32) -/// </summary> -public class ArrayIndexOf1 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - retVal = NegTest4() && retVal; - retVal = NegTest5() && retVal; - retVal = NegTest6() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Travel the array"); - - try - { - int length = TestLibrary.Generator.GetByte(-55); - int[] i1 = new int[length]; - for (int i = 0; i < length; i++) //set the value for the array - { - i1[i] = i; - } - for (int a = 0; a < length; a++) //check every value using indexof method - { - int result = (int)Array.IndexOf(i1, a, 0, length); - if (result != a) - { - TestLibrary.TestFramework.LogError("001", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Search the value from the middle of the array"); - - try - { - int[] i1 = new int[5] { 6, 3, 4, 7, 10 }; - int result = (int)Array.IndexOf(i1, 7, 3, 2); - if (result != 3) - { - TestLibrary.TestFramework.LogError("003", "The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: Set the fourth argument \"count\"to zero"); - - try - { - int[] i1 = new int[5] { 6, 6, 6, 6, 6 }; - int result = Array.IndexOf(i1, 6, 0, 0); - if (result != -1) - { - TestLibrary.TestFramework.LogError("005", "The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest4: Set two equal value in one array"); - - try - { - int[] i1 = new int[5] { 1, 6, 9, 6, 2 }; - int result = Array.IndexOf(i1, 6, 0, 5); - if (result != 1) - { - TestLibrary.TestFramework.LogError("007", "The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest5: Find out the second value which has a equal value before it"); - - try - { - int[] i1 = new int[5] { 1, 3, 7, 7, 2 }; - int result = Array.IndexOf(i1, 7, 3, 2); - if (result != 3) - { - TestLibrary.TestFramework.LogError("009", "The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest6: Find out no expected value"); - - try - { - int[] i1 = new int[5] { 1, 3, 7, 8, 2 }; - int result = Array.IndexOf(i1, 9, 0, 5); - if (result != -1) - { - TestLibrary.TestFramework.LogError("011", "The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest7() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest7: Set the second argument as a different type value"); - - try - { - int[] i1 = new int[5] { 7, 7, 7, 7, 7 }; - Int16 i2 = 7; - int result = Array.IndexOf(i1, (object)i2, 0, 5); - if (result != -1) - { - TestLibrary.TestFramework.LogError("013", "The result is not the value as expected: Expected(-1) Actual("+result+")"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("014", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: The array to be searched is null reference "); - - try - { - string[] s1 = null; - int result = Array.IndexOf(s1, 0, 0, 10); - TestLibrary.TestFramework.LogError("101", "The ArgumentNullException is not thrown as expected"); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2: The startIndex is less than zero "); - - try - { - int[] s1 = new int[5] { 3, 4, 5, 6, 7 }; - int result = Array.IndexOf(s1, 4, -1, 3); - TestLibrary.TestFramework.LogError("103", "The ArgumentOutOfRangeException is not thrown as expected"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest3: The startIndex is greater than range of index for the array "); - - try - { - int[] s1 = new int[5] { 3, 4, 5, 6, 7 }; - int result = Array.IndexOf(s1, 4, 5, 1); - TestLibrary.TestFramework.LogError("105", "The ArgumentOutOfRangeException is not thrown as expected"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("106", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest4: The count is less than zero "); - - try - { - int[] s1 = new int[5] { 3, 4, 5, 6, 7 }; - int result = Array.IndexOf(s1, 4, 0, -1); - TestLibrary.TestFramework.LogError("107", "The ArgumentOutOfRangeException is not thrown as expected"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("108", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest5: The count exceed the end of the array "); - - try - { - int[] s1 = new int[5] { 3, 4, 5, 6, 7 }; - int result = Array.IndexOf(s1, 4, 3, 8); - TestLibrary.TestFramework.LogError("109", "The ArgumentOutOfRangeException is not thrown as expected"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("110", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest6() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest6: The array is multidimension . "); - - try - { - int[,] s1 = new int[2, 3] { { 1, 2, 3 }, { 4, 4, 6 } }; - int result = Array.IndexOf(s1, 4, 0, 2); - TestLibrary.TestFramework.LogError("111", "The ArgumentOutOfRangeException is not thrown as expected"); - retVal = false; - } - catch (RankException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("112", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - ArrayIndexOf1 test = new ArrayIndexOf1(); - - TestLibrary.TestFramework.BeginTestCase("ArrayIndexOf1"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arrayindexof1b.cs b/tests/src/CoreMangLib/cti/system/array/arrayindexof1b.cs deleted file mode 100644 index b172165df4..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arrayindexof1b.cs +++ /dev/null @@ -1,635 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; - -public class ArrayIndexOf1 -{ - private const int c_MIN_SIZE = 64; - private const int c_MAX_SIZE = 1024; - private const int c_MIN_STRLEN = 1; - private const int c_MAX_STRLEN = 1024; - - public static int Main() - { - ArrayIndexOf1 ac = new ArrayIndexOf1(); - - TestLibrary.TestFramework.BeginTestCase("Array.IndexOf(Array, object, int, int)"); - - if (ac.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - retVal = NegTest4() && retVal; - retVal = NegTest5() && retVal; - retVal = NegTest6() && retVal; - retVal = NegTest7() && retVal; - retVal = NegTest8() && retVal; - retVal = NegTest9() && retVal; - retVal = NegTest10() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - Array array; - int length; - int element; - int index; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Array.IndexOf(Array, object, int, int) where element is found"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), length); - - element = TestLibrary.Generator.GetInt32(-55); - - // fill the array - for (int i=0; i<array.Length; i++) - { - array.SetValue((object)TestLibrary.Generator.GetInt32(-55), i); - } - - // set the lucky index - index = TestLibrary.Generator.GetInt32(-55) % length; - - // set the value - array.SetValue( element, index); - - newIndex = Array.IndexOf(array, (object)element, 0, array.Length); - - if (index < newIndex) - { - TestLibrary.TestFramework.LogError("000", "Unexpected index: Expected(" + index + ") Actual(" + newIndex + ")"); - retVal = false; - } - - if (element != (int)array.GetValue(newIndex)) - { - TestLibrary.TestFramework.LogError("001", "Unexpected value: Expected(" + element + ") Actual(" + (int)array.GetValue(newIndex) + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - Array array; - int length; - string element; - int index; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Array.IndexOf(Array, object, int, int) non-primitive type"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(string), length); - - element = TestLibrary.Generator.GetString(-55, false, c_MIN_STRLEN, c_MAX_STRLEN); - - // fill the array - for (int i=0; i<array.Length; i++) - { - array.SetValue(TestLibrary.Generator.GetString(-55, false, c_MIN_STRLEN, c_MAX_STRLEN), i); - } - - // set the lucky index - index = TestLibrary.Generator.GetInt32(-55) % length; - - // set the value - array.SetValue( element, index); - - newIndex = Array.IndexOf(array, (object)element, 0, array.Length); - - if (index < newIndex) - { - TestLibrary.TestFramework.LogError("003", "Unexpected index: Expected(" + index + ") Actual(" + newIndex + ")"); - retVal = false; - } - - if (!element.Equals(array.GetValue(newIndex))) - { - TestLibrary.TestFramework.LogError("004", "Unexpected value: Expected(" + element + ") Actual(" + array.GetValue(newIndex) + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("005", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - Array array; - int length; - object element; - int index; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("PosTest3: Array.IndexOf(Array, object, int, int) non-primitive type (with value == null)"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(string), length); - - element = null; - - // fill the array - for (int i=0; i<array.Length; i++) - { - array.SetValue(TestLibrary.Generator.GetString(-55, false, c_MIN_STRLEN, c_MAX_STRLEN), i); - } - - // set the lucky index - index = TestLibrary.Generator.GetInt32(-55) % length; - - // set the value - array.SetValue( element, index); - - newIndex = Array.IndexOf(array, (object)element, 0, array.Length); - - if (index < newIndex) - { - TestLibrary.TestFramework.LogError("006", "Unexpected index: Expected(" + index + ") Actual(" + newIndex + ")"); - retVal = false; - } - - if (element != array.GetValue(newIndex)) - { - TestLibrary.TestFramework.LogError("007", "Unexpected value: Expected(" + element + ") Actual(" + array.GetValue(newIndex) + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - Array array; - int length; - MyStruct element; - int index; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("PosTest4: Array.IndexOf(Array, object, int, int) non-primitive type (not derived from object)"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(MyStruct), length); - - element = new MyStruct(TestLibrary.Generator.GetSingle(-55)); - - // fill the array - for (int i=0; i<array.Length; i++) - { - array.SetValue(new MyStruct(TestLibrary.Generator.GetSingle(-55)), i); - } - - // set the lucky index - index = TestLibrary.Generator.GetInt32(-55) % length; - - // set the value - array.SetValue( element, index); - - newIndex = Array.IndexOf(array, (object)element, 0, array.Length); - - if (index < newIndex) - { - TestLibrary.TestFramework.LogError("009", "Unexpected index: Expected(" + index + ") Actual(" + newIndex + ")"); - retVal = false; - } - - if (element.f != ((MyStruct)array.GetValue(newIndex)).f) - { - TestLibrary.TestFramework.LogError("010", "Unexpected value: Expected(" + element.f + ") Actual(" + ((MyStruct)array.GetValue(newIndex)).f + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("011", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - Array array; - int length; - int element; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("NegTest1: Array.IndexOf(Array, object, int, int) where element is not found"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), length); - - element = TestLibrary.Generator.GetInt32(-55); - - // fill the array - for (int i=0; i<array.Length; i++) - { - do - { - array.SetValue((object)TestLibrary.Generator.GetInt32(-55), i); - } - while (element == (int)array.GetValue(i)); - } - - newIndex = Array.IndexOf(array, (object)element, 0, array.Length); - - if (-1 != newIndex) - { - TestLibrary.TestFramework.LogError("012", "Unexpected index: Actual(" + newIndex + ")"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("013", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - Array array; - int length; - int element; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("NegTest2: Array.IndexOf(Array, object, int, int) array full of null's"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), length); - - element = TestLibrary.Generator.GetInt32(-55); - - // fill the array - for (int i=0; i<array.Length; i++) - { - array.SetValue(null, i); - } - - newIndex = Array.IndexOf(array, (object)element, 0, array.Length); - - if (-1 != newIndex) - { - TestLibrary.TestFramework.LogError("014", "Unexpected index: Actual(" + newIndex + ")"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("015", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest3: Array.IndexOf(Array, object, int, int) array is null"); - - try - { - Array.IndexOf(null, (object)1, 0, 0); - - TestLibrary.TestFramework.LogError("016", "Should have thrown an expection"); - retVal = false; - } - catch (ArgumentNullException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("017", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - - public bool NegTest4() - { - bool retVal = true; - Array array; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("NegTest4: Array.IndexOf(Array, object, int, int) array of length 0"); - - try - { - // creat the array - array = Array.CreateInstance(typeof(Int32), 0); - - newIndex = Array.IndexOf(array, (object)null, 0, array.Length); - - if (-1 != newIndex) - { - TestLibrary.TestFramework.LogError("018", "Unexpected index: Actual(" + newIndex + ")"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("019", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest5() - { - bool retVal = true; - Array array; - int length; - - TestLibrary.TestFramework.BeginScenario("NegTest5: Array.IndexOf(Array, object, int, int) start index less than lower bound"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), length); - - Array.IndexOf(array, (object)null, -1, array.Length); - - TestLibrary.TestFramework.LogError("020", "Should have thrown an exception"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("021", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest6() - { - bool retVal = true; - Array array; - int length; - - TestLibrary.TestFramework.BeginScenario("NegTest6: Array.IndexOf(Array, object, int, int) start index greater than upper bound"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), length); - - Array.IndexOf(array, (object)null, array.Length, array.Length); - - TestLibrary.TestFramework.LogError("022", "Should have thrown an exception"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("023", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest7() - { - bool retVal = true; - Array array; - int length; - - TestLibrary.TestFramework.BeginScenario("NegTest7: Array.IndexOf(Array, object, int, int) count less than 0"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), length); - - Array.IndexOf(array, (object)null, 0, -1); - - TestLibrary.TestFramework.LogError("024", "Should have thrown an exception"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("025", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest8() - { - bool retVal = true; - Array array; - int length; - - TestLibrary.TestFramework.BeginScenario("NegTest8: Array.IndexOf(Array, object, int, int) (startindex < 0)"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), length); - - Array.IndexOf(array, (object)null, -1, array.Length); - - TestLibrary.TestFramework.LogError("026", "Should have thrown an exception"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("027", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest9() - { - bool retVal = true; - Array array; - int length; - - TestLibrary.TestFramework.BeginScenario("NegTest9: Array.IndexOf(Array, object, int, int) multi dim array"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), new int[2] {length, length}); - - Array.IndexOf(array, (object)null, 0, array.Length); - - TestLibrary.TestFramework.LogError("028", "Should have thrown an exception"); - retVal = false; - } - catch (RankException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("029", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public struct MyStruct - { - public float f; - - public MyStruct(float ff) { f = ff; } - } - - public bool NegTest10() - { - bool retVal = true; - Array array; - int length; - MyStruct element; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("NegTest10: Array.IndexOf(Array, object, int, int) non-primitive type (not derived from object) not found"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(MyStruct), length); - - element = new MyStruct(TestLibrary.Generator.GetSingle(-55)); - - // fill the array - for (int i=0; i<array.Length; i++) - { - do - { - array.SetValue(new MyStruct(TestLibrary.Generator.GetSingle(-55)), i); - } - while(element.Equals((MyStruct)array.GetValue(i))); - } - - newIndex = Array.IndexOf(array, (object)element, 0, array.Length); - - if (-1 != newIndex) - { - TestLibrary.TestFramework.LogError("030", "Unexpected index: Expected(-1) Actual(" + newIndex + ")"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("031", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arrayindexof2.cs b/tests/src/CoreMangLib/cti/system/array/arrayindexof2.cs deleted file mode 100644 index 9c76f95654..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arrayindexof2.cs +++ /dev/null @@ -1,158 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -///System.Array.IndexOf<T>(T[], T) -/// </summary> -public class ArrayIndexOf2 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Set the argument T as int type "); - - try - { - int[] i1 = new int[5] { 3, 4, 6, 7, 8 }; - if (Array.IndexOf<int>(i1, 6) != 2) - { - TestLibrary.TestFramework.LogError("001", " The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Set the argument T as string type "); - - try - { - string[] s1 = new string[5]{"Jack", - "Tom", - "mary", - "Joan", - "Michael"}; - int result = Array.IndexOf<string>(s1, "Joan"); - if (result != 3) - { - TestLibrary.TestFramework.LogError("003", " The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: Find out no expected value "); - - try - { - string[] s1 = new string[5]{"Jack", - "Tom", - "mary", - "Joan", - "Michael"}; - int result = Array.IndexOf<string>(s1, "Mary"); - if (result != -1) - { - TestLibrary.TestFramework.LogError("005", " The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: Input a null reference array "); - - try - { - string[] s1 = null; - int result = Array.IndexOf<string>(s1, "Tom"); - TestLibrary.TestFramework.LogError("101", "The ArgumentNullException is not throw as expected "); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - ArrayIndexOf2 test = new ArrayIndexOf2(); - - TestLibrary.TestFramework.BeginTestCase("ArrayIndexOf2"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arrayindexof2b.cs b/tests/src/CoreMangLib/cti/system/array/arrayindexof2b.cs deleted file mode 100644 index c5b0d4ba31..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arrayindexof2b.cs +++ /dev/null @@ -1,149 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; - -public class ArrayIndexOf2 -{ - private const int c_MIN_SIZE = 64; - private const int c_MAX_SIZE = 1024; - private const int c_MIN_STRLEN = 1; - private const int c_MAX_STRLEN = 1024; - - public static int Main() - { - ArrayIndexOf2 ac = new ArrayIndexOf2(); - - TestLibrary.TestFramework.BeginTestCase("Array.IndexOf(T[] array, T value)"); - - if (ac.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - retVal = PosTest8() && retVal; - retVal = PosTest9() && retVal; - retVal = PosTest10() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - - return retVal; - } - - public bool PosTest1() { return PosIndexOf<Int64>(1, TestLibrary.Generator.GetInt64(-55), TestLibrary.Generator.GetInt64(-55)); } - public bool PosTest2() { return PosIndexOf<Int32>(2, TestLibrary.Generator.GetInt32(-55), TestLibrary.Generator.GetInt32(-55)); } - public bool PosTest3() { return PosIndexOf<Int16>(3, TestLibrary.Generator.GetInt16(-55), TestLibrary.Generator.GetInt16(-55)); } - public bool PosTest4() { return PosIndexOf<Byte>(4, TestLibrary.Generator.GetByte(-55), TestLibrary.Generator.GetByte(-55)); } - public bool PosTest5() { return PosIndexOf<double>(5, TestLibrary.Generator.GetDouble(-55), TestLibrary.Generator.GetDouble(-55)); } - public bool PosTest6() { return PosIndexOf<float>(6, TestLibrary.Generator.GetSingle(-55), TestLibrary.Generator.GetSingle(-55)); } - public bool PosTest7() { return PosIndexOf<char>(7, TestLibrary.Generator.GetCharLetter(-55), TestLibrary.Generator.GetCharLetter(-55)); } - public bool PosTest8() { return PosIndexOf<char>(8, TestLibrary.Generator.GetCharNumber(-55), TestLibrary.Generator.GetCharNumber(-55)); } - public bool PosTest9() { return PosIndexOf<char>(9, TestLibrary.Generator.GetChar(-55), TestLibrary.Generator.GetChar(-55)); } - public bool PosTest10() { return PosIndexOf<string>(10, TestLibrary.Generator.GetString(-55, false, c_MIN_STRLEN, c_MAX_STRLEN), TestLibrary.Generator.GetString(-55, false, c_MIN_STRLEN, c_MAX_STRLEN)); } - - public bool NegTest1() { return NegIndexOf<Int32>(1, 1); } - - public bool PosIndexOf<T>(int id, T element, T otherElem) - { - bool retVal = true; - T[] array; - int length; - int index; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("PosTest"+id+": Array.IndexOf(T[] array, T value) (T=="+typeof(T)+") where value is found"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = new T[length]; - - // fill the array - for (int i=0; i<array.Length; i++) - { - array[i] = otherElem; - } - - // set the lucky index - index = TestLibrary.Generator.GetInt32(-55) % length; - - // set the value - array.SetValue( element, index); - - newIndex = Array.IndexOf<T>(array, element); - - if (index < newIndex) - { - TestLibrary.TestFramework.LogError("000", "Unexpected index: Expected(" + index + ") Actual(" + newIndex + ")"); - retVal = false; - } - - if (!element.Equals(array[newIndex])) - { - TestLibrary.TestFramework.LogError("001", "Unexpected value: Expected(" + element + ") Actual(" + array[newIndex] + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegIndexOf<T>(int id, T defaultValue) - { - bool retVal = true; - T[] array = null; - - TestLibrary.TestFramework.BeginScenario("NegTest"+id+": Array.IndexOf(T[] array, T value) (T == "+typeof(T)+" where array is null"); - - try - { - Array.IndexOf<T>(array, defaultValue); - - TestLibrary.TestFramework.LogError("003", "Exepction should have been thrown"); - retVal = false; - } - catch (ArgumentNullException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arrayindexof3.cs b/tests/src/CoreMangLib/cti/system/array/arrayindexof3.cs deleted file mode 100644 index 6a95b9a505..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arrayindexof3.cs +++ /dev/null @@ -1,300 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -///System.Array.IndexOf<T>(T[], T,System.Int32) -/// </summary> -public class ArrayIndexOf3 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Set the argument T as int type "); - - try - { - int[] i1 = new int[5] { 3, 4, 6, 7, 8 }; - if (Array.IndexOf<int>(i1, 6, 0) != 2) - { - TestLibrary.TestFramework.LogError("001", " The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Set the argument T as string type "); - - try - { - string[] s1 = new string[5]{"Jack", - "Tom", - "mary", - "Joan", - "Michael"}; - int result = Array.IndexOf<string>(s1, "Joan", 3); - if (result != 3) - { - TestLibrary.TestFramework.LogError("003", " The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: Find out no expected value "); - - try - { - string[] s1 = new string[5]{"Jack", - "Tom", - "mary", - "Joan", - "Michael"}; - int result = Array.IndexOf<string>(s1, "Rabelais", 0); - if (result != -1) - { - TestLibrary.TestFramework.LogError("005", " The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest4: Find out no expected value because of the startIndex "); - - try - { - string[] s1 = new string[5]{"Bachham", - "Bachham", - "Bachham", - "Joan", - "Bachham"}; - int result = Array.IndexOf<string>(s1, "Joan", 4); - if (result != -1) - { - TestLibrary.TestFramework.LogError("007", " The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest5: Find out the fourth expected value "); - - try - { - string[] s1 = new string[5]{"Bachham", - "Bachham", - "Bachham", - "Joan", - "Bachham"}; - int result = Array.IndexOf<string>(s1, "Bachham", 4); - if (result != 4) - { - TestLibrary.TestFramework.LogError("009", " The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest6: Find out the null element in an array of string "); - - try - { - string[] s1 = new string[5]{"Bachham", - "Bachham", - null, - "Joan", - "Bachham"}; - int result = Array.IndexOf<string>(s1, null, 0); - if (result != 2) - { - TestLibrary.TestFramework.LogError("011", " The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: Input a null reference array "); - - try - { - string[] s1 = null; - int result = Array.IndexOf<string>(s1, "Tom", 0); - TestLibrary.TestFramework.LogError("101", "The ArgumentNullException is not throw as expected "); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2: The startIndex is negative."); - - try - { - int[] i1 = { 2, 3, 4, 4, 5 }; - int result = Array.IndexOf<int>(i1, 4, -1); - TestLibrary.TestFramework.LogError("103", "The ArgumentOutOfRangeException is not throw as expected "); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest3: The startIndex is greater than the maxIndex of the array."); - - try - { - int[] i1 = new int[5] { 2, 3, 4, 4, 5 }; - int result = Array.IndexOf<int>(i1, 4, 6); - TestLibrary.TestFramework.LogError("105", "The ArgumentOutOfRangeException is not throw as expected "); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("106", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - ArrayIndexOf3 test = new ArrayIndexOf3(); - - TestLibrary.TestFramework.BeginTestCase("ArrayIndexOf3"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arrayindexof3b.cs b/tests/src/CoreMangLib/cti/system/array/arrayindexof3b.cs deleted file mode 100644 index 92b6b80669..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arrayindexof3b.cs +++ /dev/null @@ -1,149 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; - -public class ArrayIndexOf3 -{ - private const int c_MIN_SIZE = 64; - private const int c_MAX_SIZE = 1024; - private const int c_MIN_STRLEN = 1; - private const int c_MAX_STRLEN = 1024; - - public static int Main() - { - ArrayIndexOf3 ac = new ArrayIndexOf3(); - - TestLibrary.TestFramework.BeginTestCase("Array.IndexOf(T[] array, T value)"); - - if (ac.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - retVal = PosTest8() && retVal; - retVal = PosTest9() && retVal; - retVal = PosTest10() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - - return retVal; - } - - public bool PosTest1() { return PosIndexOf<Int64>(1, TestLibrary.Generator.GetInt64(-55), TestLibrary.Generator.GetInt64(-55)); } - public bool PosTest2() { return PosIndexOf<Int32>(2, TestLibrary.Generator.GetInt32(-55), TestLibrary.Generator.GetInt32(-55)); } - public bool PosTest3() { return PosIndexOf<Int16>(3, TestLibrary.Generator.GetInt16(-55), TestLibrary.Generator.GetInt16(-55)); } - public bool PosTest4() { return PosIndexOf<Byte>(4, TestLibrary.Generator.GetByte(-55), TestLibrary.Generator.GetByte(-55)); } - public bool PosTest5() { return PosIndexOf<double>(5, TestLibrary.Generator.GetDouble(-55), TestLibrary.Generator.GetDouble(-55)); } - public bool PosTest6() { return PosIndexOf<float>(6, TestLibrary.Generator.GetSingle(-55), TestLibrary.Generator.GetSingle(-55)); } - public bool PosTest7() { return PosIndexOf<char>(7, TestLibrary.Generator.GetCharLetter(-55), TestLibrary.Generator.GetCharLetter(-55)); } - public bool PosTest8() { return PosIndexOf<char>(8, TestLibrary.Generator.GetCharNumber(-55), TestLibrary.Generator.GetCharNumber(-55)); } - public bool PosTest9() { return PosIndexOf<char>(9, TestLibrary.Generator.GetChar(-55), TestLibrary.Generator.GetChar(-55)); } - public bool PosTest10() { return PosIndexOf<string>(10, TestLibrary.Generator.GetString(-55, false, c_MIN_STRLEN, c_MAX_STRLEN), TestLibrary.Generator.GetString(-55, false, c_MIN_STRLEN, c_MAX_STRLEN)); } - - public bool NegTest1() { return NegIndexOf<Int32>(1, 1); } - - public bool PosIndexOf<T>(int id, T element, T otherElem) - { - bool retVal = true; - T[] array; - int length; - int index; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("PosTest"+id+": Array.IndexOf(T[] array, T value, int startIndex) (T=="+typeof(T)+") where value is found"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = new T[length]; - - // fill the array - for (int i=0; i<array.Length; i++) - { - array[i] = otherElem; - } - - // set the lucky index - index = TestLibrary.Generator.GetInt32(-55) % length; - - // set the value - array.SetValue( element, index); - - newIndex = Array.IndexOf<T>(array, element, 0); - - if (index < newIndex) - { - TestLibrary.TestFramework.LogError("000", "Unexpected index: Expected(" + index + ") Actual(" + newIndex + ")"); - retVal = false; - } - - if (!element.Equals(array[newIndex])) - { - TestLibrary.TestFramework.LogError("001", "Unexpected value: Expected(" + element + ") Actual(" + array[newIndex] + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegIndexOf<T>(int id, T defaultValue) - { - bool retVal = true; - T[] array = null; - - TestLibrary.TestFramework.BeginScenario("NegTest"+id+": Array.IndexOf(T[] array, T value, int startIndex) (T == "+typeof(T)+" where array is null"); - - try - { - Array.IndexOf<T>(array, defaultValue, 0); - - TestLibrary.TestFramework.LogError("003", "Exepction should have been thrown"); - retVal = false; - } - catch (ArgumentNullException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arrayindexof4.cs b/tests/src/CoreMangLib/cti/system/array/arrayindexof4.cs deleted file mode 100644 index 18b7f0157b..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arrayindexof4.cs +++ /dev/null @@ -1,376 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.Array.IndexOf<>(T<>,T,System.Int32,System.Int32) -/// </summary> -public class ArrayIndexOf4 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - retVal = NegTest4() && retVal; - retVal = NegTest5() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Travel the array"); - - try - { - int length = TestLibrary.Generator.GetByte(-55); - int[] i1 = new int[length]; - for (int i = 0; i < length; i++) //set the value for the array - { - i1[i] = i; - } - for (int a = 0; a < length; a++) //check every value using indexof<> method - { - int result = Array.IndexOf<int>(i1, a, 0, length); - if (result != a) - { - TestLibrary.TestFramework.LogError("001", "The result is not the value as expected. The index is:" + a.ToString()); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Search the value from the middle of the array"); - - try - { - int[] i1 = new int[5] { 6, 3, 4, 7, 10 }; - int result = Array.IndexOf<int>(i1, 7, 3, 2); - if (result != 3) - { - TestLibrary.TestFramework.LogError("003", "The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: Set the fourth argument \"count\"to zero"); - - try - { - int[] i1 = new int[5] { 6, 6, 6, 6, 6 }; - int result = Array.IndexOf<int>(i1, 6, 2, 0); - if (result != -1) - { - TestLibrary.TestFramework.LogError("005", "The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest4: Set two equal value in one array"); - - try - { - string[] i1 = new string[6]{"Fix", - "Right", - "Correct", - "Right", - "Hello", - "Back"}; - - int result = Array.IndexOf<string>(i1, "Right", 0, 5); - if (result != 1) - { - TestLibrary.TestFramework.LogError("007", "The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest5: Find out the second value which has a equal value before it"); - - try - { - char[] i1 = { 'g', 't', 'r', 'd', 't', 'o' }; - int result = Array.IndexOf<char>(i1, 't', 3, 2); - if (result != 4) - { - TestLibrary.TestFramework.LogError("009", "The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest6: Find out no expected value"); - - try - { - int[] i1 = new int[5] { 1, 3, 7, 8, 2 }; - int result = Array.IndexOf<int>(i1, 9, 0, 5); - if (result != -1) - { - TestLibrary.TestFramework.LogError("011", "The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest7() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest7: Set the second argument as a different type value"); - - try - { - int[] i1 = new int[5] { 5, 7, 15, 6, 0 }; - byte i2 = 7; - int result = Array.IndexOf<int>(i1, i2, 0, 5); - if (result != 1) - { - TestLibrary.TestFramework.LogError("013", "The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("014", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: The array to be searched is null reference "); - - try - { - string[] s1 = null; - int result = Array.IndexOf<string>(s1, "Tom", 0, 10); - TestLibrary.TestFramework.LogError("101", "The ArgumentNullException is not thrown as expected"); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2: The startIndex is less than zero "); - - try - { - int[] s1 = new int[5] { 3, 4, 5, 6, 7 }; - int result = Array.IndexOf<int>(s1, 4, -1, 3); - TestLibrary.TestFramework.LogError("103", "The ArgumentOutOfRangeException is not thrown as expected"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest3: The startIndex is greater than range of index for the array "); - - try - { - int[] s1 = new int[5] { 3, 4, 5, 6, 7 }; - int result = Array.IndexOf<int>(s1, 4, 6, 0); - TestLibrary.TestFramework.LogError("105", "The ArgumentOutOfRangeException is not thrown as expected"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("106", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest4: The count is less than zero "); - - try - { - int[] s1 = new int[5] { 3, 4, 5, 6, 7 }; - int result = Array.IndexOf<int>(s1, 4, 0, -1); - TestLibrary.TestFramework.LogError("107", "The ArgumentOutOfRangeException is not thrown as expected"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("108", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest5: The count exceed the end of the array "); - - try - { - int[] s1 = new int[5] { 3, 4, 5, 6, 7 }; - int result = Array.IndexOf<int>(s1, 4, 3, 8); - TestLibrary.TestFramework.LogError("109", "The ArgumentOutOfRangeException is not thrown as expected"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("110", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - - #endregion - #endregion - - public static int Main() - { - ArrayIndexOf4 test = new ArrayIndexOf4(); - - TestLibrary.TestFramework.BeginTestCase("ArrayIndexOf4"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arrayindexof4b.cs b/tests/src/CoreMangLib/cti/system/array/arrayindexof4b.cs deleted file mode 100644 index cc64c7b211..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arrayindexof4b.cs +++ /dev/null @@ -1,234 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; - -public class ArrayIndexOf4 -{ - private const int c_MIN_SIZE = 64; - private const int c_MAX_SIZE = 1024; - private const int c_MIN_STRLEN = 1; - private const int c_MAX_STRLEN = 1024; - - public static int Main() - { - ArrayIndexOf4 ac = new ArrayIndexOf4(); - - TestLibrary.TestFramework.BeginTestCase("Array.IndexOf(T[] array, T value)"); - - if (ac.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - retVal = PosTest8() && retVal; - retVal = PosTest9() && retVal; - retVal = PosTest10() && retVal; - retVal = PosTest11() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - retVal = NegTest4() && retVal; - retVal = NegTest5() && retVal; - retVal = NegTest6() && retVal; - retVal = NegTest7() && retVal; - retVal = NegTest8() && retVal; - retVal = NegTest9() && retVal; - retVal = NegTest10() && retVal; - - return retVal; - } - - public bool PosTest1() { return PosIndexOf<Int64>(1, TestLibrary.Generator.GetInt64(-55), TestLibrary.Generator.GetInt64(-55)); } - public bool PosTest2() { return PosIndexOf<Int32>(2, TestLibrary.Generator.GetInt32(-55), TestLibrary.Generator.GetInt32(-55)); } - public bool PosTest3() { return PosIndexOf<Int16>(3, TestLibrary.Generator.GetInt16(-55), TestLibrary.Generator.GetInt16(-55)); } - public bool PosTest4() { return PosIndexOf<Byte>(4, TestLibrary.Generator.GetByte(-55), TestLibrary.Generator.GetByte(-55)); } - public bool PosTest5() { return PosIndexOf<double>(5, TestLibrary.Generator.GetDouble(-55), TestLibrary.Generator.GetDouble(-55)); } - public bool PosTest6() { return PosIndexOf<float>(6, TestLibrary.Generator.GetSingle(-55), TestLibrary.Generator.GetSingle(-55)); } - public bool PosTest7() { return PosIndexOf<char>(7, TestLibrary.Generator.GetCharLetter(-55), TestLibrary.Generator.GetCharLetter(-55)); } - public bool PosTest8() { return PosIndexOf<char>(8, TestLibrary.Generator.GetCharNumber(-55), TestLibrary.Generator.GetCharNumber(-55)); } - public bool PosTest9() { return PosIndexOf<char>(9, TestLibrary.Generator.GetChar(-55), TestLibrary.Generator.GetChar(-55)); } - public bool PosTest10() { return PosIndexOf<string>(10, TestLibrary.Generator.GetString(-55, false, c_MIN_STRLEN, c_MAX_STRLEN), TestLibrary.Generator.GetString(-55, false, c_MIN_STRLEN, c_MAX_STRLEN)); } - - public bool PosTest11() { return PosIndexOf2<Int32>(11, 1, 0, 0, 0); } - - public bool NegTest1() { return NegIndexOf<Int32>(1, 1); } - // id, defaultValue, length, startIndex, count - public bool NegTest2() { return NegIndexOf2<Int32>( 2, 1, 0, 1, 0); } - public bool NegTest3() { return NegIndexOf2<Int32>( 3, 1, 0, -2, 0); } - public bool NegTest4() { return NegIndexOf2<Int32>( 4, 1, 0, -1, 1); } - public bool NegTest5() { return NegIndexOf2<Int32>( 5, 1, 0, 0, 1); } - public bool NegTest6() { return NegIndexOf2<Int32>( 6, 1, 1, -1, 1); } - public bool NegTest7() { return NegIndexOf2<Int32>( 7, 1, 1, 2, 1); } - public bool NegTest8() { return NegIndexOf2<Int32>( 8, 1, 1, 0, -1); } - public bool NegTest9() { return NegIndexOf2<Int32>( 9, 1, 1, 0, -1); } - public bool NegTest10() { return NegIndexOf2<Int32>(10, 1, 1, 1, 2); } - - public bool PosIndexOf<T>(int id, T element, T otherElem) - { - bool retVal = true; - T[] array; - int length; - int index; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("PosTest"+id+": Array.IndexOf(T[] array, T value, int startIndex, int count) (T=="+typeof(T)+") where value is found"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = new T[length]; - - // fill the array - for (int i=0; i<array.Length; i++) - { - array[i] = otherElem; - } - - // set the lucky index - index = TestLibrary.Generator.GetInt32(-55) % length; - - // set the value - array.SetValue( element, index); - - newIndex = Array.IndexOf<T>(array, element, 0, array.Length); - - if (index < newIndex) - { - TestLibrary.TestFramework.LogError("000", "Unexpected index: Expected(" + index + ") Actual(" + newIndex + ")"); - retVal = false; - } - - if (!element.Equals(array[newIndex])) - { - TestLibrary.TestFramework.LogError("001", "Unexpected value: Expected(" + element + ") Actual(" + array[newIndex] + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosIndexOf2<T>(int id, T defaultValue, int length, int startIndex, int count) - { - bool retVal = true; - T[] array = null; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("PosTest"+id+": Array.IndexOf(T["+length+"] array, T value, "+startIndex+", "+count+") (T == "+typeof(T)+" where array is null"); - - try - { - array = new T[ length ]; - - newIndex = Array.IndexOf<T>(array, defaultValue, startIndex, count); - - if (-1 != newIndex) - { - TestLibrary.TestFramework.LogError("003", "Unexpected value: Expected(-1) Actual("+newIndex+")"); - retVal = false; - } - } - catch (ArgumentOutOfRangeException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegIndexOf<T>(int id, T defaultValue) - { - bool retVal = true; - T[] array = null; - - TestLibrary.TestFramework.BeginScenario("NegTest"+id+": Array.IndexOf(T[] array, T value, int startIndex, int count) (T == "+typeof(T)+" where array is null"); - - try - { - Array.IndexOf<T>(array, defaultValue, 0, 0); - - TestLibrary.TestFramework.LogError("005", "Exepction should have been thrown"); - retVal = false; - } - catch (ArgumentNullException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegIndexOf2<T>(int id, T defaultValue, int length, int startIndex, int count) - { - bool retVal = true; - T[] array = null; - - TestLibrary.TestFramework.BeginScenario("NegTest"+id+": Array.IndexOf(T["+length+"] array, T value, "+startIndex+", "+count+") (T == "+typeof(T)+" where array is null"); - - try - { - array = new T[ length ]; - - Array.IndexOf<T>(array, defaultValue, startIndex, count); - - TestLibrary.TestFramework.LogError("007", "Exepction should have been thrown"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } -} - diff --git a/tests/src/CoreMangLib/cti/system/array/arrayinitialize.cs b/tests/src/CoreMangLib/cti/system/array/arrayinitialize.cs deleted file mode 100644 index b7a93e2dee..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arrayinitialize.cs +++ /dev/null @@ -1,216 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.Array.Initialize() -/// </summary> -public class ArrayInitialize -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Array of Int32, Initialize "); - - try - { - int length = TestLibrary.Generator.GetInt16(-55); - int[] i1 = new int[length]; - for (int i = 0; i < length; i++) - { - i1[i] = i; - } - i1.Initialize(); // The type of int32 does not have constructors, so the value is not changed - for (int i = 0; i < length; i++) - { - if (i1[i] != i) - { - TestLibrary.TestFramework.LogError("001", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Try to Initialize a customized structure type"); - - try - { - int length = TestLibrary.Generator.GetInt16(-55); - A[] i1 = new A[length]; - for (int i = 0; i < length; i++) - { - i1[i] = new A(i); - } - i1.Initialize(); - for (int i = 0; i < length; i++) - { - if (i1[i].a != i) - { - TestLibrary.TestFramework.LogError("003", "The result is not the value as expected"); - retVal = false; - } - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: Initialize a reference-type array "); - - try - { - int length = TestLibrary.Generator.GetInt16(-55); - string[] i1 = new string[length]; - for (int i = 0; i < length; i++) - { - i1[i] = i.ToString(); - } - i1.Initialize(); // The type of int32 does not have constructors, so the value is not changed - for (int i = 0; i < length; i++) - { - if (i1[i] != i.ToString()) - { - TestLibrary.TestFramework.LogError("005", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest4: Try to Initialize a customized class type"); - - try - { - int length = TestLibrary.Generator.GetInt16(-55); - B[] i1 = new B[length]; - for (int i = 0; i < length; i++) - { - i1[i] = new B(i); - } - i1.Initialize(); - for (int i = 0; i < length; i++) - { - if (i1[i].b_value != i) - { - TestLibrary.TestFramework.LogError("007", "The result is not the value as expected"); - retVal = false; - } - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - - #endregion - #endregion - - public static int Main() - { - ArrayInitialize test = new ArrayInitialize(); - - TestLibrary.TestFramework.BeginTestCase("ArrayInitialize"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} -struct A -{ - public A(int a) - { - this.a = a; - } - public int a; -} - -class B -{ - public B() - { - this.b = 0; - } - public B(int b) - { - this.b = b; - } - public int b_value - { - get - { - return this.b; - } - - } - private int b; - -} - diff --git a/tests/src/CoreMangLib/cti/system/array/arraylastindexof1.cs b/tests/src/CoreMangLib/cti/system/array/arraylastindexof1.cs deleted file mode 100644 index a600ae512f..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraylastindexof1.cs +++ /dev/null @@ -1,469 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.Array.LastIndexOf(System.Array,System.Object,System.Int32,System.Int32) -/// </summary> -public class ArrayLastIndexOf1 -{ - private int c_MINI_STRING_LENGTH = 8; - private int c_MAX_STRING_LENGTH = 256; - - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - retVal = NegTest4() && retVal; - retVal = NegTest5() && retVal; - retVal = NegTest6() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest1:Test the array of many elements which have the same value "); - - try - { - int length = TestLibrary.Generator.GetInt16(-55); - int value = TestLibrary.Generator.GetByte(-55); - int[] i1 = new int[length]; - for (int i = 0; i < length; i++) - { - i1[i] = value; - } - for (int i = length - 1; i >= 0; i--) // travel the array - { - if (Array.LastIndexOf(i1, value, i, i + 1) != i) - { - TestLibrary.TestFramework.LogError("001", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest2: Test the empty string "); - - try - { - int length = TestLibrary.Generator.GetByte(-55); - string[] s1 = new string[length]; - for (int i = 0; i < length; i++) - { - s1[i] = ""; - } - for (int i = length - 1; i >= 0; i--) // travel the array - { - if (Array.LastIndexOf(s1, "", i, i + 1) != i) - { - TestLibrary.TestFramework.LogError("003", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest3: Test the null element of the string array "); - - try - { - int length; - string value = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH); - int index1, index2; - do - { - length = TestLibrary.Generator.GetInt16(-55); - } while (10 > length); - do - { - index1 = this.GetInt32(0, length); - index2 = this.GetInt32(0, length); - } while (index1 == index2); - string[] s1 = new string[length]; - for (int i = 0; i < length; i++) - { - if (i != index1 && (i != index2)) - { - s1[i] = value; - } - else - { - s1[i] = null; - } - - } - if (index1 < index2) - { - if (Array.LastIndexOf(s1, null, length - 1, length) != index2) - { - TestLibrary.TestFramework.LogError("005", "The result is not the value as expected"); - retVal = false; - } - } - else - { - if (Array.LastIndexOf(s1, null, length - 1, length) != index1) - { - TestLibrary.TestFramework.LogError("006", "The result is not the value as expected"); - retVal = false; - } - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("007", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest4: Find out no result "); - - try - { - string[] s1 = new string[5]{"Jack", - "Mary", - "Mike", - "Peter", - "Joan"}; - - if (Array.LastIndexOf(s1, "Jaon", 4, 5) != -1) - { - TestLibrary.TestFramework.LogError("008", "The result is not the value as expected"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("009", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest5: Find the second last value because of the startIndex "); - - try - { - string[] s1 = new string[6]{"Jack", - "Mary", - "Mike", - "Peter", - "Mary", - "Joan"}; - - if (Array.LastIndexOf(s1, "Mary", 3, 4) != 1) - { - TestLibrary.TestFramework.LogError("010", "The result is not the value as expected"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("011", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest6: Find out no value because of the count argument "); - - try - { - string[] s1 = new string[6]{"Jack", - "Mary", - "Mike", - "Peter", - "Mary", - "Joan"}; - - if (Array.LastIndexOf(s1, "Mike", 5, 3) != -1) - { - TestLibrary.TestFramework.LogError("012", "The result is not the value as expected"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("013", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest7() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest7: Find out no value because of different type "); - - try - { - int[] i1 = new int[5] { 1, 2, 34, 67, 10 }; - Int16 value = 34; - int result = Array.LastIndexOf(i1, (object)value, 4, 5); - if (result != -1) - { - TestLibrary.TestFramework.LogError("014", "The result is not the value as expected: Expected(-1) Actual("+result+")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("015", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: The array is a null reference "); - - try - { - string[] s1 = null; - int i1 = Array.LastIndexOf(s1, "", 1, 0); - TestLibrary.TestFramework.LogError("101", "The ArgumentNullException was not thrown as expected"); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2: Set the negative startIndex argument"); - - try - { - string[] s1 = new string[6]{"Jack", - "Mary", - "Mike", - "Peter", - "Mary", - "Joan"}; - int i1 = Array.LastIndexOf(s1, "", -1, 3); - TestLibrary.TestFramework.LogError("103", "The ArgumentOutOfRangeException was not thrown as expected"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest3: Set the startIndex greater than the max index of the array"); - - try - { - int[] i1 = new int[6] { 2, 34, 56, 87, 23, 209 }; - int i2 = Array.LastIndexOf(i1, 56, 6, 3); - TestLibrary.TestFramework.LogError("105", "The ArgumentOutOfRangeException was not thrown as expected"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("106", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest4: Count argument is less than zero"); - try - { - int[] i1 = new int[6] { 2, 34, 56, 87, 23, 209 }; - int i2 = Array.LastIndexOf(i1, 56, 3, -3); - TestLibrary.TestFramework.LogError("107", "The ArgumentOutOfRangeException was not thrown as expected"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("108", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest5: Count argument do not specify a valid section in array"); - try - { - int[] i1 = new int[6] { 2, 34, 56, 87, 23, 209 }; - int i2 = Array.LastIndexOf(i1, 56, 3, 5); - TestLibrary.TestFramework.LogError("109", "The ArgumentOutOfRangeException was not thrown as expected"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("110", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest6() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest6: The array is not a one dimension array "); - try - { - int[,] i1 = new int[2, 3] { { 2, 3, 5 }, { 34, 56, 77 } }; - int i2 = Array.LastIndexOf(i1, 3, 1, 0); - TestLibrary.TestFramework.LogError("111", "The RankException was not thrown as expected"); - retVal = false; - } - catch (RankException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("112", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - ArrayLastIndexOf1 test = new ArrayLastIndexOf1(); - - TestLibrary.TestFramework.BeginTestCase("ArrayLastIndexOf1"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - public Int32 GetInt32(int min, int max) - { - return min + TestLibrary.Generator.GetInt32(-55) % (max - min); - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraylastindexof1b.cs b/tests/src/CoreMangLib/cti/system/array/arraylastindexof1b.cs deleted file mode 100644 index 8cc49efe95..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraylastindexof1b.cs +++ /dev/null @@ -1,635 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; - -public class ArrayLastIndexOf1 -{ - private const int c_MIN_SIZE = 64; - private const int c_MAX_SIZE = 1024; - private const int c_MIN_STRLEN = 1; - private const int c_MAX_STRLEN = 1024; - - public static int Main() - { - ArrayLastIndexOf1 ac = new ArrayLastIndexOf1(); - - TestLibrary.TestFramework.BeginTestCase("Array.LastInexOf(Array, object, int, int)"); - - if (ac.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - retVal = NegTest4() && retVal; - retVal = NegTest5() && retVal; - retVal = NegTest6() && retVal; - retVal = NegTest7() && retVal; - retVal = NegTest8() && retVal; - retVal = NegTest9() && retVal; - retVal = NegTest10() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - Array array; - int length; - int element; - int index; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Array.LastInexOf(Array, object, int, int) where element is found"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), length); - - element = TestLibrary.Generator.GetInt32(-55); - - // fill the array - for (int i=0; i<array.Length; i++) - { - array.SetValue((object)TestLibrary.Generator.GetInt32(-55), i); - } - - // set the lucky index - index = TestLibrary.Generator.GetInt32(-55) % length; - - // set the value - array.SetValue( element, index); - - newIndex = Array.LastIndexOf(array, (object)element, array.Length-1, array.Length); - - if (index > newIndex) - { - TestLibrary.TestFramework.LogError("000", "Unexpected index: Expected(" + index + ") Actual(" + newIndex + ")"); - retVal = false; - } - - if (element != (int)array.GetValue(newIndex)) - { - TestLibrary.TestFramework.LogError("001", "Unexpected value: Expected(" + element + ") Actual(" + (int)array.GetValue(newIndex) + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - Array array; - int length; - string element; - int index; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Array.LastInexOf(Array, object, int, int) non-primitive type"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(string), length); - - element = TestLibrary.Generator.GetString(-55, false, c_MIN_STRLEN, c_MAX_STRLEN); - - // fill the array - for (int i=0; i<array.Length; i++) - { - array.SetValue(TestLibrary.Generator.GetString(-55, false, c_MIN_STRLEN, c_MAX_STRLEN), i); - } - - // set the lucky index - index = TestLibrary.Generator.GetInt32(-55) % length; - - // set the value - array.SetValue( element, index); - - newIndex = Array.LastIndexOf(array, (object)element, array.Length-1, array.Length); - - if (index > newIndex) - { - TestLibrary.TestFramework.LogError("003", "Unexpected index: Expected(" + index + ") Actual(" + newIndex + ")"); - retVal = false; - } - - if (!element.Equals(array.GetValue(newIndex))) - { - TestLibrary.TestFramework.LogError("004", "Unexpected value: Expected(" + element + ") Actual(" + array.GetValue(newIndex) + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("005", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - Array array; - int length; - object element; - int index; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("PosTest3: Array.LastInexOf(Array, object, int, int) non-primitive type (with value == null)"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(string), length); - - element = null; - - // fill the array - for (int i=0; i<array.Length; i++) - { - array.SetValue(TestLibrary.Generator.GetString(-55, false, c_MIN_STRLEN, c_MAX_STRLEN), i); - } - - // set the lucky index - index = TestLibrary.Generator.GetInt32(-55) % length; - - // set the value - array.SetValue( element, index); - - newIndex = Array.LastIndexOf(array, (object)element, array.Length-1, array.Length); - - if (index > newIndex) - { - TestLibrary.TestFramework.LogError("006", "Unexpected index: Expected(" + index + ") Actual(" + newIndex + ")"); - retVal = false; - } - - if (element != array.GetValue(newIndex)) - { - TestLibrary.TestFramework.LogError("007", "Unexpected value: Expected(" + element + ") Actual(" + array.GetValue(newIndex) + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - Array array; - int length; - MyStruct element; - int index; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("PosTest4: Array.LastInexOf(Array, object, int, int) non-primitive type (not derived from object)"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(MyStruct), length); - - element = new MyStruct(TestLibrary.Generator.GetSingle(-55)); - - // fill the array - for (int i=0; i<array.Length; i++) - { - array.SetValue(new MyStruct(TestLibrary.Generator.GetSingle(-55)), i); - } - - // set the lucky index - index = TestLibrary.Generator.GetInt32(-55) % length; - - // set the value - array.SetValue( element, index); - - newIndex = Array.LastIndexOf(array, (object)element, array.Length-1, array.Length); - - if (index > newIndex) - { - TestLibrary.TestFramework.LogError("009", "Unexpected index: Expected(" + index + ") Actual(" + newIndex + ")"); - retVal = false; - } - - if (element.f != ((MyStruct)array.GetValue(newIndex)).f) - { - TestLibrary.TestFramework.LogError("010", "Unexpected value: Expected(" + element.f + ") Actual(" + ((MyStruct)array.GetValue(newIndex)).f + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("011", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - Array array; - int length; - int element; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("NegTest1: Array.LastInexOf(Array, object, int, int) where element is not found"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), length); - - element = TestLibrary.Generator.GetInt32(-55); - - // fill the array - for (int i=0; i<array.Length; i++) - { - do - { - array.SetValue((object)TestLibrary.Generator.GetInt32(-55), i); - } - while (element == (int)array.GetValue(i)); - } - - newIndex = Array.LastIndexOf(array, (object)element, array.Length-1, array.Length); - - if (-1 != newIndex) - { - TestLibrary.TestFramework.LogError("012", "Unexpected index: Actual(" + newIndex + ")"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("013", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - Array array; - int length; - int element; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("NegTest2: Array.LastInexOf(Array, object, int, int) array full of null's"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), length); - - element = TestLibrary.Generator.GetInt32(-55); - - // fill the array - for (int i=0; i<array.Length; i++) - { - array.SetValue(null, i); - } - - newIndex = Array.LastIndexOf(array, (object)element, array.Length-1, array.Length); - - if (-1 != newIndex) - { - TestLibrary.TestFramework.LogError("014", "Unexpected index: Actual(" + newIndex + ")"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("015", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest3: Array.LastInexOf(Array, object, int, int) array is null"); - - try - { - Array.LastIndexOf(null, (object)1, 0, 0); - - TestLibrary.TestFramework.LogError("016", "Should have thrown an expection"); - retVal = false; - } - catch (ArgumentNullException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("017", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - - public bool NegTest4() - { - bool retVal = true; - Array array; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("NegTest4: Array.LastInexOf(Array, object, int, int) array of length 0"); - - try - { - // creat the array - array = Array.CreateInstance(typeof(Int32), 0); - - newIndex = Array.LastIndexOf(array, (object)null, array.Length-1, array.Length); - - if (-1 != newIndex) - { - TestLibrary.TestFramework.LogError("018", "Unexpected index: Actual(" + newIndex + ")"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("019", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest5() - { - bool retVal = true; - Array array; - int length; - - TestLibrary.TestFramework.BeginScenario("NegTest5: Array.LastInexOf(Array, object, int, int) start index less than lower bound"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), length); - - Array.LastIndexOf(array, (object)null, -1, array.Length); - - TestLibrary.TestFramework.LogError("020", "Should have thrown an exception"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("021", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest6() - { - bool retVal = true; - Array array; - int length; - - TestLibrary.TestFramework.BeginScenario("NegTest6: Array.LastInexOf(Array, object, int, int) start index greater than upper bound"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), length); - - Array.LastIndexOf(array, (object)null, array.Length, array.Length); - - TestLibrary.TestFramework.LogError("022", "Should have thrown an exception"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("023", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest7() - { - bool retVal = true; - Array array; - int length; - - TestLibrary.TestFramework.BeginScenario("NegTest7: Array.LastInexOf(Array, object, int, int) count less than 0"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), length); - - Array.LastIndexOf(array, (object)null, array.Length-1, -1); - - TestLibrary.TestFramework.LogError("024", "Should have thrown an exception"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("025", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest8() - { - bool retVal = true; - Array array; - int length; - - TestLibrary.TestFramework.BeginScenario("NegTest8: Array.LastInexOf(Array, object, int, int) (count > startIndex - lb + 1)"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), length); - - Array.LastIndexOf(array, (object)null, 0, array.Length); - - TestLibrary.TestFramework.LogError("026", "Should have thrown an exception"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("027", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest9() - { - bool retVal = true; - Array array; - int length; - - TestLibrary.TestFramework.BeginScenario("NegTest9: Array.LastInexOf(Array, object, int, int) multi dim array"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), new int[2] {length, length}); - - Array.LastIndexOf(array, (object)null, array.Length-1, array.Length); - - TestLibrary.TestFramework.LogError("028", "Should have thrown an exception"); - retVal = false; - } - catch (RankException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("029", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public struct MyStruct - { - public float f; - - public MyStruct(float ff) { f = ff; } - } - - public bool NegTest10() - { - bool retVal = true; - Array array; - int length; - MyStruct element; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("NegTest10: Array.LastInexOf(Array, object, int, int) non-primitive type (not derived from object) not found"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(MyStruct), length); - - element = new MyStruct(TestLibrary.Generator.GetSingle(-55)); - - // fill the array - for (int i=0; i<array.Length; i++) - { - do - { - array.SetValue(new MyStruct(TestLibrary.Generator.GetSingle(-55)), i); - } - while(element.Equals((MyStruct)array.GetValue(i))); - } - - newIndex = Array.LastIndexOf(array, (object)element, array.Length-1, array.Length); - - if (-1 != newIndex) - { - TestLibrary.TestFramework.LogError("030", "Unexpected index: Expected(-1) Actual(" + newIndex + ")"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("031", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraylastindexof2.cs b/tests/src/CoreMangLib/cti/system/array/arraylastindexof2.cs deleted file mode 100644 index 77ab835b7f..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraylastindexof2.cs +++ /dev/null @@ -1,239 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.Array.LastIndexOf<>(T[],T) -/// </summary> -public class ArrayIndexOf2 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Find out the last value which is equal to 3"); - - try - { - int length = TestLibrary.Generator.GetInt16(-55); - int[] i1 = new int[length]; - for (int i = 0; i < length; i++) - { - if (i % 3 == 0) - { - i1[i] = 3; - } - else - { - i1[i] = i; - } - } - for (int a = length - 1; a > length - 4; a--) - { - if (a % 3 == 0) - { - int i2 = Array.LastIndexOf<int>(i1, 3); - if (i2 != a) - { - TestLibrary.TestFramework.LogError("001", "The result is not the value as expected "); - retVal = false; - } - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest2: Find the last string value in an array "); - - try - { - string[] s1 = new string[5]{"Jack", - "Mary", - "Mike", - "Peter", - "Jack"}; - if (Array.LastIndexOf<string>(s1, "Jack") != 4) - { - TestLibrary.TestFramework.LogError("003", "The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest3: Find out the null element in an array of string "); - - try - { - string[] s1 = new string[7]{"Jack", - "Mary", - "Mike", - null, - "Peter", - null, - "Jack"}; - if (Array.LastIndexOf<string>(s1, null) != 5) - { - TestLibrary.TestFramework.LogError("005", "The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest4: Find out no expected value in an array of string "); - - try - { - string[] s1 = new string[5]{"Jack", - "Mary", - "Mike", - "Peter", - "Jack"}; - if (Array.LastIndexOf<string>(s1, "Tom") != -1) - { - TestLibrary.TestFramework.LogError("007", "The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest5: Find out the last empty string "); - - try - { - string[] s1 = new string[5]{"", - "", - "", - "", - "Tom"}; - if (Array.LastIndexOf<string>(s1, "") != 3) - { - TestLibrary.TestFramework.LogError("007", "The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: The array is a null reference"); - - try - { - string[] s1 = null; - int i1 = Array.LastIndexOf<string>(s1, ""); - TestLibrary.TestFramework.LogError("101", "The ArgumentNullException is not thrown as expected "); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - ArrayIndexOf2 test = new ArrayIndexOf2(); - - TestLibrary.TestFramework.BeginTestCase("ArrayIndexOf2"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraylastindexof2b.cs b/tests/src/CoreMangLib/cti/system/array/arraylastindexof2b.cs deleted file mode 100644 index 7a13fb513f..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraylastindexof2b.cs +++ /dev/null @@ -1,149 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; - -public class ArrayLastIndexOf2 -{ - private const int c_MIN_SIZE = 64; - private const int c_MAX_SIZE = 1024; - private const int c_MIN_STRLEN = 1; - private const int c_MAX_STRLEN = 1024; - - public static int Main() - { - ArrayLastIndexOf2 ac = new ArrayLastIndexOf2(); - - TestLibrary.TestFramework.BeginTestCase("Array.LastInexOf(T[] array, T value)"); - - if (ac.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - retVal = PosTest8() && retVal; - retVal = PosTest9() && retVal; - retVal = PosTest10() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - - return retVal; - } - - public bool PosTest1() { return PosIndexOf<Int64>(1, TestLibrary.Generator.GetInt64(-55), TestLibrary.Generator.GetInt64(-55)); } - public bool PosTest2() { return PosIndexOf<Int32>(2, TestLibrary.Generator.GetInt32(-55), TestLibrary.Generator.GetInt32(-55)); } - public bool PosTest3() { return PosIndexOf<Int16>(3, TestLibrary.Generator.GetInt16(-55), TestLibrary.Generator.GetInt16(-55)); } - public bool PosTest4() { return PosIndexOf<Byte>(4, TestLibrary.Generator.GetByte(-55), TestLibrary.Generator.GetByte(-55)); } - public bool PosTest5() { return PosIndexOf<double>(5, TestLibrary.Generator.GetDouble(-55), TestLibrary.Generator.GetDouble(-55)); } - public bool PosTest6() { return PosIndexOf<float>(6, TestLibrary.Generator.GetSingle(-55), TestLibrary.Generator.GetSingle(-55)); } - public bool PosTest7() { return PosIndexOf<char>(7, TestLibrary.Generator.GetCharLetter(-55), TestLibrary.Generator.GetCharLetter(-55)); } - public bool PosTest8() { return PosIndexOf<char>(8, TestLibrary.Generator.GetCharNumber(-55), TestLibrary.Generator.GetCharNumber(-55)); } - public bool PosTest9() { return PosIndexOf<char>(9, TestLibrary.Generator.GetChar(-55), TestLibrary.Generator.GetChar(-55)); } - public bool PosTest10() { return PosIndexOf<string>(10, TestLibrary.Generator.GetString(-55, false, c_MIN_STRLEN, c_MAX_STRLEN), TestLibrary.Generator.GetString(-55, false, c_MIN_STRLEN, c_MAX_STRLEN)); } - - public bool NegTest1() { return NegIndexOf<Int32>(1, 1); } - - public bool PosIndexOf<T>(int id, T element, T otherElem) - { - bool retVal = true; - T[] array; - int length; - int index; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("PosTest"+id+": Array.LastInexOf(T[] array, T value) (T=="+typeof(T)+") where value is found"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = new T[length]; - - // fill the array - for (int i=0; i<array.Length; i++) - { - array[i] = otherElem; - } - - // set the lucky index - index = TestLibrary.Generator.GetInt32(-55) % length; - - // set the value - array.SetValue( element, index); - - newIndex = Array.LastIndexOf<T>(array, element); - - if (index > newIndex) - { - TestLibrary.TestFramework.LogError("000", "Unexpected index: Expected(" + index + ") Actual(" + newIndex + ")"); - retVal = false; - } - - if (!element.Equals(array[newIndex])) - { - TestLibrary.TestFramework.LogError("001", "Unexpected value: Expected(" + element + ") Actual(" + array[newIndex] + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegIndexOf<T>(int id, T defaultValue) - { - bool retVal = true; - T[] array = null; - - TestLibrary.TestFramework.BeginScenario("NegTest"+id+": Array.LastInexOf(T[] array, T value) (T == "+typeof(T)+" where array is null"); - - try - { - Array.LastIndexOf<T>(array, defaultValue); - - TestLibrary.TestFramework.LogError("003", "Exepction should have been thrown"); - retVal = false; - } - catch (ArgumentNullException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraylastindexof3.cs b/tests/src/CoreMangLib/cti/system/array/arraylastindexof3.cs deleted file mode 100644 index af16f29846..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraylastindexof3.cs +++ /dev/null @@ -1,365 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// system.Array.LastIndexOf<>(T[],T,int32,int32) -/// </summary> -public class ArrayIndexOf3 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - retVal = NegTest4() && retVal; - retVal = NegTest5() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1:Test the array of elements which have the same value "); - - try - { - int length = TestLibrary.Generator.GetInt16(-55); - int value = TestLibrary.Generator.GetByte(-55); - int[] i1 = new int[length]; - for (int i = 0; i < length; i++) - { - i1[i] = value; - } - for (int i = length - 1; i >= 0; i--) // travel the array - { - if (Array.LastIndexOf<int>(i1, value, i, i + 1) != i) - { - TestLibrary.TestFramework.LogError("001", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest2: Test the empty string "); - - try - { - int length = TestLibrary.Generator.GetByte(-55); - string[] s1 = new string[length]; - for (int i = 0; i < length; i++) - { - s1[i] = ""; - } - for (int i = length - 1; i >= 0; i--) // travel the array - { - if (Array.LastIndexOf<string>(s1, "", i, i + 1) != i) - { - TestLibrary.TestFramework.LogError("003", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest3: Generic convert byte to int32"); - - try - { - int[] i1 = new int[6] { 2356, 255, 988874, 90875, 255, 123334564 }; - byte b1 = 255; - if (Array.LastIndexOf<int>(i1, b1, 5, 6) != 4) - { - TestLibrary.TestFramework.LogError("005", "The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest4: Test the array of char"); - - try - { - char[] i1 = new char[6] { 't', 'r', 'c', '4', 'r', 'c' }; - char b1 = 'c'; - if (Array.LastIndexOf<char>(i1, b1, 4, 5) != 2) - { - TestLibrary.TestFramework.LogError("007", "The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest5: Test the null element of the string array "); - - try - { - string[] s1 = new string[6]{"Jack", - "Mary", - "Mike", - "Peter", - null, - "Mary"}; - if (Array.LastIndexOf<string>(s1, null, 5, 6) != 4) - { - TestLibrary.TestFramework.LogError("005", "The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest6: Find out no result "); - - try - { - string[] s1 = new string[6]{"Jack", - "Mary", - "Mike", - "Peter", - "Tim", - "Mary"}; - if (Array.LastIndexOf<string>(s1, "mary", 5, 6) != -1) - { - TestLibrary.TestFramework.LogError("005", "The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1:The array is a null reference "); - - try - { - string[] s1 = null; - int i1 = Array.LastIndexOf<string>(s1, "", 1, 0); - TestLibrary.TestFramework.LogError("101", "The ArgumentNullException was not thrown as expected"); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("101", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2: Set the negative startIndex argument"); - - try - { - string[] s1 = new string[6]{"Jack", - "Mary", - "Mike", - "Peter", - "Mary", - "Joan"}; - int i1 = Array.LastIndexOf<string>(s1, "", -1, 3); - TestLibrary.TestFramework.LogError("103", "The ArgumentOutOfRangeException was not thrown as expected"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest3: Set the startIndex greater than the max index of the array"); - - try - { - int[] i1 = new int[6] { 2, 34, 56, 87, 23, 209 }; - int i2 = Array.LastIndexOf<int>(i1, 56, 6, 3); - TestLibrary.TestFramework.LogError("105", "The ArgumentOutOfRangeException was not thrown as expected"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("106", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest4: Count argument is less than zero"); - try - { - int[] i1 = new int[6] { 2, 34, 56, 87, 23, 209 }; - int i2 = Array.LastIndexOf<int>(i1, 56, 3, -3); - TestLibrary.TestFramework.LogError("107", "The ArgumentOutOfRangeException was not thrown as expected"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("108", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest5: Count argument do not specify a valid section in array"); - try - { - int[] i1 = new int[6] { 2, 34, 56, 87, 23, 209 }; - int i2 = Array.LastIndexOf<int>(i1, 56, 3, 5); - TestLibrary.TestFramework.LogError("109", "The ArgumentOutOfRangeException was not thrown as expected"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("110", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - #endregion - #endregion - - public static int Main() - { - ArrayIndexOf3 test = new ArrayIndexOf3(); - - TestLibrary.TestFramework.BeginTestCase("ArrayIndexOf3"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraylastindexof3b.cs b/tests/src/CoreMangLib/cti/system/array/arraylastindexof3b.cs deleted file mode 100644 index 1e3dda9dca..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraylastindexof3b.cs +++ /dev/null @@ -1,149 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; - -public class ArrayLastIndexOf3 -{ - private const int c_MIN_SIZE = 64; - private const int c_MAX_SIZE = 1024; - private const int c_MIN_STRLEN = 1; - private const int c_MAX_STRLEN = 1024; - - public static int Main() - { - ArrayLastIndexOf3 ac = new ArrayLastIndexOf3(); - - TestLibrary.TestFramework.BeginTestCase("Array.LastInexOf(T[] array, T value)"); - - if (ac.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - retVal = PosTest8() && retVal; - retVal = PosTest9() && retVal; - retVal = PosTest10() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - - return retVal; - } - - public bool PosTest1() { return PosIndexOf<Int64>(1, TestLibrary.Generator.GetInt64(-55), TestLibrary.Generator.GetInt64(-55)); } - public bool PosTest2() { return PosIndexOf<Int32>(2, TestLibrary.Generator.GetInt32(-55), TestLibrary.Generator.GetInt32(-55)); } - public bool PosTest3() { return PosIndexOf<Int16>(3, TestLibrary.Generator.GetInt16(-55), TestLibrary.Generator.GetInt16(-55)); } - public bool PosTest4() { return PosIndexOf<Byte>(4, TestLibrary.Generator.GetByte(-55), TestLibrary.Generator.GetByte(-55)); } - public bool PosTest5() { return PosIndexOf<double>(5, TestLibrary.Generator.GetDouble(-55), TestLibrary.Generator.GetDouble(-55)); } - public bool PosTest6() { return PosIndexOf<float>(6, TestLibrary.Generator.GetSingle(-55), TestLibrary.Generator.GetSingle(-55)); } - public bool PosTest7() { return PosIndexOf<char>(7, TestLibrary.Generator.GetCharLetter(-55), TestLibrary.Generator.GetCharLetter(-55)); } - public bool PosTest8() { return PosIndexOf<char>(8, TestLibrary.Generator.GetCharNumber(-55), TestLibrary.Generator.GetCharNumber(-55)); } - public bool PosTest9() { return PosIndexOf<char>(9, TestLibrary.Generator.GetChar(-55), TestLibrary.Generator.GetChar(-55)); } - public bool PosTest10() { return PosIndexOf<string>(10, TestLibrary.Generator.GetString(-55, false, c_MIN_STRLEN, c_MAX_STRLEN), TestLibrary.Generator.GetString(-55, false, c_MIN_STRLEN, c_MAX_STRLEN)); } - - public bool NegTest1() { return NegIndexOf<Int32>(1, 1); } - - public bool PosIndexOf<T>(int id, T element, T otherElem) - { - bool retVal = true; - T[] array; - int length; - int index; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("PosTest"+id+": Array.LastInexOf(T[] array, T value, int startIndex) (T=="+typeof(T)+") where value is found"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = new T[length]; - - // fill the array - for (int i=0; i<array.Length; i++) - { - array[i] = otherElem; - } - - // set the lucky index - index = TestLibrary.Generator.GetInt32(-55) % length; - - // set the value - array.SetValue( element, index); - - newIndex = Array.LastIndexOf<T>(array, element, array.Length-1); - - if (index > newIndex) - { - TestLibrary.TestFramework.LogError("000", "Unexpected index: Expected(" + index + ") Actual(" + newIndex + ")"); - retVal = false; - } - - if (!element.Equals(array[newIndex])) - { - TestLibrary.TestFramework.LogError("001", "Unexpected value: Expected(" + element + ") Actual(" + array[newIndex] + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegIndexOf<T>(int id, T defaultValue) - { - bool retVal = true; - T[] array = null; - - TestLibrary.TestFramework.BeginScenario("NegTest"+id+": Array.LastInexOf(T[] array, T value, int startIndex) (T == "+typeof(T)+" where array is null"); - - try - { - Array.LastIndexOf<T>(array, defaultValue, 0); - - TestLibrary.TestFramework.LogError("003", "Exepction should have been thrown"); - retVal = false; - } - catch (ArgumentNullException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraylastindexof4.cs b/tests/src/CoreMangLib/cti/system/array/arraylastindexof4.cs deleted file mode 100644 index a5c2f03c77..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraylastindexof4.cs +++ /dev/null @@ -1,234 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; - -public class ArrayLastIndexOf4 -{ - private const int c_MIN_SIZE = 64; - private const int c_MAX_SIZE = 1024; - private const int c_MIN_STRLEN = 1; - private const int c_MAX_STRLEN = 1024; - - public static int Main() - { - ArrayLastIndexOf4 ac = new ArrayLastIndexOf4(); - - TestLibrary.TestFramework.BeginTestCase("Array.LastInexOf(T[] array, T value)"); - - if (ac.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - retVal = PosTest8() && retVal; - retVal = PosTest9() && retVal; - retVal = PosTest10() && retVal; - retVal = PosTest11() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - retVal = NegTest4() && retVal; - retVal = NegTest5() && retVal; - retVal = NegTest6() && retVal; - retVal = NegTest7() && retVal; - retVal = NegTest8() && retVal; - retVal = NegTest9() && retVal; - retVal = NegTest10() && retVal; - - return retVal; - } - - public bool PosTest1() { return PosIndexOf<Int64>(1, TestLibrary.Generator.GetInt64(-55), TestLibrary.Generator.GetInt64(-55)); } - public bool PosTest2() { return PosIndexOf<Int32>(2, TestLibrary.Generator.GetInt32(-55), TestLibrary.Generator.GetInt32(-55)); } - public bool PosTest3() { return PosIndexOf<Int16>(3, TestLibrary.Generator.GetInt16(-55), TestLibrary.Generator.GetInt16(-55)); } - public bool PosTest4() { return PosIndexOf<Byte>(4, TestLibrary.Generator.GetByte(-55), TestLibrary.Generator.GetByte(-55)); } - public bool PosTest5() { return PosIndexOf<double>(5, TestLibrary.Generator.GetDouble(-55), TestLibrary.Generator.GetDouble(-55)); } - public bool PosTest6() { return PosIndexOf<float>(6, TestLibrary.Generator.GetSingle(-55), TestLibrary.Generator.GetSingle(-55)); } - public bool PosTest7() { return PosIndexOf<char>(7, TestLibrary.Generator.GetCharLetter(-55), TestLibrary.Generator.GetCharLetter(-55)); } - public bool PosTest8() { return PosIndexOf<char>(8, TestLibrary.Generator.GetCharNumber(-55), TestLibrary.Generator.GetCharNumber(-55)); } - public bool PosTest9() { return PosIndexOf<char>(9, TestLibrary.Generator.GetChar(-55), TestLibrary.Generator.GetChar(-55)); } - public bool PosTest10() { return PosIndexOf<string>(10, TestLibrary.Generator.GetString(-55, false, c_MIN_STRLEN, c_MAX_STRLEN), TestLibrary.Generator.GetString(-55, false, c_MIN_STRLEN, c_MAX_STRLEN)); } - - public bool PosTest11() { return PosIndexOf2<Int32>(11, 1, 0, 0, 0); } - - public bool NegTest1() { return NegIndexOf<Int32>(1, 1); } - // id, defaultValue, length, startIndex, count - public bool NegTest2() { return NegIndexOf2<Int32>( 2, 1, 0, 1, 0); } - public bool NegTest3() { return NegIndexOf2<Int32>( 3, 1, 0, -2, 0); } - public bool NegTest4() { return NegIndexOf2<Int32>( 4, 1, 0, -1, 1); } - public bool NegTest5() { return NegIndexOf2<Int32>( 5, 1, 0, 0, 1); } - public bool NegTest6() { return NegIndexOf2<Int32>( 6, 1, 1, -1, 1); } - public bool NegTest7() { return NegIndexOf2<Int32>( 7, 1, 1, 2, 1); } - public bool NegTest8() { return NegIndexOf2<Int32>( 8, 1, 1, 0, -1); } - public bool NegTest9() { return NegIndexOf2<Int32>( 9, 1, 1, 0, -1); } - public bool NegTest10() { return NegIndexOf2<Int32>(10, 1, 1, 1, 2); } - - public bool PosIndexOf<T>(int id, T element, T otherElem) - { - bool retVal = true; - T[] array; - int length; - int index; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("PosTest"+id+": Array.LastInexOf(T[] array, T value, int startIndex, int count) (T=="+typeof(T)+") where value is found"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = new T[length]; - - // fill the array - for (int i=0; i<array.Length; i++) - { - array[i] = otherElem; - } - - // set the lucky index - index = TestLibrary.Generator.GetInt32(-55) % length; - - // set the value - array.SetValue( element, index); - - newIndex = Array.LastIndexOf<T>(array, element, array.Length-1, array.Length); - - if (index > newIndex) - { - TestLibrary.TestFramework.LogError("000", "Unexpected index: Expected(" + index + ") Actual(" + newIndex + ")"); - retVal = false; - } - - if (!element.Equals(array[newIndex])) - { - TestLibrary.TestFramework.LogError("001", "Unexpected value: Expected(" + element + ") Actual(" + array[newIndex] + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosIndexOf2<T>(int id, T defaultValue, int length, int startIndex, int count) - { - bool retVal = true; - T[] array = null; - int newIndex; - - TestLibrary.TestFramework.BeginScenario("PosTest"+id+": Array.LastInexOf(T["+length+"] array, T value, "+startIndex+", "+count+") (T == "+typeof(T)+" where array is null"); - - try - { - array = new T[ length ]; - - newIndex = Array.LastIndexOf<T>(array, defaultValue, startIndex, count); - - if (-1 != newIndex) - { - TestLibrary.TestFramework.LogError("003", "Unexpected value: Expected(-1) Actual("+newIndex+")"); - retVal = false; - } - } - catch (ArgumentOutOfRangeException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegIndexOf<T>(int id, T defaultValue) - { - bool retVal = true; - T[] array = null; - - TestLibrary.TestFramework.BeginScenario("NegTest"+id+": Array.LastInexOf(T[] array, T value, int startIndex, int count) (T == "+typeof(T)+" where array is null"); - - try - { - Array.LastIndexOf<T>(array, defaultValue, 0, 0); - - TestLibrary.TestFramework.LogError("005", "Exepction should have been thrown"); - retVal = false; - } - catch (ArgumentNullException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegIndexOf2<T>(int id, T defaultValue, int length, int startIndex, int count) - { - bool retVal = true; - T[] array = null; - - TestLibrary.TestFramework.BeginScenario("NegTest"+id+": Array.LastInexOf(T["+length+"] array, T value, "+startIndex+", "+count+") (T == "+typeof(T)+" where array is null"); - - try - { - array = new T[ length ]; - - Array.LastIndexOf<T>(array, defaultValue, startIndex, count); - - TestLibrary.TestFramework.LogError("007", "Exepction should have been thrown"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } -} - diff --git a/tests/src/CoreMangLib/cti/system/array/arraylength.cs b/tests/src/CoreMangLib/cti/system/array/arraylength.cs deleted file mode 100644 index 3f3a00a0e9..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraylength.cs +++ /dev/null @@ -1,147 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -public class ArrayLength -{ - const int row_length = 100; - const int column_length = 10; - const int high_length = 10; - - public static int Main(string[] args) - { - ArrayLength aLength = new ArrayLength(); - TestLibrary.TestFramework.BeginScenario("Testing Array.Length property..."); - - if (aLength.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify Length property of one-dimensional array..."); - - try - { - Array myArray = Array.CreateInstance(typeof(Int32), row_length); - if (myArray.Length!=row_length) - { - TestLibrary.TestFramework.LogError("001", "The Length property is not correct!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpceted exception ouucrs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify Length property of two-dimensional array..."); - - try - { - Array myArray = Array.CreateInstance(typeof(object),row_length,column_length); - if (myArray.Length!=row_length*column_length) - { - TestLibrary.TestFramework.LogError("003", "The Length property is not correct!"); - retVal = true; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify Length property of multi-dimensional array..."); - - try - { - int[] dimenArray = { row_length,column_length,high_length}; - Array myArray = Array.CreateInstance(typeof(object),dimenArray); - - if (myArray.Length!=row_length*column_length*high_length) - { - TestLibrary.TestFramework.LogError("005", "The Length property is not correct..."); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest1() - { - bool RetVal = true; - TestLibrary.TestFramework.BeginScenario("Verify Length property of array with null reference..."); - - try - { - Array myArray = null; - if (myArray.Length != 0) - { - TestLibrary.TestFramework.LogError("007", "No exception occurs!"); - RetVal = true; - } - } - catch (NullReferenceException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception occurs: " + e); - RetVal = false; - } - - return RetVal; - } - -} - diff --git a/tests/src/CoreMangLib/cti/system/array/arrayrank.cs b/tests/src/CoreMangLib/cti/system/array/arrayrank.cs deleted file mode 100644 index 86002e41f4..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arrayrank.cs +++ /dev/null @@ -1,208 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -public class ArrayRank -{ - const int row_length = 100; - const int column_length = 10; - const int high_length = 10; - - public static int Main(string[] args) - { - ArrayRank aRank = new ArrayRank(); - TestLibrary.TestFramework.BeginScenario("Testing Array.Rank property..."); - - if (aRank.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify Rank property of one-dimensional array..."); - - try - { - Array myArray = Array.CreateInstance(typeof(Int32), row_length); - if (myArray.Rank != 1) - { - TestLibrary.TestFramework.LogError("001", "The Rank property is not correct!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpceted exception ouucrs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify Rank property of two-dimensional array..."); - - try - { - Array myArray = Array.CreateInstance(typeof(object), row_length, column_length); - if (myArray.Rank != 2) - { - TestLibrary.TestFramework.LogError("003", "The Rank property is not correct!"); - retVal = true; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify Rank property of multi-dimensional array..."); - - try - { - int[] dimenArray = { row_length, column_length, high_length }; - Array myArray = Array.CreateInstance(typeof(object), dimenArray); - - if (myArray.Rank != 3) - { - TestLibrary.TestFramework.LogError("005", "The Rank property is not correct..."); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - /// <summary> - /// new added scenario - /// </summary> - /// <returns></returns> - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("check the rank of an empty array..."); - - try - { - Array myArray = new int[0]; - - if (myArray.Rank != 1) - { - TestLibrary.TestFramework.LogError("009", "The Rank property is not correct..."); - retVal = false; - } - - myArray = new object[0,0]; - if (myArray.Rank != 2) - { - TestLibrary.TestFramework.LogError("010", "The Rank property is not correct..."); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("011", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest1() - { - bool RetVal = true; - TestLibrary.TestFramework.BeginScenario("Verify Rank property of array with null reference..."); - - try - { - Array myArray = null; - int arrayRank = myArray.Rank; - - TestLibrary.TestFramework.LogError("007", "No exception occurs!"); - RetVal = true; - } - catch (NullReferenceException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception occurs: " + e); - RetVal = false; - } - - return RetVal; - } - - public bool NegTest2() - { - bool RetVal = true; - TestLibrary.TestFramework.BeginScenario("Verify Rank property of array with null reference..."); - - try - { - Array myArray = null; - int rank = myArray.Rank; - - TestLibrary.TestFramework.LogError("007", "No exception occurs!"); - RetVal = true; - } - catch (NullReferenceException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception occurs: " + e); - RetVal = false; - } - - return RetVal; - } - -} - diff --git a/tests/src/CoreMangLib/cti/system/array/arrayreserse1.cs b/tests/src/CoreMangLib/cti/system/array/arrayreserse1.cs deleted file mode 100644 index 4927e93467..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arrayreserse1.cs +++ /dev/null @@ -1,266 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.Array.Reverse(System.Array) -/// </summary> -public class ArrayReverse1 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest1:Reverse an int array "); - - try - { - int length = TestLibrary.Generator.GetInt16(-55); - int[] i1 = new int[length]; - int[] i2 = new int[length]; - for (int i = 0; i < length; i++) - { - int value = TestLibrary.Generator.GetByte(-55); - i1[i] = value; - i2[length - 1 - i] = value; - } - Array.Reverse(i1); - for (int i = 0; i < length; i++) - { - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("001", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2:Reverse an string array "); - - try - { - int length = TestLibrary.Generator.GetByte(-55); - string[] s1 = new string[length]; - string[] s2 = new string[length]; - for (int i = 0; i < length; i++) - { - string value = TestLibrary.Generator.GetString(-55, false, 0, 255); - s1[i] = value; - s2[length - 1 - i] = value; - } - Array.Reverse(s1); - for (int i = 0; i < length; i++) - { - if (s1[i] != s2[i]) - { - TestLibrary.TestFramework.LogError("003", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: Reverse an array which only has one element"); - - try - { - Array myarray1 = Array.CreateInstance(typeof(int), 1); - int value = TestLibrary.Generator.GetInt32(-55); - myarray1.SetValue(value, 0); - Array.Reverse(myarray1); - if ((int)myarray1.GetValue(0) != value) - { - TestLibrary.TestFramework.LogError("005", "The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest4: Reverse an array which has no element"); - - try - { - Array myarray1 = Array.CreateInstance(typeof(int), 0); - Array.Reverse(myarray1); - if (myarray1.Length != 0) - { - TestLibrary.TestFramework.LogError("007", "The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest5: Reverse a string array twice which included null element"); - - try - { - string[] s1 = new string[8]{"Jack", - null, - "Mary", - null, - "Mike", - "Peter", - "Mary", - "Joan"}; - string[] s2 = new string[8]; - s1.CopyTo(s2, 0); - Array.Reverse(s1); - Array.Reverse(s1); - for (int i = 0; i < 8; i++) - { - if (s1[i] != s2[i]) - { - TestLibrary.TestFramework.LogError("009", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: The array is a null reference "); - - try - { - Array myarray = null; - Array.Reverse(myarray); - TestLibrary.TestFramework.LogError("101", "The ArgumentNullException is not throw as expected "); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2: The array is not one dimension "); - - try - { - int[,] s1 = new int[2, 2] { { 1, 2 }, { 3, 4 } }; - Array.Reverse(s1); - TestLibrary.TestFramework.LogError("103", "The RankException is not throw as expected "); - retVal = false; - } - catch (RankException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - ArrayReverse1 test = new ArrayReverse1(); - - TestLibrary.TestFramework.BeginTestCase("ArrayReverse1"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arrayreserse2.cs b/tests/src/CoreMangLib/cti/system/array/arrayreserse2.cs deleted file mode 100644 index 2aa2e8c516..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arrayreserse2.cs +++ /dev/null @@ -1,501 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.Array.Reverse(System.Array,int32,int32) -/// </summary> -public class ArrayReverse2 -{ - private const int c_MIN_STRING_LEN = 8; - private const int c_MAX_STRING_LEN = 256; - - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - retVal = NegTest4() && retVal; - retVal = NegTest5() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Random reverse an int array 1: argument count is even"); - - try - { - int length = GetInt(2, UInt16.MaxValue); - int[] i1 = new int[length]; //the array length of i1 - int[] i2 = new int[length]; //the array length of i2 - int startIdx = GetInt(0, length-1); //The starting index of the section to reverse. - int endIdx = GetInt(startIdx, length);//The end index of the section to reverse. - int count = endIdx - startIdx + 1; - while (count == 0 || (count % 2 != 0)) // Make the argument count to be even - { - endIdx = GetInt(startIdx, length); - count = endIdx - startIdx + 1; - } - for (int i = 0; i < length; i++) - { - int value = TestLibrary.Generator.GetByte(); - i1[i] = value; - i2[i] = value; - } - int times = count / 2; // the times need to exchange value - int endIdx_temp = endIdx; - int startIdx_temp = startIdx; - for (int i = 0; i < times; i++) //reverse the array manually - { - int temp = i2[startIdx_temp]; - i2[startIdx_temp] = i2[endIdx_temp]; - i2[endIdx_temp] = temp; - startIdx_temp++; - endIdx_temp--; - } - Array.Reverse(i1, startIdx, count); - for (int i = 0; i < length; i++) - { - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("001", "The result is not the value as expected,the index not equal is " + i.ToString()); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Random reverse a char array 2: argument count is odd"); - - try - { - int length = GetInt(1, UInt16.MaxValue); - char[] i1 = new char[length]; //the array length of i1 - char[] i2 = new char[length]; //the array length of i2 - int startIdx = GetInt(0, length); //The starting index of the section to reverse. - int endIdx = GetInt(startIdx, length);//The end index of the section to reverse. - int count = endIdx - startIdx + 1; - while (count == 0 || (count % 2 == 0)) // Make the argument count to be odd but not zero - { - endIdx = GetInt(startIdx, length); - count = endIdx - startIdx + 1; - } - for (int i = 0; i < length; i++) - { - char value = TestLibrary.Generator.GetChar(); - i1[i] = value; - i2[i] = value; - } - int times = (count - 1) / 2; // the times need to exchange value - int endIdx_temp = endIdx; - int startIdx_temp = startIdx; - for (int i = 0; i < times; i++) //reverse the array manually - { - char temp = i2[startIdx_temp]; - i2[startIdx_temp] = i2[endIdx_temp]; - i2[endIdx_temp] = temp; - startIdx_temp++; - endIdx_temp--; - } - Array.Reverse(i1, startIdx, count); - for (int i = 0; i < length; i++) - { - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("003", "The result is not the value as expected,the index not equal is " + i.ToString()); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: Random reverse a string array 3: argument count is zero"); - - try - { - int length = GetInt(1, Byte.MaxValue); - string[] i1 = new string[length]; //the array length of i1 - string[] i2 = new string[length]; //the array length of i2 - int startIdx = GetInt(0, length); //The starting index of the section to reverse. - int count = 0; - for (int i = 0; i < length; i++) - { - string value = TestLibrary.Generator.GetString(false, c_MIN_STRING_LEN, c_MAX_STRING_LEN); - i1[i] = value; - i2[i] = value; - } - Array.Reverse(i1, startIdx, count); - for (int i = 0; i < length; i++) - { - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("005", "The result is not the value as expected,the index not equal is " + i.ToString()); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest4: Reserve the last element of a string array "); - - try - { - int length = GetInt(1, Byte.MaxValue); - string[] i1 = new string[length]; //the array length of i1 - string[] i2 = new string[length]; //the array length of i2 - int startIdx = length - 1; //The starting index of the section to reverse. - int count = 1; - for (int i = 0; i < length; i++) - { - string value = TestLibrary.Generator.GetString(false, c_MIN_STRING_LEN, c_MAX_STRING_LEN); - i1[i] = value; - i2[i] = value; - } - Array.Reverse(i1, startIdx, count); - for (int i = 0; i < length; i++) - { - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("007", "The result is not the value as expected,the index not equal is " + i.ToString()); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest5: Reserve the customized type array "); - - try - { - int length = GetInt(1, Byte.MaxValue); - A[] i1 = new A[length]; //the array length of i1 - A[] i2 = new A[length]; //the array length of i2 - for (int i = 0; i < length; i++) - { - A value = new A(TestLibrary.Generator.GetInt32()); - i1[i] = value; - i2[length - 1 - i] = value; - } - Array.Reverse(i1, 0, length); - for (int i = 0; i < length; i++) - { - if (i1[i].a != i2[i].a) - { - TestLibrary.TestFramework.LogError("009", "The result is not the value as expected,the index not equal is " + i.ToString()); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest6: Reserve array including null elements "); - - try - { - int length = GetInt(1, Byte.MaxValue); - A[] i1 = new A[length]; //the array length of i1 - A[] i2 = new A[length]; //the array length of i2 - for (int i = 0; i < length; i++) - { - int pro = TestLibrary.Generator.GetInt16(); - if (pro % 3 == 0) - { - A value = null; - i1[i] = value; - i2[length - 1 - i] = value; - } - else - { - A value = new A(TestLibrary.Generator.GetInt32()); - i1[i] = value; - i2[length - 1 - i] = value; - } - } - Array.Reverse(i1, 0, length); - for (int i = 0; i < length; i++) - { - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("011", "The result is not the value as expected,the index not equal is " + i.ToString()); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: The array is null reference"); - - try - { - string[] s1 = null; - Array.Reverse(s1, 0, 0); - TestLibrary.TestFramework.LogError("101", "The ArgumentNullException is not throw as expected "); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2: The array is not a one dimension array "); - try - { - int[,] i1 = new int[2, 3] { { 2, 3, 5 }, { 34, 56, 77 } }; - Array.Reverse(i1, 0, 1); - TestLibrary.TestFramework.LogError("103", "The RankException was not thrown as expected"); - retVal = false; - } - catch (RankException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest3: Set the negative startIndex argument"); - - try - { - string[] s1 = new string[6]{"Jack", - "Mary", - "Mike", - "Peter", - "Mary", - "Joan"}; - Array.Reverse(s1, -1, 3); - TestLibrary.TestFramework.LogError("105", "The ArgumentOutOfRangeException was not thrown as expected"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("106", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - - // This Scenario failed ! - public bool NegTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest4: Set the startIndex greater than the max index of the array"); - - try - { - int[] i1 = new int[6] { 2, 34, 56, 87, 23, 209 }; - Array.Reverse(i1, 7, 0); - TestLibrary.TestFramework.LogError("107", "The ArgumentException was not thrown as expected"); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("108", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest5: index and length do not specify a valid range in array"); - - try - { - int[] i1 = new int[6] { 2, 34, 56, 87, 23, 209 }; - Array.Reverse(i1, 3, 4); - TestLibrary.TestFramework.LogError("107", "The ArgumentException was not thrown as expected"); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("108", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - ArrayReverse2 test = new ArrayReverse2(); - - TestLibrary.TestFramework.BeginTestCase("ArrayReverse2"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - #region Help method for geting test data - - private Int32 GetInt(Int32 minValue, Int32 maxValue) - { - try - { - if (minValue == maxValue) - { - return minValue; - } - if (minValue < maxValue) - { - return minValue + TestLibrary.Generator.GetInt32() % (maxValue - minValue); - } - } - catch - { - throw; - } - - return minValue; - } - - #endregion -} - -class A -{ - public A(int a) - { - this.a_value = a; - } - private int a_value; - public int a - { - get - { - return this.a_value; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arrayreverse1.cs b/tests/src/CoreMangLib/cti/system/array/arrayreverse1.cs deleted file mode 100644 index 068499a067..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arrayreverse1.cs +++ /dev/null @@ -1,125 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -public class ArrayReverse1 -{ - private const int c_MIN_SIZE = 64; - private const int c_MAX_SIZE = 1024; - private const int c_MIN_STRLEN = 1; - private const int c_MAX_STRLEN = 1024; - - public static int Main() - { - ArrayReverse1 ac = new ArrayReverse1(); - - TestLibrary.TestFramework.BeginTestCase("Array.Reverse(Array)"); - - if (ac.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - Array afterArray; - Array beforeArray; - int length; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Array.Reverse(Array)"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - beforeArray = Array.CreateInstance(typeof(Int32), length); - afterArray = Array.CreateInstance(typeof(Int32), length); - - // fill the array - for (int i=0; i<beforeArray.Length; i++) - { - beforeArray.SetValue((object)TestLibrary.Generator.GetInt32(-55), i); - } - - // copy the array - Array.Copy(beforeArray, afterArray, length); - - Array.Reverse(afterArray); - - if (beforeArray.Length != afterArray.Length) - { - TestLibrary.TestFramework.LogError("000", "Unexpected length: Expected(" + beforeArray.Length + ") Actual(" + afterArray.Length + ")"); - retVal = false; - } - - for (int i=0; i<beforeArray.Length; i++) - { - if ((int)beforeArray.GetValue(length-i-1) != (int)afterArray.GetValue(i)) - { - TestLibrary.TestFramework.LogError("001", "Unexpected value: Expected(" + beforeArray.GetValue(length-i-1) + ") Actual(" + afterArray.GetValue(i) + ")"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: Array.Reverse(Array) where array is null"); - - try - { - Array.Reverse(null); - - TestLibrary.TestFramework.LogError("003", "Exception expected"); - retVal = false; - } - catch (ArgumentNullException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arrayreverse2.cs b/tests/src/CoreMangLib/cti/system/array/arrayreverse2.cs deleted file mode 100644 index d2faa423e2..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arrayreverse2.cs +++ /dev/null @@ -1,464 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -public class ArrayReverse2 -{ - private const int c_MIN_SIZE = 64; - private const int c_MAX_SIZE = 1024; - private const int c_MIN_STRLEN = 1; - private const int c_MAX_STRLEN = 1024; - - public static int Main() - { - ArrayReverse2 ac = new ArrayReverse2(); - - TestLibrary.TestFramework.BeginTestCase("Array.Reverse(Array, int, int)"); - - if (ac.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - retVal = NegTest4() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - Array afterArray; - Array beforeArray; - int length; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Array.Reverse(Array, int, int)"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - beforeArray = Array.CreateInstance(typeof(Int32), length); - afterArray = Array.CreateInstance(typeof(Int32), length); - - // fill the array - for (int i=0; i<beforeArray.Length; i++) - { - beforeArray.SetValue((object)TestLibrary.Generator.GetInt32(-55), i); - } - - // copy the array - Array.Copy(beforeArray, afterArray, length); - - Array.Reverse(afterArray, 0, length); - - if (beforeArray.Length != afterArray.Length) - { - TestLibrary.TestFramework.LogError("000", "Unexpected length: Expected(" + beforeArray.Length + ") Actual(" + afterArray.Length + ")"); - retVal = false; - } - - for (int i=0; i<beforeArray.Length; i++) - { - if ((int)beforeArray.GetValue(length-i-1) != (int)afterArray.GetValue(i)) - { - TestLibrary.TestFramework.LogError("001", "Unexpected value: Expected(" + beforeArray.GetValue(length-i-1) + ") Actual(" + afterArray.GetValue(i) + ")"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - Array afterArray; - Array beforeArray; - int length; - int startIndex; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Array.Reverse(Array, int, int) only reverse half of the array"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - beforeArray = Array.CreateInstance(typeof(Int32), length); - afterArray = Array.CreateInstance(typeof(Int32), length); - - startIndex = length/2; - - // fill the array - for (int i=0; i<beforeArray.Length; i++) - { - beforeArray.SetValue((object)TestLibrary.Generator.GetInt32(-55), i); - } - - // copy the array - Array.Copy(beforeArray, afterArray, length); - - Array.Reverse(afterArray, startIndex, length-startIndex); - - if (beforeArray.Length != afterArray.Length) - { - TestLibrary.TestFramework.LogError("003", "Unexpected length: Expected(" + beforeArray.Length + ") Actual(" + afterArray.Length + ")"); - retVal = false; - } - - for (int i=0; i<beforeArray.Length; i++) - { - int beforeIndex; - - if (i < startIndex) - { - beforeIndex = i; - } - else - { - beforeIndex = (length-(i-startIndex)-1); - } - - if ((int)beforeArray.GetValue(beforeIndex) != (int)afterArray.GetValue(i)) - { - TestLibrary.TestFramework.LogError("004", "Unexpected value: Expected(" + beforeArray.GetValue(beforeIndex) + ") Actual(" + afterArray.GetValue(i) + ")"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("005", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - Array afterArray; - Array beforeArray; - int length; - int endIndex; - - TestLibrary.TestFramework.BeginScenario("PosTest3: Array.Reverse(Array, int, int) only reverse half of the array (begining)"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - beforeArray = Array.CreateInstance(typeof(Int32), length); - afterArray = Array.CreateInstance(typeof(Int32), length); - - endIndex = length/2; - - // fill the array - for (int i=0; i<beforeArray.Length; i++) - { - beforeArray.SetValue((object)TestLibrary.Generator.GetInt32(-55), i); - } - - // copy the array - Array.Copy(beforeArray, afterArray, length); - - Array.Reverse(afterArray, 0, endIndex); - - if (beforeArray.Length != afterArray.Length) - { - TestLibrary.TestFramework.LogError("006", "Unexpected length: Expected(" + beforeArray.Length + ") Actual(" + afterArray.Length + ")"); - retVal = false; - } - - for (int i=0; i<beforeArray.Length; i++) - { - int beforeIndex; - - if (i >= endIndex) - { - beforeIndex = i; - } - else - { - beforeIndex = endIndex-i-1; - } - - if ((int)beforeArray.GetValue(beforeIndex) != (int)afterArray.GetValue(i)) - { - TestLibrary.TestFramework.LogError("007", "Unexpected value: Expected(" + beforeArray.GetValue(beforeIndex) + ") Actual(" + afterArray.GetValue(i) + ")"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - Array afterArray; - Array beforeArray; - int length; - - TestLibrary.TestFramework.BeginScenario("PosTest4: Array.Reverse(Array, int, int) array of strings"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - beforeArray = Array.CreateInstance(typeof(string), length); - afterArray = Array.CreateInstance(typeof(string), length); - - // fill the array - for (int i=0; i<beforeArray.Length; i++) - { - beforeArray.SetValue(TestLibrary.Generator.GetString(-55, false, c_MIN_STRLEN, c_MAX_STRLEN), i); - } - - // copy the array - Array.Copy(beforeArray, afterArray, length); - - Array.Reverse(afterArray, 0, length); - - if (beforeArray.Length != afterArray.Length) - { - TestLibrary.TestFramework.LogError("009", "Unexpected length: Expected(" + beforeArray.Length + ") Actual(" + afterArray.Length + ")"); - retVal = false; - } - - for (int i=0; i<beforeArray.Length; i++) - { - if (!beforeArray.GetValue(length-i-1).Equals(afterArray.GetValue(i))) - { - TestLibrary.TestFramework.LogError("010", "Unexpected value: Expected(" + beforeArray.GetValue(length-i-1) + ") Actual(" + afterArray.GetValue(i) + ")"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("011", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - Array afterArray; - Array beforeArray; - int length; - - TestLibrary.TestFramework.BeginScenario("PosTest5: Array.Reverse(Array, int, int) array of MyStructs"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - beforeArray = Array.CreateInstance(typeof(MyStruct), length); - afterArray = Array.CreateInstance(typeof(MyStruct), length); - - // fill the array - for (int i=0; i<beforeArray.Length; i++) - { - beforeArray.SetValue(new MyStruct(TestLibrary.Generator.GetSingle(-55)), i); - } - - // copy the array - Array.Copy(beforeArray, afterArray, length); - - Array.Reverse(afterArray, 0, length); - - if (beforeArray.Length != afterArray.Length) - { - TestLibrary.TestFramework.LogError("012", "Unexpected length: Expected(" + beforeArray.Length + ") Actual(" + afterArray.Length + ")"); - retVal = false; - } - - for (int i=0; i<beforeArray.Length; i++) - { - if (((MyStruct)beforeArray.GetValue(length-i-1)).f != ((MyStruct)afterArray.GetValue(i)).f) - { - TestLibrary.TestFramework.LogError("013", "Unexpected value: Expected(" + ((MyStruct)beforeArray.GetValue(length-i-1)).f + ") Actual(" + ((MyStruct)afterArray.GetValue(i)).f + ")"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("014", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: Array.Reverse(Array, int, int) where array is null"); - - try - { - Array.Reverse(null, 0, 0); - - TestLibrary.TestFramework.LogError("015", "Exception expected"); - retVal = false; - } - catch (ArgumentNullException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("016", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - Array array; - int length; - - TestLibrary.TestFramework.BeginScenario("NegTest1: Array.Reverse(Array, int, int) where index is negative"); - - try - { - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), length); - - Array.Reverse(array, -1, length); - - TestLibrary.TestFramework.LogError("017", "Exception expected"); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("018", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - Array array; - int length; - - TestLibrary.TestFramework.BeginScenario("NegTest3: Array.Reverse(Array, int, int) where index is greater than length"); - - try - { - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), length); - - Array.Reverse(array, length, length); - - TestLibrary.TestFramework.LogError("019", "Exception expected"); - retVal = false; - } - catch (ArgumentException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("020", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest4() - { - bool retVal = true; - Array array; - int length; - - TestLibrary.TestFramework.BeginScenario("NegTest4: Array.Reverse(Array, int, int) multi dimension array"); - - try - { - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), new int[2] {length, length}); - - Array.Reverse(array, length, length); - - TestLibrary.TestFramework.LogError("021", "Exception expected"); - retVal = false; - } - catch (RankException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("022", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public struct MyStruct - { - public float f; - - public MyStruct(float ff) { f = ff; } - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraysetvalue1.cs b/tests/src/CoreMangLib/cti/system/array/arraysetvalue1.cs deleted file mode 100644 index 8d77e5bc85..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraysetvalue1.cs +++ /dev/null @@ -1,419 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.Array.SetValue(system.object,Int32) -/// </summary> -public class ArraySetValue1 -{ - private const int c_MIN_STRING_LEN = 8; - private const int c_MAX_STRING_LEN = 256; - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - retVal = NegTest4() && retVal; - retVal = NegTest5() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Set the value of a string array "); - - try - { - int length = TestLibrary.Generator.GetInt16(-55) + 1; - string[] s1 = new string[length]; - int index = TestLibrary.Generator.GetInt32(-55) % length; - string value = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN); - s1.SetValue(value, index); - if (s1[index] != value) - { - TestLibrary.TestFramework.LogError("001", "The result is not the value as expected.The index is: " + index.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Set the value of a char array "); - - try - { - int length = TestLibrary.Generator.GetInt16(-55) + 1; - char[] s1 = new char[length]; - int index = TestLibrary.Generator.GetInt32(-55) % length; - char value = TestLibrary.Generator.GetChar(-55); - s1.SetValue(value, index); - if (s1[index] != value) - { - TestLibrary.TestFramework.LogError("003", "The result is not the value as expected.The index is: " + index.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: Set the first value in an array"); - - try - { - int length = TestLibrary.Generator.GetInt16(-55) + 1; - int[] s1 = new int[length]; - int value = TestLibrary.Generator.GetInt32(-55); - s1.SetValue(value, 0); - if (s1[0] != value) - { - TestLibrary.TestFramework.LogError("005", "The result is not the value as expected."); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest4: Set the last value in an array"); - - try - { - int length = TestLibrary.Generator.GetInt16(-55) + 1; - int[] s1 = new int[length]; - int value = TestLibrary.Generator.GetInt32(-55); - s1.SetValue(value, length - 1); - if (s1[length - 1] != value) - { - TestLibrary.TestFramework.LogError("007", "The result is not the value as expected."); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest5: Set an int32 array using int16 type"); - - try - { - int length = TestLibrary.Generator.GetInt16(-55) + 1; - int[] s1 = new int[length]; - Int16 value = TestLibrary.Generator.GetInt16(-55); - int index = TestLibrary.Generator.GetInt32(-55) % length; - s1.SetValue(value, index); - if (s1[index] != value) - { - TestLibrary.TestFramework.LogError("009", "The result is not the value as expected."); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest6: Set an element of a string array to null"); - - try - { - int length = TestLibrary.Generator.GetByte(-55) + 1; - string[] s1 = new string[length]; - string[] s2 = new string[length]; - for (int i = 0; i < length; i++) - { - string value = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN); - s1[i] = value; - s2[i] = value; - } - int index = TestLibrary.Generator.GetInt32(-55) % length; - s1.SetValue(null, index); - s2[index] = null; - for (int i = 0; i < length; i++) - { - if (s1[i] != s2[i]) - { - TestLibrary.TestFramework.LogError("011", "The result is not the value as expected."); - retVal = false; - } - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest7() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest7: Set a customized array "); - - try - { - int length = TestLibrary.Generator.GetInt16(-55) + 1; - A[] s1 = new A[length]; - int value = TestLibrary.Generator.GetInt32(-55); - A a = new A(value); - int index = TestLibrary.Generator.GetInt32(-55) % length; - s1.SetValue(a, index); - if (s1[index].a != value) - { - TestLibrary.TestFramework.LogError("013", "The result is not the value as expected."); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("014", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - - #region Negative Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: The array is not one dimension"); - - try - { - int[,] i1 = new int[2, 3] { { 2, 3, 5 }, { 34, 56, 77 } }; - i1.SetValue(0, 2); - TestLibrary.TestFramework.LogError("103", "The ArgumentException was not thrown as expected"); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("101", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2: Set the value which cannot be cast to the element type of the current Array "); - - try - { - int length = TestLibrary.Generator.GetInt16(-55) + 1; - string[] s1 = new string[length]; - int index = TestLibrary.Generator.GetInt32(-55) % length; - char value = TestLibrary.Generator.GetChar(-55); - s1.SetValue(value, index); - TestLibrary.TestFramework.LogError("103", "The InvalidCastException was not thrown as expected"); - retVal = false; - } - catch (InvalidCastException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("101", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest3: The index argument is negative"); - - try - { - int length = TestLibrary.Generator.GetInt16(-55) + 1; - char[] s1 = new char[length]; - int index = -1; - char value = TestLibrary.Generator.GetChar(-55); - s1.SetValue(value, index); - TestLibrary.TestFramework.LogError("105", "The IndexOutOfRangeException was not thrown as expected"); - retVal = false; - } - catch (IndexOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("106", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest4: The index argument is greater than the max index of the array"); - - try - { - int length = TestLibrary.Generator.GetInt16(-55) + 1; - int[] s1 = new int[length]; - int index = length; - int value = TestLibrary.Generator.GetInt32(-55); - s1.SetValue(value, index); - TestLibrary.TestFramework.LogError("107", "The IndexOutOfRangeException was not thrown as expected"); - retVal = false; - } - catch (IndexOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("108", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest5: Array is length zero"); - - try - { - int[] s1 = new int[0]; - int value = TestLibrary.Generator.GetInt32(-55); - s1.SetValue(value, 0); - TestLibrary.TestFramework.LogError("109", "The IndexOutOfRangeException was not thrown as expected"); - retVal = false; - } - catch (IndexOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("110", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - ArraySetValue1 test = new ArraySetValue1(); - - TestLibrary.TestFramework.BeginTestCase("ArraySetValue1"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - -} - -class A -{ - public A(int a) - { - this.a_value = a; - } - private int a_value; - public int a - { - get - { - return this.a_value; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraysetvalue1b.cs b/tests/src/CoreMangLib/cti/system/array/arraysetvalue1b.cs deleted file mode 100644 index d9a4e57dec..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraysetvalue1b.cs +++ /dev/null @@ -1,126 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -public class ArrayGetValue2 -{ - private const int c_MIN_SIZE = 64; - private const int c_MAX_SIZE = 1024; - private const int c_MIN_STRLEN = 1; - private const int c_MAX_STRLEN = 1024; - - public static int Main() - { - ArrayGetValue2 ac = new ArrayGetValue2(); - - TestLibrary.TestFramework.BeginTestCase("Array.SetValue(int)"); - - if (ac.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - Array array; - int length; - int element; - int index; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Array.SetValue(int) single dim"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), length); - - element = TestLibrary.Generator.GetInt32(-55); - - // fill the array - for (int i=0; i<array.Length; i++) - { - array.SetValue((object)TestLibrary.Generator.GetInt32(-55), i); - } - - // set the lucky index - index = TestLibrary.Generator.GetInt32(-55) % length; - - // set the value - array.SetValue( element, index); - - if (element != (int)array.GetValue(index)) - { - TestLibrary.TestFramework.LogError("000", "Unexpected value: Expected(" + element + ") Actual(" + (int)array.GetValue(index) + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - Array array; - int length; - - TestLibrary.TestFramework.BeginScenario("NegTest1: Array.SetValue(int) wrong rank"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), new int[2] {length, length}); - - array.SetValue(0, 0); - - TestLibrary.TestFramework.LogError("002", "Exception expected."); - retVal = false; - } - catch (ArgumentException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraysetvalue2.cs b/tests/src/CoreMangLib/cti/system/array/arraysetvalue2.cs deleted file mode 100644 index bb2ec90a33..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraysetvalue2.cs +++ /dev/null @@ -1,291 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.Array.SetValue(system.object,Int32[]) -/// </summary> -public class ArrayIndexOf1 -{ - private const int c_MIN_STRING_LEN = 8; - private const int c_MAX_STRING_LEN = 256; - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - retVal = NegTest4() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Test a two dimension array "); - - try - { - string[,] s1 = new string[2, 3]; - string s_value = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN); - s1.SetValue(s_value, 1, 0); - if (s1[1, 0] != s_value) - { - TestLibrary.TestFramework.LogError("001", "The result is not the value as expected."); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Test a three dimension array "); - - try - { - int[, ,] s1 = new int[9, 7, 5]; - int i_value = TestLibrary.Generator.GetInt32(-55); - s1.SetValue(i_value, 8, 6, 4); - if (s1[8, 6, 4] != i_value) - { - TestLibrary.TestFramework.LogError("003", "The result is not the value as expected."); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: Test a multiple dimension array "); - - try - { - string[, , , , , ,] s1 = new string[7, 7, 7, 7, 7, 7, 7]; - int[] i_index = new int[7] { 2, 3, 4, 6, 4, 5, 0 }; - string s_value = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN); - s1.SetValue(s_value, i_index); - if (s1[2, 3, 4, 6, 4, 5, 0] != s_value) - { - TestLibrary.TestFramework.LogError("005", "The result is not the value as expected."); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest4: Test a multiple dimension array with customized type TypeA "); - - try - { - TypeA[, , , ,] s1 = new TypeA[9, 9, 9, 9, 9]; - int[] i_index = new int[5] { 2, 3, 4, 6, 8 }; - string value = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN); - TypeA typea = new TypeA(value); - s1.SetValue(typea, i_index); - if (s1[2, 3, 4, 6, 8].a != value) - { - TestLibrary.TestFramework.LogError("007", "The result is not the value as expected."); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1:The second argument indices is null reference "); - - try - { - int[, ,] s1 = new int[9, 7, 5]; - int i_value = TestLibrary.Generator.GetInt32(-55); - int[] i_index = null; - s1.SetValue(i_value, i_index); - TestLibrary.TestFramework.LogError("101", "The ArgumentNullException was not thrown as expected"); - retVal = false; - - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2:The number of dimensions in the current Array is not equal to the number of elements in indices "); - - try - { - int[, ,] s1 = new int[9, 7, 5]; - int i_value = TestLibrary.Generator.GetInt32(-55); - int[] i_index = new int[4] { 1, 3, 2, 7 }; - s1.SetValue(i_value, i_index); - TestLibrary.TestFramework.LogError("103", "The ArgumentException was not thrown as expected"); - retVal = false; - - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest3: Value cannot be cast to the element type of the current Array"); - - try - { - int[, ,] s1 = new int[9, 7, 5]; - string i_value = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN); - int[] i_index = new int[3] { 1, 3, 4 }; - s1.SetValue(i_value, i_index); - TestLibrary.TestFramework.LogError("105", "The InvalidCastException was not thrown as expected"); - retVal = false; - - } - catch (InvalidCastException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("106", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest4: indices is outside the range of array"); - - try - { - int[, ,] s1 = new int[9, 7, 5]; - int i_value = TestLibrary.Generator.GetInt32(-55); - int[] i_index = new int[3] { 9, 3, 4 }; - s1.SetValue(i_value, i_index); - TestLibrary.TestFramework.LogError("105", "The IndexOutOfRangeException was not thrown as expected"); - retVal = false; - - } - catch (IndexOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("106", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - ArrayIndexOf1 test = new ArrayIndexOf1(); - - TestLibrary.TestFramework.BeginTestCase("ArrayIndexOf1"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} -class TypeA -{ - public TypeA(string a) - { - this.a_value = a; - } - private string a_value; - public string a - { - get - { - return this.a_value; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraysetvalue2b.cs b/tests/src/CoreMangLib/cti/system/array/arraysetvalue2b.cs deleted file mode 100644 index 29f7525bba..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraysetvalue2b.cs +++ /dev/null @@ -1,208 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -public class ArraySetValue2 -{ - private const int c_MIN_SIZE = 64; - private const int c_MAX_SIZE = 1024; - private const int c_MIN_STRLEN = 1; - private const int c_MAX_STRLEN = 1024; - - public static int Main() - { - ArraySetValue2 ac = new ArraySetValue2(); - - TestLibrary.TestFramework.BeginTestCase("array.GetValue(int[])"); - - if (ac.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - Array array; - int length; - int element; - int index; - - TestLibrary.TestFramework.BeginScenario("PosTest1: array.GetValue(int[]) single dim"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), length); - - element = TestLibrary.Generator.GetInt32(-55); - - // fill the array - for (int i=0; i<array.Length; i++) - { - array.SetValue((object)TestLibrary.Generator.GetInt32(-55), i); - } - - // set the lucky index - index = TestLibrary.Generator.GetInt32(-55) % length; - - // set the value - array.SetValue( element, index); - - if (element != (int)array.GetValue(new int[1] {index} )) - { - TestLibrary.TestFramework.LogError("000", "Unexpected value: Expected(" + element + ") Actual(" + (int)array.GetValue(new int[1] {index} ) + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - Array array; - int length; - int element; - int index; - - TestLibrary.TestFramework.BeginScenario("PosTest2: array.GetValue(int[]) multi dim"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), new int[2] {length, length}); - - element = TestLibrary.Generator.GetInt32(-55); - - // fill the array - for (int i=0; i<array.GetLength(0); i++) - { - array.SetValue((object)TestLibrary.Generator.GetInt32(-55), new int[2] {i,i}); - } - - // set the lucky index - index = TestLibrary.Generator.GetInt32(-55) % length; - - // set the value - array.SetValue( element, new int[2] {index,index} ); - - if (element != (int)array.GetValue(new int[2] {index,index} )) - { - TestLibrary.TestFramework.LogError("002", "Unexpected value: Expected(" + element + ") Actual(" + (int)array.GetValue(new int[2] {index, index} ) + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - Array array; - int length; - int[] dims; - - TestLibrary.TestFramework.BeginScenario("NegTest1: array.GetValue(int[]) null dims"); - - try - { - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), length); - dims = null; - - array.SetValue(0, dims); - - TestLibrary.TestFramework.LogError("004", "Exception expected."); - retVal = false; - - } - catch (ArgumentNullException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("005", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - Array array; - int length; - - TestLibrary.TestFramework.BeginScenario("NegTest2: array.GetValue(int[]) wrong dim length"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Int32), new int[2] {length, length}); - - array.SetValue(0, new int[4] {0,0,0,0}); - - TestLibrary.TestFramework.LogError("006", "Exception expected."); - retVal = false; - } - catch (ArgumentException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("007", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraysort1.cs b/tests/src/CoreMangLib/cti/system/array/arraysort1.cs deleted file mode 100644 index 252294bfcb..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraysort1.cs +++ /dev/null @@ -1,165 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -public class ArrayBinarySort1 -{ - private const int c_MIN_SIZE = 64; - private const int c_MAX_SIZE = 1024; - private const int c_NUM_LOOPS = 50; - - public static int Main() - { - ArrayBinarySort1 ac = new ArrayBinarySort1(); - - TestLibrary.TestFramework.BeginTestCase("Array.Sort(Array)"); - - if (ac.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; // jagged array - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - Array array; - int length; - double element; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Array.Sort(Array) "); - - try - { - for(int j=0; j<c_NUM_LOOPS; j++) - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Double), length); - - // fill the array - for (int i=0; i<array.Length; i++) - { - array.SetValue((object)TestLibrary.Generator.GetDouble(-55), i); - } - - Array.Sort(array); - - // ensure that all the elements are sorted - element = (double)array.GetValue(0); - for(int i=0; i<array.Length; i++) - { - if (element > (double)array.GetValue(i)) - { - TestLibrary.TestFramework.LogError("000", "Unexpected value: Element (" + element + ") is greater than (" + (double)array.GetValue(i) + ")"); - retVal = false; - } - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - Array array; - - TestLibrary.TestFramework.BeginScenario("NegTest1: Array.Sort(Array) null array"); - - try - { - array = null; - - Array.Sort(array); - - TestLibrary.TestFramework.LogError("002", "Exception expected."); - retVal = false; - } - catch (ArgumentNullException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - Array array; - int length; - - TestLibrary.TestFramework.BeginScenario("NegTest2: Array.Sort(Array) jagged array"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(double), new int[2] {length, length/2}); - - // fill the array - for (int i=0; i<array.GetLength(0); i++) - { - for (int j=0; j<array.GetLength(1); j++) - { - array.SetValue(TestLibrary.Generator.GetDouble(-55), new int[2] {i,j}); - } - } - - Array.Sort(array); - - TestLibrary.TestFramework.LogError("004", "Exception expected"); - retVal = false; - } - catch (RankException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("005", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraysort10.cs b/tests/src/CoreMangLib/cti/system/array/arraysort10.cs deleted file mode 100644 index 8442cc541a..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraysort10.cs +++ /dev/null @@ -1,497 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; - -/// <summary> -/// System.Array.Sort<T>(T [],System.Int32,System.Int32,System.Collections.IComparer<T>) -/// </summary> -public class ArraySort10 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - retVal = NegTest4() && retVal; - //Bug 385712: Won't fix - //retVal = NegTest5() && retVal; - retVal = NegTest6() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest1:Sort a string array using generics and customized comparer"); - - try - { - string[] s1 = new string[6]{"Jack", - "Mary", - "Mike", - "Peter", - "Tom", - "Allin"}; - string[] s2 = new string[6]{"Jack", - "Mary", - "Mike", - "Allin", - "Peter", - "Tom"}; - A a1 = new A(); - Array.Sort<string>(s1, 3, 3, a1); - for (int i = 0; i < 6; i++) - { - if (s1[i] != s2[i]) - { - TestLibrary.TestFramework.LogError("001", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Sort an int32 array using customized comparer<T> "); - - try - { - // We'll add two here since we later do things like subtract two from length - int length = 2 + TestLibrary.Generator.GetByte(); - int[] i1 = new int[length]; - int[] i2 = new int[length]; - for (int i = 0; i < length; i++) - { - int value = TestLibrary.Generator.GetByte(); - i1[i] = value; - i2[i] = value; - } - IComparer<int> b1 = new B<int>(); - int startIdx = GetInt(0, length - 2); - int endIdx = GetInt(startIdx, length - 1); - int count = endIdx - startIdx + 1; - Array.Sort<int>(i1, startIdx, count, b1); - for (int i = startIdx; i < endIdx; i++) //manually quich sort - { - for (int j = i + 1; j <= endIdx; j++) - { - if (i2[i] > i2[j]) - { - int temp = i2[i]; - i2[i] = i2[j]; - i2[j] = temp; - } - } - } - for (int i = 0; i < length; i++) - { - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("003", "The result is not the value as expected,the start index is:" + startIdx.ToString() + "the end index is:" + endIdx.ToString()); - retVal = false; - } - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: Sort a char array using reverse comparer<T> "); - - try - { - char[] c1 = new char[10] { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j' }; - char[] d1 = new char[10] { 'a', 'e', 'd', 'c', 'b', 'f', 'g', 'h', 'i', 'j' }; - IComparer<char> b2 = new B<char>(); - Array.Sort<char>(c1, 1, 4, b2); - for (int i = 0; i < 10; i++) - { - if (c1[i] != d1[i]) - { - TestLibrary.TestFramework.LogError("005", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest4: Sort customized type array using default customized comparer"); - - try - { - C<int>[] c_array = new C<int>[5]; - C<int>[] c_result = new C<int>[5]; - for (int i = 0; i < 5; i++) - { - int value = TestLibrary.Generator.GetInt32(); - C<int> c1 = new C<int>(value); - c_array.SetValue(c1, i); - c_result.SetValue(c1, i); - } - //sort manually - C<int> temp; - for (int j = 0; j < 4; j++) - { - for (int i = 0; i < 4; i++) - { - if (c_result[i].value > c_result[i + 1].value) - { - temp = c_result[i]; - c_result[i] = c_result[i + 1]; - c_result[i + 1] = temp; - } - } - } - Array.Sort<C<int>>(c_array, 0, 5, null); - for (int i = 0; i < 5; i++) - { - if (c_result[i].value != c_array[i].value) - { - TestLibrary.TestFramework.LogError("007", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - #endregion - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: The array to be sorted is null reference "); - - try - { - string[] s1 = null; - Array.Sort<string>(s1, 0, 2, null); - TestLibrary.TestFramework.LogError("101", "The ArgumentNullException is not throw as expected "); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2: The start index is less than the minimal bound of the array"); - - try - { - string[] s1 = new string[6]{"Jack", - "Mary", - "Peter", - "Mike", - "Tom", - "Allin"}; - Array.Sort<string>(s1, -1, 4, null); - TestLibrary.TestFramework.LogError("103", "The ArgumentOutOfRangeException is not throw as expected "); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest3: Length is less than zero"); - - try - { - string[] s1 = new string[6]{"Jack", - "Mary", - "Peter", - "Mike", - "Tom", - "Allin"}; - Array.Sort<string>(s1, 3, -3, null); - TestLibrary.TestFramework.LogError("105", "The ArgumentOutOfRangeException is not throw as expected "); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("106", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest4: The start index and length do not specify a valid range in array"); - - try - { - int length = TestLibrary.Generator.GetByte(); - string[] s1 = new string[length]; - for (int i = 0; i < length; i++) - { - string value = TestLibrary.Generator.GetString(false, 0, 10); - s1[i] = value; - } - int startIdx = GetInt(0, Byte.MaxValue); - int increment = length + 1; - Array.Sort<string>(s1, startIdx + increment, 0, null); - TestLibrary.TestFramework.LogError("107", "The ArgumentException is not throw as expected "); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("108", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest5:The implementation of comparer caused an error during the sort"); - - try - { - int[] i1 = new int[9] { 2, 34, 56, 87, 34, 23, 209, 34, 87 }; - IComparer<int> d1 = new D<int>(); - Array.Sort<int>(i1, 0, 9, d1); - TestLibrary.TestFramework.LogError("109", "The ArgumentException is not throw as expected "); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("110", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest6() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest6: Elements in array do not implement the IComparable interface"); - - try - { - E[] a1 = new E[4] { new E(), new E(), new E(), new E() }; - IComparer<E> d2 = null; - Array.Sort<E>(a1, 0, 4, d2); - TestLibrary.TestFramework.LogError("111", "The InvalidOperationException is not throw as expected "); - retVal = false; - } - catch (InvalidOperationException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("112", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - ArraySort10 test = new ArraySort10(); - - TestLibrary.TestFramework.BeginTestCase("ArraySort10"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - class A : IComparer<string> - { - #region IComparer<string> Members - - public int Compare(string x, string y) - { - return x.CompareTo(y); - } - - #endregion - } - - class B<T> : IComparer<T> where T : IComparable - { - #region IComparer<T> Members - - public int Compare(T x, T y) - { - if (typeof(T) == typeof(char)) - { - return -x.CompareTo(y); - } - return x.CompareTo(y); - } - - #endregion - } - - class C<T> : IComparable where T : IComparable - { - public T value; - public C(T a) - { - this.value = a; - } - - - #region IComparable Members - - public int CompareTo(object obj) - { - return value.CompareTo(((C<T>)obj).value); - } - - #endregion - } - - class D<T> : IComparer<T> where T : IComparable - { - #region IComparer<T> Members - - public int Compare(T x, T y) - { - if (x.CompareTo(x) == 0) - return -1; - return 1; - } - #endregion - } - class E - { - public E() - { - } - } - - #region Help method for geting test data - - private Int32 GetInt(Int32 minValue, Int32 maxValue) - { - try - { - if (minValue == maxValue) - { - return minValue; - } - if (minValue < maxValue) - { - return minValue + TestLibrary.Generator.GetInt32() % (maxValue - minValue); - } - } - catch - { - throw; - } - - return minValue; - } - - #endregion -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraysort11.cs b/tests/src/CoreMangLib/cti/system/array/arraysort11.cs deleted file mode 100644 index adb64287c7..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraysort11.cs +++ /dev/null @@ -1,397 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// Array.Sort<Tkey,Tvalue>(Tkey[],Tvalue[]) -/// </summary> -public class ArraySort11 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1:Sort a string array "); - - try - { - string[] s1 = new string[6]{"Jack", - "Mary", - "Mike", - "Peter", - "Tom", - "Allin"}; - int[] i1 = new int[6] { 24, 30, 28, 26, 32, 23 }; - string[] s2 = new string[6]{"Allin", - "Jack", - "Mary", - "Mike", - "Peter", - "Tom"}; - int[] i2 = new int[6] { 23, 24, 30, 28, 26, 32 }; - Array.Sort<string, int>(s1, i1); - for (int i = 0; i < 6; i++) - { - if (s1[i] != s2[i]) - { - TestLibrary.TestFramework.LogError("001", "The result is not the value as expected"); - retVal = false; - } - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("002", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Sort an int32 array "); - - try - { - int length = GetInt(1, Byte.MaxValue); - int[] i1 = new int[length]; - int[] i2 = new int[length]; - for (int i = 0; i < length; i++) - { - int value = TestLibrary.Generator.GetInt32(); - i1[i] = value; - i2[i] = value; - } - Array.Sort<int, int>(i1, i2); - for (int i = 0; i < length; i++) - { - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("004", "The result is not the value as expected"); - retVal = false; - } - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("005", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: Sort a char array using reverse comparer "); - - try - { - char[] c1 = new char[10] { 'j', 'i', 'h', 'g', 'f', 'e', 'd', 'c', 'b', 'a' }; - char[] d1 = new char[10] { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j' }; - int[] a1 = new int[10] { 2, 3, 4, 1, 0, 2, 12, 52, 31, 0 }; - int[] b1 = new int[10] { 0, 31, 52, 12, 2, 0, 1, 4, 3, 2 }; - Array.Sort<char, int>(c1, a1); - for (int i = 0; i < 10; i++) - { - if (c1[i] != d1[i]) - { - TestLibrary.TestFramework.LogError("006", "The result is not the value as expected"); - retVal = false; - } - if (a1[i] != b1[i]) - { - TestLibrary.TestFramework.LogError("007", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest4: Sort a customized type array "); - - try - { - A[] a1 = new A[5] { new A(3), new A(43), null, new A(-888), new A(0) }; - int[] c1 = new int[] { 3, 43, 4, 0, 5 }; - int[] d1 = new int[] { 4, 0, 5, 3, 43 }; - Array.Sort<A, int>(a1, c1); - for (int i = 0; i < 5; i++) - { - if (c1[i] != d1[i]) - { - TestLibrary.TestFramework.LogError("009", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest5: The value[] argument is null "); - - try - { - int length = GetInt(1, Int16.MaxValue); - char[] c1 = new char[length]; - char[] c2 = new char[length]; - for (int i = 0; i < length; i++) - { - char value = TestLibrary.Generator.GetChar(); - c1[i] = value; - c2[i] = value; - } - string[] s1 = null; - Array.Sort<char, string>(c1, s1); - for (int i = 0; i < length - 1; i++) //manually quich sort - { - for (int j = i + 1; j < length; j++) - { - if (c2[i] > c2[j]) - { - char temp = c2[i]; - c2[i] = c2[j]; - c2[j] = temp; - } - } - } - for (int i = 0; i < length; i++) - { - if (c1[i] != c2[i]) - { - TestLibrary.TestFramework.LogError("005", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: The first key argument is null reference "); - - try - { - string[] s1 = null; - int[] i1 = { 1, 2, 3, 4, 5 }; - Array.Sort<string, int>(s1, i1); - TestLibrary.TestFramework.LogError("101", "The ArgumentNullException is not throw as expected "); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2:The length of items array is less than the length of keys array "); - - try - { - int length_array = GetInt(2, Int16.MaxValue); - int length_value = GetInt(1, length_array-1); - string[] s1 = new string[length_array]; - int[] i1 = new int[length_value]; - for (int i = 0; i < length_array; i++) - { - string value = TestLibrary.Generator.GetString(false, 0, 10); - s1[i] = value; - } - for (int i = 0; i < length_value; i++) - { - int value = TestLibrary.Generator.GetInt32(); - i1[i] = value; - } - Array.Sort<string, int>(s1, i1); - TestLibrary.TestFramework.LogError("103", "The ArgumentException is not throw as expected "); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest3: The keys array does not implement the IComparable interface "); - - try - { - D d1 = new D(); - D d2 = new D(); - D d3 = new D(); - D d4 = new D(); - int[] i2 = { 1, 2, 3, 4 }; - D[] d = new D[4] { d1, d2, d3, d4 }; - Array.Sort<D, int>(d, i2); - TestLibrary.TestFramework.LogError("105", "The InvalidOperationException is not throw as expected "); - retVal = false; - } - catch (InvalidOperationException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("106", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - ArraySort11 test = new ArraySort11(); - - TestLibrary.TestFramework.BeginTestCase("ArraySort11"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - class A : IComparable - { - public int value; - public A(int a) - { - this.value = a; - } - - #region IComparable Members - - public int CompareTo(object obj) - { - return this.value.CompareTo(((A)obj).value); - } - - #endregion - } - - class D - { - public D() - { - } - } - #region Help method for geting test data - - private Int32 GetInt(Int32 minValue, Int32 maxValue) - { - try - { - if (minValue == maxValue) - { - return minValue; - } - if (minValue < maxValue) - { - return minValue + TestLibrary.Generator.GetInt32() % (maxValue - minValue); - } - } - catch - { - throw; - } - - return minValue; - } - - #endregion -} - diff --git a/tests/src/CoreMangLib/cti/system/array/arraysort12.cs b/tests/src/CoreMangLib/cti/system/array/arraysort12.cs deleted file mode 100644 index 86a8ffac53..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraysort12.cs +++ /dev/null @@ -1,511 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; - -/// <summary> -/// Array.Sort<Tkey,Tvalue>(Tkey[],Tvalue[],IComparer) -/// </summary> -public class ArraySort12 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - //Bug 385712: Won’t fix - //retVal = NegTest4() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Sort a string array using customizes comparer "); - - try - { - string[] s1 = new string[6]{"Jack", - "Mary", - "Mike", - "Peter", - "Tom", - "Allin"}; - int[] i1 = new int[6] { 24, 30, 28, 26, 32, 23 }; - string[] s2 = new string[6]{"Allin", - "Jack", - "Mary", - "Mike", - "Peter", - "Tom"}; - int[] i2 = new int[6] { 23, 24, 30, 28, 26, 32 }; - IComparer<string> a = new A<string>(); - Array.Sort<string, int>(s1, i1, a); - for (int i = 0; i < 6; i++) - { - if (s1[i] != s2[i]) - { - TestLibrary.TestFramework.LogError("001", "The result is not the value as expected"); - retVal = false; - } - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("002", "The result is not the value as expected"); - retVal = false; - } - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Sort an int32 array using comparer "); - - try - { - int length = GetInt(1, Byte.MaxValue); - int[] i1 = new int[length]; - int[] i2 = new int[length]; - for (int i = 0; i < length; i++) - { - int value = TestLibrary.Generator.GetInt32(); - i1[i] = value; - i2[i] = value; - } - IComparer<int> a1 = new A<int>(); - Array.Sort<int, int>(i1, i2, a1); - for (int i = 0; i < length; i++) - { - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("004", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("005", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: Sort a char array using reverse comparer "); - - try - { - char[] c1 = new char[10] { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j' }; - char[] c2 = new char[10] { 'j', 'i', 'h', 'g', 'f', 'e', 'd', 'c', 'b', 'a' }; - char[] d1 = new char[10]; - char[] d2 = new char[10]; - c1.CopyTo(d2, 0); - c2.CopyTo(d1, 0); - IComparer<char> a2 = new A<char>(); - Array.Sort<char, char>(c1, c2, a2); - for (int i = 0; i < 10; i++) - { - if (c1[i] != d1[i]) - { - TestLibrary.TestFramework.LogError("006", "The result is not the value as expected"); - retVal = false; - } - if (c2[i] != d2[i]) - { - TestLibrary.TestFramework.LogError("007", "The result is not the value as expected"); - retVal = false; - } - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest4: Sort a customized array "); - - try - { - C c1 = new C(100); - C c2 = new C(16); - C c3 = new C(11); - C c4 = new C(9); - C c5 = new C(0); - C c6 = new C(-100); - int[] i1 = new int[6] { 1, 2, 3, 4, 5, 6 }; - int[] i2 = new int[6] { 1, 2, 3, 4, 5, 6 }; - C[] c = new C[6] { c1, c2, c3, c4, c5, c6 }; - IComparer<C> b1 = new B<C>(); - Array.Sort<C, int>(c, i1, b1); - for (int i = 0; i < 6; i++) - { - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("009", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest5: Sort a customized array and the comparer argument is null "); - - try - { - C c1 = new C(100); - C c2 = new C(16); - C c3 = new C(11); - C c4 = new C(9); - C c5 = new C(0); - C c6 = new C(-100); - int[] i1 = new int[6] { 1, 2, 3, 4, 5, 6 }; - int[] i2 = new int[6] { 6, 5, 4, 3, 2, 1 }; - C[] c = new C[6] { c1, c2, c3, c4, c5, c6 }; - IComparer<C> b1 = null; - Array.Sort<C, int>(c, i1, b1); - for (int i = 0; i < 6; i++) - { - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("009", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest6: The length of items array is greater than the length of keys array"); - - try - { - int[] i1 = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }; - int[] i2 = { 6, 5, 4, 3, 2, 1, 7, 8, 9 }; - C[] c = { new C(100), new C(16), new C(11), new C(9), new C(0), new C(-100)}; - IComparer<C> b1 = null; - Array.Sort<C, int>(c, i1, b1); - for (int i = 0; i < i1.Length; i++) - { - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("011", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("013", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: The first argument is null reference "); - - try - { - string[] s1 = null; - int[] i1 = { 1, 2, 3, 4, 5 }; - IComparer<string> a = new A<string>(); - Array.Sort<string, int>(s1, i1, a); - TestLibrary.TestFramework.LogError("101", "The ArgumentNullException is not throw as expected "); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2:The length of items array is less than the length of keys array "); - - try - { - int length_array = GetInt(2, Int16.MaxValue); - int length_value = GetInt(1, length_array-1); - string[] s1 = new string[length_array]; - int[] i1 = new int[length_value]; - for (int i = 0; i < length_array; i++) - { - string value = TestLibrary.Generator.GetString(false, 0, 10); - s1[i] = value; - } - for (int i = 0; i < length_value; i++) - { - int value = TestLibrary.Generator.GetInt32(); - i1[i] = value; - } - IComparer<string> a = new A<string>(); - Array.Sort<string, int>(s1, i1, a); - TestLibrary.TestFramework.LogError("103", "The ArgumentException is not throw as expected "); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest3: The keys array does not implement the IComparable interface "); - - try - { - D d1 = new D(); - D d2 = new D(); - D d3 = new D(); - D d4 = new D(); - int[] i2 = { 1, 2, 3, 4 }; - D[] d = new D[4] { d1, d2, d3, d4 }; - Array.Sort<D, int>(d, i2, null); - TestLibrary.TestFramework.LogError("105", "The InvalidOperationException is not throw as expected "); - retVal = false; - } - catch (InvalidOperationException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("106", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest4: The implementation of comparison caused an error during the sort"); - - try - { - string[] s1 = new string[7]{"Jack", - "Mary", - "Mike", - "Peter", - "Boy", - "Tom", - "Allin"}; - int[] i2 = { 1, 2, 3, 4, 6, 7, 88 }; - IComparer<string> a5 = new E<string>(); - Array.Sort<string, int>(s1, i2, a5); - TestLibrary.TestFramework.LogError("105", "The ArgumentException is not throw as expected "); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("106", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - ArraySort12 test = new ArraySort12(); - - TestLibrary.TestFramework.BeginTestCase("ArraySort12"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - class A<T> : IComparer<T> where T : IComparable - { - - #region IComparer<T> Members - - int IComparer<T>.Compare(T x, T y) - { - if (typeof(T) == typeof(char)) - { - return -(x.CompareTo(y)); - } - return x.CompareTo(y); - } - - #endregion - } - class B<T> : IComparer<T> where T : IComparable - { - - #region IComparer<T> Members - - int IComparer<T>.Compare(T x, T y) - { - return -(x.CompareTo(y)); - } - - #endregion - } - - class C : IComparable - { - protected int c_value; - public C(int a) - { - this.c_value = a; - } - - #region IComparable Members - - int IComparable.CompareTo(object obj) - { - return this.c_value.CompareTo((obj as C).c_value); - } - - #endregion - } - - - class D - { - public D() - { - } - } - class E<T> : IComparer<T> where T : IComparable - { - #region IComparer<T> Members - - int IComparer<T>.Compare(T x, T y) - { - if (x.CompareTo(x) == 0) - { - return -1; - } - return 1; - } - - #endregion - } - - #region Help method for geting test data - - private Int32 GetInt(Int32 minValue, Int32 maxValue) - { - try - { - if (minValue == maxValue) - { - return minValue; - } - if (minValue < maxValue) - { - return minValue + TestLibrary.Generator.GetInt32() % (maxValue - minValue); - } - } - catch - { - throw; - } - - return minValue; - } - - #endregion -} - #endregion
\ No newline at end of file diff --git a/tests/src/CoreMangLib/cti/system/array/arraysort13.cs b/tests/src/CoreMangLib/cti/system/array/arraysort13.cs deleted file mode 100644 index 91f392ac1f..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraysort13.cs +++ /dev/null @@ -1,563 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; - -/// <summary> -/// Array.Sort<Tkey,Tvalue>(Tkey[],Tvalue[],System.Int32,System.Int32) -/// </summary> -public class ArraySort13 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - retVal = NegTest4() && retVal; - retVal = NegTest5() && retVal; - retVal = NegTest6() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Sort a string array using default comparer "); - - try - { - string[] s1 = new string[6]{"Jack", - "Mary", - "Mike", - "Peter", - "Tom", - "Allin"}; - int[] i1 = new int[6] { 24, 30, 28, 26, 32, 23 }; - string[] s2 = new string[6]{"Jack", - "Mary", - "Mike", - "Allin", - "Peter", - "Tom"}; - int[] i2 = new int[6] { 24, 30, 28, 23, 26, 32 }; - Array.Sort<string, int>(s1, i1, 3, 3); - for (int i = 0; i < 6; i++) - { - if (s1[i] != s2[i]) - { - TestLibrary.TestFramework.LogError("001", "The result is not the value as expected"); - retVal = false; - } - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("002", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Sort an int32 array using default comparer "); - - try - { - int length = GetInt(1, Byte.MaxValue); - int[] i1 = new int[length]; - int[] i2 = new int[length]; - for (int i = 0; i < length; i++) - { - int value = TestLibrary.Generator.GetInt32(); - i1[i] = value; - i2[i] = value; - } - int startIdx = GetInt(0, length - 1); - int endIdx = GetInt(startIdx, length - 1); - int count = endIdx - startIdx + 1; - Array.Sort<int, int>(i1, i2, startIdx, count); - for (int i = 0; i < length; i++) - { - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("004", "The result is not the value as expected"); - retVal = false; - } - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("005", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: Sort an int array and the items array is null "); - - try - { - int length = GetInt(1, Int16.MaxValue); - int[] i1 = new int[length]; - int[] i2 = new int[length]; - for (int i = 0; i < length; i++) - { - int value = TestLibrary.Generator.GetByte(); - i1[i] = value; - i2[i] = value; - } - int startIdx = GetInt(0, length - 2); - int endIdx = GetInt(startIdx, length - 1); - int count = endIdx - startIdx + 1; - for (int i = startIdx; i < endIdx; i++) //manually quich sort - { - for (int j = i + 1; j <= endIdx; j++) - { - if (i2[i] > i2[j]) - { - int temp = i2[i]; - i2[i] = i2[j]; - i2[j] = temp; - } - } - } - Array.Sort<int, int>(i1, null, startIdx, count); - for (int i = 0; i < length; i++) - { - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("006", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("007", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest4: Sort a customized array "); - - try - { - int length = 10; - C[] i1 = { new C(10), new C(9), new C(8), new C(7), new C(6), new C(5), new C(4), new C(3), new C(2), new C(1) }; - C[] i2 = { new C(10), new C(9), new C(8), new C(3), new C(4), new C(5), new C(6), new C(7), new C(2), new C(1) }; - int[] i4 = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 }; - int[] i3 = { 1, 2, 3, 8, 7, 6, 5, 4, 9, 0 }; - - Array.Sort<C, int>(i1, i4, 3, 5); // arrays should be sorted from 3 to 7 - - for (int i = 0; i < length; i++) - { - if (i1[i].show_v != i2[i].show_v) - { - TestLibrary.TestFramework.LogError("008", "The result is not the value as expected"); - retVal = false; - } - if (i3[i] != i4[i]) - { - TestLibrary.TestFramework.LogError("009", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest5: Sort a customized array: keys are same"); - - try - { - int length = 10; - C[] i1 = { new C(1), new C(1), new C(1), new C(1), new C(1), new C(1), new C(1), new C(1), new C(1), new C(1) }; - C[] i2 = { new C(1), new C(1), new C(1), new C(1), new C(1), new C(1), new C(1), new C(1), new C(1), new C(1) }; - int[] i4 = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 }; - int[] i3 = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 }; - - //Array.Sort swaps the items even if keys are same: Post Dev10 Bug 868577 - Array.Sort<C, int>(i1, i4, 3, 5); // arrays should be sorted from 3 to 7 - - for (int i = 0; i < length; i++) - { - if (i1[i].show_v != i2[i].show_v) - { - TestLibrary.TestFramework.LogError("010", "The result is not the value as expected"); - retVal = false; - } - if (i3[i] != i4[i]) - { - TestLibrary.TestFramework.LogError("011", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: The first argument is null reference "); - - try - { - string[] s1 = null; - int[] i1 = { 1, 2, 3, 4, 5 }; - Array.Sort<string, int>(s1, i1, 0, 2); - TestLibrary.TestFramework.LogError("101", "The ArgumentNullException is not throw as expected "); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2: The start index is less than the minimal bound of the array"); - - try - { - string[] s1 = new string[6]{"Jack", - "Mary", - "Peter", - "Mike", - "Tom", - "Allin"}; - int[] i1 = new int[6] { 1, 2, 3, 4, 5, 6 }; - Array.Sort<string, int>(s1, i1, -1, 4); - TestLibrary.TestFramework.LogError("103", "The ArgumentOutOfRangeException is not throw as expected "); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest3: Length is less than zero"); - - try - { - string[] s1 = new string[6]{"Jack", - "Mary", - "Peter", - "Mike", - "Tom", - "Allin"}; - int[] i1 = new int[6] { 1, 2, 3, 4, 5, 6 }; - Array.Sort<string, int>(s1, i1, 3, -3); - TestLibrary.TestFramework.LogError("105", "The ArgumentOutOfRangeException is not throw as expected "); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("106", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest4: The start index is greater than the maximal index of the array"); - - try - { - int length = GetInt(1, Byte.MaxValue); - string[] s1 = new string[length]; - for (int i = 0; i < length; i++) - { - string value = TestLibrary.Generator.GetString(false, 0, 10); - s1[i] = value; - } - int[] i1 = new int[6] { 1, 2, 3, 4, 5, 6 }; - int startIdx = GetInt(1, Byte.MaxValue); - int increment = length; - Array.Sort<string, int>(s1, i1, startIdx + increment, 0); - TestLibrary.TestFramework.LogError("107", "The ArgumentException is not throw as expected "); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("108", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest5: The start index is valid, but the length is too large for that index"); - - try - { - int length = GetInt(1, Byte.MaxValue); - string[] s1 = new string[length]; - for (int i = 0; i < length; i++) - { - string value = TestLibrary.Generator.GetString(false, 0, 10); - s1[i] = value; - } - int[] i1 = new int[6] { 1, 2, 3, 4, 5, 6 }; - int startIdx = GetInt(1, length - 1); - int count = length; - Array.Sort<string, int>(s1, i1, startIdx, count); - TestLibrary.TestFramework.LogError("109", "The ArgumentException is not throw as expected "); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("110", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest6() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest6: The keys array does not implement the IComparable interface "); - - try - { - D d1 = new D(); - D d2 = new D(); - D d3 = new D(); - D d4 = new D(); - int[] i2 = { 1, 2, 3, 4 }; - D[] d = new D[4] { d1, d2, d3, d4 }; - Array.Sort<D, int>(d, i2, null); - TestLibrary.TestFramework.LogError("111", "The InvalidOperationException is not throw as expected "); - retVal = false; - } - catch (InvalidOperationException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("112", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - ArraySort13 test = new ArraySort13(); - - TestLibrary.TestFramework.BeginTestCase("ArraySort13"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - class A<T> : IComparer<T> where T : IComparable - { - - #region IComparer<T> Members - - int IComparer<T>.Compare(T x, T y) - { - if (typeof(T) == typeof(char)) - { - return -(x.CompareTo(y)); - } - return x.CompareTo(y); - } - - #endregion - } - class B<T> : IComparer<T> where T : IComparable - { - - #region IComparer<T> Members - - int IComparer<T>.Compare(T x, T y) - { - return -(x.CompareTo(y)); - } - - #endregion - } - - class C : IComparable - { - protected int c_value; - public C(int a) - { - this.c_value = a; - } - public int show_v - { - get - { - return this.c_value; - } - } - - #region IComparable Members - - int IComparable.CompareTo(object obj) - { - return this.c_value.CompareTo((obj as C).c_value); - } - - #endregion - } - - - class D - { - public D() - { - } - } - class E<T> : IComparer<T> where T : IComparable - { - #region IComparer<T> Members - - int IComparer<T>.Compare(T x, T y) - { - if (x.CompareTo(x) == 0) - { - return -1; - } - return 1; - } - - #endregion - } - #region Help method for geting test data - - private Int32 GetInt(Int32 minValue, Int32 maxValue) - { - try - { - if (minValue == maxValue) - { - return minValue; - } - if (minValue < maxValue) - { - return minValue + TestLibrary.Generator.GetInt32() % (maxValue - minValue); - } - } - catch - { - throw; - } - - return minValue; - } - - #endregion -} - #endregion
\ No newline at end of file diff --git a/tests/src/CoreMangLib/cti/system/array/arraysort14.cs b/tests/src/CoreMangLib/cti/system/array/arraysort14.cs deleted file mode 100644 index aaa9e8c0d2..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraysort14.cs +++ /dev/null @@ -1,528 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; - -/// <summary> -/// Array.Sort<Tkey,Tvalue>(Tkey[],Tvalue[],System.Int32,System.Int32,IComparer) -/// </summary> - -public class ArraySort14 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - retVal = NegTest4() && retVal; - retVal = NegTest5() && retVal; - //DevDiv Bug 385712: Won't fix - //retVal = NegTest6() && retVal; - retVal = NegTest7() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Sort a string array using comparer "); - - try - { - string[] s1 = new string[6]{"Jack", - "Mary", - "Mike", - "Peter", - "Tom", - "Allin"}; - int[] i1 = new int[6] { 24, 30, 28, 26, 32, 23 }; - string[] s2 = new string[6]{"Jack", - "Mary", - "Mike", - "Allin", - "Peter", - "Tom"}; - int[] i2 = new int[6] { 24, 30, 28, 23, 26, 32 }; - A a1 = new A(); - Array.Sort<string, int>(s1, i1, 3, 3, a1); - for (int i = 0; i < 6; i++) - { - if (s1[i] != s2[i]) - { - TestLibrary.TestFramework.LogError("001", "The result is not the value as expected"); - retVal = false; - } - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("002", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Sort an int32 array using comparer "); - - try - { - int length = TestLibrary.Generator.GetByte(-55); - int[] i1 = new int[length]; - int[] i2 = new int[length]; - for (int i = 0; i < length; i++) - { - int value = TestLibrary.Generator.GetInt32(-55); - i1[i] = value; - i2[i] = value; - } - IComparer<int> b1 = new B<int>(); - int startIdx = GetInt(0, length - 1); - int endIdx = GetInt(startIdx, length - 1); - int count = endIdx - startIdx + 1; - Array.Sort<int, int>(i1, i2, startIdx, count, b1); - for (int i = 0; i < length; i++) - { - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("004", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("005", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: Sort a char array using reverse comparer "); - - try - { - char[] c1 = new char[10] { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j' }; - char[] d1 = new char[10] { 'a', 'e', 'd', 'c', 'b', 'f', 'g', 'h', 'i', 'j' }; - int[] a1 = new int[10] { 2, 3, 4, 1, 0, 2, 12, 52, 31, 0 }; - int[] b1 = new int[10] { 2, 0, 1, 4, 3, 2, 12, 52, 31, 0 }; - IComparer<char> b2 = new B<char>(); - Array.Sort<char, int>(c1, a1, 1, 4, b2); - for (int i = 0; i < 10; i++) - { - if (c1[i] != d1[i]) - { - TestLibrary.TestFramework.LogError("006", "The result is not the value as expected"); - retVal = false; - } - if (a1[i] != b1[i]) - { - TestLibrary.TestFramework.LogError("007", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest4: Sort an int array and the items array is null "); - - try - { - int length = TestLibrary.Generator.GetInt16(-55); - int[] i1 = new int[length]; - int[] i2 = new int[length]; - for (int i = 0; i < length; i++) - { - int value = TestLibrary.Generator.GetByte(-55); - i1[i] = value; - i2[i] = value; - } - int startIdx = GetInt(0, length - 2); - int endIdx = GetInt(startIdx, length - 1); - int count = endIdx - startIdx + 1; - for (int i = startIdx; i < endIdx; i++) //manually quich sort - { - for (int j = i + 1; j <= endIdx; j++) - { - if (i2[i] > i2[j]) - { - int temp = i2[i]; - i2[i] = i2[j]; - i2[j] = temp; - } - } - } - Array.Sort<int, int>(i1, null, startIdx, count, new B<int>()); - for (int i = 0; i < length; i++) - { - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("009", "The result is not the value as expected"); - retVal = false; - } - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: The first argument is null reference "); - - try - { - string[] s1 = null; - int[] i1 = { 1, 2, 3, 4, 5 }; - Array.Sort<string, int>(s1, i1, 0, 2, new B<string>()); - TestLibrary.TestFramework.LogError("101", "The ArgumentNullException is not throw as expected "); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2: The start index is less than the minimal bound of the array"); - - try - { - string[] s1 = new string[6]{"Jack", - "Mary", - "Peter", - "Mike", - "Tom", - "Allin"}; - int[] i1 = new int[6] { 1, 2, 3, 4, 5, 6 }; - Array.Sort<string, int>(s1, i1, -1, 4, new B<string>()); - TestLibrary.TestFramework.LogError("103", "The ArgumentOutOfRangeException is not throw as expected "); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest3: Length is less than zero"); - - try - { - string[] s1 = new string[6]{"Jack", - "Mary", - "Peter", - "Mike", - "Tom", - "Allin"}; - int[] i1 = new int[6] { 1, 2, 3, 4, 5, 6 }; - Array.Sort<string, int>(s1, i1, 3, -3, new B<string>()); - TestLibrary.TestFramework.LogError("105", "The ArgumentOutOfRangeException is not throw as expected "); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("106", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest4: The start index is greater than the maximal index of the array"); - - try - { - int length = TestLibrary.Generator.GetByte(-55); - string[] s1 = new string[length]; - for (int i = 0; i < length; i++) - { - string value = TestLibrary.Generator.GetString(-55, false, 0, 10); - s1[i] = value; - } - int[] i1 = new int[6] { 1, 2, 3, 4, 5, 6 }; - int startIdx = GetInt(1, Byte.MaxValue); - int increment = length; - Array.Sort<string, int>(s1, i1, startIdx + increment, 0, new B<string>()); - TestLibrary.TestFramework.LogError("107", "The ArgumentException is not throw as expected "); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("108", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest5: The start index is valid, but the length is too large for that index"); - - try - { - int length = TestLibrary.Generator.GetByte(-55); - string[] s1 = new string[length]; - for (int i = 0; i < length; i++) - { - string value = TestLibrary.Generator.GetString(-55, false, 0, 10); - s1[i] = value; - } - int[] i1 = new int[6] { 1, 2, 3, 4, 5, 6 }; - int startIdx = GetInt(1, length - 1); - int count = length; - Array.Sort<string, int>(s1, i1, startIdx, count); - TestLibrary.TestFramework.LogError("109", "The ArgumentException is not throw as expected "); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("110", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest6() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest6:The implementation of comparer caused an error during the sort"); - - try - { - string[] s1 = new string[9]{"Jack", - "Mary", - "Peter", - "Mike", - "Tom", - "Allin", - "Kelly", - "Agassi", - "Koter"}; - int[] i1 = new int[9] { 2, 34, 56, 87, 34, 23, 209, 34, 87 }; - IComparer<string> d1 = new D<string>(); - Array.Sort<string, int>(s1, i1, 0, 9, d1); - TestLibrary.TestFramework.LogError("111", "The ArgumentException is not throw as expected "); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("112", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - public bool NegTest7() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest7: The keys array does not implement the IComparable interface "); - - try - { - E d1 = new E(); - E d2 = new E(); - E d3 = new E(); - E d4 = new E(); - int[] i2 = { 1, 2, 3, 4 }; - E[] e = new E[4] { d1, d2, d3, d4 }; - Array.Sort<E, int>(e, i2, null); - TestLibrary.TestFramework.LogError("113", "The InvalidOperationException is not throw as expected "); - retVal = false; - } - catch (InvalidOperationException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("114", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - ArraySort14 test = new ArraySort14(); - - TestLibrary.TestFramework.BeginTestCase("ArraySort14"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - class A : IComparer<string> - { - #region IComparer<string> Members - - public int Compare(string x, string y) - { - return x.CompareTo(y); - } - - #endregion - } - - class B<T> : IComparer<T> where T : IComparable - { - #region IComparer<T> Members - - public int Compare(T x, T y) - { - if (typeof(T) == typeof(char)) - { - return -x.CompareTo(y); - } - return x.CompareTo(y); - } - - #endregion - } - class D<T> : IComparer<T> where T : IComparable - { - #region IComparer<T> Members - - public int Compare(T x, T y) - { - if (x.CompareTo(x) == 0) - return -1; - return 1; - } - #endregion - } - class E - { - public E() - { - } - } - #region Help method for geting test data - - private Int32 GetInt(Int32 minValue, Int32 maxValue) - { - try - { - if (minValue == maxValue) - { - return minValue; - } - if (minValue < maxValue) - { - return minValue + TestLibrary.Generator.GetInt32(-55) % (maxValue - minValue); - } - } - catch - { - throw; - } - - return minValue; - } - - #endregion -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraysort1b.cs b/tests/src/CoreMangLib/cti/system/array/arraysort1b.cs deleted file mode 100644 index b74bc90728..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraysort1b.cs +++ /dev/null @@ -1,312 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.Array.Sort(System.Array) -/// </summary> -public class ArrayIndexOf1 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Sort a string array using default comparer "); - - try - { - string[] s1 = new string[6]{"Jack", - "Mary", - "Mike", - "Peter", - "Tom", - "Allin"}; - string[] s2 = new string[]{"Allin", - "Jack", - "Mary", - "Mike", - "Peter", - "Tom"}; - Array.Sort(s1); - for (int i = 0; i < 6; i++) - { - if (s1[i] != s2[i]) - { - TestLibrary.TestFramework.LogError("001", "The result is not the value as expected"); - retVal = false; - } - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Sort an int32 array using default comparer "); - - try - { - int length = TestLibrary.Generator.GetByte(-55); - int[] i1 = new int[length]; - int[] i2 = new int[length]; - for (int i = 0; i < length; i++) - { - int value = TestLibrary.Generator.GetInt32(-55); - i1[i] = value; - i2[i] = value; - } - Array.Sort(i1); - for (int i = 0; i < length - 1; i++) //manually quich sort - { - for (int j = i + 1; j < length; j++) - { - if (i2[i] > i2[j]) - { - int temp = i2[i]; - i2[i] = i2[j]; - i2[j] = temp; - } - } - } - for (int i = 0; i < length; i++) - { - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("003", "The result is not the value as expected"); - retVal = false; - } - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: Sort a char array using default comparer "); - - try - { - int length = TestLibrary.Generator.GetInt16(-55); - char[] c1 = new char[length]; - char[] c2 = new char[length]; - for (int i = 0; i < length; i++) - { - char value = TestLibrary.Generator.GetChar(-55); - c1[i] = value; - c2[i] = value; - } - Array.Sort(c1); - for (int i = 0; i < length - 1; i++) //manually quich sort - { - for (int j = i + 1; j < length; j++) - { - if (c2[i] > c2[j]) - { - char temp = c2[i]; - c2[i] = c2[j]; - c2[j] = temp; - } - } - } - for (int i = 0; i < length; i++) - { - if (c1[i] != c2[i]) - { - TestLibrary.TestFramework.LogError("005", "The result is not the value as expected"); - retVal = false; - } - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest4: Sort a string array including null reference "); - - try - { - string[] s1 = new string[6]{"Jack", - "Mary", - null, - "Peter", - "Tom", - "Allin"}; - string[] s2 = new string[]{null, - "Allin", - "Jack", - "Mary", - "Peter", - "Tom"}; - Array.Sort(s1); - for (int i = 0; i < 6; i++) - { - if (s1[i] != s2[i]) - { - TestLibrary.TestFramework.LogError("007", "The result is not the value as expected"); - retVal = false; - } - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: The array is null "); - - try - { - string[] s1 = null; - Array.Sort(s1); - TestLibrary.TestFramework.LogError("101", "The ArgumentNullException is not throw as expected "); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2: The array is not one dimension "); - - try - { - int[,] i1 = new int[2, 3] { { 2, 3, 5 }, { 34, 56, 77 } }; - Array.Sort(i1); - TestLibrary.TestFramework.LogError("103", "The RankException is not throw as expected "); - retVal = false; - } - catch (RankException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest3: One or more elements in array do not implement the IComparable interface "); - - try - { - A[] a1 = new A[4] { new A(), new A(), new A(), new A() }; - Array.Sort(a1); - TestLibrary.TestFramework.LogError("105", "The InvalidOperationException is not throw as expected "); - retVal = false; - } - catch (InvalidOperationException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("106", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - ArrayIndexOf1 test = new ArrayIndexOf1(); - - TestLibrary.TestFramework.BeginTestCase("ArrayIndexOf1"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - class A - { - public A() { } - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraysort2.cs b/tests/src/CoreMangLib/cti/system/array/arraysort2.cs deleted file mode 100644 index ea7a16c253..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraysort2.cs +++ /dev/null @@ -1,185 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -public class ArrayBinarySort2 -{ - private const int c_MIN_SIZE = 64; - private const int c_MAX_SIZE = 1024; - private const int c_NUM_LOOPS = 50; - - public static int Main() - { - ArrayBinarySort2 ac = new ArrayBinarySort2(); - - TestLibrary.TestFramework.BeginTestCase("Array.Sort(Array, IComparer)"); - - if (ac.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - Array array; - int length; - double element; - IComparer myc; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Array.Sort(Array, IComparer) "); - - try - { - for(int j=0; j<c_NUM_LOOPS; j++) - { - myc = new MyComparer(); - - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(Double), length); - - // fill the array - for (int i=0; i<array.Length; i++) - { - array.SetValue((object)TestLibrary.Generator.GetDouble(-55), i); - } - - Array.Sort(array, myc); - - // ensure that all the elements are sorted - element = (double)array.GetValue(0); - for(int i=0; i<array.Length; i++) - { - if (element > (double)array.GetValue(i)) - { - TestLibrary.TestFramework.LogError("000", "Unexpected value: Element (" + element + ") is greater than (" + (double)array.GetValue(i) + ")"); - retVal = false; - } - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - Array array; - int length; - IComparer myc; - double element; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Array.Sort(Array, IComparer) null comparer"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - array = Array.CreateInstance(typeof(double), length); - - // fill the array - for (int i=0; i<array.Length; i++) - { - array.SetValue(TestLibrary.Generator.GetDouble(-55), i); - } - - myc = null; - Array.Sort(array, myc); - - // ensure that all the elements are sorted - element = (double)array.GetValue(0); - for(int i=0; i<array.Length; i++) - { - if (element > (double)array.GetValue(i)) - { - TestLibrary.TestFramework.LogError("002", "Unexpected value: Element (" + element + ") is greater than (" + (double)array.GetValue(i) + ")"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - Array array; - IComparer myc; - - TestLibrary.TestFramework.BeginScenario("NegTest1: Array.Sort(Array, IComparer) null array"); - - try - { - array = null; - myc = new MyComparer(); - - Array.Sort(array, myc); - - TestLibrary.TestFramework.LogError("004", "Exception expected."); - retVal = false; - } - catch (ArgumentNullException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("005", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public class MyComparer : IComparer - { - public int Compare(object obj1, object obj2) - { - - if ((double)obj1 == (double)obj2) return 0; - - return ((double)obj1 < (double)obj2) ? -1 : 1; - } - } - -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraysort2b.cs b/tests/src/CoreMangLib/cti/system/array/arraysort2b.cs deleted file mode 100644 index a627d2b98b..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraysort2b.cs +++ /dev/null @@ -1,427 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Array.Sort(System.Array,System.Array,System.Collections.IComparer) -/// </summary> -public class ArrayIndexOf1 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - retVal = NegTest4() && retVal; - retVal = NegTest5() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Sort a string array using default comparer "); - - try - { - string[] s1 = new string[6]{"Jack", - "Mary", - "Mike", - "Peter", - "Tom", - "Allin"}; - int[] i1 = new int[6] { 24, 30, 28, 26, 32, 23 }; - string[] s2 = new string[6]{"Allin", - "Jack", - "Mary", - "Mike", - "Peter", - "Tom"}; - int[] i2 = new int[6] { 23, 24, 30, 28, 26, 32 }; - Array.Sort(s1, i1, null); - for (int i = 0; i < 6; i++) - { - if (s1[i] != s2[i]) - { - TestLibrary.TestFramework.LogError("001", "The result is not the value as expected"); - retVal = false; - } - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("002", "The result is not the value as expected"); - retVal = false; - } - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Sort an int32 array using comparer "); - - try - { - int length = TestLibrary.Generator.GetByte(-55); - int[] i1 = new int[length]; - int[] i2 = new int[length]; - for (int i = 0; i < length; i++) - { - int value = TestLibrary.Generator.GetInt32(-55); - i1[i] = value; - i2[i] = value; - } - IComparer a1 = new A(); - Array.Sort(i1, i2, a1); - for (int i = 0; i < length; i++) - { - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("004", "The result is not the value as expected"); - retVal = false; - } - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("005", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: Sort a char array using reverse comparer "); - - try - { - char[] c1 = new char[10] { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j' }; - char[] c2 = new char[10] { 'j', 'i', 'h', 'g', 'f', 'e', 'd', 'c', 'b', 'a' }; - char[] d1 = new char[10]; - char[] d2 = new char[10]; - c1.CopyTo(d2, 0); - c2.CopyTo(d1, 0); - IComparer b = new B(); - Array.Sort(c1, c2, b); - for (int i = 0; i < 10; i++) - { - if (c1[i] != d1[i]) - { - TestLibrary.TestFramework.LogError("006", "The result is not the value as expected"); - retVal = false; - } - if (c2[i] != d2[i]) - { - TestLibrary.TestFramework.LogError("007", "The result is not the value as expected"); - retVal = false; - } - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest4: Sort a customized array "); - - try - { - C c1 = new C(100); - C c2 = new C(16); - C c3 = new C(11); - C c4 = new C(9); - C c5 = new C(7); - C c6 = new C(2); - int[] i1 = new int[6] { 1, 2, 3, 4, 5, 6 }; - int[] i2 = new int[6] { 6, 5, 4, 3, 2, 1 }; - Array myarray = Array.CreateInstance(typeof(C), 6); - myarray.SetValue(c1, 0); - myarray.SetValue(c2, 1); - myarray.SetValue(c3, 2); - myarray.SetValue(c4, 3); - myarray.SetValue(c5, 4); - myarray.SetValue(c6, 5); - Array.Sort(myarray, i1, (IComparer)myarray.GetValue(0)); - for (int i = 0; i < 6; i++) - { - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("007", "The result is not the value as expected"); - retVal = false; - } - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: The first argument is null reference "); - - try - { - string[] s1 = null; - int[] i1 = { 1, 2, 3, 4, 5 }; - Array.Sort(s1, i1, null); - TestLibrary.TestFramework.LogError("101", "The ArgumentNullException is not throw as expected "); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2: The keys array is not one dimension "); - - try - { - int[,] i1 = new int[2, 3] { { 2, 3, 5 }, { 34, 56, 77 } }; - int[] i2 = { 1, 2, 3, 4, 5 }; - Array.Sort(i1, i2, null); - TestLibrary.TestFramework.LogError("103", "The RankException is not throw as expected "); - retVal = false; - } - catch (RankException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest3: The items array is not one dimension "); - - try - { - int[,] i1 = new int[2, 3] { { 2, 3, 5 }, { 34, 56, 77 } }; - int[] i2 = { 1, 2, 3, 4, 5 }; - Array.Sort(i2, i1, null); - TestLibrary.TestFramework.LogError("105", "The RankException is not throw as expected "); - retVal = false; - } - catch (RankException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("106", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest4: The length of items array is not equal to the length of keys array"); - - try - { - string[] s1 = new string[6]{"Jack", - "Mary", - "Mike", - "Peter", - "Tom", - "Allin"}; - int[] i1 = new int[5] { 24, 30, 28, 26, 32 }; - Array.Sort(s1, i1, null); - TestLibrary.TestFramework.LogError("107", "The ArgumentException is not throw as expected "); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("108", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest5: The Icomparer is null and keys array does not implement the IComparer interface "); - - try - { - D d1 = new D(); - D d2 = new D(); - D d3 = new D(); - D d4 = new D(); - int[] i2 = { 1, 2, 3, 4 }; - D[] d = new D[4] { d1, d2, d3, d4 }; - Array.Sort(d, i2, null); - TestLibrary.TestFramework.LogError("109", "The InvalidOperationException is not throw as expected "); - retVal = false; - } - catch (InvalidOperationException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("110", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - ArrayIndexOf1 test = new ArrayIndexOf1(); - - TestLibrary.TestFramework.BeginTestCase("ArrayIndexOf1"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - class A : IComparer - { - - #region IComparer Members - - public int Compare(object x, object y) - { - return ((int)x).CompareTo((int)y); - } - #endregion - } - class B : IComparer - { - - #region IComparer Members - - public int Compare(object x, object y) - { - if (((char)x).CompareTo((char)y) > 0) - return -1; - else - { - if (x == y) - { - return 0; - } - else - { - return 1; - } - } - } - #endregion - } - - class C : IComparer - { - protected int c_value; - public C(int a) - { - this.c_value = a; - } - - #region IComparer Members - - public int Compare(object x, object y) - { - return (x as C).c_value.CompareTo((y as C).c_value); - } - #endregion - } - - class D : IComparer - { - #region IComparer Members - - public int Compare(object x, object y) - { - return 0; - } - #endregion - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraysort3.cs b/tests/src/CoreMangLib/cti/system/array/arraysort3.cs deleted file mode 100644 index ddf5ed642d..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraysort3.cs +++ /dev/null @@ -1,275 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -public class ArrayBinarySort2 -{ - private const int c_MIN_SIZE = 64; - private const int c_MAX_SIZE = 1024; - private const int c_NUM_LOOPS = 50; - - public static int Main() - { - ArrayBinarySort2 ac = new ArrayBinarySort2(); - - TestLibrary.TestFramework.BeginTestCase("Array.Sort(Array, Array, int, int, IComparer)"); - - if (ac.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - Array keys; - Array items; - int length; - IComparer myc; - byte element; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Array.Sort(Array, Array, int, int, IComparer) "); - - try - { - myc = new MyComparer(); - - for (int j=0; j<c_NUM_LOOPS; j++) - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - keys = Array.CreateInstance(typeof(byte), length); - items = Array.CreateInstance(typeof(byte), length); - - // fill the array - for (int i=0; i<keys.Length; i++) - { - keys.SetValue((object)TestLibrary.Generator.GetByte(-55), i); - items.SetValue(keys.GetValue(i), i); - } - - Array.Sort(keys, items, 0, length, myc); - - // ensure that all the elements are sorted - element = (byte)keys.GetValue(0); - for(int i=0; i<keys.Length; i++) - { - if (element > (byte)keys.GetValue(i)) - { - TestLibrary.TestFramework.LogError("000", "Unexpected key: Element (" + element + ") is greater than (" + (byte)keys.GetValue(i) + ")"); - retVal = false; - } - if ((byte)items.GetValue(i) != (byte)keys.GetValue(i)) - { - TestLibrary.TestFramework.LogError("001", "Unexpected item: Expected(" + (byte)keys.GetValue(i) + ") Actual(" + (byte)items.GetValue(i) + ")"); - retVal = false; - } - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - Array keys; - Array items; - int length; - IComparer myc; - byte element; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Array.Sort(Array, Array, int, int, IComparer) items is null"); - - try - { - myc = new MyComparer(); - - for (int j=0; j<c_NUM_LOOPS; j++) - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - keys = Array.CreateInstance(typeof(byte), length); - items = null; - - // fill the array - for (int i=0; i<keys.Length; i++) - { - keys.SetValue((object)TestLibrary.Generator.GetByte(-55), i); - } - - Array.Sort(keys, items, 0, length, myc); - - // ensure that all the elements are sorted - element = (byte)keys.GetValue(0); - for(int i=0; i<keys.Length; i++) - { - if (element > (byte)keys.GetValue(i)) - { - TestLibrary.TestFramework.LogError("003", "Unexpected key: Element (" + element + ") is greater than (" + (byte)keys.GetValue(i) + ")"); - retVal = false; - } - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - Array keys; - Array items; - IComparer myc; - - TestLibrary.TestFramework.BeginScenario("NegTest1: Array.Sort(Array, Array, int, int, IComparer) keys is null"); - - try - { - keys = null; - items = null; - myc = new MyComparer(); - - Array.Sort(keys, items, 0, 0, myc); - - TestLibrary.TestFramework.LogError("005", "Exception expected."); - retVal = false; - } - catch (ArgumentNullException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - Array keys; - Array items; - IComparer myc; - int length; - - TestLibrary.TestFramework.BeginScenario("NegTest2: Array.Sort(Array, Array, int, int, IComparer) length < 0"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - keys = Array.CreateInstance(typeof(byte), length); - items = Array.CreateInstance(typeof(byte), length); - myc = new MyComparer(); - - Array.Sort(keys, items, 0, -1, myc); - - TestLibrary.TestFramework.LogError("007", "Exception expected."); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - Array keys; - Array items; - IComparer myc; - int length; - - TestLibrary.TestFramework.BeginScenario("NegTest3: Array.Sort(Array, Array, int, int, IComparer) length too long"); - - try - { - // creat the array - length = (TestLibrary.Generator.GetInt32(-55) % (c_MAX_SIZE-c_MIN_SIZE)) + c_MIN_SIZE; - keys = Array.CreateInstance(typeof(byte), length); - items = Array.CreateInstance(typeof(byte), length); - myc = new MyComparer(); - - Array.Sort(keys, items, length+10, length, myc); - - TestLibrary.TestFramework.LogError("009", "Exception expected."); - retVal = false; - } - catch (ArgumentException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public class MyComparer : IComparer - { - public int Compare(object obj1, object obj2) - { - - if ((byte)obj1 == (byte)obj2) return 0; - - return ((byte)obj1 < (byte)obj2) ? -1 : 1; - } - } - -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraysort3b.cs b/tests/src/CoreMangLib/cti/system/array/arraysort3b.cs deleted file mode 100644 index f707be995c..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraysort3b.cs +++ /dev/null @@ -1,570 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Array.Sort(System.Array,System.Array,System.Int32,System.Int32,System.Collections.IComparer) -/// </summary> -public class ArrayIndexOf1 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - retVal = NegTest4() && retVal; - retVal = NegTest5() && retVal; - retVal = NegTest6() && retVal; - retVal = NegTest7() && retVal; - retVal = NegTest8() && retVal; - - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Sort a string array using default comparer "); - - try - { - string[] s1 = new string[6]{"Jack", - "Mary", - "Mike", - "Peter", - "Tom", - "Allin"}; - int[] i1 = new int[6] { 24, 30, 28, 26, 32, 23 }; - string[] s2 = new string[6]{"Jack", - "Mary", - "Mike", - "Allin", - "Peter", - "Tom"}; - int[] i2 = new int[6] { 24, 30, 28, 23, 26, 32 }; - Array.Sort(s1, i1, 3, 3, null); - for (int i = 0; i < 6; i++) - { - if (s1[i] != s2[i]) - { - TestLibrary.TestFramework.LogError("001", "The result is not the value as expected"); - retVal = false; - } - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("002", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Sort an int32 array using comparer "); - - try - { - int length = TestLibrary.Generator.GetByte(-55); - int[] i1 = new int[length]; - int[] i2 = new int[length]; - for (int i = 0; i < length; i++) - { - int value = TestLibrary.Generator.GetInt32(-55); - i1[i] = value; - i2[i] = value; - } - IComparer a1 = new A(); - int startIdx = GetInt(0, length - 1); - int endIdx = GetInt(startIdx, length - 1); - int count = endIdx - startIdx; - Array.Sort(i1, i2, startIdx, count, a1); - for (int i = 0; i < length; i++) - { - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("004", "The result is not the value as expected"); - retVal = false; - } - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("005", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: Sort a char array using reverse comparer "); - - try - { - char[] c1 = new char[10] { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j' }; - char[] d1 = new char[10] { 'a', 'e', 'd', 'c', 'b', 'f', 'g', 'h', 'i', 'j' }; - int[] a1 = new int[10] { 2, 3, 4, 1, 0, 2, 12, 52, 31, 0 }; - int[] b1 = new int[10] { 2, 0, 1, 4, 3, 2, 12, 52, 31, 0 }; - IComparer b = new B(); - Array.Sort(c1, a1, 1, 4, b); - for (int i = 0; i < 10; i++) - { - if (c1[i] != d1[i]) - { - TestLibrary.TestFramework.LogError("006", "The result is not the value as expected"); - retVal = false; - } - if (a1[i] != b1[i]) - { - TestLibrary.TestFramework.LogError("007", "The result is not the value as expected"); - retVal = false; - } - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest4: Sort an int array and the items array is null "); - - try - { - int length = (int) TestLibrary.Generator.GetByte(-55); - int[] i1 = new int[length]; - int[] i2 = new int[length]; - for (int i = 0; i < length; i++) - { - int value = TestLibrary.Generator.GetByte(-55); - i1[i] = value; - i2[i] = value; - } - int startIdx = GetInt(0, length - 2); - int endIdx = GetInt(startIdx, length - 1); - int count = endIdx - startIdx + 1; - for (int i = startIdx; i < endIdx; i++) //manually quich sort - { - for (int j = i + 1; j <= endIdx; j++) - { - if (i2[i] > i2[j]) - { - int temp = i2[i]; - i2[i] = i2[j]; - i2[j] = temp; - } - } - } - Array.Sort(i1, null, startIdx, count, new A()); - for (int i = 0; i < length; i++) - { - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("009", "The result is not the value as expected"); - retVal = false; - } - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - #endregion - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: The first argument is null reference "); - - try - { - string[] s1 = null; - int[] i1 = { 1, 2, 3, 4, 5 }; - Array.Sort(s1, i1, 0, 2, null); - TestLibrary.TestFramework.LogError("101", "The ArgumentNullException is not throw as expected "); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2: The keys array is not one dimension "); - - try - { - int[,] i1 = new int[2, 3] { { 2, 3, 5 }, { 34, 56, 77 } }; - int[] i2 = { 1, 2, 3, 4, 5 }; - Array.Sort(i1, i2, 0, 3, null); - TestLibrary.TestFramework.LogError("103", "The RankException is not throw as expected "); - retVal = false; - } - catch (RankException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest3: The items array is not one dimension "); - - try - { - int[,] i1 = new int[2, 3] { { 2, 3, 5 }, { 34, 56, 77 } }; - int[] i2 = { 1, 2, 3, 4, 5 }; - Array.Sort(i2, i1, 0, 2, null); - TestLibrary.TestFramework.LogError("105", "The RankException is not throw as expected "); - retVal = false; - } - catch (RankException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("106", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest4:The length of items array is not equal to the length of keys array "); - - try - { - int length_array = TestLibrary.Generator.GetInt16(-55); - int length_value = TestLibrary.Generator.GetByte(-55); - string[] s1 = new string[length_array]; - int[] i1 = new int[length_value]; - for (int i = 0; i < length_array; i++) - { - string value = TestLibrary.Generator.GetString(-55, false, 0, 10); - s1[i] = value; - } - for (int i = 0; i < length_value; i++) - { - int value = TestLibrary.Generator.GetInt32(-55); - i1[i] = value; - } - int startIdx = GetInt(0, 255); - int count = GetInt(256, length_array - 1); - Array.Sort(s1, i1, startIdx, count, null); - TestLibrary.TestFramework.LogError("107", "The ArgumentException is not throw as expected "); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("108", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest5: The Icomparer is null and keys array does not implement the IComparer interface "); - - try - { - D d1 = new D(); - D d2 = new D(); - D d3 = new D(); - D d4 = new D(); - int[] i2 = { 1, 2, 3, 4 }; - D[] d = new D[4] { d1, d2, d3, d4 }; - Array.Sort(d, i2, 1, 3, null); - TestLibrary.TestFramework.LogError("109", "The InvalidOperationException is not throw as expected "); - retVal = false; - } - catch (InvalidOperationException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("110", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest6() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest6: The start index is less than the minimal bound of the array"); - - try - { - string[] s1 = new string[6]{"Jack", - "Mary", - "Peter", - "Mike", - "Tom", - "Allin"}; - int[] i1 = new int[6] { 24, 30, 28, 26, 32, 44 }; - Array.Sort(s1, i1, -1, 4, null); - TestLibrary.TestFramework.LogError("111", "The ArgumentOutOfRangeException is not throw as expected "); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("112", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest7() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest7: The length is less than zero"); - - try - { - string[] s1 = new string[6]{"Jack", - "Mary", - "Peter", - "Mike", - "Tom", - "Allin"}; - int[] i1 = new int[6] { 24, 30, 28, 26, 32, 44 }; - Array.Sort(s1, i1, 3, -1, null); - TestLibrary.TestFramework.LogError("111", "The ArgumentOutOfRangeException is not throw as expected "); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("112", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest8() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest8:The start index is greater than the max bound of the array"); - - try - { - int length = TestLibrary.Generator.GetInt16(-55); - string[] s1 = new string[length]; - int[] i1 = new int[length]; - for (int i = 0; i < length; i++) - { - string value1 = TestLibrary.Generator.GetString(-55, false, 0, 10); - int value2 = TestLibrary.Generator.GetInt32(-55); - s1[i] = value1; - i1[i] = value2; - } - Array.Sort(s1, i1, length + 1, 0, null); - TestLibrary.TestFramework.LogError("113", "The ArgumentException is not throw as expected "); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("114", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - ArrayIndexOf1 test = new ArrayIndexOf1(); - - TestLibrary.TestFramework.BeginTestCase("ArrayIndexOf1"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - class A : IComparer - { - - #region IComparer Members - - public int Compare(object x, object y) - { - return ((int)x).CompareTo((int)y); - } - #endregion - } - class B : IComparer - { - - #region IComparer Members - - public int Compare(object x, object y) - { - if (((char)x).CompareTo((char)y) > 0) - return -1; - else - { - if (x == y) - { - return 0; - } - else - { - return 1; - } - } - } - #endregion - } - - class C : IComparer - { - protected int c_value; - public C(int a) - { - this.c_value = a; - } - - #region IComparer Members - - public int Compare(object x, object y) - { - return (x as C).c_value.CompareTo((y as C).c_value); - } - #endregion - } - - class D : IComparer - { - #region IComparer Members - - public int Compare(object x, object y) - { - return 0; - } - #endregion - } - #region Help method for geting test data - - private Int32 GetInt(Int32 minValue, Int32 maxValue) - { - try - { - if (minValue == maxValue) - { - return minValue; - } - if (minValue < maxValue) - { - return minValue + TestLibrary.Generator.GetInt32(-55) % (maxValue - minValue); - } - } - catch - { - throw; - } - - return minValue; - } - - #endregion -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraysort4.cs b/tests/src/CoreMangLib/cti/system/array/arraysort4.cs deleted file mode 100644 index 2bb402cdb5..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraysort4.cs +++ /dev/null @@ -1,449 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// Array.Sort(System.Array,System.Collections.IComparer) -/// </summary> -public class ArraySort4 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Sort a string array using string comparer "); - - try - { - string[] s1 = new string[7]{"Jack", - "Mary", - "Mike", - "Peter", - "Boy", - "Tom", - "Allin"}; - IComparer a = new A(); - Array.Sort(s1, a); - string[] s2 = new string[7]{"Allin", - "Boy", - "Jack", - "Mary", - "Mike", - "Peter", - "Tom"}; - for (int i = 0; i < 7; i++) - { - if (s1[i] != s2[i]) - { - TestLibrary.TestFramework.LogError("001", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Sort an int32 array using reverse comparer "); - - try - { - int length = TestLibrary.Generator.GetInt16(-55); - TestLibrary.TestFramework.LogInformation("Using random length: " + length); - int[] i1 = new int[length]; - int[] i2 = new int[length]; - for (int i = 0; i < length; i++) - { - int value = TestLibrary.Generator.GetByte(-55); - i1[i] = value; - i2[i] = value; - } - IComparer b = new B(); - Array.Sort(i1, b); - for (int i = 0; i < length - 1; i++) //manually quich sort - { - for (int j = i + 1; j < length; j++) - { - if (i2[i] < i2[j]) - { - int temp = i2[i]; - i2[i] = i2[j]; - i2[j] = temp; - } - } - } - for (int i = 0; i < length; i++) - { - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("003", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: Sort a char array using default comparer "); - - try - { - int length = TestLibrary.Generator.GetInt16(-55); - char[] i1 = new char[length]; - char[] i2 = new char[length]; - for (int i = 0; i < length; i++) - { - char value = TestLibrary.Generator.GetChar(-55); - i1[i] = value; - i2[i] = value; - } - IComparer c = null; - Array.Sort(i1, c); - for (int i = 0; i < length - 1; i++) //manually quich sort - { - for (int j = i + 1; j < length; j++) - { - if (i2[i] > i2[j]) - { - char temp = i2[i]; - i2[i] = i2[j]; - i2[j] = temp; - } - } - } - for (int i = 0; i < length; i++) - { - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("005", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest4: Sort an array which has same elements "); - - try - { - int length = TestLibrary.Generator.GetByte(-55); - string[] s1 = new string[length]; - string[] s2 = new string[length]; - string value = TestLibrary.Generator.GetString(-55, false, 0, 10); - for (int i = 0; i < length; i++) - { - s1[i] = value; - s2[i] = value; - } - IComparer c = null; - Array.Sort(s1, c); - for (int i = 0; i < length; i++) - { - if (s1[i] != s2[i]) - { - TestLibrary.TestFramework.LogError("007", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest5: Sort a string array including null reference and using customized comparer interface"); - - try - { - string[] s1 = new string[9]{"Jack", - "Mary", - "Mike", - null, - "Peter", - "Boy", - "Tom", - null, - "Allin"}; - IComparer d = new D(); - Array.Sort(s1, d); - string[] s2 = new string[9]{"Allin", - "Boy", - "Jack", - "Mary", - "Mike", - "Peter", - "Tom", - null, - null}; - for (int i = 0; i < 7; i++) - { - if (s1[i] != s2[i]) - { - TestLibrary.TestFramework.LogError("009", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - - public bool PosTest6() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest6:The implementation of comparer caused an error during the sort"); - - try - { - int[] i1 = new int[9] { 2, 34, 56, 87, 34, 23, 209, 34, 87 }; - IComparer f = new F(); - Array.Sort(i1, f); - - for(int i=1; i<i1.Length; i++) - { - if (i1[i-1] > i1[i]) - { - TestLibrary.TestFramework.LogError("107", "The " + i + " element in the array is out of order: [i-1]=" + i1[i-1] + " [i]="+i1[i]); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("108", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: The array is null "); - - try - { - string[] s1 = null; - IComparer a = new A(); - Array.Sort(s1, a); - TestLibrary.TestFramework.LogError("101", "The ArgumentNullException is not throw as expected "); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2: The array is not one dimension "); - - try - { - int[,] i1 = new int[2, 3] { { 2, 3, 5 }, { 34, 56, 77 } }; - IComparer a = new A(); - Array.Sort(i1, a); - TestLibrary.TestFramework.LogError("103", "The RankException is not throw as expected "); - retVal = false; - } - catch (RankException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest3: Elements in array do not implement the IComparable interface "); - - try - { - E[] a1 = new E[4] { new E(), new E(), new E(), new E() }; - IComparer d = null; - Array.Sort(a1,d); - TestLibrary.TestFramework.LogError("105", "The InvalidOperationException is not throw as expected "); - retVal = false; - } - catch (InvalidOperationException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("106", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - #endregion - #endregion - - public static int Main() - { - ArraySort4 test = new ArraySort4(); - - TestLibrary.TestFramework.BeginTestCase("ArraySort4"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - class A : IComparer - { - - #region IComparer Members - - public int Compare(object x, object y) - { - return ((string)x).CompareTo((string)y); - } - #endregion - } - - class B : IComparer - { - - #region IComparer Members - - public int Compare(object x, object y) - { - return (-((int)x).CompareTo((int)y)); - } - #endregion - } - - class D : IComparer - { - - #region IComparer Members - - public int Compare(object x, object y) - { - if (x == null) - { - return 1; - } - if (y == null) - return -1; - - return ((string)x).CompareTo((string)y); - } - #endregion - } - - class E - { - public E() { } - } - - class F : IComparer - { - public int Compare(object x, object y) - { - int a = (int)x; - int b = (int)y; - return a > b ? 1 : (-1); - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraysort5.cs b/tests/src/CoreMangLib/cti/system/array/arraysort5.cs deleted file mode 100644 index d4566038ca..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraysort5.cs +++ /dev/null @@ -1,557 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Array.Sort(System.Array,System.Int32,System.Int32,System.Collections.IComparer) -/// </summary> -public class ArraySort5 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - retVal = NegTest4() && retVal; - retVal = NegTest5() && retVal; - retVal = NegTest6() && retVal; - retVal = NegTest8() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Sort a string array using default comparer "); - - try - { - string[] s1 = new string[6]{"Jack", - "Mary", - "Mike", - "Peter", - "Tom", - "Allin"}; - string[] s2 = new string[6]{"Jack", - "Mary", - "Mike", - "Allin", - "Peter", - "Tom"}; - Array.Sort(s1, 3, 3, null); - for (int i = 0; i < 6; i++) - { - if (s1[i] != s2[i]) - { - TestLibrary.TestFramework.LogError("001", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Sort an int32 array using comparer "); - - try - { - int length = TestLibrary.Generator.GetByte(-55); - int[] i1 = new int[length]; - int[] i2 = new int[length]; - for (int i = 0; i < length; i++) - { - int value = TestLibrary.Generator.GetByte(-55); - i1[i] = value; - i2[i] = value; - } - IComparer a1 = new A(); - int startIdx = GetInt(0, length - 2); - int endIdx = GetInt(startIdx, length - 1); - int count = length == 0 ? length : endIdx - startIdx + 1; - Array.Sort(i1, startIdx, count, a1); - for (int i = startIdx; i < endIdx; i++) //manually quich sort - { - for (int j = i + 1; j <= endIdx; j++) - { - if (i2[i] > i2[j]) - { - int temp = i2[i]; - i2[i] = i2[j]; - i2[j] = temp; - } - } - } - for (int i = 0; i < length; i++) - { - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("003", "The result is not the value as expected,the start index is:" + startIdx.ToString() + "the end index is:" + endIdx.ToString()); - retVal = false; - } - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: Sort a char array using reverse comparer "); - - try - { - char[] c1 = new char[10] { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j' }; - char[] d1 = new char[10] { 'a', 'e', 'd', 'c', 'b', 'f', 'g', 'h', 'i', 'j' }; - IComparer b = new B(); - Array.Sort(c1, 1, 4, b); - for (int i = 0; i < 10; i++) - { - if (c1[i] != d1[i]) - { - TestLibrary.TestFramework.LogError("005", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest4: Sort an int array from the minimal index to the maximal index of the array "); - - try - { - int length = TestLibrary.Generator.GetInt16(-55); - int[] i1 = new int[length]; - int[] i2 = new int[length]; - for (int i = 0; i < length; i++) - { - int value = TestLibrary.Generator.GetByte(-55); - i1[i] = value; - i2[i] = value; - } - int startIdx = 0; - int count = length; - Array.Sort(i1, startIdx, count, new A()); - Array.Sort(i2, new A()); - for (int i = 0; i < length; i++) - { - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("007", string.Format("The result is not the value as expected, the length is:{0}", length)); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest5:The implementation of comparer caused an error during the sort"); - - try - { - int[] i1 = new int[9] { 2, 34, 56, 87, 34, 23, 209, 34, 87 }; - IComparer f = new F(); - Array.Sort(i1, 0, 9, f); - for(int i=1; i<i1.Length; i++) - { - if (i1[i-1] > i1[i]) - { - TestLibrary.TestFramework.LogError("107", "The " + i + " element in the array is out of order: [i-1]=" + i1[i-1] + " [i]="+i1[i]); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("114", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - #endregion - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: The array to be sorted is null reference "); - - try - { - string[] s1 = null; - Array.Sort(s1, 0, 2, null); - TestLibrary.TestFramework.LogError("101", "The ArgumentNullException is not throw as expected "); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2: The array is not one dimension "); - - try - { - int[,] i1 = new int[2, 3] { { 2, 3, 5 }, { 34, 56, 77 } }; - Array.Sort(i1, 0, 3, null); - TestLibrary.TestFramework.LogError("103", "The RankException is not throw as expected "); - retVal = false; - } - catch (RankException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest3: The start index is less than the minimal bound of the array"); - - try - { - string[] s1 = new string[6]{"Jack", - "Mary", - "Peter", - "Mike", - "Tom", - "Allin"}; - Array.Sort(s1, -1, 4, null); - TestLibrary.TestFramework.LogError("105", "The ArgumentOutOfRangeException is not throw as expected "); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("106", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest4: Length is less than zero"); - - try - { - string[] s1 = new string[6]{"Jack", - "Mary", - "Peter", - "Mike", - "Tom", - "Allin"}; - Array.Sort(s1, 3, -3, null); - TestLibrary.TestFramework.LogError("107", "The ArgumentOutOfRangeException is not throw as expected "); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("108", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest5: The start index is greater than the maximal range of the array"); - - try - { - int length = TestLibrary.Generator.GetByte(-55); - string[] s1 = new string[length]; - for (int i = 0; i < length; i++) - { - string value = TestLibrary.Generator.GetString(-55, false, 0, 10); - s1[i] = value; - } - int startIdx = GetInt(1, Byte.MaxValue); - int increment = length; - Array.Sort(s1, startIdx + increment, 0, null); - TestLibrary.TestFramework.LogError("109", "The ArgumentException is not throw as expected "); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("110", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest6() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest6: The start index and length do not specify a valid range in array. "); - - try - { - int length = TestLibrary.Generator.GetByte(-55); - string[] s1 = new string[length]; - for (int i = 0; i < length; i++) - { - string value = TestLibrary.Generator.GetString(-55, false, 0, 10); - s1[i] = value; - } - int startIdx = GetInt(1, length - 1); - int count = length; - Array.Sort(s1, startIdx, count, null); - TestLibrary.TestFramework.LogError("111", "The ArgumentException is not throw as expected "); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("112", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest8() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest8: Elements in array do not implement the IComparable interface "); - - try - { - E[] a1 = new E[4] { new E(), new E(), new E(), new E() }; - IComparer d = null; - Array.Sort(a1, 0, 4, d); - TestLibrary.TestFramework.LogError("115", "The InvalidOperationException is not throw as expected "); - retVal = false; - } - catch (InvalidOperationException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("116", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - ArraySort5 test = new ArraySort5(); - - TestLibrary.TestFramework.BeginTestCase("ArraySort5"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - - } - - class A : IComparer - { - - #region IComparer Members - - public int Compare(object x, object y) - { - return ((int)x).CompareTo((int)y); - } - #endregion - } - class B : IComparer - { - - #region IComparer Members - - public int Compare(object x, object y) - { - if (((char)x).CompareTo((char)y) > 0) - return -1; - else - { - if (x == y) - { - return 0; - } - else - { - return 1; - } - } - } - #endregion - } - - class C : IComparer - { - protected int c_value; - public C(int a) - { - this.c_value = a; - } - - #region IComparer Members - - public int Compare(object x, object y) - { - return (x as C).c_value.CompareTo((y as C).c_value); - } - #endregion - } - - class D : IComparer - { - #region IComparer Members - - public int Compare(object x, object y) - { - return 0; - } - #endregion - } - - class E - { - public E() { } - } - - class F : IComparer - { - public int Compare(object x, object y) - { - int a = (int)x; - int b = (int)y; - return a > b ? 1 : (-1); - } - } - #region Help method for geting test data - - private Int32 GetInt(Int32 minValue, Int32 maxValue) - { - try - { - if (minValue == maxValue) - { - return minValue; - } - if (minValue < maxValue) - { - return minValue + TestLibrary.Generator.GetInt32(-55) % (maxValue - minValue); - } - } - catch - { - throw; - } - - return minValue; - } - - #endregion -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraysort6.cs b/tests/src/CoreMangLib/cti/system/array/arraysort6.cs deleted file mode 100644 index 7e53405056..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraysort6.cs +++ /dev/null @@ -1,374 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// Array.Sort (T[]) -/// </summary> -public class ArraySort6 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Sort a string array"); - - try - { - string[] s1 = new string[6]{"Jack", - "Mary", - "Mike", - "Peter", - "Tom", - "Allin"}; - string[] s2 = new string[]{"Allin", - "Jack", - "Mary", - "Mike", - "Peter", - "Tom"}; - Array.Sort<string>(s1); - for (int i = 0; i < 6; i++) - { - if (s1[i] != s2[i]) - { - TestLibrary.TestFramework.LogError("001", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Sort an int32 array"); - - try - { - int length = TestLibrary.Generator.GetByte(-55); - int[] i1 = new int[length]; - int[] i2 = new int[length]; - for (int i = 0; i < length; i++) - { - int value = TestLibrary.Generator.GetInt32(-55); - i1[i] = value; - i2[i] = value; - } - Array.Sort<int>(i1); - for (int i = 0; i < length - 1; i++) //manually quich sort - { - for (int j = i + 1; j < length; j++) - { - if (i2[i] > i2[j]) - { - int temp = i2[i]; - i2[i] = i2[j]; - i2[j] = temp; - } - } - } - for (int i = 0; i < length; i++) - { - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("003", "The result is not the value as expected"); - retVal = false; - } - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: Sort a char array "); - - try - { - int length = TestLibrary.Generator.GetInt16(-55); - char[] c1 = new char[length]; - char[] c2 = new char[length]; - for (int i = 0; i < length; i++) - { - char value = TestLibrary.Generator.GetChar(-55); - c1[i] = value; - c2[i] = value; - } - Array.Sort<char>(c1); - for (int i = 0; i < length - 1; i++) //manually quich sort - { - for (int j = i + 1; j < length; j++) - { - if (c2[i] > c2[j]) - { - char temp = c2[i]; - c2[i] = c2[j]; - c2[j] = temp; - } - } - } - for (int i = 0; i < length; i++) - { - if (c1[i] != c2[i]) - { - TestLibrary.TestFramework.LogError("005", "The result is not the value as expected"); - retVal = false; - } - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest4: Sort a string array including null reference "); - - try - { - string[] s1 = new string[6]{"Jack", - "Mary", - null, - "Peter", - "Tom", - "Allin"}; - string[] s2 = new string[]{null, - "Allin", - "Jack", - "Mary", - "Peter", - "Tom"}; - Array.Sort<string>(s1); - for (int i = 0; i < 6; i++) - { - if (s1[i] != s2[i]) - { - TestLibrary.TestFramework.LogError("007", "The result is not the value as expected"); - retVal = false; - } - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest5: Sort customized type array"); - - try - { - C[] c_array = new C[5]; - C[] c_result = new C[5]; - for (int i = 0; i < 5; i++) - { - int value = TestLibrary.Generator.GetInt32(-55); - C c1 = new C(value); - c_array.SetValue(c1, i); - c_result.SetValue(c1, i); - } - //sort manually - C temp; - for (int j = 0; j < 4; j++) - { - for (int i = 0; i < 4; i++) - { - if (c_result[i].c > c_result[i + 1].c) - { - temp = c_result[i]; - c_result[i] = c_result[i + 1]; - c_result[i + 1] = temp; - } - } - } - Array.Sort<C>(c_array); - for (int i = 0; i < 5; i++) - { - if (c_result[i].c != c_array[i].c) - { - TestLibrary.TestFramework.LogError("009", "The result is not the value as expected"); - retVal = false; - } - } - - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - #endregion - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: The array is null "); - - try - { - string[] s1 = null; - Array.Sort<string>(s1); - TestLibrary.TestFramework.LogError("101", "The ArgumentNullException is not throw as expected "); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2: One or more elements in array do not implement the IComparable interface"); - - try - { - A<int>[] i1 = new A<int>[5] { new A<int>(7), new A<int>(99), new A<int>(-23), new A<int>(0), new A<int>(345) }; - Array.Sort<A<int>>(i1); - TestLibrary.TestFramework.LogError("103", "The InvalidOperationException is not throw as expected "); - retVal = false; - } - catch (InvalidOperationException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - ArraySort6 test = new ArraySort6(); - - TestLibrary.TestFramework.BeginTestCase("ArraySort6"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - class C : IComparable - { - protected int c_value; - public C(int a) - { - this.c_value = a; - } - public int c - { - get - { - return c_value; - } - } - #region IComparable Members - - public int CompareTo(object obj) - { - if (this.c_value <= ((C)obj).c) - { - return -1; - } - else - { - return 1; - } - } - - #endregion - } - - class A<T> - { - protected T a_value; - public A(T a) - { - this.a_value = a; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraysort7.cs b/tests/src/CoreMangLib/cti/system/array/arraysort7.cs deleted file mode 100644 index eae90a98e6..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraysort7.cs +++ /dev/null @@ -1,425 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; - -/// <summary> -/// System.Array.Sort<T>(T[],System.Collections.Generic.IComparer<T>) -/// </summary> -public class ArraySort7 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - //Bug 385712: Won’t fix - //retVal = NegTest3() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Sort a string array using string comparer<string>"); - - try - { - string[] s1 = new string[7]{"Jack", - "Mary", - "Mike", - "Peter", - "Boy", - "Tom", - "Allin"}; - IComparer<string> a = new A<string>(); - Array.Sort<string>(s1, a); - string[] s2 = new string[7]{"Allin", - "Boy", - "Jack", - "Mary", - "Mike", - "Peter", - "Tom"}; - for (int i = 0; i < 7; i++) - { - if (s1[i] != s2[i]) - { - TestLibrary.TestFramework.LogError("001", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Sort an int32 array using reverse comparer<int>"); - - try - { - int length = TestLibrary.Generator.GetInt16(-55); - int[] i1 = new int[length]; - int[] i2 = new int[length]; - for (int i = 0; i < length; i++) - { - int value = TestLibrary.Generator.GetByte(-55); - i1[i] = value; - i2[i] = value; - } - IComparer<int> b = new B<int>(); - Array.Sort<int>(i1, b); - for (int i = 0; i < length - 1; i++) //manually quich sort - { - for (int j = i + 1; j < length; j++) - { - if (i2[i] < i2[j]) - { - int temp = i2[i]; - i2[i] = i2[j]; - i2[j] = temp; - } - } - } - for (int i = 0; i < length; i++) - { - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("003", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: Sort a char array using default comparer "); - - try - { - int length = TestLibrary.Generator.GetInt16(-55); - char[] i1 = new char[length]; - char[] i2 = new char[length]; - for (int i = 0; i < length; i++) - { - char value = TestLibrary.Generator.GetChar(-55); - i1[i] = value; - i2[i] = value; - } - IComparer<char> c = null; - Array.Sort<char>(i1, c); - for (int i = 0; i < length - 1; i++) //manually quich sort - { - for (int j = i + 1; j < length; j++) - { - if (i2[i] > i2[j]) - { - char temp = i2[i]; - i2[i] = i2[j]; - i2[j] = temp; - } - } - } - for (int i = 0; i < length; i++) - { - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("005", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest4: Sort an array which has same elements using default Icomparer "); - - try - { - int length = TestLibrary.Generator.GetByte(-55); - string[] s1 = new string[length]; - string[] s2 = new string[length]; - string value = TestLibrary.Generator.GetString(-55, false, 0, 10); - for (int i = 0; i < length; i++) - { - s1[i] = value; - s2[i] = value; - } - IComparer<string> c = null; - Array.Sort<string>(s1, c); - for (int i = 0; i < length; i++) - { - if (s1[i] != s2[i]) - { - TestLibrary.TestFramework.LogError("007", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest5: Sort a string array including null reference and using customized comparer<T> interface"); - - try - { - string[] s1 = new string[9]{"Jack", - "Mary", - "Mike", - null, - "Peter", - "Boy", - "Tom", - null, - "Allin"}; - IComparer<string> d = new D<string>(); - Array.Sort<string>(s1, d); - string[] s2 = new string[9]{"Allin", - "Boy", - "Jack", - "Mary", - "Mike", - "Peter", - "Tom", - null, - null}; - for (int i = 0; i < 7; i++) - { - if (s1[i] != s2[i]) - { - TestLibrary.TestFramework.LogError("009", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: The array is null "); - - try - { - string[] s1 = null; - IComparer<string> a = new A<string>(); - Array.Sort<string>(s1, a); - TestLibrary.TestFramework.LogError("101", "The ArgumentNullException is not throw as expected "); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2: Elements in array do not implement the IComparable<T> interface "); - - try - { - E<int>[] a1 = new E<int>[4] { new E<int>(), new E<int>(), new E<int>(), new E<int>() }; - IComparer<E<int>> d = null; - Array.Sort<E<int>>(a1, d); - TestLibrary.TestFramework.LogError("103", "The InvalidOperationException is not throw as expected "); - retVal = false; - } - catch (InvalidOperationException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest3:The implementation of comparer<T> caused an error during the sort"); - - try - { - int[] i1 = new int[9] { 2, 34, 56, 87, 34, 23, 209, 34, 87 }; - F f = new F(); - Array.Sort<int>(i1, f); - TestLibrary.TestFramework.LogError("105", "The ArgumentException is not throw as expected "); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("106", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - ArraySort7 test = new ArraySort7(); - - TestLibrary.TestFramework.BeginTestCase("ArraySort7"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - class A<T> : IComparer<T> where T : IComparable - { - - #region IComparer Members - - public int Compare(T x, T y) - { - return x.CompareTo(y); - } - #endregion - } - - class B<T> : IComparer<T> where T : IComparable - { - - #region IComparer Members - - public int Compare(T x, T y) - { - return (-(x).CompareTo(y)); - } - #endregion - } - - class D<T> : IComparer<T> where T : IComparable - { - - #region IComparer Members - - public int Compare(T x, T y) - { - if (x == null) - { - return 1; - } - if (y == null) - { - return -1; - } - - return x.CompareTo(y); - } - #endregion - } - class E<T> - { - public E() { } - } - - class F : IComparer<int> - { - - - #region IComparer<int> Members - - int IComparer<int>.Compare(int a, int b) - { - if (a.CompareTo(a) == 0) - { - return -1; - } - - return a.CompareTo(b); - - } - - #endregion - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraysort8.cs b/tests/src/CoreMangLib/cti/system/array/arraysort8.cs deleted file mode 100644 index afb83ce9ef..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraysort8.cs +++ /dev/null @@ -1,400 +0,0 @@ -using System; -using System.Collections.Generic; - -/// <summary> -/// System.Array.Sort<T>(T[],System.Comparison<T>) -/// </summary> -public class ArraySort8 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - //Bug 385712: Won’t fix - //retVal = NegTest3() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest1:Sort a string array including null reference and using customized comparison delegate "); - - try - { - string[] s1 = new string[9]{"Jack", - "Mary", - "Mike", - null, - "Peter", - "Boy", - "Tom", - null, - "Allin"}; - string[] s2 = new string[9]{"Allin", - "Boy", - "Jack", - "Mary", - "Mike", - "Peter", - "Tom", - null, - null}; - Array.Sort<string>(s1, this.M1_compare); - for (int i = 0; i < 7; i++) - { - if (s1[i] != s2[i]) - { - TestLibrary.TestFramework.LogError("009", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Sort an int32 array using reverse comparison delegate "); - - try - { - int length = TestLibrary.Generator.GetInt16(-55); - int[] i1 = new int[length]; - int[] i2 = new int[length]; - for (int i = 0; i < length; i++) - { - int value = TestLibrary.Generator.GetByte(-55); - i1[i] = value; - i2[i] = value; - } - Array.Sort<int>(i1, ArraySort8.M2_compare); - for (int i = 0; i < length - 1; i++) //manually quich sort - { - for (int j = i + 1; j < length; j++) - { - if (i2[i] < i2[j]) - { - int temp = i2[i]; - i2[i] = i2[j]; - i2[j] = temp; - } - } - } - for (int i = 0; i < length; i++) - { - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("003", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: Sort an array which has same elements "); - - try - { - int length = TestLibrary.Generator.GetByte(-55); - string[] s1 = new string[length]; - string[] s2 = new string[length]; - string value = TestLibrary.Generator.GetString(-55, false, 0, 10); - for (int i = 0; i < length; i++) - { - s1[i] = value; - s2[i] = value; - } - Array.Sort<string>(s1, this.M1_compare); - for (int i = 0; i < length; i++) - { - if (s1[i] != s2[i]) - { - TestLibrary.TestFramework.LogError("007", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest4: Sort customized type array using customized comparison"); - - try - { - C[] c_array = new C[5]; - C[] c_result = new C[5]; - for (int i = 0; i < 5; i++) - { - - int value = TestLibrary.Generator.GetInt32(-55); - C c1 = new C(value); - c_array.SetValue(c1, i); - c_result.SetValue(c1, i); - } - //sort manually - C temp; - for (int j = 0; j < 4; j++) - { - for (int i = 0; i < 4; i++) - { - if (c_result[i].value > c_result[i + 1].value) - { - temp = c_result[i]; - c_result[i] = c_result[i + 1]; - c_result[i + 1] = temp; - } - } - } - Array.Sort<C>(c_array, ArraySort8.M3_compare); - for (int i = 0; i < 5; i++) - { - if (c_result[i].value != c_array[i].value) - { - TestLibrary.TestFramework.LogError("009", "The result is not the value as expected"); - retVal = false; - } - } - - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: The array is null "); - - try - { - string[] s1 = null; - Array.Sort<string>(s1, this.M1_compare); - TestLibrary.TestFramework.LogError("101", "The ArgumentNullException is not throw as expected "); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2: The comparison is null"); - - try - { - string[] s1 = new string[7]{"Jack", - "Mary", - "Mike", - "Peter", - "Boy", - "Tom", - "Allin"}; - Array.Sort<string>(s1, (Comparison<string>)null); - TestLibrary.TestFramework.LogError("103", "The ArgumentNullException is not throw as expected "); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest3: The implementation of comparison caused an error during the sort"); - - try - { - string[] s1 = new string[7]{"Jack", - "Mary", - "Mike", - "Peter", - "Boy", - "Tom", - "Allin"}; - Array.Sort<string>(s1, this.M4_compare); - TestLibrary.TestFramework.LogError("105", "The ArgumentException is not throw as expected "); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("106", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - ArraySort8 test = new ArraySort8(); - - TestLibrary.TestFramework.BeginTestCase("ArraySort8"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - private int M1_compare(string s1, string s2) - { - if (s1 == null) - { - if (s2 == null) - { - return 0; - } - else - { - return 1; - } - } - else - { - if (s2 == null) - { - return -1; - } - } - return s1.CompareTo(s2); - } - - private static int M2_compare(int s1, int s2) - { - return -(s1.CompareTo(s2)); - } - - private static int M3_compare(C s1, C s2) - { - if (s1 == null) - { - if (s2 == null) - { - return 0; - } - else - { - return -1; - } - } - else - { - if (s2 == null) - { - return 1; - } - } - return s1.value.CompareTo(s2.value); - } - - private int M4_compare(string s1, string s2) - { - if (s1.CompareTo(s1) == 0) - { - return -1; - } - return s1.CompareTo(s2); - } - - class C - { - protected int c_value; - public C(int a) - { - this.c_value = a; - } - public int value - { - get - { - return c_value; - } - } - - } -} diff --git a/tests/src/CoreMangLib/cti/system/array/arraysort9.cs b/tests/src/CoreMangLib/cti/system/array/arraysort9.cs deleted file mode 100644 index b022c34360..0000000000 --- a/tests/src/CoreMangLib/cti/system/array/arraysort9.cs +++ /dev/null @@ -1,470 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; - -/// <summary> -/// System.Array.Sort<T>(T[],System.Int32,System.Int32) -/// </summary> -public class ArraySort9 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - retVal = NegTest4() && retVal; - retVal = NegTest5() && retVal; - retVal = NegTest6() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest1:Sort a string array using generics "); - - try - { - string[] s1 = new string[6]{"Jack", - "Mary", - "Mike", - "Peter", - "Tom", - "Allin"}; - string[] s2 = new string[6]{"Jack", - "Mary", - "Mike", - "Allin", - "Peter", - "Tom"}; - Array.Sort<string>(s1, 3, 3); - for (int i = 0; i < 6; i++) - { - if (s1[i] != s2[i]) - { - TestLibrary.TestFramework.LogError("001", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Sort an int32 array using generics"); - - try - { - int length = TestLibrary.Generator.GetByte(-55) + 1; - int[] i1 = new int[length]; - int[] i2 = new int[length]; - for (int i = 0; i < length; i++) - { - int value = TestLibrary.Generator.GetByte(-55); - i1[i] = value; - i2[i] = value; - } - int startIdx = GetInt(0, length - 2); - int endIdx = GetInt(startIdx, length - 1); - int count = endIdx - startIdx + 1; - - Array.Sort<int>(i1, startIdx, count); - for (int i = startIdx; i < endIdx; i++) //manually quich sort - { - for (int j = i + 1; j <= endIdx; j++) - { - if (i2[i] > i2[j]) - { - int temp = i2[i]; - i2[i] = i2[j]; - i2[j] = temp; - } - } - } - for (int i = 0; i < length; i++) - { - if (i1[i] != i2[i]) - { - TestLibrary.TestFramework.LogError("003", "The result is not the value as expected,the start index is:" + startIdx.ToString() + "the end index is:" + endIdx.ToString()); - retVal = false; - } - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: Sort a char array from the minimal index to the maximal index of the array "); - - try - { - char[] c1 = new char[10] { 'j', 'h', 'g', 'i', 'f', 'e', 'c', 'd', 'a', 'b' }; - char[] d1 = new char[10] { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j' }; - Array.Sort<char>(c1, 0, c1.Length); - for (int i = 0; i < 10; i++) - { - if (c1[i] != d1[i]) - { - TestLibrary.TestFramework.LogError("005", "The result is not the value as expected"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest4: Sort customized type array using default customized comparer"); - - try - { - int length = TestLibrary.Generator.GetByte(-55); - C[] c_array = new C[length]; - C[] c_result = new C[length]; - for (int i = 0; i < length; i++) - { - int value = TestLibrary.Generator.GetInt32(-55); - C c1 = new C(value); - c_array.SetValue(c1, i); - c_result.SetValue(c1, i); - } - //sort manually - C temp; - for (int j = 0; j < length - 1; j++) - { - for (int i = 0; i < length - 1; i++) - { - if (c_result[i].value < c_result[i + 1].value) - { - temp = c_result[i]; - c_result[i] = c_result[i + 1]; - c_result[i + 1] = temp; - } - } - } - Array.Sort<C>(c_array, 0, length); - for (int i = 0; i < length; i++) - { - if (c_result[i].value != c_array[i].value) - { - TestLibrary.TestFramework.LogError("007", "The result is not the value as expected"); - retVal = false; - } - } - - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: The array is null "); - - try - { - string[] s1 = null; - Array.Sort<string>(s1, 0, 5); - TestLibrary.TestFramework.LogError("101", "The ArgumentNullException is not throw as expected "); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2: The start index is less than the minimal bound of the array"); - - try - { - string[] s1 = new string[6]{"Jack", - "Mary", - "Peter", - "Mike", - "Tom", - "Allin"}; - Array.Sort<string>(s1, -1, 4); - TestLibrary.TestFramework.LogError("103", "The ArgumentOutOfRangeException is not throw as expected "); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest3: The length is less than zero"); - - try - { - string[] s1 = new string[6]{"Jack", - "Mary", - "Peter", - "Mike", - "Tom", - "Allin"}; - Array.Sort<string>(s1, 1, -4); - TestLibrary.TestFramework.LogError("105", "The ArgumentOutOfRangeException is not throw as expected "); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("106", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest4: The start index is greater than the maximal range of the array"); - - try - { - int length = TestLibrary.Generator.GetByte(-55); - string[] s1 = new string[length]; - for (int i = 0; i < length; i++) - { - string value = TestLibrary.Generator.GetString(-55, false, 0, 10); - s1[i] = value; - } - int startIdx = GetInt(0, Byte.MaxValue); - int increment = length; - Array.Sort<string>(s1, startIdx + increment, 3); - TestLibrary.TestFramework.LogError("107", "The ArgumentException is not throw as expected "); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("108", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest5: Elements in array do not implement the IComparable interface "); - - try - { - E[] a1 = new E[4] { new E(), new E(), new E(), new E() }; - Array.Sort<E>(a1, 0, 4); - TestLibrary.TestFramework.LogError("109", "The InvalidOperationException is not throw as expected "); - retVal = false; - } - catch (InvalidOperationException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("110", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest6() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest6: The index argument is valid, but the length argument is too large for that index. "); - - try - { - int length = TestLibrary.Generator.GetByte(-55); - string[] s1 = new string[length]; - for (int i = 0; i < length; i++) - { - string value = TestLibrary.Generator.GetString(-55, false, 0, 10); - s1[i] = value; - } - int startIdx = GetInt(0, length - 1); - int count = GetInt(length + 1, TestLibrary.Generator.GetByte(-55)); - Array.Sort<string>(s1, startIdx, count); - TestLibrary.TestFramework.LogError("11", "The ArgumentException is not throw as expected "); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("112", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - ArraySort9 test = new ArraySort9(); - - TestLibrary.TestFramework.BeginTestCase("ArraySort9"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - class C : IComparable - { - private int c_value; - public C(int a) - { - this.c_value = a; - } - public int value - { - get - { - return c_value; - } - } - #region IComparable Members - - public int CompareTo(object obj) - { - if (this.c_value <= ((C)obj).c_value) - { - return 1; - } - else - { - return -1; - } - } - - #endregion - } - class E - { - public E() { } - } - - #region Help method for geting test data - - private Int32 GetInt(Int32 minValue, Int32 maxValue) - { - try - { - if (minValue == maxValue) - { - return minValue; - } - if (minValue < maxValue) - { - return minValue + TestLibrary.Generator.GetInt32(-55) % (maxValue - minValue); - } - } - catch - { - throw; - } - - return minValue; - } - - #endregion -} diff --git a/tests/src/CoreMangLib/cti/system/attribute/DDB125472_GetHashCode.csproj b/tests/src/CoreMangLib/cti/system/attribute/DDB125472_GetHashCode.csproj deleted file mode 100644 index bc8c0b8387..0000000000 --- a/tests/src/CoreMangLib/cti/system/attribute/DDB125472_GetHashCode.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="ddb125472_gethashcode.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/attribute/GetHashCode.csproj b/tests/src/CoreMangLib/cti/system/attribute/GetHashCode.csproj deleted file mode 100644 index d093c55305..0000000000 --- a/tests/src/CoreMangLib/cti/system/attribute/GetHashCode.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="gethashcode.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/attribute/ddb125472_gethashcode.cs b/tests/src/CoreMangLib/cti/system/attribute/ddb125472_gethashcode.cs deleted file mode 100644 index 33a80e91df..0000000000 --- a/tests/src/CoreMangLib/cti/system/attribute/ddb125472_gethashcode.cs +++ /dev/null @@ -1,59 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Reflection; -/// <summary> -/// Attribute.GetHashCode() -/// </summary> -public class AttributeGetHashCode -{ - public static int Main() - { - AttributeGetHashCode attrGetHashCode = new AttributeGetHashCode(); - TestLibrary.TestFramework.BeginTestCase("Regression Test: DDB 125472"); - if (attrGetHashCode.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - public bool RunTests() - { - bool retVal = true; - TestLibrary.TestFramework.LogInformation("[Regression Test for DDB 125472]"); - retVal = PosTest1() && retVal; - return retVal; - } - #region PositiveTest - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Attribute.GetHashCode()"); - try - { - MyAttribute myAttr = new MyAttribute(); - myAttr.GetHashCode(); - } - catch (FieldAccessException e) - { - TestLibrary.TestFramework.LogError("001", "DDB 125472 is present. Exception:"+e); - retVal = false; - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - #endregion - class MyAttribute : Attribute { } -}
\ No newline at end of file diff --git a/tests/src/CoreMangLib/cti/system/attribute/gethashcode.cs b/tests/src/CoreMangLib/cti/system/attribute/gethashcode.cs deleted file mode 100644 index e6e203cc99..0000000000 --- a/tests/src/CoreMangLib/cti/system/attribute/gethashcode.cs +++ /dev/null @@ -1,73 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Reflection; -/// <summary> -/// Attribute.GetHashCode() -/// </summary> -public class AttributeGetHashCode -{ - public static int Main() - { - AttributeGetHashCode attrGetHashCode = new AttributeGetHashCode(); - TestLibrary.TestFramework.BeginTestCase("AttributeGetHashCode"); - if (attrGetHashCode.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - public bool RunTests() - { - bool retVal = true; - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - return retVal; - } - #region PositiveTest - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1:Get the Attribute Hash Code"); - try - { - int intVal = TestLibrary.Generator.GetInt32(-55); - MyAttribute myAttr = new MyAttribute(intVal); - int hashcode = myAttr.GetHashCode(); - if (hashcode != intVal) - { - TestLibrary.TestFramework.LogError("001", "the ExpectResult is not the ActualResult"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - #endregion - #region ForTestClass - public class MyAttribute : Attribute - { - protected int hashcod; - public MyAttribute(int HashCode) - { - this.hashcod = HashCode; - } - public override int GetHashCode() - { - return base.GetHashCode(); - } - } - #endregion -} diff --git a/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsAll.csproj b/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsAll.csproj deleted file mode 100644 index 7e6ac3428b..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsAll.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="attributetargetsall.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsAssembly.csproj b/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsAssembly.csproj deleted file mode 100644 index 6b4e5f2b01..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsAssembly.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="attributetargetsassembly.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsClass.csproj b/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsClass.csproj deleted file mode 100644 index 09de295431..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsClass.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="attributetargetsclass.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsConstructor.csproj b/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsConstructor.csproj deleted file mode 100644 index 31ba66b601..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsConstructor.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="attributetargetsconstructor.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsDelegate.csproj b/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsDelegate.csproj deleted file mode 100644 index bb95742f19..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsDelegate.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="attributetargetsdelegate.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsEnum.csproj b/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsEnum.csproj deleted file mode 100644 index b3bbef19ec..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsEnum.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="attributetargetsenum.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsEvent.csproj b/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsEvent.csproj deleted file mode 100644 index 7f89e54ae5..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsEvent.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="attributetargetsevent.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsField.csproj b/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsField.csproj deleted file mode 100644 index 4c6ccbdd91..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsField.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="attributetargetsfield.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsGenericParameter.csproj b/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsGenericParameter.csproj deleted file mode 100644 index d989440292..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsGenericParameter.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="attributetargetsgenericparameter.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsInterface.csproj b/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsInterface.csproj deleted file mode 100644 index 3bedd9e2ee..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsInterface.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="attributetargetsinterface.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsMethod.csproj b/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsMethod.csproj deleted file mode 100644 index f46fc0a65f..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsMethod.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="attributetargetsmethod.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsModule.csproj b/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsModule.csproj deleted file mode 100644 index f515dd6578..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsModule.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="attributetargetsmodule.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsParameter.csproj b/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsParameter.csproj deleted file mode 100644 index 680eb26f06..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsParameter.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="attributetargetsparameter.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsProperty.csproj b/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsProperty.csproj deleted file mode 100644 index 67a34fd209..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsProperty.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="attributetargetsproperty.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsReturnValue.csproj b/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsReturnValue.csproj deleted file mode 100644 index 447a48da04..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsReturnValue.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="attributetargetsreturnvalue.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsStruct.csproj b/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsStruct.csproj deleted file mode 100644 index 5387738614..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributetargets/AttributeTargetsStruct.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="attributetargetsstruct.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsall.cs b/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsall.cs Binary files differdeleted file mode 100644 index b1b407ad24..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsall.cs +++ /dev/null diff --git a/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsassembly.cs b/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsassembly.cs Binary files differdeleted file mode 100644 index b469377370..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsassembly.cs +++ /dev/null diff --git a/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsclass.cs b/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsclass.cs Binary files differdeleted file mode 100644 index 7caf23bc39..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsclass.cs +++ /dev/null diff --git a/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsconstructor.cs b/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsconstructor.cs Binary files differdeleted file mode 100644 index dc816c6369..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsconstructor.cs +++ /dev/null diff --git a/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsdelegate.cs b/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsdelegate.cs Binary files differdeleted file mode 100644 index f0fc9c91f2..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsdelegate.cs +++ /dev/null diff --git a/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsenum.cs b/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsenum.cs Binary files differdeleted file mode 100644 index 0bc708fe06..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsenum.cs +++ /dev/null diff --git a/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsevent.cs b/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsevent.cs Binary files differdeleted file mode 100644 index 79027882ce..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsevent.cs +++ /dev/null diff --git a/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsfield.cs b/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsfield.cs Binary files differdeleted file mode 100644 index 196428b947..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsfield.cs +++ /dev/null diff --git a/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsgenericparameter.cs b/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsgenericparameter.cs Binary files differdeleted file mode 100644 index 1fa5061a4d..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsgenericparameter.cs +++ /dev/null diff --git a/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsinterface.cs b/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsinterface.cs Binary files differdeleted file mode 100644 index 426a75c592..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsinterface.cs +++ /dev/null diff --git a/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsmethod.cs b/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsmethod.cs Binary files differdeleted file mode 100644 index ff0fa5cd03..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsmethod.cs +++ /dev/null diff --git a/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsmodule.cs b/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsmodule.cs Binary files differdeleted file mode 100644 index 4c94c482f8..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsmodule.cs +++ /dev/null diff --git a/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsparameter.cs b/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsparameter.cs Binary files differdeleted file mode 100644 index dccec71031..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsparameter.cs +++ /dev/null diff --git a/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsproperty.cs b/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsproperty.cs Binary files differdeleted file mode 100644 index 70ee4cec60..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsproperty.cs +++ /dev/null diff --git a/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsreturnvalue.cs b/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsreturnvalue.cs Binary files differdeleted file mode 100644 index b1edc3d0d6..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsreturnvalue.cs +++ /dev/null diff --git a/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsstruct.cs b/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsstruct.cs Binary files differdeleted file mode 100644 index 3f4b17a66b..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributetargets/attributetargetsstruct.cs +++ /dev/null diff --git a/tests/src/CoreMangLib/cti/system/attributeusageattribute/AttributeUsageAttributeAllowMultiple.csproj b/tests/src/CoreMangLib/cti/system/attributeusageattribute/AttributeUsageAttributeAllowMultiple.csproj deleted file mode 100644 index 60b919218d..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributeusageattribute/AttributeUsageAttributeAllowMultiple.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="attributeusageattributeallowmultiple.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/attributeusageattribute/AttributeUsageAttributeCtor.csproj b/tests/src/CoreMangLib/cti/system/attributeusageattribute/AttributeUsageAttributeCtor.csproj deleted file mode 100644 index bcb4eb1d0c..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributeusageattribute/AttributeUsageAttributeCtor.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="attributeusageattributector.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/attributeusageattribute/attributeusageattributeallowmultiple.cs b/tests/src/CoreMangLib/cti/system/attributeusageattribute/attributeusageattributeallowmultiple.cs deleted file mode 100644 index 32d14d7784..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributeusageattribute/attributeusageattributeallowmultiple.cs +++ /dev/null @@ -1,96 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -///<summary> -///System.AttributeUsageAttribute.AllowMultiple -///</summary> - -public class AttributeUsageAttributeAllowMultiple -{ - - public static int Main() - { - AttributeUsageAttributeAllowMultiple testObj = new AttributeUsageAttributeAllowMultiple(); - TestLibrary.TestFramework.BeginTestCase("for property of System.AttributeUsageAttribute.AllowMultiple"); - if (testObj.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - - } - - public bool RunTests() - { - bool retVal = true; - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - return retVal; - } - - - #region Test Logic - - public bool PosTest1() - { - bool retVal = true; - bool expectedValue = true; - - AttributeUsageAttribute aUT = new AttributeUsageAttribute(AttributeTargets.All); - - TestLibrary.TestFramework.BeginScenario("PosTest1:get and set AllowMultiple as true."); - try - { - aUT.AllowMultiple = expectedValue; - if (expectedValue != aUT.AllowMultiple) - { - TestLibrary.TestFramework.LogError("001", "ExpectedValue(" + aUT.AllowMultiple + ") !=ActualValue(" + expectedValue + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - bool expectedValue = false; - - AttributeUsageAttribute aUT = new AttributeUsageAttribute(AttributeTargets.All); - - TestLibrary.TestFramework.BeginScenario("PosTest2:get and set AllowMultiple as false."); - try - { - aUT.AllowMultiple = expectedValue; - if (expectedValue != aUT.AllowMultiple) - { - TestLibrary.TestFramework.LogError("003", "ExpectedValue(" + aUT.AllowMultiple + ") !=ActualValue(" + expectedValue + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - #endregion -} diff --git a/tests/src/CoreMangLib/cti/system/attributeusageattribute/attributeusageattributector.cs b/tests/src/CoreMangLib/cti/system/attributeusageattribute/attributeusageattributector.cs deleted file mode 100644 index b4540e104e..0000000000 --- a/tests/src/CoreMangLib/cti/system/attributeusageattribute/attributeusageattributector.cs +++ /dev/null @@ -1,487 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -///<summary> -///System.AttributeUsageAttribute.AttributeUsageAttribute(AttributeTargets validOn) -///</summary> - -public class AttributeUsageAttributeCtor -{ - - public static int Main() - { - AttributeUsageAttributeCtor testObj = new AttributeUsageAttributeCtor(); - TestLibrary.TestFramework.BeginTestCase("for Constructor of System.AttributeUsageAttribute"); - if (testObj.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - - } - - public bool RunTests() - { - bool retVal = true; - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - retVal = PosTest8() && retVal; - retVal = PosTest9() && retVal; - retVal = PosTest10() && retVal; - retVal = PosTest11() && retVal; - retVal = PosTest12() && retVal; - retVal = PosTest13() && retVal; - retVal = PosTest14() && retVal; - retVal = PosTest15() && retVal; - retVal = PosTest16() && retVal; - retVal = PosTest17() && retVal; - return retVal; - } - - - #region Test Logic - public bool PosTest1() - { - bool retVal = true; - - AttributeTargets validOn = AttributeTargets.All; - - TestLibrary.TestFramework.BeginScenario("PosTest1:set ValidOn as AttributeTargets.All and create a instance of class AttributeUsageAttribute."); - try - { - AttributeUsageAttribute aUT = new AttributeUsageAttribute(validOn); - if (aUT == null) - { - TestLibrary.TestFramework.LogError("001", "ExpectedObject(Not null) !=Actual(null)"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - AttributeTargets validOn = AttributeTargets.Assembly; - - TestLibrary.TestFramework.BeginScenario("PosTest2:set ValidOn as AttributeTargets.Assembly and create a instance of class AttributeUsageAttribute."); - try - { - AttributeUsageAttribute aUT = new AttributeUsageAttribute(validOn); - if (aUT == null) - { - TestLibrary.TestFramework.LogError("003", "ExpectedObject(Not null) !=Actual(null)"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - AttributeTargets validOn = AttributeTargets.Module; - - TestLibrary.TestFramework.BeginScenario("PosTest3:set ValidOn as AttributeTargets.Module and create a instance of class AttributeUsageAttribute."); - try - { - AttributeUsageAttribute aUT = new AttributeUsageAttribute(validOn); - if (aUT == null) - { - TestLibrary.TestFramework.LogError("005", "ExpectedObject(Not null) !=Actual(null)"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - AttributeTargets validOn = AttributeTargets.Class; - - TestLibrary.TestFramework.BeginScenario("PosTest4:set ValidOn as AttributeTargets.Class and create a instance of class AttributeUsageAttribute."); - try - { - AttributeUsageAttribute aUT = new AttributeUsageAttribute(validOn); - if (aUT == null) - { - TestLibrary.TestFramework.LogError("007", "ExpectedObject(Not null) !=Actual(null)"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - - AttributeTargets validOn = AttributeTargets.Struct; - - TestLibrary.TestFramework.BeginScenario("PosTest5:set ValidOn as AttributeTargets.Struct and create a instance of class AttributeUsageAttribute."); - try - { - AttributeUsageAttribute aUT = new AttributeUsageAttribute(validOn); - if (aUT == null) - { - TestLibrary.TestFramework.LogError("009", "ExpectedObject(Not null) !=Actual(null)"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - - AttributeTargets validOn = AttributeTargets.All; - - TestLibrary.TestFramework.BeginScenario("PosTest6:set ValidOn as AttributeTargets.Enum and create a instance of class AttributeUsageAttribute."); - try - { - AttributeUsageAttribute aUT = new AttributeUsageAttribute(validOn); - if (aUT == null) - { - TestLibrary.TestFramework.LogError("011", "ExpectedObject(Not null) !=Actual(null)"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - - public bool PosTest7() - { - bool retVal = true; - - AttributeTargets validOn = AttributeTargets.Constructor; - - TestLibrary.TestFramework.BeginScenario("PosTest7:set ValidOn as AttributeTargets.Constructor and create a instance of class AttributeUsageAttribute."); - try - { - AttributeUsageAttribute aUT = new AttributeUsageAttribute(validOn); - if (aUT == null) - { - TestLibrary.TestFramework.LogError("013", "ExpectedObject(Not null) !=Actual(null)"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("014", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest8() - { - bool retVal = true; - - AttributeTargets validOn = AttributeTargets.Method; - - TestLibrary.TestFramework.BeginScenario("PosTest8:set ValidOn as AttributeTargets.Method and create a instance of class AttributeUsageAttribute."); - try - { - AttributeUsageAttribute aUT = new AttributeUsageAttribute(validOn); - if (aUT == null) - { - TestLibrary.TestFramework.LogError("015", "ExpectedObject(Not null) !=Actual(null)"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("016", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest9() - { - bool retVal = true; - - AttributeTargets validOn = AttributeTargets.Property; - - TestLibrary.TestFramework.BeginScenario("PosTest9:set ValidOn as AttributeTargets.Property and create a instance of class AttributeUsageAttribute."); - try - { - AttributeUsageAttribute aUT = new AttributeUsageAttribute(validOn); - if (aUT == null) - { - TestLibrary.TestFramework.LogError("017", "ExpectedObject(Not null) !=Actual(null)"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("018", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest10() - { - bool retVal = true; - - AttributeTargets validOn = AttributeTargets.Field; - - TestLibrary.TestFramework.BeginScenario("PosTest10:set ValidOn as AttributeTargets.Field and create a instance of class AttributeUsageAttribute."); - try - { - AttributeUsageAttribute aUT = new AttributeUsageAttribute(validOn); - if (aUT == null) - { - TestLibrary.TestFramework.LogError("019", "ExpectedObject(Not null) !=Actual(null)"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("020", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest11() - { - bool retVal = true; - - AttributeTargets validOn = AttributeTargets.Event; - - TestLibrary.TestFramework.BeginScenario("PosTest11:set ValidOn as AttributeTargets.Event and create a instance of class AttributeUsageAttribute."); - try - { - AttributeUsageAttribute aUT = new AttributeUsageAttribute(validOn); - if (aUT == null) - { - TestLibrary.TestFramework.LogError("021", "ExpectedObject(Not null) !=Actual(null)"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("022", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest12() - { - bool retVal = true; - - AttributeTargets validOn = AttributeTargets.Interface; - - TestLibrary.TestFramework.BeginScenario("PosTest12:set ValidOn as AttributeTargets.Interface and create a instance of class AttributeUsageAttribute."); - try - { - AttributeUsageAttribute aUT = new AttributeUsageAttribute(validOn); - if (aUT == null) - { - TestLibrary.TestFramework.LogError("023", "ExpectedObject(Not null) !=Actual(null)"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("024", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest13() - { - bool retVal = true; - - AttributeTargets validOn = AttributeTargets.Parameter; - - TestLibrary.TestFramework.BeginScenario("PosTest13:set ValidOn as AttributeTargets.Parameter and create a instance of class AttributeUsageAttribute."); - try - { - AttributeUsageAttribute aUT = new AttributeUsageAttribute(validOn); - if (aUT == null) - { - TestLibrary.TestFramework.LogError("025", "ExpectedObject(Not null) !=Actual(null)"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("026", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest14() - { - bool retVal = true; - - AttributeTargets validOn = AttributeTargets.Delegate; - - TestLibrary.TestFramework.BeginScenario("PosTest14:set ValidOn as AttributeTargets.Delegate and create a instance of class AttributeUsageAttribute."); - try - { - AttributeUsageAttribute aUT = new AttributeUsageAttribute(validOn); - if (aUT == null) - { - TestLibrary.TestFramework.LogError("027", "ExpectedObject(Not null) !=Actual(null)"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("028", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest15() - { - bool retVal = true; - - AttributeTargets validOn = AttributeTargets.ReturnValue; - - TestLibrary.TestFramework.BeginScenario("PosTest15:set ValidOn as AttributeTargets.ReturnValue and create a instance of class AttributeUsageAttribute."); - try - { - AttributeUsageAttribute aUT = new AttributeUsageAttribute(validOn); - if (aUT == null) - { - TestLibrary.TestFramework.LogError("029", "ExpectedObject(Not null) !=Actual(null)"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("030", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest16() - { - bool retVal = true; - - AttributeTargets validOn = AttributeTargets.GenericParameter; - - TestLibrary.TestFramework.BeginScenario("PosTest16:set ValidOn as AttributeTargets.GenericParameter and create a instance of class AttributeUsageAttribute."); - try - { - AttributeUsageAttribute aUT = new AttributeUsageAttribute(validOn); - if (aUT == null) - { - TestLibrary.TestFramework.LogError("031", "ExpectedObject(Not null) !=Actual(null)"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("032", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - - public bool PosTest17() - { - bool retVal = true; - - AttributeTargets expectedValue = (AttributeTargets)(TestLibrary.Generator.GetInt32(-55) % (UInt16.MaxValue + 1)); - - TestLibrary.TestFramework.BeginScenario("PosTest17:set ValidOn as Random int16 and try to get it."); - try - { - AttributeUsageAttribute aUT = new AttributeUsageAttribute(expectedValue); - - if (aUT == null) - { - TestLibrary.TestFramework.LogError("033", "ExpectedObject(Not null) !=Actual(null)"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("034", "Unexpected exception:" + e); - retVal = false; - } - - return retVal; - } - - #endregion -} diff --git a/tests/src/CoreMangLib/cti/system/diagnostics/debuggingmodes/DebuggingModesDefault.csproj b/tests/src/CoreMangLib/cti/system/diagnostics/debuggingmodes/DebuggingModesDefault.csproj deleted file mode 100644 index d7298812af..0000000000 --- a/tests/src/CoreMangLib/cti/system/diagnostics/debuggingmodes/DebuggingModesDefault.csproj +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="debuggingmodesdefault.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> diff --git a/tests/src/CoreMangLib/cti/system/diagnostics/debuggingmodes/DebuggingModesDisableOptimizations.csproj b/tests/src/CoreMangLib/cti/system/diagnostics/debuggingmodes/DebuggingModesDisableOptimizations.csproj deleted file mode 100644 index 162b4d0645..0000000000 --- a/tests/src/CoreMangLib/cti/system/diagnostics/debuggingmodes/DebuggingModesDisableOptimizations.csproj +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="debuggingmodesdisableoptimizations.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> diff --git a/tests/src/CoreMangLib/cti/system/diagnostics/debuggingmodes/DebuggingModesEnableEditAndContinue.csproj b/tests/src/CoreMangLib/cti/system/diagnostics/debuggingmodes/DebuggingModesEnableEditAndContinue.csproj deleted file mode 100644 index dd5a5ad8b7..0000000000 --- a/tests/src/CoreMangLib/cti/system/diagnostics/debuggingmodes/DebuggingModesEnableEditAndContinue.csproj +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="debuggingmodesenableeditandcontinue.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> diff --git a/tests/src/CoreMangLib/cti/system/diagnostics/debuggingmodes/DebuggingModesIgnoreSymbolStoreSequencePoints.csproj b/tests/src/CoreMangLib/cti/system/diagnostics/debuggingmodes/DebuggingModesIgnoreSymbolStoreSequencePoints.csproj deleted file mode 100644 index 12827197ba..0000000000 --- a/tests/src/CoreMangLib/cti/system/diagnostics/debuggingmodes/DebuggingModesIgnoreSymbolStoreSequencePoints.csproj +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="debuggingmodesignoresymbolstoresequencepoints.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> diff --git a/tests/src/CoreMangLib/cti/system/diagnostics/debuggingmodes/DebuggingModesNone.csproj b/tests/src/CoreMangLib/cti/system/diagnostics/debuggingmodes/DebuggingModesNone.csproj deleted file mode 100644 index 48ca8c7655..0000000000 --- a/tests/src/CoreMangLib/cti/system/diagnostics/debuggingmodes/DebuggingModesNone.csproj +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="debuggingmodesnone.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> diff --git a/tests/src/CoreMangLib/cti/system/diagnostics/debuggingmodes/debuggingmodesdefault.cs b/tests/src/CoreMangLib/cti/system/diagnostics/debuggingmodes/debuggingmodesdefault.cs deleted file mode 100644 index 2198968b2f..0000000000 --- a/tests/src/CoreMangLib/cti/system/diagnostics/debuggingmodes/debuggingmodesdefault.cs +++ /dev/null @@ -1,92 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Diagnostics; - -/// <summary> -/// DebuggingModes.Default (v-yaduoj) -/// </summary> -public class DebuggingModesElement -{ - private enum MyDebuggingModes - { - None = 0x0, - Default = 0x1, - DisableOptimizations = 0x100, - IgnoreSymbolStoreSequencePoints = 0x2, - EnableEditAndContinue = 0x4 - } - - public static int Main() - { - DebuggingModesElement testObj = new DebuggingModesElement(); - - TestLibrary.TestFramework.BeginTestCase("for enum value: DebuggingModes.Default"); - if (testObj.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - return retVal; - } - - #region Positive tests - public bool PosTest1() - { - const string c_TEST_ID = "P001"; - string testDesc = "PosTest1: value of DebuggableAttribute.DebuggingModes."; - DebuggableAttribute.DebuggingModes modes = DebuggableAttribute.DebuggingModes.Default; - testDesc += modes; - MyDebuggingModes expectedModes = MyDebuggingModes.Default; - return ExecutePosTest(c_TEST_ID, testDesc, "001", "002", modes, expectedModes); - } - #endregion - - #region Helper methods for positive tests - private bool ExecutePosTest(string testId, string testDesc, - string errorNum1, string errorNum2, - DebuggableAttribute.DebuggingModes actualModes, - MyDebuggingModes expectedModes) - { - bool retVal = true; - string errorDesc; - - TestLibrary.TestFramework.BeginScenario(testDesc); - try - { - if (actualModes != (DebuggableAttribute.DebuggingModes)expectedModes) - { - errorDesc = "Value of " + actualModes + " is not the value " + (int)expectedModes + - " as expected: Actually(" + (int)actualModes + ")"; - TestLibrary.TestFramework.LogError(errorNum1 + " TestId-" + testId, errorDesc); - retVal = false; - } - } - catch (Exception e) - { - errorDesc = "Unexpected exception: " + e; - TestLibrary.TestFramework.LogError(errorNum2 + " TestId-" + testId, errorDesc); - retVal = false; - } - - return retVal; - } - #endregion -} diff --git a/tests/src/CoreMangLib/cti/system/diagnostics/debuggingmodes/debuggingmodesdisableoptimizations.cs b/tests/src/CoreMangLib/cti/system/diagnostics/debuggingmodes/debuggingmodesdisableoptimizations.cs deleted file mode 100644 index ff65994d0a..0000000000 --- a/tests/src/CoreMangLib/cti/system/diagnostics/debuggingmodes/debuggingmodesdisableoptimizations.cs +++ /dev/null @@ -1,92 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Diagnostics; - -/// <summary> -/// DebuggingModes.DisableOptimizations (v-yaduoj) -/// </summary> -public class DebuggingModesElement -{ - private enum MyDebuggingModes - { - None = 0x0, - Default = 0x1, - DisableOptimizations = 0x100, - IgnoreSymbolStoreSequencePoints = 0x2, - EnableEditAndContinue = 0x4 - } - - public static int Main() - { - DebuggingModesElement testObj = new DebuggingModesElement(); - - TestLibrary.TestFramework.BeginTestCase("for enum value: DebuggingModes.DisableOptimizations"); - if (testObj.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - return retVal; - } - - #region Positive tests - public bool PosTest1() - { - const string c_TEST_ID = "P001"; - string testDesc = "PosTest1: value of DebuggableAttribute.DebuggingModes."; - DebuggableAttribute.DebuggingModes modes = DebuggableAttribute.DebuggingModes.DisableOptimizations; - testDesc += modes; - MyDebuggingModes expectedModes = MyDebuggingModes.DisableOptimizations; - return ExecutePosTest(c_TEST_ID, testDesc, "001", "002", modes, expectedModes); - } - #endregion - - #region Helper methods for positive tests - private bool ExecutePosTest(string testId, string testDesc, - string errorNum1, string errorNum2, - DebuggableAttribute.DebuggingModes actualModes, - MyDebuggingModes expectedModes) - { - bool retVal = true; - string errorDesc; - - TestLibrary.TestFramework.BeginScenario(testDesc); - try - { - if (actualModes != (DebuggableAttribute.DebuggingModes)expectedModes) - { - errorDesc = "Value of " + actualModes + " is not the value " + (int)expectedModes + - " as expected: Actually(" + (int)actualModes + ")"; - TestLibrary.TestFramework.LogError(errorNum1 + " TestId-" + testId, errorDesc); - retVal = false; - } - } - catch (Exception e) - { - errorDesc = "Unexpected exception: " + e; - TestLibrary.TestFramework.LogError(errorNum2 + " TestId-" + testId, errorDesc); - retVal = false; - } - - return retVal; - } - #endregion -} diff --git a/tests/src/CoreMangLib/cti/system/diagnostics/debuggingmodes/debuggingmodesenableeditandcontinue.cs b/tests/src/CoreMangLib/cti/system/diagnostics/debuggingmodes/debuggingmodesenableeditandcontinue.cs deleted file mode 100644 index 83a1deb50a..0000000000 --- a/tests/src/CoreMangLib/cti/system/diagnostics/debuggingmodes/debuggingmodesenableeditandcontinue.cs +++ /dev/null @@ -1,92 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Diagnostics; - -/// <summary> -/// DebuggingModes.EnableEditAndContinue (v-yaduoj) -/// </summary> -public class DebuggingModesElement -{ - private enum MyDebuggingModes - { - None = 0x0, - Default = 0x1, - DisableOptimizations = 0x100, - IgnoreSymbolStoreSequencePoints = 0x2, - EnableEditAndContinue = 0x4 - } - - public static int Main() - { - DebuggingModesElement testObj = new DebuggingModesElement(); - - TestLibrary.TestFramework.BeginTestCase("for enum value: DebuggingModes.EnableEditAndContinue"); - if (testObj.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - return retVal; - } - - #region Positive tests - public bool PosTest1() - { - const string c_TEST_ID = "P001"; - string testDesc = "PosTest1: value of DebuggableAttribute.DebuggingModes."; - DebuggableAttribute.DebuggingModes modes = DebuggableAttribute.DebuggingModes.EnableEditAndContinue; - testDesc += modes; - MyDebuggingModes expectedModes = MyDebuggingModes.EnableEditAndContinue; - return ExecutePosTest(c_TEST_ID, testDesc, "001", "002", modes, expectedModes); - } - #endregion - - #region Helper methods for positive tests - private bool ExecutePosTest(string testId, string testDesc, - string errorNum1, string errorNum2, - DebuggableAttribute.DebuggingModes actualModes, - MyDebuggingModes expectedModes) - { - bool retVal = true; - string errorDesc; - - TestLibrary.TestFramework.BeginScenario(testDesc); - try - { - if (actualModes != (DebuggableAttribute.DebuggingModes)expectedModes) - { - errorDesc = "Value of " + actualModes + " is not the value " + (int)expectedModes + - " as expected: Actually(" + (int)actualModes + ")"; - TestLibrary.TestFramework.LogError(errorNum1 + " TestId-" + testId, errorDesc); - retVal = false; - } - } - catch (Exception e) - { - errorDesc = "Unexpected exception: " + e; - TestLibrary.TestFramework.LogError(errorNum2 + " TestId-" + testId, errorDesc); - retVal = false; - } - - return retVal; - } - #endregion -} diff --git a/tests/src/CoreMangLib/cti/system/diagnostics/debuggingmodes/debuggingmodesignoresymbolstoresequencepoints.cs b/tests/src/CoreMangLib/cti/system/diagnostics/debuggingmodes/debuggingmodesignoresymbolstoresequencepoints.cs deleted file mode 100644 index cd3ddd05ae..0000000000 --- a/tests/src/CoreMangLib/cti/system/diagnostics/debuggingmodes/debuggingmodesignoresymbolstoresequencepoints.cs +++ /dev/null @@ -1,92 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Diagnostics; - -/// <summary> -/// DebuggingModes.IgnoreSymbolStoreSequencePoints (v-yaduoj) -/// </summary> -public class DebuggingModesElement -{ - private enum MyDebuggingModes - { - None = 0x0, - Default = 0x1, - DisableOptimizations = 0x100, - IgnoreSymbolStoreSequencePoints = 0x2, - EnableEditAndContinue = 0x4 - } - - public static int Main() - { - DebuggingModesElement testObj = new DebuggingModesElement(); - - TestLibrary.TestFramework.BeginTestCase("for enum value: DebuggingModes.IgnoreSymbolStoreSequencePoints"); - if (testObj.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - return retVal; - } - - #region Positive tests - public bool PosTest1() - { - const string c_TEST_ID = "P001"; - string testDesc = "PosTest1: value of DebuggableAttribute.DebuggingModes."; - DebuggableAttribute.DebuggingModes modes = DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints; - testDesc += modes; - MyDebuggingModes expectedModes = MyDebuggingModes.IgnoreSymbolStoreSequencePoints; - return ExecutePosTest(c_TEST_ID, testDesc, "001", "002", modes, expectedModes); - } - #endregion - - #region Helper methods for positive tests - private bool ExecutePosTest(string testId, string testDesc, - string errorNum1, string errorNum2, - DebuggableAttribute.DebuggingModes actualModes, - MyDebuggingModes expectedModes) - { - bool retVal = true; - string errorDesc; - - TestLibrary.TestFramework.BeginScenario(testDesc); - try - { - if (actualModes != (DebuggableAttribute.DebuggingModes)expectedModes) - { - errorDesc = "Value of " + actualModes + " is not the value " + (int)expectedModes + - " as expected: Actually(" + (int)actualModes + ")"; - TestLibrary.TestFramework.LogError(errorNum1 + " TestId-" + testId, errorDesc); - retVal = false; - } - } - catch (Exception e) - { - errorDesc = "Unexpected exception: " + e; - TestLibrary.TestFramework.LogError(errorNum2 + " TestId-" + testId, errorDesc); - retVal = false; - } - - return retVal; - } - #endregion -} diff --git a/tests/src/CoreMangLib/cti/system/diagnostics/debuggingmodes/debuggingmodesnone.cs b/tests/src/CoreMangLib/cti/system/diagnostics/debuggingmodes/debuggingmodesnone.cs deleted file mode 100644 index 6d0263d31e..0000000000 --- a/tests/src/CoreMangLib/cti/system/diagnostics/debuggingmodes/debuggingmodesnone.cs +++ /dev/null @@ -1,92 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Diagnostics; - -/// <summary> -/// DebuggingModes.None (v-yaduoj) -/// </summary> -public class DebuggingModesElement -{ - private enum MyDebuggingModes - { - None = 0x0, - Default = 0x1, - DisableOptimizations = 0x100, - IgnoreSymbolStoreSequencePoints = 0x2, - EnableEditAndContinue = 0x4 - } - - public static int Main() - { - DebuggingModesElement testObj = new DebuggingModesElement(); - - TestLibrary.TestFramework.BeginTestCase("for enum value: DebuggingModes.None"); - if (testObj.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - return retVal; - } - - #region Positive tests - public bool PosTest1() - { - const string c_TEST_ID = "P001"; - string testDesc = "PosTest1: value of DebuggableAttribute.DebuggingModes."; - DebuggableAttribute.DebuggingModes modes = DebuggableAttribute.DebuggingModes.None; - testDesc += modes; - MyDebuggingModes expectedModes = MyDebuggingModes.None; - return ExecutePosTest(c_TEST_ID, testDesc, "001", "002", modes, expectedModes); - } - #endregion - - #region Helper methods for positive tests - private bool ExecutePosTest(string testId, string testDesc, - string errorNum1, string errorNum2, - DebuggableAttribute.DebuggingModes actualModes, - MyDebuggingModes expectedModes) - { - bool retVal = true; - string errorDesc; - - TestLibrary.TestFramework.BeginScenario(testDesc); - try - { - if (actualModes != (DebuggableAttribute.DebuggingModes)expectedModes) - { - errorDesc = "Value of " + actualModes + " is not the value " + (int)expectedModes + - " as expected: Actually(" + (int)actualModes + ")"; - TestLibrary.TestFramework.LogError(errorNum1 + " TestId-" + testId, errorDesc); - retVal = false; - } - } - catch (Exception e) - { - errorDesc = "Unexpected exception: " + e; - TestLibrary.TestFramework.LogError(errorNum2 + " TestId-" + testId, errorDesc); - retVal = false; - } - - return retVal; - } - #endregion -} diff --git a/tests/src/CoreMangLib/cti/system/enum/EnumIsDefined.csproj b/tests/src/CoreMangLib/cti/system/enum/EnumIsDefined.csproj deleted file mode 100644 index 8fd2956a94..0000000000 --- a/tests/src/CoreMangLib/cti/system/enum/EnumIsDefined.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="enumisdefined.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/enum/EnumToObjectb.csproj b/tests/src/CoreMangLib/cti/system/enum/EnumToObjectb.csproj deleted file mode 100644 index a701896670..0000000000 --- a/tests/src/CoreMangLib/cti/system/enum/EnumToObjectb.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="enumtoobjectb.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/enum/EnumToString.csproj b/tests/src/CoreMangLib/cti/system/enum/EnumToString.csproj deleted file mode 100644 index 4c661e03b0..0000000000 --- a/tests/src/CoreMangLib/cti/system/enum/EnumToString.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="enumtostring.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/enum/EnumToString3.csproj b/tests/src/CoreMangLib/cti/system/enum/EnumToString3.csproj deleted file mode 100644 index 7bfa4c4e0b..0000000000 --- a/tests/src/CoreMangLib/cti/system/enum/EnumToString3.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="enumtostring3.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/enum/enumisdefined.cs b/tests/src/CoreMangLib/cti/system/enum/enumisdefined.cs deleted file mode 100644 index ae85dcd91b..0000000000 --- a/tests/src/CoreMangLib/cti/system/enum/enumisdefined.cs +++ /dev/null @@ -1,389 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Globalization; -using TestLibrary; - -public enum EnumInt32 : int -{ - One, Two, Three -} - -public enum EnumByte : byte -{ - One, Two, Three -} - -class EnumIsDefined -{ - static int Main() - { - EnumIsDefined test = new EnumIsDefined(); - - TestFramework.BeginTestCase("Enum.IsDefined(enumType,value)"); - - if (test.RunTests()) - { - TestFramework.EndTestCase(); - TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestFramework.EndTestCase(); - TestFramework.LogInformation("FAIL"); - return 0; - } - - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - retVal = PosTest8() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - retVal = NegTest4() && retVal; - retVal = NegTest5() && retVal; - //Type ctor are now internal, so inheritance of Type class is not allowed on SL - - return retVal; - } - - - - public bool PosTest1() - { - bool retVal = false; - - TestLibrary.TestFramework.BeginScenario("PosTest1: use enumType and value that is contained in the enum (1)"); - - try - { - if (Enum.IsDefined(typeof(EnumInt32), 1)) - { - retVal = true; - } - else - { - TestLibrary.TestFramework.LogError("001", "Enum.IsDefined(typeof(EnumInt32), 1) returned false"); - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = false; - - TestLibrary.TestFramework.BeginScenario("PosTest2: use enumType and value that is not contained in the enum (5)"); - - try - { - if (!Enum.IsDefined(typeof(EnumInt32), 5)) - { - retVal = true; - } - else - { - TestLibrary.TestFramework.LogError("003", "Enum.IsDefined(typeof(EnumInt32), 5) returned true"); - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = false; - - TestLibrary.TestFramework.BeginScenario("PosTest3: use enumType and value that is contained in the enum (One)"); - - try - { - if (Enum.IsDefined(typeof(EnumInt32), "One")) - { - retVal = true; - } - else - { - TestLibrary.TestFramework.LogError("005", "Enum.IsDefined(typeof(EnumInt32), \"One\") returned false"); - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = false; - - TestLibrary.TestFramework.BeginScenario("PosTest4: use enumType and value that is not contained in the enum (ONE)"); - - try - { - if (!Enum.IsDefined(typeof(EnumInt32), "ONE")) - { - retVal = true; - } - else - { - TestLibrary.TestFramework.LogError("007", "Enum.IsDefined(typeof(EnumInt32), \"ONE\") returned true"); - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = false; - - TestLibrary.TestFramework.BeginScenario("PosTest5: use enumType and value that is contained in the enum (Enum1.One)"); - - try - { - if (Enum.IsDefined(typeof(EnumInt32), EnumInt32.One)) - { - retVal = true; - } - else - { - TestLibrary.TestFramework.LogError("009", "Enum.IsDefined(typeof(EnumInt32), EnumInt32.One) returned false"); - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e); - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = false; - - TestLibrary.TestFramework.BeginScenario("PosTest6: Try different underlying type, use enumType and value that is contained in the enum (One)"); - - try - { - if (Enum.IsDefined(typeof(EnumByte), "One")) - { - retVal = true; - } - else - { - TestLibrary.TestFramework.LogError("011", "Enum.IsDefined(typeof(EnumByte), \"One\") returned false"); - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpected exception: " + e); - } - - return retVal; - } - - public bool PosTest7() - { - bool retVal = false; - - TestLibrary.TestFramework.BeginScenario("PosTest7: Try different underlying type, use enumType and value that is not contained in the enum (Five)"); - - try - { - if (!Enum.IsDefined(typeof(EnumByte), "Five")) - { - retVal = true; - } - else - { - TestLibrary.TestFramework.LogError("013", "Enum.IsDefined(typeof(EnumByte), \"Five\") returned true"); - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("014", "Unexpected exception: " + e); - } - - return retVal; - } - - public bool PosTest8() - { - bool retVal = false; - - TestLibrary.TestFramework.BeginScenario("PosTest8: Try different underlying type, use enumType and value that is contained in the enum ((byte)1)"); - - try - { - if (Enum.IsDefined(typeof(EnumByte), (byte)1)) - { - retVal = true; - } - else - { - TestLibrary.TestFramework.LogError("015", "Enum.IsDefined(typeof(EnumByte), (byte)1) returned false"); - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("016", "Unexpected exception: " + e); - } - - return retVal; - } - - public bool NegTest1() - { - bool retVal = false; - - TestLibrary.TestFramework.BeginScenario("NegTest1: enumType is null"); - - try - { - Enum.IsDefined(null,1); - TestLibrary.TestFramework.LogError("017", "Did not catch expected ArgumentNullException"); - } - catch (ArgumentNullException) - { - // caught expected exception - retVal = true; - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("018", "Unexpected exception: " + e); - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = false; - - TestLibrary.TestFramework.BeginScenario("NegTest2: value is null"); - - try - { - Enum.IsDefined(typeof(EnumInt32), null); - TestLibrary.TestFramework.LogError("019", "Did not catch expected ArgumentNullException"); - } - catch (ArgumentNullException) - { - // caught expected exception - retVal = true; - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("020", "Unexpected exception: " + e); - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = false; - - TestLibrary.TestFramework.BeginScenario("NegTest3: enumType is not an Enum"); - - try - { - Enum.IsDefined(typeof(string), EnumInt32.One); - TestLibrary.TestFramework.LogError("021", "Did not catch expected ArgumentException"); - } - catch (ArgumentException) - { - // caught expected exception - retVal = true; - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("022", "Unexpected exception: " + e); - } - - return retVal; - } - - public bool NegTest4() - { - bool retVal = false; - - TestLibrary.TestFramework.BeginScenario("NegTest4: type of value is not an enumType"); - - try - { - Enum.IsDefined(typeof(EnumInt32), new Object()); - TestLibrary.TestFramework.LogError("023", "Did not catch expected ArgumentException"); - } - catch (InvalidOperationException) - { - // caught expected exception - retVal = true; - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("024", "Unexpected exception: " + e); - } - - return retVal; - } - - public bool NegTest5() - { - bool retVal = false; - - TestLibrary.TestFramework.BeginScenario("NegTest5: type of value is not an underlying type of enumType"); - - try - { - Enum.IsDefined(typeof(EnumInt32), (byte)1); - TestLibrary.TestFramework.LogError("025", "Expected ArgumentException is not thrown"); - } - catch (ArgumentException) - { - retVal = true; - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("026", "Unexpected exception: " + e); - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/enum/enumtoobjectb.cs b/tests/src/CoreMangLib/cti/system/enum/enumtoobjectb.cs deleted file mode 100644 index 6d02e38964..0000000000 --- a/tests/src/CoreMangLib/cti/system/enum/enumtoobjectb.cs +++ /dev/null @@ -1,263 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.Enum.ToObject(Type,object value) -/// </summary> -public class EnumToObject -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - retVal = NegTest3() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - - TestLibrary.TestFramework.BeginScenario("PosTest1: Return the enum object whose value is -100 "); - - try - { - object o1 = Enum.ToObject(typeof(color), -100); - if ((color)o1 != color.blue) - { - TestLibrary.TestFramework.LogError("001", "The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Return the enum object whose value is -0"); - - try - { - object o1 = Enum.ToObject(typeof(color), -0); - if ((color)o1 != color.white) - { - TestLibrary.TestFramework.LogError("003", "The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: Return the enum object whose value is int32.maxvalue"); - - try - { - object o1 = Enum.ToObject(typeof(e_test), Int32.MaxValue); - if ((e_test)o1 != e_test.itemA) - { - TestLibrary.TestFramework.LogError("005", "The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest4: Return the enum object whose value is int64.MinValue "); - - try - { - object o1 = Enum.ToObject(typeof(e_test), Int64.MinValue); - if ((e_test)o1 != e_test.itemC) - { - TestLibrary.TestFramework.LogError("007", "The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest5: Test the situation when none of the value could match the value of the enum"); - - try - { - object o1 = Enum.ToObject(typeof(e_test), 1); - if (((e_test)o1).ToString() != "1") - { - TestLibrary.TestFramework.LogError("009", "The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: The type of the enum is null reference "); - - try - { - object o1 = Enum.ToObject(null, -100); - TestLibrary.TestFramework.LogError("101", "The ArgumentNullException was not thrown as expected"); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2: The first argument is not a type of enum "); - - try - { - object o1 = Enum.ToObject(typeof(Array), 0); - TestLibrary.TestFramework.LogError("103", "The ArgumentException was not thrown as expected"); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest3: The type of the value is invalid"); - - try - { - object o1 = Enum.ToObject(typeof(e_test), "itemC"); - TestLibrary.TestFramework.LogError("105", "The ArgumentException was not thrown as expected"); - retVal = false; - } - catch (ArgumentException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("106", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - EnumToObject test = new EnumToObject(); - - TestLibrary.TestFramework.BeginTestCase("EnumToObject"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - enum color - { - blue = -100, - white = -0, - red = 0, - } - enum e_test : long - { - itemA = Int32.MaxValue, - itemB = Int32.MinValue, - itemC = Int64.MinValue, - itemD = -0, - } -} diff --git a/tests/src/CoreMangLib/cti/system/enum/enumtostring.cs b/tests/src/CoreMangLib/cti/system/enum/enumtostring.cs Binary files differdeleted file mode 100644 index c8a39ff7d6..0000000000 --- a/tests/src/CoreMangLib/cti/system/enum/enumtostring.cs +++ /dev/null diff --git a/tests/src/CoreMangLib/cti/system/enum/enumtostring3.cs b/tests/src/CoreMangLib/cti/system/enum/enumtostring3.cs deleted file mode 100644 index 24c9933352..0000000000 --- a/tests/src/CoreMangLib/cti/system/enum/enumtostring3.cs +++ /dev/null @@ -1,250 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.Enum.ToString(System.string) -/// </summary> -public class EnumToString3 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - - TestLibrary.TestFramework.BeginScenario("PosTest1: Using the Format string \"D\""); - - try - { - color c1 = color.blue; - string s1 = c1.ToString("D"); - if (s1 != "-100") - { - TestLibrary.TestFramework.LogError("001", "The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2:Using the Format string \"G\" "); - - try - { - color c2 = color.brown; - string s2 = c2.ToString("G"); - if (s2 != "brown") - { - TestLibrary.TestFramework.LogError("003", "The result is not the value as expected"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: Using the Format string \"F\""); - - try - { - e_test e3 = e_test.itemA; - string s3 = e3.ToString("F"); - if (s3 != "itemA") - { - TestLibrary.TestFramework.LogError("005", "The result is not the value as expected"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest4: Using the Format string \"X\""); - - try - { - e_test e3 = e_test.itemA; - string s3 = e3.ToString("X"); - if (s3 != "000000007FFFFFFF") - { - TestLibrary.TestFramework.LogError("007", "The result is not the value as expected"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest5: Using the empty string as the argument"); - - try - { - e_test e3 = e_test.itemA; - string s3 = e3.ToString(""); - if (s3 != "itemA") - { - TestLibrary.TestFramework.LogError("009", "The result is not the value as expected"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest6: Set the argument as null"); - - try - { - color c6 = color.white; - string argu = null; - string s3 = c6.ToString(argu); - if (s3 != "white") - { - TestLibrary.TestFramework.LogError("011", "The result is not the value as expected"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: Set the format string argument as a invalid value "); - - try - { - e_test e2 = e_test.itemC; - string s2 = e2.ToString("H"); - TestLibrary.TestFramework.LogError("101", "The ArgumentException was not thrown as expected"); - retVal = false; - } - catch (FormatException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - EnumToString3 test = new EnumToString3(); - - TestLibrary.TestFramework.BeginTestCase("EnumToString3"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - enum color : long - { - blue = -100, - white = 0, - red = byte.MaxValue, - brown = Int64.MaxValue, - } - enum e_test : long - { - itemA = Int32.MaxValue, - itemB = Int32.MinValue, - itemC = Int64.MinValue, - itemD = -0, - } -} diff --git a/tests/src/CoreMangLib/cti/system/environment/EnvironmentNewLine.csproj b/tests/src/CoreMangLib/cti/system/environment/EnvironmentNewLine.csproj deleted file mode 100644 index 10067327be..0000000000 --- a/tests/src/CoreMangLib/cti/system/environment/EnvironmentNewLine.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="environmentnewline.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/environment/environmentnewline.cs b/tests/src/CoreMangLib/cti/system/environment/environmentnewline.cs deleted file mode 100644 index 15498936c7..0000000000 --- a/tests/src/CoreMangLib/cti/system/environment/environmentnewline.cs +++ /dev/null @@ -1,68 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -public class EnvironmentNewLine -{ - public static int Main(string[] args) - { - EnvironmentNewLine newLine = new EnvironmentNewLine(); - TestLibrary.TestFramework.BeginScenario("Testing System.Environment.NewLine property..."); - - if (newLine.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - TestLibrary.TestFramework.LogInformation(""); - - TestLibrary.TestFramework.LogInformation("[Negative]"); - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify environment.NewLine contains \r\n..."); - - try - { - if (TestLibrary.Utilities.IsWindows && !Environment.NewLine.Contains("\r\n")) - { - TestLibrary.TestFramework.LogError("001", @"The NewLine does not contain \r\n"); - retVal = false; - } - else if (!TestLibrary.Utilities.IsWindows && !Environment.NewLine.Contains("\n")) - { - TestLibrary.TestFramework.LogError("001", @"The NewLine does not contain \n"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/eventargs/EventArgsctor.csproj b/tests/src/CoreMangLib/cti/system/eventargs/EventArgsctor.csproj deleted file mode 100644 index fe33faa4bf..0000000000 --- a/tests/src/CoreMangLib/cti/system/eventargs/EventArgsctor.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="eventargsctor.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/eventargs/eventargsctor.cs b/tests/src/CoreMangLib/cti/system/eventargs/eventargsctor.cs deleted file mode 100644 index 7b653b5167..0000000000 --- a/tests/src/CoreMangLib/cti/system/eventargs/eventargsctor.cs +++ /dev/null @@ -1,62 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Reflection; - - -public class EventArgsctor -{ - public static int Main(string[] args) - { - EventArgsctor ctor = new EventArgsctor(); - TestLibrary.TestFramework.BeginTestCase("Testing EventArgs.ctor..."); - - if (ctor.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify using EventArgs constructor to create an instance..."); - - try - { - EventArgs e = new EventArgs(); - if (e == null) - { - TestLibrary.TestFramework.LogError("001","The new created instance should not be null!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/eventhandler/EventHandlerInvoke.csproj b/tests/src/CoreMangLib/cti/system/eventhandler/EventHandlerInvoke.csproj deleted file mode 100644 index 1e9ce88ef0..0000000000 --- a/tests/src/CoreMangLib/cti/system/eventhandler/EventHandlerInvoke.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="eventhandlerinvoke.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/eventhandler/eventhandlerinvoke.cs b/tests/src/CoreMangLib/cti/system/eventhandler/eventhandlerinvoke.cs deleted file mode 100644 index eddf99eb98..0000000000 --- a/tests/src/CoreMangLib/cti/system/eventhandler/eventhandlerinvoke.cs +++ /dev/null @@ -1,184 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; - -public static class Counter -{ - public static int count = 0; -} - -public class MyClass -{ - public void Test1(object sender, EventArgs e) - { - Counter.count++; - } - - public static void Test2(object sender, EventArgs e) - { - Counter.count++; - } - - private void Test3(object sender, EventArgs e) - { - Console.WriteLine("Static EventArgs is {0}: ", e.ToString()); - } - - public int Test4(object sender, EventArgs e) - { - Console.WriteLine("Int value return EventArgs is {0}: ", e.ToString()); - return 1; - } -} - -public class EventHandlerInvoke -{ - public event EventHandler myHandler; - - public static int Main(string[] args) - { - EventHandlerInvoke invoke = - new EventHandlerInvoke(); - TestLibrary.TestFramework.BeginTestCase("Testing EventHandler.Invoke(System.Object,System.EventArgs,System.AsyncCallback,System.Object)..."); - - if (invoke.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest3() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify invoke eventhandler using non-static method..."); - - try - { - EventHandlerInvoke delctor = new EventHandlerInvoke(); - delctor.myHandler = new EventHandler(new MyClass().Test1); - EventArgs e = new EventArgs(); - int i = Counter.count; - delctor.myHandler.Invoke(null, e); - - if (i!=Counter.count-1) - { - TestLibrary.TestFramework.LogError("001", "Invoke method is not invoked!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify invoke eventhandler using static method..."); - - try - { - EventHandlerInvoke delctor = new EventHandlerInvoke(); - delctor.myHandler = new EventHandler(new MyClass().Test1); - EventArgs e = new EventArgs(); - int i = Counter.count; - delctor.myHandler.Invoke(new MyClass(), e); - - if (i != Counter.count - 1) - { - TestLibrary.TestFramework.LogError("001", "Invoke method is not invoked!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify invoke eventhandler using non-static method when target object is null..."); - - try - { - EventHandlerInvoke delctor = new EventHandlerInvoke(); - delctor.myHandler = new EventHandler(new MyClass().Test1); - EventArgs e = new EventArgs(); - int i = Counter.count; - delctor.myHandler.Invoke(null, e); - - if (i != Counter.count - 1) - { - TestLibrary.TestFramework.LogError("001", "Invoke method is not invoked!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify invoke eventhandler using static method when target object is null..."); - - try - { - EventHandlerInvoke delctor = new EventHandlerInvoke(); - delctor.myHandler = new EventHandler(new MyClass().Test1); - EventArgs e = new EventArgs(); - int i = Counter.count; - delctor.myHandler.Invoke(new MyClass(), e); - - if (i != Counter.count - 1) - { - TestLibrary.TestFramework.LogError("001", "Invoke method is not invoked!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/eventhandler_generic/EventHandlerBeginInvoke.csproj b/tests/src/CoreMangLib/cti/system/eventhandler_generic/EventHandlerBeginInvoke.csproj deleted file mode 100644 index ea47feec22..0000000000 --- a/tests/src/CoreMangLib/cti/system/eventhandler_generic/EventHandlerBeginInvoke.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="eventhandlerbegininvoke.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/eventhandler_generic/EventHandlerCtor.csproj b/tests/src/CoreMangLib/cti/system/eventhandler_generic/EventHandlerCtor.csproj deleted file mode 100644 index e117baa07f..0000000000 --- a/tests/src/CoreMangLib/cti/system/eventhandler_generic/EventHandlerCtor.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="eventhandlerctor.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/eventhandler_generic/EventHandlerEndInvoke.csproj b/tests/src/CoreMangLib/cti/system/eventhandler_generic/EventHandlerEndInvoke.csproj deleted file mode 100644 index 2d2304f0ba..0000000000 --- a/tests/src/CoreMangLib/cti/system/eventhandler_generic/EventHandlerEndInvoke.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="eventhandlerendinvoke.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/eventhandler_generic/EventHandlerInvoke.csproj b/tests/src/CoreMangLib/cti/system/eventhandler_generic/EventHandlerInvoke.csproj deleted file mode 100644 index 1e9ce88ef0..0000000000 --- a/tests/src/CoreMangLib/cti/system/eventhandler_generic/EventHandlerInvoke.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="eventhandlerinvoke.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/eventhandler_generic/eventhandlerbegininvoke.cs b/tests/src/CoreMangLib/cti/system/eventhandler_generic/eventhandlerbegininvoke.cs deleted file mode 100644 index 2a00f211c5..0000000000 --- a/tests/src/CoreMangLib/cti/system/eventhandler_generic/eventhandlerbegininvoke.cs +++ /dev/null @@ -1,130 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; - -///<summary> -///System.EventHandler.BeginInvoke(System.Object,TEventArgs,System.AsyncCallback,System.Object) -///</summary> - -public class EventHandlerBeginInvoke -{ - //create a instance of HelperArgs that the event effected. - public HelperArgs helperArgs = new HelperArgs(null); - - //this event return the changed object. - public void setMessage(Object src, HelperArgs hArgs) - { - this.helperArgs = hArgs; - } - - public static int Main() - { - EventHandlerBeginInvoke testObj = new EventHandlerBeginInvoke(); - TestLibrary.TestFramework.BeginTestCase("for Method of System.EventHandler"); - if (testObj.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - - } - - public bool RunTests() - { - bool retVal = true; - retVal = PosTest1() && retVal; - - return retVal; - } - - #region Test Logic - public bool PosTest1() - { - bool retVal = true; - - String temp = TestLibrary.Generator.GetString(-55, false, 1, 255); - - TestLibrary.TestFramework.BeginScenario("PosTest1:invoke the method BeginInvoke with all arguments null"); - try - { - HelperEvent helperEvent = new HelperEvent(); - - EventHandler<HelperArgs> eventHandler = new EventHandler<HelperArgs>(setMessage); - - IAsyncResult iAR = eventHandler.BeginInvoke(helperEvent, new HelperArgs(temp), null, null); - - TestLibrary.TestFramework.LogError("001", "Expected NotSupportedException exception"); - retVal = false; - } - catch (NotSupportedException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - - #endregion -} - -#region Helper Class -public class HelperArgs : EventArgs -{ - private String m_msg = "Helper EventArgs"; - - public String message - { - get - { - return m_msg; - } - set - { - m_msg = value; - } - } - - public HelperArgs(String msg) - { - m_msg = msg; - } -} - -public class HelperEvent -{ - private String m_Desc; - - public event EventHandler<HelperArgs> setEvent; - - public String Desc - { - set - { - EventHandler<HelperArgs> setevent = setEvent; - if (setevent != null) - { - setevent(this, new HelperArgs(value)); - } - m_Desc = value; - } - get - { - return m_Desc; - } - } -} -#endregion diff --git a/tests/src/CoreMangLib/cti/system/eventhandler_generic/eventhandlerctor.cs b/tests/src/CoreMangLib/cti/system/eventhandler_generic/eventhandlerctor.cs deleted file mode 100644 index 7fd3a1bc53..0000000000 --- a/tests/src/CoreMangLib/cti/system/eventhandler_generic/eventhandlerctor.cs +++ /dev/null @@ -1,130 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; - -///<summary> -///System.EventHandler.Ctor -///</summary> - -public class EventHandlerCtor -{ - //create a instance of HelperArgs that the event effected. - public HelperArgs helperArgs = new HelperArgs(null); - - //this event return the changed object. - public void setMessage(Object src, HelperArgs hArgs) - { - this.helperArgs = hArgs; - } - - public static int Main() - { - EventHandlerCtor testObj = new EventHandlerCtor(); - TestLibrary.TestFramework.BeginTestCase("for Constructor of System.EventHandler"); - if (testObj.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - - } - - public bool RunTests() - { - bool retVal = true; - retVal = PosTest1() && retVal; - - return retVal; - } - - #region Test Logic - public bool PosTest1() - { - bool retVal = true; - - bool expectedValue = true; - bool actualValue = false; - - String temp = TestLibrary.Generator.GetString(-55, false,1,255); - - TestLibrary.TestFramework.BeginScenario("PosTest1:invoke the method BeginInvoke"); - try - { - HelperEvent helperEvent = new HelperEvent(); - helperEvent.setEvent += new EventHandler<HelperArgs>(setMessage); - helperEvent.Desc = temp; - //if the Object helperArgs is changed,it shows that the event take off. - - if (!helperArgs.message.Equals(temp)) - { - TestLibrary.TestFramework.LogError("001", "ExpectedValue(" + expectedValue + ") !=ActualValue(" + actualValue + ")"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - #endregion -} - -#region Helper Class -public class HelperArgs : EventArgs -{ - private String m_msg = "Helper EventArgs"; - - public String message - { - get - { - return m_msg; - } - set - { - m_msg = value; - } - } - - public HelperArgs(String msg) - { - m_msg = msg; - } -} - -public class HelperEvent -{ - private String m_Desc; - - public event EventHandler<HelperArgs> setEvent; - - public String Desc - { - set - { - EventHandler<HelperArgs> setevent = setEvent; - if (setevent != null) - { - setevent(this, new HelperArgs(value)); - } - m_Desc = value; - } - get - { - return m_Desc; - } - } -} -#endregion diff --git a/tests/src/CoreMangLib/cti/system/eventhandler_generic/eventhandlerendinvoke.cs b/tests/src/CoreMangLib/cti/system/eventhandler_generic/eventhandlerendinvoke.cs deleted file mode 100644 index 4df6c22ba0..0000000000 --- a/tests/src/CoreMangLib/cti/system/eventhandler_generic/eventhandlerendinvoke.cs +++ /dev/null @@ -1,133 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; - -///<summary> -///System.EventHandler.EndInvoke(System.IAsyncResult) -///</summary> - -public class EventHandlerEndInvoke -{ - //create a instance of HelperArgs that the event effected. - public HelperArgs helperArgs = new HelperArgs(null); - - //this event return the changed object. - public void setMessage(Object src, HelperArgs hArgs) - { - this.helperArgs = hArgs; - } - - public static int Main() - { - EventHandlerEndInvoke testObj = new EventHandlerEndInvoke(); - TestLibrary.TestFramework.BeginTestCase("for Method of System.EventHandler"); - if (testObj.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - - } - - public bool RunTests() - { - bool retVal = true; - retVal = PosTest1() && retVal; - - - return retVal; - } - - #region Test Logic - - public bool PosTest1() - { - bool retVal = true; - - String temp = TestLibrary.Generator.GetString(-55, false, 1, 255); - - TestLibrary.TestFramework.BeginScenario("PosTest1:invoke the method EndInvoke"); - try - { - HelperEvent helperEvent = new HelperEvent(); - - EventHandler<HelperArgs> eventHandler = new EventHandler<HelperArgs>(setMessage); - - IAsyncResult iAR = null; - - eventHandler.EndInvoke(iAR); - - TestLibrary.TestFramework.LogError("001", "Expected NotSupportedException exception"); - retVal = false; - } - catch (NotSupportedException) - { - // expected - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - #endregion -} - -#region Helper Class -public class HelperArgs : EventArgs -{ - private String m_msg = "Helper EventArgs"; - - public String message - { - get - { - return m_msg; - } - set - { - m_msg = value; - } - } - - public HelperArgs(String msg) - { - m_msg = msg; - } -} - -public class HelperEvent -{ - private String m_Desc; - - public event EventHandler<HelperArgs> setEvent; - - public String Desc - { - set - { - EventHandler<HelperArgs> setevent = setEvent; - if (setevent != null) - { - setevent(this, new HelperArgs(value)); - } - m_Desc = value; - } - get - { - return m_Desc; - } - } -} -#endregion diff --git a/tests/src/CoreMangLib/cti/system/eventhandler_generic/eventhandlerinvoke.cs b/tests/src/CoreMangLib/cti/system/eventhandler_generic/eventhandlerinvoke.cs deleted file mode 100644 index ab6f3efb3a..0000000000 --- a/tests/src/CoreMangLib/cti/system/eventhandler_generic/eventhandlerinvoke.cs +++ /dev/null @@ -1,127 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; - -///<summary> -///System.EventHandler.Invoke(System.Object,TEventArgs) -///</summary> - -public class EventHandlerInvoke -{ - //create a instance of HelperArgs that the event effected. - public HelperArgs helperArgs = new HelperArgs(null); - - //this event return the changed object. - public void setMessage(Object src, HelperArgs hArgs) - { - this.helperArgs = hArgs; - } - - public static int Main() - { - EventHandlerInvoke testObj = new EventHandlerInvoke(); - TestLibrary.TestFramework.BeginTestCase("for Method of System.EventHandler"); - if (testObj.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - - } - - public bool RunTests() - { - bool retVal = true; - retVal = PosTest1() && retVal; - - return retVal; - } - - #region Test Logic - public bool PosTest1() - { - bool retVal = true; - - String temp = TestLibrary.Generator.GetString(-55, false, 1, 255); - - TestLibrary.TestFramework.BeginScenario("PosTest1:invoke the method"); - try - { - HelperEvent helperEvent = new HelperEvent(); - - EventHandler<HelperArgs> eventHandler = new EventHandler<HelperArgs>(setMessage); - - eventHandler.Invoke(helperEvent,new HelperArgs(temp)); - - if (!helperArgs.message.Equals(temp)) - { - TestLibrary.TestFramework.LogError("001", "ExpectedValue(true) !=ActualValue(false)"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - #endregion -} - -#region Helper Class -public class HelperArgs : EventArgs -{ - private String m_msg = "Helper EventArgs"; - - public String message - { - get - { - return m_msg; - } - set - { - m_msg = value; - } - } - - public HelperArgs(String msg) - { - m_msg = msg; - } -} - -public class HelperEvent -{ - private String m_Desc; - - public event EventHandler<HelperArgs> setEvent; - - public String Desc - { - set - { - EventHandler<HelperArgs> setevent = setEvent; - if (setevent != null) - { - setevent(this, new HelperArgs(value)); - } - m_Desc = value; - } - get - { - return m_Desc; - } - } -} -#endregion diff --git a/tests/src/CoreMangLib/cti/system/math/MathAbs1.csproj b/tests/src/CoreMangLib/cti/system/math/MathAbs1.csproj deleted file mode 100644 index b66783db28..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathAbs1.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathabs1.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathAbs2.csproj b/tests/src/CoreMangLib/cti/system/math/MathAbs2.csproj deleted file mode 100644 index cfc9a8bb71..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathAbs2.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathabs2.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathAbs3.csproj b/tests/src/CoreMangLib/cti/system/math/MathAbs3.csproj deleted file mode 100644 index 8d74f64094..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathAbs3.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathabs3.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathAbs4.csproj b/tests/src/CoreMangLib/cti/system/math/MathAbs4.csproj deleted file mode 100644 index 714316753e..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathAbs4.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathabs4.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathAbs5.csproj b/tests/src/CoreMangLib/cti/system/math/MathAbs5.csproj deleted file mode 100644 index d5a710504c..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathAbs5.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathabs5.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathAbs6.csproj b/tests/src/CoreMangLib/cti/system/math/MathAbs6.csproj deleted file mode 100644 index b1ce9c0813..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathAbs6.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathabs6.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathAbs7.csproj b/tests/src/CoreMangLib/cti/system/math/MathAbs7.csproj deleted file mode 100644 index 0c0a96784e..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathAbs7.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathabs7.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathAcos.csproj b/tests/src/CoreMangLib/cti/system/math/MathAcos.csproj deleted file mode 100644 index 58f9d757e5..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathAcos.csproj +++ /dev/null @@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathacos.cs" /> - <Compile Include="mathtestlib.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathAtan.csproj b/tests/src/CoreMangLib/cti/system/math/MathAtan.csproj deleted file mode 100644 index 313613d23a..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathAtan.csproj +++ /dev/null @@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathatan.cs" /> - <Compile Include="mathtestlib.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathAtan2.csproj b/tests/src/CoreMangLib/cti/system/math/MathAtan2.csproj deleted file mode 100644 index 60bb496840..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathAtan2.csproj +++ /dev/null @@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathatan2.cs" /> - <Compile Include="mathtestlib.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathCeiling.csproj b/tests/src/CoreMangLib/cti/system/math/MathCeiling.csproj deleted file mode 100644 index 9890146568..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathCeiling.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathceiling.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathCos.csproj b/tests/src/CoreMangLib/cti/system/math/MathCos.csproj deleted file mode 100644 index fe585178d5..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathCos.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathcos.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathCosh.csproj b/tests/src/CoreMangLib/cti/system/math/MathCosh.csproj deleted file mode 100644 index ea43c60027..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathCosh.csproj +++ /dev/null @@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathcosh.cs" /> - <Compile Include="mathtestlib.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathE.csproj b/tests/src/CoreMangLib/cti/system/math/MathE.csproj deleted file mode 100644 index 6fa28de3ac..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathE.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathe.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathExp.csproj b/tests/src/CoreMangLib/cti/system/math/MathExp.csproj deleted file mode 100644 index 866daea263..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathExp.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathexp.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathFloor.csproj b/tests/src/CoreMangLib/cti/system/math/MathFloor.csproj deleted file mode 100644 index 666b99e5f2..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathFloor.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathfloor.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathIEEERemainder.csproj b/tests/src/CoreMangLib/cti/system/math/MathIEEERemainder.csproj deleted file mode 100644 index be546761b0..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathIEEERemainder.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathieeeremainder.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathLog.csproj b/tests/src/CoreMangLib/cti/system/math/MathLog.csproj deleted file mode 100644 index 335e588611..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathLog.csproj +++ /dev/null @@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathlog.cs" /> - <Compile Include="mathtestlib.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathLog10.csproj b/tests/src/CoreMangLib/cti/system/math/MathLog10.csproj deleted file mode 100644 index e3dc16b9ff..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathLog10.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathlog10.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathMax1.csproj b/tests/src/CoreMangLib/cti/system/math/MathMax1.csproj deleted file mode 100644 index acbcf4ee22..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathMax1.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathmax1.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathMax10.csproj b/tests/src/CoreMangLib/cti/system/math/MathMax10.csproj deleted file mode 100644 index d32396a20d..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathMax10.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathmax10.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathMax11.csproj b/tests/src/CoreMangLib/cti/system/math/MathMax11.csproj deleted file mode 100644 index e2faa26ec0..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathMax11.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathmax11.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathMax2.csproj b/tests/src/CoreMangLib/cti/system/math/MathMax2.csproj deleted file mode 100644 index bb8159b2e2..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathMax2.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathmax2.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathMax3.csproj b/tests/src/CoreMangLib/cti/system/math/MathMax3.csproj deleted file mode 100644 index e59a7860a0..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathMax3.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathmax3.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathMax4.csproj b/tests/src/CoreMangLib/cti/system/math/MathMax4.csproj deleted file mode 100644 index ef077097c9..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathMax4.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathmax4.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathMax5.csproj b/tests/src/CoreMangLib/cti/system/math/MathMax5.csproj deleted file mode 100644 index 07566c6aac..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathMax5.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathmax5.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathMax6.csproj b/tests/src/CoreMangLib/cti/system/math/MathMax6.csproj deleted file mode 100644 index 6002d0c7b9..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathMax6.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathmax6.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathMax7.csproj b/tests/src/CoreMangLib/cti/system/math/MathMax7.csproj deleted file mode 100644 index 12f33f930e..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathMax7.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathmax7.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathMax8.csproj b/tests/src/CoreMangLib/cti/system/math/MathMax8.csproj deleted file mode 100644 index ed299b6452..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathMax8.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathmax8.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathMax9.csproj b/tests/src/CoreMangLib/cti/system/math/MathMax9.csproj deleted file mode 100644 index 52c129e620..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathMax9.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathmax9.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathMin1.csproj b/tests/src/CoreMangLib/cti/system/math/MathMin1.csproj deleted file mode 100644 index a00645b13d..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathMin1.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathmin1.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathMin10.csproj b/tests/src/CoreMangLib/cti/system/math/MathMin10.csproj deleted file mode 100644 index 5736cac995..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathMin10.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathmin10.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathMin11.csproj b/tests/src/CoreMangLib/cti/system/math/MathMin11.csproj deleted file mode 100644 index b0c86c288f..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathMin11.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathmin11.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathMin2.csproj b/tests/src/CoreMangLib/cti/system/math/MathMin2.csproj deleted file mode 100644 index bcd07927d2..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathMin2.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathmin2.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathMin3.csproj b/tests/src/CoreMangLib/cti/system/math/MathMin3.csproj deleted file mode 100644 index ead394d186..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathMin3.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathmin3.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathMin4.csproj b/tests/src/CoreMangLib/cti/system/math/MathMin4.csproj deleted file mode 100644 index 464f090493..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathMin4.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathmin4.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathMin5.csproj b/tests/src/CoreMangLib/cti/system/math/MathMin5.csproj deleted file mode 100644 index c0e602f9e4..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathMin5.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathmin5.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathMin6.csproj b/tests/src/CoreMangLib/cti/system/math/MathMin6.csproj deleted file mode 100644 index d7317325dd..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathMin6.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathmin6.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathMin7.csproj b/tests/src/CoreMangLib/cti/system/math/MathMin7.csproj deleted file mode 100644 index 1b5188319d..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathMin7.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathmin7.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathMin8.csproj b/tests/src/CoreMangLib/cti/system/math/MathMin8.csproj deleted file mode 100644 index 86e53d819a..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathMin8.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathmin8.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathMin9.csproj b/tests/src/CoreMangLib/cti/system/math/MathMin9.csproj deleted file mode 100644 index c2777058dc..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathMin9.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathmin9.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathPI.csproj b/tests/src/CoreMangLib/cti/system/math/MathPI.csproj deleted file mode 100644 index 2f8c57c4c1..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathPI.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathpi.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathPow.csproj b/tests/src/CoreMangLib/cti/system/math/MathPow.csproj deleted file mode 100644 index bc7d45e52c..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathPow.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathpow.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathRound2.csproj b/tests/src/CoreMangLib/cti/system/math/MathRound2.csproj deleted file mode 100644 index 4c74ca50dc..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathRound2.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathround2.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathRound3.csproj b/tests/src/CoreMangLib/cti/system/math/MathRound3.csproj deleted file mode 100644 index f6a9613bae..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathRound3.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathround3.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathRound4.csproj b/tests/src/CoreMangLib/cti/system/math/MathRound4.csproj deleted file mode 100644 index 4acc47f0e9..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathRound4.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathround4.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathSign1.csproj b/tests/src/CoreMangLib/cti/system/math/MathSign1.csproj deleted file mode 100644 index 8a48a7d738..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathSign1.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathsign1.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathSign2.csproj b/tests/src/CoreMangLib/cti/system/math/MathSign2.csproj deleted file mode 100644 index bc90e0ea42..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathSign2.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathsign2.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathSign3.csproj b/tests/src/CoreMangLib/cti/system/math/MathSign3.csproj deleted file mode 100644 index 0af24174ec..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathSign3.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathsign3.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathSign4.csproj b/tests/src/CoreMangLib/cti/system/math/MathSign4.csproj deleted file mode 100644 index e41d632f90..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathSign4.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathsign4.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathSign5.csproj b/tests/src/CoreMangLib/cti/system/math/MathSign5.csproj deleted file mode 100644 index d6769f50db..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathSign5.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathsign5.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathSign6.csproj b/tests/src/CoreMangLib/cti/system/math/MathSign6.csproj deleted file mode 100644 index a05cd54b62..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathSign6.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathsign6.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathSign7.csproj b/tests/src/CoreMangLib/cti/system/math/MathSign7.csproj deleted file mode 100644 index 2a49c816c4..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathSign7.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathsign7.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathSin.csproj b/tests/src/CoreMangLib/cti/system/math/MathSin.csproj deleted file mode 100644 index 707bb4e0f1..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathSin.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathsin.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathSinh.csproj b/tests/src/CoreMangLib/cti/system/math/MathSinh.csproj deleted file mode 100644 index 2068a160ca..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathSinh.csproj +++ /dev/null @@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathsinh.cs" /> - <Compile Include="mathtestlib.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathSqrt.csproj b/tests/src/CoreMangLib/cti/system/math/MathSqrt.csproj deleted file mode 100644 index 74054749ca..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathSqrt.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathsqrt.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathTan.csproj b/tests/src/CoreMangLib/cti/system/math/MathTan.csproj deleted file mode 100644 index 96bd18cb8f..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathTan.csproj +++ /dev/null @@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathtan.cs" /> - <Compile Include="mathtestlib.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/MathTanh.csproj b/tests/src/CoreMangLib/cti/system/math/MathTanh.csproj deleted file mode 100644 index 08bcb0c719..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/MathTanh.csproj +++ /dev/null @@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathtanh.cs" /> - <Compile Include="mathtestlib.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/mathRound1.csproj b/tests/src/CoreMangLib/cti/system/math/mathRound1.csproj deleted file mode 100644 index cdc7da4adb..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathRound1.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathround1.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/math/mathabs1.cs b/tests/src/CoreMangLib/cti/system/math/mathabs1.cs deleted file mode 100644 index 43d8482c3f..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathabs1.cs +++ /dev/null @@ -1,135 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.Abs(System.Decimal) -/// </summary> -public class MathAbs1 -{ - public static int Main(string[] args) - { - MathAbs1 abs1 = new MathAbs1(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Abs(System.Decimal)..."); - - if (abs1.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the max value of Decimal is equal to its Abs value..."); - - try - { - Decimal dec = Decimal.MaxValue; - if (Math.Abs(dec) != dec) - { - TestLibrary.TestFramework.LogError("001","The Abs of max value should be equal to itself!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify the Abs of min value should be equal to it's contrary value..."); - - try - { - Decimal dec = Decimal.MinValue; - if (Math.Abs(dec) != -dec) - { - TestLibrary.TestFramework.LogError("003","The Abs of min value should be equal to it's contrary value!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify the Abs of MinusOne should be equal to it's contrary value..."); - - try - { - Decimal dec = Decimal.MinusOne; - if (Math.Abs(dec) != -dec) - { - TestLibrary.TestFramework.LogError("005", "The Abs of MinusOne should be equal to it's contrary value!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify Abs value of zero should be equal to both itself and its contrary value..."); - - try - { - Decimal zero = 0; - if (Math.Abs(zero) != zero || Math.Abs(zero) != -zero) - { - TestLibrary.TestFramework.LogError("007", "Abs value of zero should be equal to both itself and its contrary value!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathabs2.cs b/tests/src/CoreMangLib/cti/system/math/mathabs2.cs deleted file mode 100644 index 1ee1567c82..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathabs2.cs +++ /dev/null @@ -1,183 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.Abs(System.Double) -/// </summary> -public class MathAbs2 -{ - public static int Main(string[] args) - { - MathAbs2 abs2 = new MathAbs2(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Abs(System.Double)..."); - - if (abs2.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the max value of Double should be equal to its Abs value..."); - - try - { - Double doubleParam = Double.MaxValue; - if (Math.Abs(doubleParam) != doubleParam) - { - TestLibrary.TestFramework.LogError("001", "The Abs of max value should be equal to itself!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify the Abs of min value of Double should be equal to it's contrary value..."); - - try - { - Double doubleParam = Double.MinValue; - if (Math.Abs(doubleParam) != -doubleParam) - { - TestLibrary.TestFramework.LogError("003", "The Abs of min value should be equal to it's contrary value!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify the Abs of NegativeInfinity should be equal to it's contrary value..."); - - try - { - Double doubleParam = Double.NegativeInfinity; - if (Math.Abs(doubleParam) != -doubleParam) - { - TestLibrary.TestFramework.LogError("005", "The Abs of NegativeInfinity should be equal to it's contrary value!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify the Abs of PositiveInfinity should be equal to itself..."); - - try - { - Double doubleParam = Double.PositiveInfinity; - if (Math.Abs(doubleParam) != doubleParam) - { - TestLibrary.TestFramework.LogError("007", "The Abs of PositiveInfinity should be equal to itself!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify Abs value of zero should be equal to both itself and its contrary value..."); - - try - { - Double zero = 0; - if (Math.Abs(zero) != zero || Math.Abs(zero) != -zero) - { - TestLibrary.TestFramework.LogError("009", "Abs value of zero should be equal to both itself and its contrary value!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest6: Verify Abs value of Epsilon "); - - try - { - Double epsilon = Double.Epsilon; - if (Math.Abs(epsilon) != epsilon) - { - TestLibrary.TestFramework.LogError("011","Abs value of epsilon should be equal to itself..."); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathabs3.cs b/tests/src/CoreMangLib/cti/system/math/mathabs3.cs deleted file mode 100644 index 80711f64b2..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathabs3.cs +++ /dev/null @@ -1,116 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; - -/// <summary> -/// System.Math.Abs(System.Int16) -/// </summary> -public class MathAbs3 -{ - public static int Main(string[] args) - { - MathAbs3 abs3 = new MathAbs3(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Abs(System.Int16)..."); - - if (abs3.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negtive]"); - retVal = NegTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the max value of Int16 should be equal to its Abs value..."); - - try - { - Int16 min = Int16.MaxValue; - if (Math.Abs(min) != min) - { - TestLibrary.TestFramework.LogError("001", "The Abs of max value should be equal to itself!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify Abs value of zero should be equal to both itself and its contrary value..."); - - try - { - Int16 zero = 0; - if (Math.Abs(zero) != zero || Math.Abs(zero) != -zero) - { - TestLibrary.TestFramework.LogError("003", "Abs value of zero should be equal to both itself and its contrary value!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("NegTest1: Verify the Abs of min value of Int16..."); - - try - { - Int16 min = Int16.MinValue; - if (Math.Abs(min) != -min) - { - TestLibrary.TestFramework.LogError("101", "The Abs of min value should be equal to it's contrary value!"); - retVal = false; - } - } - catch (OverflowException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathabs4.cs b/tests/src/CoreMangLib/cti/system/math/mathabs4.cs deleted file mode 100644 index 2d3963346a..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathabs4.cs +++ /dev/null @@ -1,116 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.Abs(System.Int32) -/// </summary> -public class MathAbs4 -{ - public static int Main(string[] args) - { - MathAbs4 abs4 = new MathAbs4(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Abs(System.Int32)..."); - - if (abs4.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negtive]"); - retVal = NegTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the max value of Int32 should be equal to its Abs value..."); - - try - { - Int32 max = Int32.MaxValue; - if (Math.Abs(max) != max) - { - TestLibrary.TestFramework.LogError("001", "The Abs of max value should be equal to itself!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify Abs value of zero should be equal to both itself and its contrary value..."); - - try - { - Int32 zero = 0; - if (Math.Abs(zero) != zero || Math.Abs(zero) != -zero) - { - TestLibrary.TestFramework.LogError("003", "Abs value of zero should be equal to both itself and its contrary value!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("NegTest1: Verify the Abs of min value of Int32..."); - - try - { - Int32 min = Int32.MinValue; - if (Math.Abs(min) != -min) - { - TestLibrary.TestFramework.LogError("101", "The Abs of min value should be equal to it's contrary value!"); - retVal = false; - } - } - catch (OverflowException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathabs5.cs b/tests/src/CoreMangLib/cti/system/math/mathabs5.cs deleted file mode 100644 index b4b035da1a..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathabs5.cs +++ /dev/null @@ -1,116 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; - -/// <summary> -/// System.Math.Abs(System.Int64) -/// </summary> -public class MathAbs5 -{ - public static int Main(string[] args) - { - MathAbs5 abs5 = new MathAbs5(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Abs(System.Int64)..."); - - if (abs5.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negtive]"); - retVal = NegTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the max value of Int64 should be equal to its Abs value..."); - - try - { - Int64 max = Int64.MaxValue; - if (Math.Abs(max) != max) - { - TestLibrary.TestFramework.LogError("001", "The Abs of max value should be equal to itself!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify Abs value of zero should be equal to both itself and its contrary value..."); - - try - { - Int64 zero = 0; - if (Math.Abs(zero) != zero || Math.Abs(zero) != -zero) - { - TestLibrary.TestFramework.LogError("003", "Abs value of zero should be equal to both itself and its contrary value!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("NegTest1: Verify the Abs of min value of Int64..."); - - try - { - Int64 min = Int64.MinValue; - Math.Abs(min); - - TestLibrary.TestFramework.LogError("101", "The Abs of min value should be equal to it's contrary value!"); - retVal = false; - - } - catch (OverflowException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathabs6.cs b/tests/src/CoreMangLib/cti/system/math/mathabs6.cs deleted file mode 100644 index a99d9a3dee..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathabs6.cs +++ /dev/null @@ -1,114 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - - -public class MathAbs6 -{ - public static int Main(string[] args) - { - MathAbs6 abs6 = new MathAbs6(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Abs(System.SByte)..."); - - if (abs6.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negtive]"); - retVal = NegTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the max value of Int32 should be equal to its Abs value..."); - - try - { - SByte mySByte = SByte.MaxValue; - if (Math.Abs(mySByte) != mySByte) - { - TestLibrary.TestFramework.LogError("001", "The Abs of max value should be equal to itself!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify Abs value of zero should be equal to both itself and its contrary value..."); - - try - { - SByte zero = 0; - if (Math.Abs(zero) != zero || Math.Abs(zero) != -zero) - { - TestLibrary.TestFramework.LogError("003", "Abs value of zero should be equal to both itself and its contrary value!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("NegTest1: Verify the Abs of min value of SByte..."); - - try - { - SByte mySByte = SByte.MinValue; - Math.Abs(mySByte); - - TestLibrary.TestFramework.LogError("101", "The Abs of min value should be equal to it's contrary value!"); - retVal = false; - - } - catch (OverflowException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathabs7.cs b/tests/src/CoreMangLib/cti/system/math/mathabs7.cs deleted file mode 100644 index 101be6429d..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathabs7.cs +++ /dev/null @@ -1,185 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - - -/// <summary> -/// System.Math.Abs(System.Single) -/// </summary> -public class MathAbs7 -{ - public static int Main(string[] args) - { - MathAbs7 abs7 = new MathAbs7(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Abs(System.Single)..."); - - if (abs7.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the max value of Single should be equal to its Abs value"); - - try - { - Single max = Single.MaxValue; - if (Math.Abs(max) != max) - { - TestLibrary.TestFramework.LogError("001", "The Abs of max value should be equal to itself!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify the min value of Single should be equal to its Abs value"); - - try - { - Single min = Single.MinValue; - if (Math.Abs(min) != -min) - { - TestLibrary.TestFramework.LogError("003", "The Abs of max value should be equal to it's contrary!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify the NegativeInfinity of Single should be equal to its contrary..."); - - try - { - Single negInfinit = Single.NegativeInfinity; - if (Math.Abs(negInfinit) != -negInfinit) - { - TestLibrary.TestFramework.LogError("005", "The Abs of max value should be equal to it's contrary!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify the PositiveInfinity of Single should be equal to its Abs value"); - - try - { - Single posInfinit = Single.PositiveInfinity; - if (Math.Abs(posInfinit) != posInfinit) - { - TestLibrary.TestFramework.LogError("007", "The Abs of max value should be equal to itself!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify Abs value of zero should be equal to both itself and its contrary value..."); - - try - { - Single zero = 0; - if (Math.Abs(zero) != zero || Math.Abs(zero) != -zero) - { - TestLibrary.TestFramework.LogError("009", "Abs value of zero should be equal to both itself and its contrary value!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest6: Verify Abs value of Epsilon "); - - try - { - Single epsilon = Single.Epsilon; - if (Math.Abs(epsilon) != epsilon) - { - TestLibrary.TestFramework.LogError("011", "Abs value of epsilon should be equal to itself..."); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathacos.cs b/tests/src/CoreMangLib/cti/system/math/mathacos.cs deleted file mode 100644 index fcd714d1be..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathacos.cs +++ /dev/null @@ -1,214 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - - -/// <summary> -/// System.Math.Acos(System.Double) -/// </summary> -public class MathAcos -{ - - - public static int Main(string[] args) - { - MathAcos Acos = new MathAcos(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Acos(System.Double)..."); - - if (Acos.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - - //TestLibrary.TestFramework.LogInformation("[Negtive]"); - //retVal = NegTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the value of Arccos(-1) is Math.PI..."); - - try - { - double angle = Math.Acos(-1); - if (!MathTestLib.DoubleIsWithinEpsilon(angle ,Math.PI)) - { - TestLibrary.TestFramework.LogError("001","Expected Math.Acos(-1) = " + Math.PI.ToString() +", received "+ - angle.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify the value of Arccos(0) is Math.PI/2..."); - - try - { - double angle = Math.Acos(0); - if (!MathTestLib.DoubleIsWithinEpsilon(angle, Math.PI/2)) - { - TestLibrary.TestFramework.LogError("003", "Expected pi/2, got " + angle.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify the value of Arccos(1) is 0..."); - - try - { - double angle = Math.Acos(1); - if (!MathTestLib.DoubleIsWithinEpsilon(angle ,0)) - { - TestLibrary.TestFramework.LogError("005", "Expected 1, got " + angle.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify the value of Arccos(0.5) is Math.PI/3..."); - - try - { - double angle = Math.Acos(0.5); - if (!MathTestLib.DoubleIsWithinEpsilon(angle, 1.0471975511965979)) - { - TestLibrary.TestFramework.LogError("007","Expected 1.0471975511965979, got "+angle.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify the value of Arccos(-0.5) is 2*Math.PI/3..."); - - try - { - double angle = Math.Acos(-0.5); - if (!MathTestLib.DoubleIsWithinEpsilon(angle, 2.0943951023931957)) - { - TestLibrary.TestFramework.LogError("009", "Expected: 2.09439510239319573, actual: " + angle.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest6: Verify the value of Arccos(Math.Sqrt(3)/2) is Math.PI/6..."); - - try - { - double angle = Math.Acos(Math.Sqrt(3)/2); - if (!MathTestLib.DoubleIsWithinEpsilon(angle, 0.52359877559829893)) - { - TestLibrary.TestFramework.LogError("011", "Expected: 0.52359877559829893, actual: " + angle.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest7() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest7: Verify the value of Arccos(-Math.Sqrt(3)/2) is 5*Math.PI/6..."); - - try - { - double angle = Math.Acos(-Math.Sqrt(3) / 2); - if (!MathTestLib.DoubleIsWithinEpsilon(angle, 2.6179938779914944)) - { - TestLibrary.TestFramework.LogError("013", "Expected: 2.617993877991494, actual: " + angle.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("014", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathatan.cs b/tests/src/CoreMangLib/cti/system/math/mathatan.cs deleted file mode 100644 index ebeea75a96..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathatan.cs +++ /dev/null @@ -1,165 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.Atan(System.Double) -/// </summary> -public class MathAtan -{ - public static int Main(string[] args) - { - MathAtan arctan = new MathAtan(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Atan(System.Double)..."); - - if (arctan.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the value of arctan(NegativeInfinity) is -Math.PI/2..."); - - try - { - double angle = Math.Atan(double.NegativeInfinity); - if (!MathTestLib.DoubleIsWithinEpsilon(angle ,-Math.PI / 2)) - { - TestLibrary.TestFramework.LogError("001", "Expected: -pi/2, actual: " + - angle.ToString() + " diff>epsilon= " + MathTestLib.Epsilon.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify the value of arctan(PositiveInfinity) is Math.PI/2..."); - - try - { - double angle = Math.Atan(double.PositiveInfinity); - if (!MathTestLib.DoubleIsWithinEpsilon(angle, Math.PI / 2)) - { - TestLibrary.TestFramework.LogError("003", "Expected: pi/2, actual: " + - angle.ToString() + " diff>epsilon= " + MathTestLib.Epsilon.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify the value of arctan(0) is zero..."); - - try - { - double angle = Math.Atan(0); - if (!MathTestLib.DoubleIsWithinEpsilon(angle ,0)) - { - TestLibrary.TestFramework.LogError("005", "Expected: 0, actual: " + - angle.ToString() + " diff>epsilon= " + MathTestLib.Epsilon.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify the value of atn(inf+1)=atn(inf)"); - - try - { - double angle = Math.Atan(double.PositiveInfinity +1); - double baseline = Math.Atan(double.PositiveInfinity); - if (!MathTestLib.DoubleIsWithinEpsilon(angle ,baseline)) - { - TestLibrary.TestFramework.LogError("007", "Expected: "+baseline.ToString()+", actual: " + - angle.ToString() + " diff>epsilon= " + MathTestLib.Epsilon.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify atn(-inf -1)=atn(-inf)"); - - try - { - double angle = Math.Atan(double.NegativeInfinity - 1); - double baseline = Math.Atan(double.NegativeInfinity); - if (!MathTestLib.DoubleIsWithinEpsilon(angle ,baseline)) - { - TestLibrary.TestFramework.LogError("009", "Expected " + baseline.ToString()+ ", actual: " + angle.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathatan2.cs b/tests/src/CoreMangLib/cti/system/math/mathatan2.cs deleted file mode 100644 index c4db101bb1..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathatan2.cs +++ /dev/null @@ -1,274 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.Atan2(System.Double,System.Double) -/// </summary> -public class MathAtan2 -{ - public static int Main(string[] args) - { - MathAtan2 arctan2 = new MathAtan2(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Atan2(System.Double,System.Double)..."); - - if (arctan2.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the angle of arctan(x,y) when the point in quadrant one..."); - - try - { - double x = TestLibrary.Generator.GetDouble(-55); - while (x <= 0) - { - x = TestLibrary.Generator.GetDouble(-55); - } - double y = TestLibrary.Generator.GetDouble(-55); - while (y <= 0) - { - y = TestLibrary.Generator.GetDouble(-55); - } - - double angle = Math.Atan2(y,x); - if (angle > Math.PI / 2 || angle < 0) - { - TestLibrary.TestFramework.LogError("001", "The angle should be between 0 and Math.PI/2, actual: " + - angle.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify the angle of arctan(x,y) when the point in quadrant four..."); - - try - { - double x = TestLibrary.Generator.GetDouble(-55); - while (x <= 0) - { - x = TestLibrary.Generator.GetDouble(-55); - } - double y = TestLibrary.Generator.GetDouble(-55); - while (y >= 0) - { - y = -TestLibrary.Generator.GetDouble(-55); - } - - double angle = Math.Atan2(y, x); - if (angle > 0 || angle < -Math.PI / 2) - { - TestLibrary.TestFramework.LogError("003", "The angle should be between 0 and -Math.PI/2, actual: " + - angle.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify the angle of arctan(x,y) when the point in forward direction of X axis..."); - - try - { - double x = TestLibrary.Generator.GetDouble(-55); - while (x <= 0) - { - x = TestLibrary.Generator.GetDouble(-55); - } - - double y = 0; - double angle = Math.Atan2(y, x); - if (!MathTestLib.DoubleIsWithinEpsilon(angle ,0.0)) - { - TestLibrary.TestFramework.LogError("005", "The angle should be zero,actual: "+angle.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify the angle of arctan(x,y) when the point in forward direction of Y axis..."); - - try - { - double x = 0; - double y = TestLibrary.Generator.GetDouble(-55); - while (y <= 0) - { - y = TestLibrary.Generator.GetDouble(-55); - } - double angle = Math.Atan2(y, x); - if (!MathTestLib.DoubleIsWithinEpsilon(angle ,Math.PI / 2)) - { - TestLibrary.TestFramework.LogError("007", "The angle should be pi/2, actual:"+angle.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify the angle of arctan(x,y) when the point in negative direction of Y axis..."); - - try - { - double x = 0; - double y = TestLibrary.Generator.GetDouble(-55); - while (y >= 0) - { - y = -TestLibrary.Generator.GetDouble(-55); - } - double angle = Math.Atan2(y, x); - if (!MathTestLib.DoubleIsWithinEpsilon(angle ,-Math.PI / 2)) - { - TestLibrary.TestFramework.LogError("009", "The angle should be -pi/2, actual: "+angle.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest6: Verify the angle of arctan(x,y) when the point in quadrant two..."); - - try - { - double x = TestLibrary.Generator.GetDouble(-55); - while (x >= 0) - { - x = -TestLibrary.Generator.GetDouble(-55); - } - double y = TestLibrary.Generator.GetDouble(-55); - while (y <= 0) - { - y = TestLibrary.Generator.GetDouble(-55); - } - - double angle = Math.Atan2(y, x); - if (angle < Math.PI / 2 || angle > Math.PI) - { - TestLibrary.TestFramework.LogError("011", "The angle should be between 0 and Math.PI/2, actual: " + angle.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest7() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest7: Verify the angle of arctan(x,y) when the point in quadrant three..."); - - try - { - double x = TestLibrary.Generator.GetDouble(-55); - while (x >= 0) - { - x = -TestLibrary.Generator.GetDouble(-55); - } - double y = TestLibrary.Generator.GetDouble(-55); - while (y >= 0) - { - y = -TestLibrary.Generator.GetDouble(-55); - } - - double angle = Math.Atan2(y, x); - if (angle > -Math.PI / 2 || angle < -Math.PI) - { - TestLibrary.TestFramework.LogError("013", "The angle should be between 0 and Math.PI/2, actual: " + - angle.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("014", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathceiling.cs b/tests/src/CoreMangLib/cti/system/math/mathceiling.cs deleted file mode 100644 index 0839173611..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathceiling.cs +++ /dev/null @@ -1,208 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; - - -/// <summary> -/// System.Math.Ceiling(System.Double) -/// </summary> -public class MathCeiling -{ - public static int Main(string[] args) - { - MathCeiling ceiling = new MathCeiling(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Ceiling(System.Double)..."); - - if (ceiling.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify Ceiling number should be equal to the integer part of negative number..."); - - try - { - double number = TestLibrary.Generator.GetDouble(-55); - while (number >= 0) - { - number = (-TestLibrary.Generator.GetDouble(-55))*100; - } - - double ceilingNumber = Math.Ceiling(number); - if (ceilingNumber < number || ceilingNumber > number + 1) - { - TestLibrary.TestFramework.LogError("001","The Ceiling number should be equal to the integer part of negative number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify Ceiling number should be equal to itself when number is negative integer"); - - try - { - double number = TestLibrary.Generator.GetDouble(-55); - while (number >= 0) - { - number = (-TestLibrary.Generator.GetDouble(-55)) * 100; - } - - double ceilingNumber = Math.Ceiling(number); - if (ceilingNumber != Math.Ceiling(ceilingNumber)) - { - TestLibrary.TestFramework.LogError("003","The Ceiling number should be equal to itself when number is negative integer..."); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify Ceiling number should be equal to the integer part plus one of positive number..."); - - try - { - double number = TestLibrary.Generator.GetDouble(-55); - while (number <= 0) - { - number = (TestLibrary.Generator.GetDouble(-55)) * 100; - } - - double ceilingNumber = Math.Ceiling(number); - if (ceilingNumber < number || ceilingNumber > number + 1) - { - TestLibrary.TestFramework.LogError("005", "The Ceiling number should be equal to the integer part plus one of positive number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify Ceiling number should be equal to itself when number is positive integer"); - - try - { - double number = TestLibrary.Generator.GetDouble(-55); - while (number <= 0) - { - number = (TestLibrary.Generator.GetDouble(-55)) * 100; - } - - double ceilingNumber = Math.Ceiling(number); - if (ceilingNumber != Math.Ceiling(ceilingNumber)) - { - TestLibrary.TestFramework.LogError("007", "The Ceiling number should be equal to itself when number is positive integer..."); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify Ceiling number should be equal to itself when number is maxvalue..."); - - try - { - double ceilingMax = Math.Ceiling(double.MaxValue); - if (ceilingMax != double.MaxValue) - { - TestLibrary.TestFramework.LogError("009", "The Ceiling number should be equal to itself when number is maxvalue!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest6: Verify Ceiling number should be equal to itself when number is minvalue..."); - - try - { - double ceilingMax = Math.Ceiling(double.MinValue); - if (ceilingMax != double.MinValue) - { - TestLibrary.TestFramework.LogError("011", "The Ceiling number should be equal to itself when number is minvalue!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathcos.cs b/tests/src/CoreMangLib/cti/system/math/mathcos.cs deleted file mode 100644 index 418a62b871..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathcos.cs +++ /dev/null @@ -1,185 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.Cos(System.Double) -/// </summary> -public class MathCos -{ - public static int Main(string[] args) - { - MathCos cos = new MathCos(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Cos(System.Double)..."); - - if (cos.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the value of cosine(0)..."); - - try - { - double value = Math.Cos(0); - if (value != 1) - { - TestLibrary.TestFramework.LogError("001", "cosine(0) should be 1!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify the value of cosine(Math.PI/2)..."); - - try - { - double value = Math.Cos(Math.PI/2); - if (Math.Abs(1000000000*value) >= 0.1) - { - TestLibrary.TestFramework.LogError("003", "cosine(Math.PI/2) should be 0!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify the value of cosine(Math.PI)..."); - - try - { - double value = Math.Cos(Math.PI); - if (value != -1) - { - TestLibrary.TestFramework.LogError("005", "cosine(Math.PI) should be -1!"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify the value of cosine(3*Math.PI/2)..."); - - try - { - double value = Math.Cos(3*Math.PI/2); - if (Math.Abs(1000000000 * value) >= 0.1) - { - TestLibrary.TestFramework.LogError("007", "cosine(3*Math.PI/2) should be 0!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify the value of cosine(2*Math.PI) is equal to cosine(0)..."); - - try - { - double value1 = Math.Cos(0); - double value2 = Math.Cos(2*Math.PI); - if (value1 != value2) - { - TestLibrary.TestFramework.LogError("009", "cosine(3*Math.PI/2) should be 0!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest6: Verify the value of cosine(number) is between -1 and 1..."); - - try - { - double coefficient = TestLibrary.Generator.GetDouble(-55); - if (Math.Cos(2 * coefficient * Math.PI) > 1 || Math.Cos(2 * coefficient * Math.PI) < -1) - { - TestLibrary.TestFramework.LogError("011","The scale of cosine is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathcosh.cs b/tests/src/CoreMangLib/cti/system/math/mathcosh.cs deleted file mode 100644 index 2e75afbfa8..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathcosh.cs +++ /dev/null @@ -1,170 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.Cosh(System.Double) -/// </summary> -public class MathCosh -{ - public static int Main(string[] args) - { - MathCosh cosh = new MathCosh(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Cosh(System.Double)..."); - - if (cosh.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the monotonicity of cosh function..."); - - try - { - double variable = TestLibrary.Generator.GetDouble(-55); - double value1 = Math.Cosh(variable); - double positiveoffset = Math.Exp(-20); - double value2 = Math.Cosh(variable + positiveoffset); - - if (value2 <= value1) - { - TestLibrary.TestFramework.LogError("001", "the monotonicity of cosh function [x>=y -> cosh(x)>=cosh(y)]"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify the evenness of cosh function [cosh(x)=cosh(-x)]"); - - try - { - double variable = TestLibrary.Generator.GetDouble(-55); - double value1 = Math.Cosh(variable); - double value2 = Math.Cosh(-variable); - - if (!MathTestLib.DoubleIsWithinEpsilon(value1, value2)) - { - TestLibrary.TestFramework.LogError("003", "The parity of cosh should be even function!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify the value of cosh(0) = 1..."); - - try - { - double zero = 0; - double value = Math.Cosh(zero); - if (!MathTestLib.DoubleIsWithinEpsilon(value ,1)) - { - TestLibrary.TestFramework.LogError("005", "The value of cosh(0) should be 1, actual: "+value.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify the cosh(+inf)=+inf..."); - - try - { - double variable = double.MaxValue; - double value = Math.Cosh(variable); - if (value != double.PositiveInfinity) - { - TestLibrary.TestFramework.LogError("007", "The value should be double.PositiveInfinity, actual: "+value.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify the value of cosh(Double.MinValue)=+inf"); - - try - { - double variable = double.MinValue; - double value = Math.Cosh(variable); - if (value != double.PositiveInfinity) - { - TestLibrary.TestFramework.LogError("009", "The value should be double.PositiveInfinity, actual: " + - value.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathe.cs b/tests/src/CoreMangLib/cti/system/math/mathe.cs deleted file mode 100644 index 404e242b02..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathe.cs +++ /dev/null @@ -1,64 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; - - -/// <summary> -/// System.Math.E -/// </summary> -public class MathE -{ - public static int Main(string[] args) - { - MathE mathE = new MathE(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.E..."); - - if (mathE.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the value of Math.E..."); - - try - { - double constantE = Math.E; - if (constantE != 2.7182818284590451) - { - TestLibrary.TestFramework.LogError("001","The value of E is not correct!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathexp.cs b/tests/src/CoreMangLib/cti/system/math/mathexp.cs deleted file mode 100644 index 791e50eb88..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathexp.cs +++ /dev/null @@ -1,172 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.Exp(System.Double) -/// </summary> -public class MathExp -{ - public static int Main(string[] args) - { - MathExp exp = new MathExp(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Exp(System.Double)..."); - - if (exp.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify monotonicity of Exp function"); - - try - { - double variable = TestLibrary.Generator.GetDouble(-55); - double value1 = Math.Exp(variable); - double positiveoffset = Math.Exp(-20); - double value2 = Math.Exp(variable + positiveoffset); - - if (value2 <= value1) - { - TestLibrary.TestFramework.LogError("001", "The monotonicity of chx function should be increase by degree!"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify Exp is neither odd function nor even function..."); - - try - { - double variable = TestLibrary.Generator.GetDouble(-55); - double value1 = Math.Exp(variable); - double value2 = Math.Exp(-variable); - - if (value1 == value2 || value1 == -value2) - { - TestLibrary.TestFramework.LogError("003","The exp function should not be symmetry!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify the value of Exp(0) is 1..."); - - try - { - double value = Math.Exp(0); - - if (value != 1) - { - TestLibrary.TestFramework.LogError("005","The value of Exp(0) is 1!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify the value of Exp(double.MaxValue)..."); - - try - { - double variable = double.MaxValue; - double value = Math.Exp(variable); - - if (value != double.PositiveInfinity) - { - TestLibrary.TestFramework.LogError("007", "The value of Exp(double.MaxValue) should be PositiveInfinity!"); - retVal = true; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify the value of Exp(double.MaxValue)"); - - try - { - double variable = double.MinValue; - double value = Math.Exp(variable); - - if (value != 0) - { - TestLibrary.TestFramework.LogError("009", "The value of Exp(double.MaxValue) should be PositiveInfinity!"); - retVal = true; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathfloor.cs b/tests/src/CoreMangLib/cti/system/math/mathfloor.cs deleted file mode 100644 index e85cd656b4..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathfloor.cs +++ /dev/null @@ -1,209 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.Floor(System.Double) -/// </summary> -public class MathFloor -{ - public static int Main(string[] args) - { - MathFloor floor = new MathFloor(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Floor(System.Double)..."); - - if (floor.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify floor number should be equal to intefer part subtract one of negative number..."); - - try - { - double number = TestLibrary.Generator.GetDouble(-55); - while (number >= 0) - { - number = (-TestLibrary.Generator.GetDouble(-55)) * 100; - } - - double floorNumber = Math.Floor(number); - if (floorNumber < number - 1 || floorNumber > number) - { - TestLibrary.TestFramework.LogError("001", "The Ceiling number should be equal to the integer part of negative number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify floor number should be equal to itself when number is negative integer..."); - - try - { - double number = TestLibrary.Generator.GetDouble(-55); - while (number >= 0) - { - number = (-TestLibrary.Generator.GetDouble(-55)) * 100; - } - - double floorNumber = Math.Floor(number); - if (floorNumber != Math.Floor(floorNumber)) - { - TestLibrary.TestFramework.LogError("003", "The floor number should be equal to itself when number is negative integer..."); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify floor number should be equal to the integer part of positive number..."); - - try - { - double number = TestLibrary.Generator.GetDouble(-55); - while (number <= 0) - { - number = (TestLibrary.Generator.GetDouble(-55)) * 100; - } - - double floorNumber = Math.Floor(number); - if (floorNumber < number - 1 || floorNumber > number) - { - TestLibrary.TestFramework.LogError("005", "The floor number should be equal to the integer part plus one of positive number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify floor number should be equal to itself when number is positive integer..."); - - try - { - double number = TestLibrary.Generator.GetDouble(-55); - while (number <= 0) - { - number = (TestLibrary.Generator.GetDouble(-55)) * 100; - } - - double floorNumber = Math.Floor(number); - if (floorNumber != Math.Floor(floorNumber)) - { - TestLibrary.TestFramework.LogError("007", "The floor number should be equal to itself when number is positive integer..."); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify floor number should be equal to itself when number is maxvalue..."); - - try - { - double floorMax = Math.Floor(double.MaxValue); - if (floorMax != double.MaxValue) - { - TestLibrary.TestFramework.LogError("009", "The floor number should be equal to itself when number is maxvalue!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest6: Verify floor number should be equal to itself when number is minvalue..."); - - try - { - double floorMin = Math.Floor(double.MinValue); - if (floorMin != double.MinValue) - { - TestLibrary.TestFramework.LogError("011", "The floor number should be equal to itself when number is minvalue!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathieeeremainder.cs b/tests/src/CoreMangLib/cti/system/math/mathieeeremainder.cs deleted file mode 100644 index 8f1b4ab276..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathieeeremainder.cs +++ /dev/null @@ -1,149 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.IEEERemainder(System.Double,System.Double) -/// </summary> -public class MathIEEERemainder -{ - public static int Main(string[] args) - { - MathIEEERemainder ieeeRemainder = new MathIEEERemainder(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.IEEERemainder(System.Double,System.Double)..."); - - if (ieeeRemainder.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify x / y fails halfway between two integer,the even integer is less than odd integer..."); - - try - { - Double x = 5; - Double y = 2; - Double remainder = Math.IEEERemainder(x,y); - - // When x=5,y=2,the quotient should be equal to the even nember 2, therefore the IEEERemainder is positive - if (remainder != x - Math.Floor(x / y) * y) - { - TestLibrary.TestFramework.LogError("001", "The remainder should be x - (y*quotient)!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify x/y fails halfway between two integer,the add integer is less than even integer..."); - - try - { - Double x = 7; - Double y = 2; - Double remainder = Math.IEEERemainder(x,y); - - //When x=7,y=2,the quotient should be equal to the even number 4,therefore the IEEERemainder is negative - if (remainder != x - Math.Ceiling(x / y) * y) - { - TestLibrary.TestFramework.LogError("003", "The remainder should be x - (y*quotient)!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify divisor is zero..."); - - try - { - Double x = TestLibrary.Generator.GetDouble(-55); - Double y = 0; - Double remainder = Math.IEEERemainder(x,y); - - if (!Double.IsNaN(remainder)) - { - TestLibrary.TestFramework.LogError("005","The value should be Double.NaN!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify the value 0 is returned when x - (y*quotient) is zero..."); - - try - { - Double x = 6; - Double y = 2; - Double remainder = Math.IEEERemainder(x,y); - - if (remainder != 0) - { - TestLibrary.TestFramework.LogError("007", "The value should be zero!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathlog.cs b/tests/src/CoreMangLib/cti/system/math/mathlog.cs deleted file mode 100644 index fef85961ab..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathlog.cs +++ /dev/null @@ -1,247 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.Log(System.Double) -/// </summary> -public class MathLog -{ - public static int Main(string[] args) - { - MathLog log = new MathLog(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Log(System.Double)..."); - - if (log.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the monotonicity of ln(d)..."); - - try - { - double var1 = 100.1 * TestLibrary.Generator.GetDouble(-55); - double var2 = 100.1 * TestLibrary.Generator.GetDouble(-55); - - if (var1 < var2) - { - if (Math.Log(var1) >= Math.Log(var2)) - { - TestLibrary.TestFramework.LogError("001", "The value of ln(var1)=" + Math.Log(var1).ToString() + - " should be less than ln(var2)=" + Math.Log(var2).ToString()); - retVal = false; - } - } - else if (var1 > var2) - { - if (Math.Log(var1) <= Math.Log(var2)) - { - TestLibrary.TestFramework.LogError("002", "The value of ln(var1)=" + Math.Log(var1).ToString() + - " should be larger than ln(var2)=" + Math.Log(var2).ToString()); - retVal = false; - } - } - else - { - if (!MathTestLib.DoubleIsWithinEpsilon(Math.Log(var1) ,Math.Log(var2))) - { - TestLibrary.TestFramework.LogError("003", "The value of ln(var1)=" + Math.Log(var1).ToString() + - " should be equal to ln(var2)=" + Math.Log(var2).ToString()); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify the value is negative when var is between o and 1..."); - - try - { - double var = 0; - while (var <= 0 && var >= 1) - { - var = TestLibrary.Generator.GetDouble(-55); - } - - if (Math.Log(var) >= 0) - { - TestLibrary.TestFramework.LogError("005", "The value should be negative, is " + Math.Log(var).ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify the value of ln(1) is 0..."); - - try - { - double var = 1; - if (!MathTestLib.DoubleIsWithinEpsilon(Math.Log(var),0)) - { - TestLibrary.TestFramework.LogError("007", "The value of ln(1) should be zero, is " + Math.Log(var).ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify the value of ln(var) is larger than zero..."); - - try - { - double var = TestLibrary.Generator.GetDouble(-55); - while (var <= 1) - { - var *= 10 ; - } - - if (Math.Log(var) < 0) - { - TestLibrary.TestFramework.LogError("009", "The value should be larger than zero, is " + Math.Log(var).ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify the value of ln(0)..."); - - try - { - double var = 0; - if (!double.IsNegativeInfinity(Math.Log(var))) - { - TestLibrary.TestFramework.LogError("011", "the value of ln(0) should be negativeInfinity, is " + - Math.Log(var).ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest6: Verify the value of ln(var) when var is negative..."); - - try - { - double var = -TestLibrary.Generator.GetDouble(-55); - while (var >= 0) - { - var = TestLibrary.Generator.GetDouble(-55); - } - - if (!double.IsNaN(Math.Log(var))) - { - TestLibrary.TestFramework.LogError("013", "The value should be NaN, is " + Math.Log(var).ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("014","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest7() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest7: Verify the value of ln(e)..."); - - try - { - double var = Math.E; - if (!MathTestLib.DoubleIsWithinEpsilon(Math.Log(var) ,1)) - { - TestLibrary.TestFramework.LogError("015", "The value should be equal to 1, is " + Math.Log(var).ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("016","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathlog10.cs b/tests/src/CoreMangLib/cti/system/math/mathlog10.cs deleted file mode 100644 index 694c3b6858..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathlog10.cs +++ /dev/null @@ -1,243 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.Log10(System.Double) -/// </summary> -public class MathLog10 -{ - public static int Main(string[] args) - { - MathLog10 log10 = new MathLog10(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Log10(System.Double)..."); - - if (log10.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the monotonicity of Log10(var)..."); - - try - { - double var1 = 100.1 * TestLibrary.Generator.GetDouble(-55); - double var2 = 100.1 * TestLibrary.Generator.GetDouble(-55); - - if (var1 < var2) - { - if (Math.Log10(var1) >= Math.Log10(var2)) - { - TestLibrary.TestFramework.LogError("001", "The value of Log10(var1) should be less than In(var2)..."); - retVal = false; - } - } - else if (var1 > var2) - { - if (Math.Log10(var1) <= Math.Log10(var2)) - { - TestLibrary.TestFramework.LogError("002", "The value of Log10(var1) should be larger than In(var2)..."); - retVal = false; - } - } - else - { - if (Math.Log10(var1) != Math.Log10(var2)) - { - TestLibrary.TestFramework.LogError("003", "The value of Log10(var1) should be equal to In(var2)..."); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify the value is negative when var is between o and 1..."); - - try - { - double var = 0; - while (var <= 0 && var >= 1) - { - var = TestLibrary.Generator.GetDouble(-55); - } - - if (Math.Log10(var) >= 0) - { - TestLibrary.TestFramework.LogError("005", "The value should be negative!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify the value of Log10(1) is 0..."); - - try - { - double var = 1; - if (Math.Log10(var) != 0) - { - TestLibrary.TestFramework.LogError("007", "The value of Log10(1) should be zero!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify the value of Log10(var) is larger than zero..."); - - try - { - double var = TestLibrary.Generator.GetDouble(-55); - while (var <= 1) - { - var *= 10; - } - - if (Math.Log10(var) < 0) - { - TestLibrary.TestFramework.LogError("009", "The value should be larger than zero!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify the value of Log10(0)..."); - - try - { - double var = 0; - if (!double.IsNegativeInfinity(Math.Log10(var))) - { - TestLibrary.TestFramework.LogError("011", "the value of Log10(0) should be negativeInfinity!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest6: Verify the value of Log10(var) when var is negative..."); - - try - { - double var = -TestLibrary.Generator.GetDouble(-55); - while (var >= 0) - { - var = TestLibrary.Generator.GetDouble(-55); - } - - if (!double.IsNaN(Math.Log10(var))) - { - TestLibrary.TestFramework.LogError("013", "The value should be NaN!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("014", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest7() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest7: Verify the value of Log10(10)..."); - - try - { - double var = 10; - if (Math.Log10(var) != 1) - { - TestLibrary.TestFramework.LogError("015","the value should be equal to 1!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("016", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathmax1.cs b/tests/src/CoreMangLib/cti/system/math/mathmax1.cs deleted file mode 100644 index ff38b0e27f..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathmax1.cs +++ /dev/null @@ -1,77 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.Max(System.Byte,System.Byte) -/// </summary> -public class MathMax1 -{ - public static int Main(string[] args) - { - MathMax1 max1 = new MathMax1(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Max(System.Byte,System.Byte)..."); - - if (max1.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the return value of max function..."); - - try - { - byte byte1 = TestLibrary.Generator.GetByte(-55); - byte byte2 = TestLibrary.Generator.GetByte(-55); - - if (byte1 < byte2) - { - if (Math.Max(byte1, byte2) != byte2) - { - TestLibrary.TestFramework.LogError("001", "the max value should be byte2!"); - retVal = false; - } - } - else - { - if (Math.Max(byte1, byte2) != byte1) - { - TestLibrary.TestFramework.LogError("002","the max value should be byte1!"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} - diff --git a/tests/src/CoreMangLib/cti/system/math/mathmax10.cs b/tests/src/CoreMangLib/cti/system/math/mathmax10.cs deleted file mode 100644 index 36f6d53b17..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathmax10.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.Max(System.UInt32,System.UInt32) -/// </summary> -public class MathMax10 -{ - public static int Main(string[] args) - { - MathMax10 max10 = new MathMax10(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Max(System.UInt32,System.UInt32)..."); - - if (max10.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the return value of max function..."); - - try - { - UInt32 var1 = (UInt32)TestLibrary.Generator.GetInt32(-55); - UInt32 var2 = (UInt32)TestLibrary.Generator.GetInt32(-55); - - if (var1 < var2) - { - if (Math.Max(var1, var2) != var2) - { - TestLibrary.TestFramework.LogError("001", "The return value should be var2!"); - retVal = false; - } - } - else - { - if (Math.Max(var1, var2) != var1) - { - TestLibrary.TestFramework.LogError("002", "The return value should be var1!"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathmax11.cs b/tests/src/CoreMangLib/cti/system/math/mathmax11.cs deleted file mode 100644 index 4d5e192cb9..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathmax11.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.Max(System.UInt64,System.UInt64) -/// </summary> -public class MathMax11 -{ - public static int Main(string[] args) - { - MathMax11 max11 = new MathMax11(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Max(System.UInt64,System.UInt64)..."); - - if (max11.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the return value of max function..."); - - try - { - UInt64 var1 = (UInt64)TestLibrary.Generator.GetInt64(-55); - UInt64 var2 = (UInt64)TestLibrary.Generator.GetInt64(-55); - - if (var1 < var2) - { - if (Math.Max(var1, var2) != var2) - { - TestLibrary.TestFramework.LogError("001", "The return value should be var2!"); - retVal = false; - } - } - else - { - if (Math.Max(var1, var2) != var1) - { - TestLibrary.TestFramework.LogError("002", "The return value should be var1!"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathmax2.cs b/tests/src/CoreMangLib/cti/system/math/mathmax2.cs deleted file mode 100644 index 72419536f3..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathmax2.cs +++ /dev/null @@ -1,78 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.Max(System.Decimal,System.Decimal) -/// </summary> -public class MathMax2 -{ - public static int Main(string[] args) - { - MathMax2 max2 = new MathMax2(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Max(System.Decimal,System.Decimal)..."); - - if (max2.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the return value of max function..."); - - try - { - double dVar1 = TestLibrary.Generator.GetDouble(-55); - decimal var1 = new decimal(dVar1); - double dVar2 = TestLibrary.Generator.GetDouble(-55); - decimal var2 = new decimal(dVar2); - - if (decimal.Compare(var1, var2) < 0) - { - if (Math.Max(var1, var2) != var2) - { - TestLibrary.TestFramework.LogError("001", "the max value should be var2!"); - retVal = false; - } - } - else - { - if (Math.Max(var1, var2) != var1) - { - TestLibrary.TestFramework.LogError("002","The max value should be var1!"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathmax3.cs b/tests/src/CoreMangLib/cti/system/math/mathmax3.cs deleted file mode 100644 index b441e060bc..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathmax3.cs +++ /dev/null @@ -1,102 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.Max(System.Double,System.Double) -/// </summary> -public class MathMax3 -{ - public static int Main(string[] args) - { - MathMax3 max3 = new MathMax3(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Max(System.Double,System.Double)"); - - if (max3.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the return value of max function when double parameters are not NaN..."); - - try - { - double var1 = TestLibrary.Generator.GetDouble(-55); - double var2 = TestLibrary.Generator.GetDouble(-55); - - if (var1 > var2 && !double.IsNaN(var1) && !double.IsNaN(var2)) - { - if (Math.Max(var1, var2) != var1) - { - TestLibrary.TestFramework.LogError("001","The value should equal to var1!"); - retVal = false; - } - } - else if (!double.IsNaN(var1) && !double.IsNaN(var2)) - { - if (Math.Max(var1, var2) != var2) - { - TestLibrary.TestFramework.LogError("002", "The value should equal to var2!"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify var1 is double.NaN..."); - - try - { - double var1 = double.NaN; - double var2 = double.PositiveInfinity; - - if (!double.IsNaN(Math.Max(var1, var2))) - { - TestLibrary.TestFramework.LogError("003","The value should be var1!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathmax4.cs b/tests/src/CoreMangLib/cti/system/math/mathmax4.cs deleted file mode 100644 index c450f802af..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathmax4.cs +++ /dev/null @@ -1,77 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.Max(System.Int16,System.Int16) -/// </summary> -public class MathMax4 -{ - public static int Main(string[] args) - { - MathMax4 max4 = new MathMax4(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Max(System.Int16,System.Int16)..."); - - if (max4.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the return value of max function..."); - - try - { - Int16 var1 = TestLibrary.Generator.GetInt16(-55); - Int16 var2 = TestLibrary.Generator.GetInt16(-55); - - if (var1 < var2) - { - if (Math.Max(var1, var2) != var2) - { - TestLibrary.TestFramework.LogError("001", "The value should be var1!"); - retVal = false; - } - } - else - { - if (Math.Max(var1, var2) != var1) - { - TestLibrary.TestFramework.LogError("002", "The value should be var2!"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} - diff --git a/tests/src/CoreMangLib/cti/system/math/mathmax5.cs b/tests/src/CoreMangLib/cti/system/math/mathmax5.cs deleted file mode 100644 index 06e20e0e8b..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathmax5.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.Max(System.Int32,System.Int32) -/// </summary> -public class MathMax5 -{ - public static int Main(string[] args) - { - MathMax5 max5 = new MathMax5(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Max(System.Int32,System.Int32)..."); - - if (max5.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the return value of max function..."); - - try - { - Int32 var1 = TestLibrary.Generator.GetInt32(-55); - Int32 var2 = TestLibrary.Generator.GetInt32(-55); - - if (var1 < var2) - { - if (Math.Max(var1, var2) != var2) - { - TestLibrary.TestFramework.LogError("001", "The value should be equal to var2!"); - retVal = false; - } - } - else - { - if (Math.Max(var1, var2) != var1) - { - TestLibrary.TestFramework.LogError("002", "The value should be equal to var1!"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathmax6.cs b/tests/src/CoreMangLib/cti/system/math/mathmax6.cs deleted file mode 100644 index 5ef954f95d..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathmax6.cs +++ /dev/null @@ -1,77 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.Max(System.Int64,System.Int64) -/// </summary> -public class MathMax6 -{ - public static int Main(string[] args) - { - MathMax6 max6 = new MathMax6(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Max(System.Int64,System.Int64)..."); - - if (max6.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the return value of max function..."); - - try - { - Int64 var1 = TestLibrary.Generator.GetInt64(-55); - Int64 var2 = TestLibrary.Generator.GetInt64(-55); - - if (var1 < var2) - { - if (Math.Max(var1, var2) != var2) - { - TestLibrary.TestFramework.LogError("001", "The value should be var2!"); - retVal = false; - } - } - else - { - if (Math.Max(var1, var2) != var1) - { - TestLibrary.TestFramework.LogError("002","The value should be equal to var1!"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} - diff --git a/tests/src/CoreMangLib/cti/system/math/mathmax7.cs b/tests/src/CoreMangLib/cti/system/math/mathmax7.cs deleted file mode 100644 index 8d978c5e47..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathmax7.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.Max(System.SByte,System.SByte) -/// </summary> -public class MathMax7 -{ - public static int Main(string[] args) - { - MathMax7 max7 = new MathMax7(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Max(System.SByte,System.SByte)..."); - - if (max7.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify "); - - try - { - SByte var1 = (SByte)TestLibrary.Generator.GetByte(-55); - SByte var2 = (SByte)TestLibrary.Generator.GetByte(-55); - - if (var1 < var2) - { - if (Math.Max(var1, var2) != var2) - { - TestLibrary.TestFramework.LogError("001", "The return value should be var2!"); - retVal = false; - } - } - else - { - if (Math.Max(var1, var2) != var1) - { - TestLibrary.TestFramework.LogError("002","The return value should be var1!"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathmax8.cs b/tests/src/CoreMangLib/cti/system/math/mathmax8.cs deleted file mode 100644 index 24a33cb3bd..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathmax8.cs +++ /dev/null @@ -1,103 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.Max(System.Single,System.Single) -/// </summary> -public class MathMax8 -{ - public static int Main(string[] args) - { - MathMax8 max8 = new MathMax8(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Max(System.Single,System.Single)..."); - - if (max8.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the return value of max function..."); - - try - { - Single var1 = TestLibrary.Generator.GetSingle(-55); - Single var2 = TestLibrary.Generator.GetSingle(-55); - - if (var1 > var2 && !Single.IsNaN(var1) && !Single.IsNaN(var2)) - { - if (Math.Max(var1, var2) != var1) - { - TestLibrary.TestFramework.LogError("001", "The return value should be var1!"); - retVal = false; - } - } - else if (!Single.IsNaN(var1) && !Single.IsNaN(var2)) - { - if (Math.Max(var1, var2) != var2) - { - TestLibrary.TestFramework.LogError("002", "The return value should be var2!"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify the max value of Single.NaN and Single.PositiveInfinity..."); - - try - { - Single var1 = Single.NaN; - Single var2 = Single.PositiveInfinity; - - if (!Single.IsNaN(Math.Max(var1, var2))) - { - TestLibrary.TestFramework.LogError("004", "The return value should be single.NaN!"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("005","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathmax9.cs b/tests/src/CoreMangLib/cti/system/math/mathmax9.cs deleted file mode 100644 index 7c0a124108..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathmax9.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.Max(System.UInt16,System.UInt16) -/// </summary> -public class MathMax9 -{ - public static int Main(string[] args) - { - MathMax9 max9 = new MathMax9(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Max(System.UInt16,System.UInt16)..."); - - if (max9.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the return value of max function..."); - - try - { - UInt16 var1 = (UInt16)TestLibrary.Generator.GetInt16(-55); - UInt16 var2 = (UInt16)TestLibrary.Generator.GetInt16(-55); - - if (var1 < var2) - { - if (Math.Max(var1, var2) != var2) - { - TestLibrary.TestFramework.LogError("001", "The return value should be var2!"); - retVal = false; - } - } - else - { - if (Math.Max(var1, var2) != var1) - { - TestLibrary.TestFramework.LogError("002","The return value should be var1!"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathmin1.cs b/tests/src/CoreMangLib/cti/system/math/mathmin1.cs deleted file mode 100644 index bc1af42613..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathmin1.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.Min(System.Byte,System.Byte) -/// </summary> -public class MathMin1 -{ - public static int Main(string[] args) - { - MathMin1 min1 = new MathMin1(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Min(System.Byte,System.Byte)..."); - - if (min1.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the return value of min function..."); - - try - { - Byte var1 = TestLibrary.Generator.GetByte(-55); - Byte var2 = TestLibrary.Generator.GetByte(-55); - - if (var1 > var2) - { - if (Math.Min(var1, var2) != var2) - { - TestLibrary.TestFramework.LogError("001", "The return value should be var2!"); - retVal = false; - } - } - else - { - if (Math.Min(var1, var2) != var1) - { - TestLibrary.TestFramework.LogError("002","The return value should be var1!"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathmin10.cs b/tests/src/CoreMangLib/cti/system/math/mathmin10.cs deleted file mode 100644 index e219ddeb3d..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathmin10.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.Min(System.UInt32,System.UInt32) -/// </summary> -public class MathMin10 -{ - public static int Main(string[] args) - { - MathMin10 min10 = new MathMin10(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Min(System.UInt32,System.UInt32)..."); - - if (min10.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the return value of Min function..."); - - try - { - UInt32 var1 = (UInt32)TestLibrary.Generator.GetInt32(-55); - UInt32 var2 = (UInt32)TestLibrary.Generator.GetInt32(-55); - - if (var1 > var2) - { - if (Math.Min(var1, var2) != var2) - { - TestLibrary.TestFramework.LogError("001", "The return value should be var2!"); - retVal = false; - } - } - else - { - if (Math.Min(var1, var2) != var1) - { - TestLibrary.TestFramework.LogError("002", "The return value should be var1!"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathmin11.cs b/tests/src/CoreMangLib/cti/system/math/mathmin11.cs deleted file mode 100644 index b9c199d614..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathmin11.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.Min(System.UInt64,System.UInt64) -/// </summary> -public class MathMin11 -{ - public static int Main(string[] args) - { - MathMin11 min11 = new MathMin11(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Min(System.UInt64,System.UInt64)..."); - - if (min11.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the return value of Min function..."); - - try - { - UInt64 var1 = (UInt64)TestLibrary.Generator.GetInt64(-55); - UInt64 var2 = (UInt64)TestLibrary.Generator.GetInt64(-55); - - if (var1 > var2) - { - if (Math.Min(var1, var2) != var2) - { - TestLibrary.TestFramework.LogError("001", "The return value should be var2!"); - retVal = false; - } - } - else - { - if (Math.Min(var1, var2) != var1) - { - TestLibrary.TestFramework.LogError("002", "The return value should be var1!"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathmin2.cs b/tests/src/CoreMangLib/cti/system/math/mathmin2.cs deleted file mode 100644 index 86773f906c..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathmin2.cs +++ /dev/null @@ -1,78 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.Min(System.Decimal,System.Decimal) -/// </summary> -public class MathMin2 -{ - public static int Main(string[] args) - { - MathMin2 min2 = new MathMin2(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Min(System.Decimal,System.Decimal)..."); - - if (min2.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the return value of min function..."); - - try - { - double dvar1 = TestLibrary.Generator.GetDouble(-55); - decimal var1 = (decimal)dvar1; - double dvar2 = TestLibrary.Generator.GetDouble(-55); - decimal var2 = (decimal)dvar2; - - if (decimal.Compare(var1, var2) >= 0) - { - if (Math.Min(var1, var2) != var2) - { - TestLibrary.TestFramework.LogError("001", "The return value should be var2!"); - retVal = false; - } - } - else - { - if (Math.Min(var1, var2) != var1) - { - TestLibrary.TestFramework.LogError("002","The return value should be var1!"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003","Unexpected exception coours; " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathmin3.cs b/tests/src/CoreMangLib/cti/system/math/mathmin3.cs deleted file mode 100644 index 7fa5334dcd..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathmin3.cs +++ /dev/null @@ -1,102 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.Min(System.Double,System.Double) -/// </summary> -public class MathMin3 -{ - public static int Main(string[] args) - { - MathMin3 min3 = new MathMin3(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Min(System.Double,System.Double)..."); - - if (min3.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the return value of min function..."); - - try - { - double var1 = TestLibrary.Generator.GetDouble(-55); - double var2 = TestLibrary.Generator.GetDouble(-55); - - if (var1 < var2 && !double.IsNaN(var1) && !double.IsNaN(var2)) - { - if (Math.Min(var1, var2) != var1) - { - TestLibrary.TestFramework.LogError("001", "The return value is var1!"); - retVal = false; - } - } - else if (!double.IsNaN(var1) && !double.IsNaN(var2)) - { - if (Math.Min(var1, var2) != var2) - { - TestLibrary.TestFramework.LogError("002","The return value is var2"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify the min value of double.NaN and double.PositiveInfinity..."); - - try - { - double var1 = double.NaN; - double var2 = double.PositiveInfinity; - - if (!double.IsNaN(Math.Min(var1, var2))) - { - TestLibrary.TestFramework.LogError("004","The return value should be double.NaN!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("005","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathmin4.cs b/tests/src/CoreMangLib/cti/system/math/mathmin4.cs deleted file mode 100644 index 54709704dc..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathmin4.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.Min(System.Int16,System.Int16) -/// </summary> -public class MathMin4 -{ - public static int Main(string[] args) - { - MathMin4 min4 = new MathMin4(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Min(System.Int16,System.Int16)..."); - - if (min4.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the return value of Min function..."); - - try - { - Int16 var1 = TestLibrary.Generator.GetInt16(-55); - Int16 var2 = TestLibrary.Generator.GetInt16(-55); - - if (var1 > var2) - { - if (Math.Min(var1, var2) != var2) - { - TestLibrary.TestFramework.LogError("001", "The return value should be var2!"); - retVal = false; - } - } - else - { - if (Math.Min(var1, var2) != var1) - { - TestLibrary.TestFramework.LogError("002", "The return value should be var1!"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathmin5.cs b/tests/src/CoreMangLib/cti/system/math/mathmin5.cs deleted file mode 100644 index c407e25b7c..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathmin5.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.Min(System.Int32,System.Int32) -/// </summary> -public class MathMin5 -{ - public static int Main(string[] args) - { - MathMin5 min5 = new MathMin5(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Min(System.Int32,System.Int32)..."); - - if (min5.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the return value of Min function..."); - - try - { - Int32 var1 = TestLibrary.Generator.GetInt32(-55); - Int32 var2 = TestLibrary.Generator.GetInt32(-55); - - if (var1 > var2) - { - if (Math.Min(var1, var2) != var2) - { - TestLibrary.TestFramework.LogError("001", "The return value should be var2!"); - retVal = false; - } - } - else - { - if (Math.Min(var1, var2) != var1) - { - TestLibrary.TestFramework.LogError("002", "The return value should be var1!"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathmin6.cs b/tests/src/CoreMangLib/cti/system/math/mathmin6.cs deleted file mode 100644 index 1fd1feb98d..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathmin6.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.Min(System.Int64,System.Int64) -/// </summary> -public class MathMin6 -{ - public static int Main(string[] args) - { - MathMin6 min6 = new MathMin6(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Min(System.Int64,System.Int64)..."); - - if (min6.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the return value of Min function..."); - - try - { - Int64 var1 = TestLibrary.Generator.GetInt64(-55); - Int64 var2 = TestLibrary.Generator.GetInt64(-55); - - if (var1 > var2) - { - if (Math.Min(var1, var2) != var2) - { - TestLibrary.TestFramework.LogError("001", "The return value should be var2!"); - retVal = false; - } - } - else - { - if (Math.Min(var1, var2) != var1) - { - TestLibrary.TestFramework.LogError("002", "The return value should be var1!"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathmin7.cs b/tests/src/CoreMangLib/cti/system/math/mathmin7.cs deleted file mode 100644 index 959aa7f401..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathmin7.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.Min(System.SByte,System.SByte) -/// </summary> -public class MathMin7 -{ - public static int Main(string[] args) - { - MathMin7 min7 = new MathMin7(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Min(System.SByte,System.SByte)..."); - - if (min7.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the return value of Min function..."); - - try - { - SByte var1 = (SByte)TestLibrary.Generator.GetByte(-55); - SByte var2 = (SByte)TestLibrary.Generator.GetByte(-55); - - if (var1 > var2) - { - if (Math.Min(var1, var2) != var2) - { - TestLibrary.TestFramework.LogError("001", "The return value should be var2!"); - retVal = false; - } - } - else - { - if (Math.Min(var1, var2) != var1) - { - TestLibrary.TestFramework.LogError("002", "The return value should be var1!"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathmin8.cs b/tests/src/CoreMangLib/cti/system/math/mathmin8.cs deleted file mode 100644 index a0f9501710..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathmin8.cs +++ /dev/null @@ -1,102 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.Min(System.Single,System.Single) -/// </summary> -public class MathMin8 -{ - public static int Main(string[] args) - { - MathMin8 min8 = new MathMin8(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Min(System.Single,System.Single)..."); - - if (min8.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the return value of min function..."); - - try - { - Single var1 = TestLibrary.Generator.GetSingle(-55); - Single var2 = TestLibrary.Generator.GetSingle(-55); - - if (var1 < var2 && !Single.IsNaN(var1) && !Single.IsNaN(var2)) - { - if (Math.Min(var1, var2) != var1) - { - TestLibrary.TestFramework.LogError("001", "The return value should be var1!"); - retVal = false; - } - } - else if (!Single.IsNaN(var1) && !Single.IsNaN(var2)) - { - if (Math.Min(var1, var2) != var2) - { - TestLibrary.TestFramework.LogError("002","The return value should be var2!"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify the min value of Single.NaN and Single.NegativeInfinity..."); - - try - { - Single var1 = Single.NaN; - Single var2 = Single.NegativeInfinity; - - if (!Single.IsNaN(Math.Min(var1, var2))) - { - TestLibrary.TestFramework.LogError("004", "The return value should be Single.NaN!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("005", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathmin9.cs b/tests/src/CoreMangLib/cti/system/math/mathmin9.cs deleted file mode 100644 index 6eb8aa3f9a..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathmin9.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.Min(System.UInt16,System.UInt16) -/// </summary> -public class MathMin9 -{ - public static int Main(string[] args) - { - MathMin9 min9 = new MathMin9(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Min(System.UInt16,System.UInt16)..."); - - if (min9.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the return value of Min function..."); - - try - { - UInt16 var1 = (UInt16)TestLibrary.Generator.GetInt16(-55); - UInt16 var2 = (UInt16)TestLibrary.Generator.GetInt16(-55); - - if (var1 > var2) - { - if (Math.Min(var1, var2) != var2) - { - TestLibrary.TestFramework.LogError("001", "The return value should be var2!"); - retVal = false; - } - } - else - { - if (Math.Min(var1, var2) != var1) - { - TestLibrary.TestFramework.LogError("002", "The return value should be var1!"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathpi.cs b/tests/src/CoreMangLib/cti/system/math/mathpi.cs deleted file mode 100644 index 7b49aea9ab..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathpi.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// System.Math.PI -/// </summary> -public class MathPI -{ - public static int Main(string[] args) - { - MathPI mathPI = new MathPI(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.PI..."); - - if (mathPI.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify the value of Math.PI..."); - - try - { - double mathPI = Math.PI; - if (mathPI != 3.1415926535897931) - { - TestLibrary.TestFramework.LogError("001","The value of Math.PI is not correct!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathpow.cs b/tests/src/CoreMangLib/cti/system/math/mathpow.cs deleted file mode 100644 index 10986a8991..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathpow.cs +++ /dev/null @@ -1,524 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// Pow(System.Double, System.Double) -/// </summary> - -public class MathPow -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - retVal = PosTest8() && retVal; - retVal = PosTest9() && retVal; - retVal = PosTest10() && retVal; - retVal = PosTest11() && retVal; - retVal = PosTest12() && retVal; - retVal = PosTest13() && retVal; - retVal = PosTest14() && retVal; - retVal = PosTest15() && retVal; - retVal = PosTest16() && retVal; - - - // - // TODO: Add your negative test cases here - // - // TestLibrary.TestFramework.LogInformation("[Negative]"); - // retVal = NegTest1() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify Pow when one of args is NaN ."); - - try - { - double d = Math.Pow(double.NaN, TestLibrary.Generator.GetByte(-55)); - - if (!double.IsNaN(d)) - { - TestLibrary.TestFramework.LogError("001.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify Pow when second arg is zero ."); - - try - { - double d = Math.Pow(TestLibrary.Generator.GetByte(-55),0); - - if (d != 1) - { - TestLibrary.TestFramework.LogError("002.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify Pow(NegativeInfinity, < 0) ."); - - try - { - double d = Math.Pow(double.NegativeInfinity,-TestLibrary.Generator.GetDouble(-55)); - - if (d != 0) - { - TestLibrary.TestFramework.LogError("003.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify Pow(NegativeInfinity, positive odd int) ."); - - try - { - double d = Math.Pow(double.NegativeInfinity, TestLibrary.Generator.GetByte(-55) * 2 + 1); - - if (d != double.NegativeInfinity) - { - TestLibrary.TestFramework.LogError("004.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify Pow(NegativeInfinity, positive non-odd int) ."); - - try - { - int e = (TestLibrary.Generator.GetByte(-55) +1) * 2; - double d = Math.Pow(double.NegativeInfinity, e); - - if (d != double.PositiveInfinity) - { - TestLibrary.TestFramework.LogError("005.1", "Return value is wrong: expected Double.PositiveInfinity, actual: "+ - d.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("005.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest6: Verify Pow(< 0, non-int) ."); - - try - { - double d = Math.Pow(-TestLibrary.Generator.GetByte(-55) - 1, TestLibrary.Generator.GetDouble() + 0.1); - - if (!double.IsNaN(d)) - { - TestLibrary.TestFramework.LogError("006.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest7() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest7: Verify Pow(-1, NegativeInfinity) ."); - - try - { - double d = Math.Pow(- 1, double.NegativeInfinity); - - if (d != 1) - { - TestLibrary.TestFramework.LogError("007.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("007.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest8() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest8: Verify Pow(-1<x<1, NegativeInfinity) ."); - - try - { - double d = Math.Pow(TestLibrary.Generator.GetDouble(-55), double.NegativeInfinity); - - if (!double.IsPositiveInfinity(d)) - { - TestLibrary.TestFramework.LogError("008.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest9() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest9: Verify Pow(-1<x<1, PositiveInfinity) ."); - - try - { - double d = Math.Pow(TestLibrary.Generator.GetDouble(-55), double.PositiveInfinity); - - if (d != 0) - { - TestLibrary.TestFramework.LogError("009.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("009.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest10() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest10: Verify Pow(>1, NegativeInfinity) ."); - - try - { - double d = Math.Pow(TestLibrary.Generator.GetDouble(-55) + 1, double.NegativeInfinity); - - if (d != 0) - { - TestLibrary.TestFramework.LogError("010.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest11() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest11: Verify Pow(>1, PositiveInfinity) ."); - - try - { - double d = Math.Pow(TestLibrary.Generator.GetDouble(-55) + 1, double.PositiveInfinity); - - if (!double.IsPositiveInfinity(d)) - { - TestLibrary.TestFramework.LogError("011.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("011.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest12() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest12: Verify Pow( 0, < 0) ."); - - try - { - double d = Math.Pow(0, -TestLibrary.Generator.GetDouble(-55) - 0.1); - - if (!double.IsPositiveInfinity(d)) - { - TestLibrary.TestFramework.LogError("012.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest13() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest13: Verify Pow( 0, > 0) ."); - - try - { - double d = Math.Pow(0, TestLibrary.Generator.GetDouble(-55) + 0.1); - - if (d != 0) - { - TestLibrary.TestFramework.LogError("013.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("013.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest14() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest14: Verify Pow( 1, any value) ."); - - try - { - double d = Math.Pow(1, TestLibrary.Generator.GetDouble(-55)); - - if (d != 1) - { - TestLibrary.TestFramework.LogError("014.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("014.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest15() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest15: Verify Pow( PositiveInfinity, < 0) ."); - - try - { - double d = Math.Pow(double.PositiveInfinity, -TestLibrary.Generator.GetDouble(-55) - 0.1); - - if (d != 0) - { - TestLibrary.TestFramework.LogError("015.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("015.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest16() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest16: Verify Pow( PositiveInfinity, > 0) ."); - - try - { - double d = Math.Pow(double.PositiveInfinity, TestLibrary.Generator.GetDouble(-55) + 0.1); - - if (!double.IsPositiveInfinity(d)) - { - TestLibrary.TestFramework.LogError("015.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("015.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - //public bool NegTest1() - //{ - // bool retVal = true; - - // TestLibrary.TestFramework.BeginScenario("NegTest1: "); - - // try - // { - // // - // // Add your test logic here - // // - // } - // catch (Exception e) - // { - // TestLibrary.TestFramework.LogError("101", "Unexpected exception: " + e); - // TestLibrary.TestFramework.LogInformation(e.StackTrace); - // retVal = false; - // } - - // return retVal; - //} - #endregion - #endregion - - public static int Main() - { - MathPow test = new MathPow(); - - TestLibrary.TestFramework.BeginTestCase("MathPow"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathround1.cs b/tests/src/CoreMangLib/cti/system/math/mathround1.cs deleted file mode 100644 index 85b56ca41d..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathround1.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// Round(System.Decimal) -/// </summary> - -public class mathRound1 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - - // - // TODO: Add your negative test cases here - // - // TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify Round(System.Decimal) when decimal part of arg d < 0.5 ."); - - try - { - Int64 tempInt64Var = TestLibrary.Generator.GetInt64(-55); - - double tempDoubleVar; - do - tempDoubleVar = TestLibrary.Generator.GetDouble(-55); - while (tempDoubleVar >= 0.5); - - decimal d = decimal.Parse(tempInt64Var.ToString() + tempDoubleVar.ToString().Substring(1)); - - if (Math.Round(d) != decimal.Parse(tempInt64Var.ToString())) - { - Console.WriteLine("actual value = " + decimal.Parse(tempInt64Var.ToString())); - Console.WriteLine("expected value = " + Math.Round(d)); - TestLibrary.TestFramework.LogError("001.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify Round(System.Decimal) when decimal part of arg d >= 0.5 ."); - - try - { - Int64 tempInt64Var; - do - tempInt64Var = TestLibrary.Generator.GetInt64(-55); - while (tempInt64Var == Int64.MaxValue); - - double tempDoubleVar; - do - tempDoubleVar = TestLibrary.Generator.GetDouble(-55); - while (tempDoubleVar < 0.5); - - decimal d = decimal.Parse(tempInt64Var.ToString() + tempDoubleVar.ToString().Substring(1)); - - if (Math.Round(d) != decimal.Parse((tempInt64Var + 1).ToString())) - { - Console.WriteLine("actual value = " + decimal.Parse((tempInt64Var + 1).ToString())); - Console.WriteLine("expected value = " + Math.Round(d)); - TestLibrary.TestFramework.LogError("002.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: OverflowException is not thrown."); - - try - { - decimal result = Math.Round(decimal.Parse(decimal.MaxValue.ToString() + "1")); - } - catch (OverflowException) - { } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("101", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - mathRound1 test = new mathRound1(); - - TestLibrary.TestFramework.BeginTestCase("mathRound1"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathround2.cs b/tests/src/CoreMangLib/cti/system/math/mathround2.cs deleted file mode 100644 index 539c931b27..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathround2.cs +++ /dev/null @@ -1,199 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// Round(System.Decimal, System.Int32) -/// </summary> - -public class MathRound2 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - - // - // TODO: Add your negative test cases here - // - // TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify Round(d ,0) ."); - - try - { - if (Math.Round(3.45, 0) != 3 || Math.Round(3.55,0) != 4) - { - TestLibrary.TestFramework.LogError("001.1", "Return value is wrong!"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify Round(d ,1) ."); - - try - { - if (Math.Round(3.44, 1) != 3.4 || Math.Round(3.45, 1) != 3.4 || Math.Round(3.46, 1) != 3.5) - { - TestLibrary.TestFramework.LogError("002.1", "Return value is wrong!"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify Round(d ,28) ."); - - try - { - decimal d1 = 3.12345678901234567890123456744M; - decimal expectedResult1 = 3.1234567890123456789012345674M; - - decimal d2 = 3.12345678901234567890123456745M; - decimal expectedResult2 = 3.1234567890123456789012345674M; - - decimal d3 = 3.12345678901234567890123456746M; - decimal expectedResult3 = 3.1234567890123456789012345675M; - - int i = 28; - - if (Math.Round(d1, i) != expectedResult1 || Math.Round(d2, i) != expectedResult2 || Math.Round(d3, i) != expectedResult3) - { - TestLibrary.TestFramework.LogError("003.1", "Return value is wrong!"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: ArgumentOutOfRangeException is not thrown."); - - try - { - decimal d1 = 3.123456789012345678901234567890M; - decimal result = Math.Round(d1, -1); - - TestLibrary.TestFramework.LogError("101.1", "ArgumentOutOfRangeException is not thrown."); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("101.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2: ArgumentOutOfRangeException is not thrown."); - - try - { - decimal d1 = 3.123456789012345678901234567890M; - decimal result = Math.Round(d1, 29); - - TestLibrary.TestFramework.LogError("102.1", "ArgumentOutOfRangeException is not thrown."); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - - #endregion - #endregion - - public static int Main() - { - MathRound2 test = new MathRound2(); - - TestLibrary.TestFramework.BeginTestCase("MathRound2"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathround3.cs b/tests/src/CoreMangLib/cti/system/math/mathround3.cs deleted file mode 100644 index c4b4f69318..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathround3.cs +++ /dev/null @@ -1,186 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -public class MathRound3 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - - retVal = NegTest1() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify Round(System.double) when decimal part of arg d < =0.5 ."); - - try - { - int tempIntVar = TestLibrary.Generator.GetInt32(-55); - - double tempDoubleVar; - do - tempDoubleVar = TestLibrary.Generator.GetDouble(-55); - while (tempDoubleVar > 0.5); - - double d = tempIntVar + tempDoubleVar; - - if (Math.Round(d) != tempIntVar) - { - Console.WriteLine("actual value = " + tempIntVar); - Console.WriteLine("expected value = " + Math.Round(d)); - TestLibrary.TestFramework.LogError("001.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify Round(System.double) when decimal part of arg d > 0.5 ."); - - try - { - int tempIntVar = TestLibrary.Generator.GetInt32(-55); - - double tempDoubleVar; - do - tempDoubleVar = TestLibrary.Generator.GetDouble(-55); - while (tempDoubleVar <= 0.5); - - double d = tempIntVar + tempDoubleVar; - - if (Math.Round(d) != tempIntVar + 1) - { - Console.WriteLine("actual value = " + (tempIntVar + 1)); - Console.WriteLine("expected value = " + Math.Round(d)); - TestLibrary.TestFramework.LogError("001.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - // Test based on https://github.com/dotnet/coreclr/issues/12137 - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify Round(System.double) when decimal part of arg is very close to -0.5 ."); - - double doubleVal = -.50000000000000011102230246251565404236316680908203; - double expectedVal = -1.0; - - if (Math.Round(doubleVal) != expectedVal) - { - Console.WriteLine("actual value = {0:G17}", Math.Round(doubleVal)); - Console.WriteLine("expected value = {0:G17}", expectedVal); - TestLibrary.TestFramework.LogError("001.1", "Return value is wrong!"); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - // Test based on https://github.com/dotnet/coreclr/issues/12137 - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify Round(System.double) when decimal part of arg is very close to 0.5 ."); - - double doubleVal = 0.50000000000000011102230246251565404236316680908203; - double expectedVal = 1.0; - - if (Math.Round(doubleVal) != expectedVal) - { - Console.WriteLine("actual value = {0:G17}", Math.Round(doubleVal)); - Console.WriteLine("expected value = {0:G17}", expectedVal); - TestLibrary.TestFramework.LogError("001.1", "Return value is wrong!"); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: OverflowException is not thrown."); - - try - { - double result = Math.Round(double.Parse(double.MaxValue.ToString() + "1")); - TestLibrary.TestFramework.LogError("101.1", " OverflowException is not thrown."); - retVal = false; - } - catch (OverflowException) - { } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("101.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - MathRound3 test = new MathRound3(); - - TestLibrary.TestFramework.BeginTestCase("MathRound3"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathround4.cs b/tests/src/CoreMangLib/cti/system/math/mathround4.cs deleted file mode 100644 index e02101fb25..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathround4.cs +++ /dev/null @@ -1,189 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// Round(System.Double,System.Int32) -/// </summary> - -public class MathRound4 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify Round(d, 0)"); - - try - { - int i = 0; - if (Math.Round(3.4d, i) != 3 || Math.Round(3.5d, i) != 4 || Math.Round(3.6d, i) != 4) - { - TestLibrary.TestFramework.LogError("001.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify Round(d, 1)"); - - try - { - if (Math.Round(3.44d, 1) != 3.4 || Math.Round(3.45d, 1) != 3.4 || Math.Round(3.46d, 1) != 3.5) - { - TestLibrary.TestFramework.LogError("002.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify Round(d, 15)"); - - try - { - double d1 = 1234567890.123454; - double expectedResult1 = 1234567890.12345; - - double d2 = 1234567890.123455; - double expectedResult2 = 1234567890.12346; - - double d3 = 1234567890.123456; - double expectedResult3 = 1234567890.12346; - - int i = 15; - - if (Math.Round(d1, i).ToString() != expectedResult1.ToString() - || Math.Round(d2, i).ToString() != expectedResult2.ToString() - || Math.Round(d3, i).ToString() != expectedResult3.ToString()) - { - TestLibrary.TestFramework.LogError("003.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: ArgumentOutOfRangeException is not thrown."); - - try - { - double d = Math.Round(3.45, -1); - TestLibrary.TestFramework.LogError("101.1", " OverflowException is not thrown."); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("101.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2: ArgumentOutOfRangeException is not thrown."); - - try - { - double d = Math.Round(1234567890.1234567, 16); - TestLibrary.TestFramework.LogError("102.1", " OverflowException is not thrown."); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - MathRound4 test = new MathRound4(); - - TestLibrary.TestFramework.BeginTestCase("MathRound4"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathsign1.cs b/tests/src/CoreMangLib/cti/system/math/mathsign1.cs deleted file mode 100644 index d9058b1b84..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathsign1.cs +++ /dev/null @@ -1,208 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// Sign(System.Decimal) -/// </summary> - -public class MathSign1 -{ - public static int Main(string[] args) - { - MathSign1 test = new MathSign1(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Sign(System.Decimal)..."); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify Decimal.MaxValue is a positive number."); - - try - { - Decimal dec = Decimal.MaxValue; - if (Math.Sign(dec) != 1) - { - TestLibrary.TestFramework.LogError("P01.1", "Decimal.MaxValue is not a positive number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P01.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify Decimal.MinValue is a negative number."); - - try - { - Decimal dec = Decimal.MinValue; - if (Math.Sign(dec) != -1) - { - TestLibrary.TestFramework.LogError("P02.1", "Decimal.MinValue is not a negative number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P02.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify Decimal.One is a positive number."); - - try - { - Decimal dec = Decimal.One; - if (Math.Sign(dec) != 1) - { - TestLibrary.TestFramework.LogError("P03.1", "Decimal.One is not a positive number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P03.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify Decimal.MinusOne is a negative number."); - - try - { - Decimal dec = Decimal.MinusOne; - if (Math.Sign(dec) != -1) - { - TestLibrary.TestFramework.LogError("P04.1", "Decimal.MinusOne is not a negative number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P04.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify Decimal.Zero is zero."); - - try - { - Decimal zero = 0M; - if (Math.Sign(zero) != 0) - { - TestLibrary.TestFramework.LogError("P05.1", "Decimal.Zero is not zero!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P05.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest6: Verify the return value should be 1 when the decimal is positive."); - - try - { - Decimal dec = 123.456M; - if (Math.Sign(dec) != 1) - { - TestLibrary.TestFramework.LogError("P06.1", "The return value is not 1 when the decimal is positive!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P06.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest7() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest7: Verify the return value should be -1 when the decimal is negative."); - - try - { - Decimal dec = -123.456M; - if (Math.Sign(dec) != -1) - { - TestLibrary.TestFramework.LogError("P07.1", "The return value is not -1 when the decimal is negative!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P07.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathsign2.cs b/tests/src/CoreMangLib/cti/system/math/mathsign2.cs deleted file mode 100644 index 5c75bb175a..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathsign2.cs +++ /dev/null @@ -1,272 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// Sign(System.Double) -/// </summary> - -public class MathSign2 -{ - public static int Main(string[] args) - { - MathSign2 test = new MathSign2(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Sign(System.Double)."); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - retVal = PosTest8() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negtive]"); - retVal = NegTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify Double.MaxValue is a positive number."); - - try - { - Double d = Double.MaxValue; - if (Math.Sign(d) != 1) - { - TestLibrary.TestFramework.LogError("P01.1", "Double.MaxValue is not a positive number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P01.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify Double.MinValue is a negative number."); - - try - { - Double d = Double.MinValue; - if (Math.Sign(d) != -1) - { - TestLibrary.TestFramework.LogError("P02.1", "Double.MinValue is not a negative number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P02.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify Double.PositiveInfinity is a positive number."); - - try - { - Double d = Double.PositiveInfinity; - if (Math.Sign(d) != 1) - { - TestLibrary.TestFramework.LogError("P03.1", "Double.PositiveInfinity is not a positive number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P03.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify Double.NegativeInfinity is a negative number."); - - try - { - Double d = Double.NegativeInfinity; - if (Math.Sign(d) != -1) - { - TestLibrary.TestFramework.LogError("P04.1", "Double.NegativeInfinity is not a negative number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P04.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify Double.Epsilon is a positive number."); - - try - { - Double d = Double.Epsilon; - if (Math.Sign(d) != 1) - { - TestLibrary.TestFramework.LogError("P05.1", "Double.Epsilon is not a positive number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P05.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest6: Verify the return value should be 1 when the Double is positive."); - - try - { - Double d = TestLibrary.Generator.GetDouble(-55); - while (d <= 0) - { - d = TestLibrary.Generator.GetDouble(-55); - } - - if (Math.Sign(d) != 1) - { - TestLibrary.TestFramework.LogError("P06.1", "The return value is not 1 when the Double is positive!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P06.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest7() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest7: Verify the return value should be -1 when the Double is negative."); - - try - { - Double d = TestLibrary.Generator.GetDouble(-55); - while (d <= 0) - { - d = TestLibrary.Generator.GetDouble(-55); - } - - if (Math.Sign(-d) != -1) - { - TestLibrary.TestFramework.LogError("P07.1", "The return value is not -1 when the Double is negative!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P07.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest8() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest8: Verify the return value should be 0 when the Double is zero."); - - try - { - Double d = 0.0d; - - if (Math.Sign(d) != 0) - { - TestLibrary.TestFramework.LogError("P08.1", "The return value is not -1 when the Double is negative!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P08.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("NegTest1: ArithmeticException should be thrown when value is equal to NaN."); - - try - { - Double d = Double.NaN; - Math.Sign(d); - - TestLibrary.TestFramework.LogError("N01.1", "ArithmeticException is not thrown when value is equal to NaN!"); - retVal = false; - - } - catch (ArithmeticException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("N01.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathsign3.cs b/tests/src/CoreMangLib/cti/system/math/mathsign3.cs deleted file mode 100644 index efbe66b6c8..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathsign3.cs +++ /dev/null @@ -1,171 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// Sign(System.Int16) -/// </summary> - -public class MathSign3 -{ - public static int Main(string[] args) - { - MathSign3 test = new MathSign3(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Sign(System.Int16)."); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify Int16.MaxValue is a positive number."); - - try - { - Int16 i = Int16.MaxValue; - if (Math.Sign(i) != 1) - { - TestLibrary.TestFramework.LogError("P01.1", "Int16.MaxValue is not a positive number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P01.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify Int16.MinValue is a negative number."); - - try - { - Int16 i = Int16.MinValue; - if (Math.Sign(i) != -1) - { - TestLibrary.TestFramework.LogError("P02.1", "Int16.MinValue is not a negative number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P02.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify the return value should be 1 when the Int16 is positive."); - - try - { - Int16 i = TestLibrary.Generator.GetInt16(-55); - while (i <= 0) - { - i = TestLibrary.Generator.GetInt16(-55); - } - - if (Math.Sign(i) != 1) - { - TestLibrary.TestFramework.LogError("P03.1", "The return value is not 1 when the Int16 is positive!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P03.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify the return value should be -1 when the Int16 is negative."); - - try - { - Int16 i = TestLibrary.Generator.GetInt16(-55); - while (i <= 0) - { - i = TestLibrary.Generator.GetInt16(-55); - } - - if (Math.Sign(-i) != -1) - { - TestLibrary.TestFramework.LogError("P04.1", "The return value is not -1 when the Int16 is negative!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P04.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify the return value should be 0 when the Int16 is zero."); - - try - { - Int16 i = 0; - - if (Math.Sign(i) != 0) - { - TestLibrary.TestFramework.LogError("P05.1", "The return value is not -1 when the Int16 is negative!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P05.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathsign4.cs b/tests/src/CoreMangLib/cti/system/math/mathsign4.cs deleted file mode 100644 index ae5d7fe13f..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathsign4.cs +++ /dev/null @@ -1,171 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// Sign(System.Int32) -/// </summary> - -public class MathSign4 -{ - public static int Main(string[] args) - { - MathSign4 test = new MathSign4(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Sign(System.Int32)."); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify Int32.MaxValue is a positive number."); - - try - { - Int32 i = Int32.MaxValue; - if (Math.Sign(i) != 1) - { - TestLibrary.TestFramework.LogError("P01.1", "Int32.MaxValue is not a positive number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P01.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify Int32.MinValue is a negative number."); - - try - { - Int32 i = Int32.MinValue; - if (Math.Sign(i) != -1) - { - TestLibrary.TestFramework.LogError("P02.1", "Int32.MinValue is not a negative number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P02.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify the return value should be 1 when the Int32 is positive."); - - try - { - Int32 i = TestLibrary.Generator.GetInt32(-55); - while (i <= 0) - { - i = TestLibrary.Generator.GetInt32(-55); - } - - if (Math.Sign(i) != 1) - { - TestLibrary.TestFramework.LogError("P03.1", "The return value is not 1 when the Int32 is positive!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P03.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify the return value should be -1 when the Int32 is negative."); - - try - { - Int32 i = TestLibrary.Generator.GetInt32(-55); - while (i <= 0) - { - i = TestLibrary.Generator.GetInt32(-55); - } - - if (Math.Sign(-i) != -1) - { - TestLibrary.TestFramework.LogError("P04.1", "The return value is not -1 when the Int32 is negative!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P04.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify the return value should be 0 when the Int32 is zero."); - - try - { - Int32 i = 0; - - if (Math.Sign(i) != 0) - { - TestLibrary.TestFramework.LogError("P05.1", "The return value is not -1 when the Int32 is negative!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P05.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathsign5.cs b/tests/src/CoreMangLib/cti/system/math/mathsign5.cs deleted file mode 100644 index 5741325988..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathsign5.cs +++ /dev/null @@ -1,171 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// Sign(System.Int64) -/// </summary> - -public class MathSign5 -{ - public static int Main(string[] args) - { - MathSign5 test = new MathSign5(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Sign(System.Int64)."); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify Int64.MaxValue is a positive number."); - - try - { - Int64 i = Int64.MaxValue; - if (Math.Sign(i) != 1) - { - TestLibrary.TestFramework.LogError("P01.1", "Int64.MaxValue is not a positive number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P01.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify Int64.MinValue is a negative number."); - - try - { - Int64 i = Int64.MinValue; - if (Math.Sign(i) != -1) - { - TestLibrary.TestFramework.LogError("P02.1", "Int64.MinValue is not a negative number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P02.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify the return value should be 1 when the Int64 is positive."); - - try - { - Int64 i = TestLibrary.Generator.GetInt64(-55); - while (i <= 0) - { - i = TestLibrary.Generator.GetInt64(-55); - } - - if (Math.Sign(i) != 1) - { - TestLibrary.TestFramework.LogError("P03.1", "The return value is not 1 when the Int64 is positive!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P03.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify the return value should be -1 when the Int64 is negative."); - - try - { - Int64 i = TestLibrary.Generator.GetInt64(-55); - while (i <= 0) - { - i = TestLibrary.Generator.GetInt64(-55); - } - - if (Math.Sign(-i) != -1) - { - TestLibrary.TestFramework.LogError("P04.1", "The return value is not -1 when the Int64 is negative!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P04.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify the return value should be 0 when the Int64 is zero."); - - try - { - Int64 i = 0; - - if (Math.Sign(i) != 0) - { - TestLibrary.TestFramework.LogError("P05.1", "The return value is not -1 when the Int64 is negative!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P05.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathsign6.cs b/tests/src/CoreMangLib/cti/system/math/mathsign6.cs deleted file mode 100644 index a693cab10a..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathsign6.cs +++ /dev/null @@ -1,171 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// Sign(System.SByte) -/// </summary> - -public class MathSign6 -{ - public static int Main(string[] args) - { - MathSign6 test = new MathSign6(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Sign(System.SByte)."); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify SByte.MaxValue is a positive number."); - - try - { - SByte i = SByte.MaxValue; - if (Math.Sign(i) != 1) - { - TestLibrary.TestFramework.LogError("P01.1", "SByte.MaxValue is not a positive number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P01.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify SByte.MinValue is a negative number."); - - try - { - SByte i = SByte.MinValue; - if (Math.Sign(i) != -1) - { - TestLibrary.TestFramework.LogError("P02.1", "SByte.MinValue is not a negative number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P02.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify the return value should be 1 when the SByte is positive."); - - try - { - SByte s = (SByte)TestLibrary.Generator.GetByte(-55); - while (s <= 0) - { - s = (SByte)TestLibrary.Generator.GetByte(-55); - } - - if (Math.Sign(s) != 1) - { - TestLibrary.TestFramework.LogError("P03.1", "The return value is not 1 when the SByte is positive!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P03.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify the return value should be -1 when the SByte is negative."); - - try - { - SByte s = (SByte)TestLibrary.Generator.GetByte(-55); - while (s <= 0) - { - s = (SByte)TestLibrary.Generator.GetByte(-55); - } - - if (Math.Sign(-s) != -1) - { - TestLibrary.TestFramework.LogError("P04.1", "The return value is not -1 when the SByte is negative!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P04.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify the return value should be 0 when the SByte is zero."); - - try - { - SByte s = 0; - - if (Math.Sign(s) != 0) - { - TestLibrary.TestFramework.LogError("P05.1", "The return value is not 0 when the SByte is zero!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P05.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathsign7.cs b/tests/src/CoreMangLib/cti/system/math/mathsign7.cs deleted file mode 100644 index eeb0e7032d..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathsign7.cs +++ /dev/null @@ -1,272 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// Sign(System.Single) -/// </summary> - -public class MathSign7 -{ - public static int Main(string[] args) - { - MathSign7 test = new MathSign7(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Sign(System.Single)."); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - retVal = PosTest8() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negtive]"); - retVal = NegTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify Single.MaxValue is a positive number."); - - try - { - Single s = Single.MaxValue; - if (Math.Sign(s) != 1) - { - TestLibrary.TestFramework.LogError("P01.1", "Single.MaxValue is not a positive number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P01.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify Single.MinValue is a negative number."); - - try - { - Single s = Single.MinValue; - if (Math.Sign(s) != -1) - { - TestLibrary.TestFramework.LogError("P02.1", "Single.MinValue is not a negative number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P02.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify Single.PositiveInfinity is a positive number."); - - try - { - Single s = Single.PositiveInfinity; - if (Math.Sign(s) != 1) - { - TestLibrary.TestFramework.LogError("P03.1", "Single.PositiveInfinity is not a positive number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P03.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify Single.NegativeInfinity is a negative number."); - - try - { - Single s = Single.NegativeInfinity; - if (Math.Sign(s) != -1) - { - TestLibrary.TestFramework.LogError("P04.1", "Single.NegativeInfinity is not a negative number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P04.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify Single.Epsilon is a positive number."); - - try - { - Single s = Single.Epsilon; - if (Math.Sign(s) != 1) - { - TestLibrary.TestFramework.LogError("P05.1", "Single.Epsilon is not a positive number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P05.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest6: Verify the return value should be 1 when the Single is positive."); - - try - { - Single s = TestLibrary.Generator.GetSingle(-55); - while (s <= 0) - { - s = TestLibrary.Generator.GetSingle(-55); - } - - if (Math.Sign(s) != 1) - { - TestLibrary.TestFramework.LogError("P06.1", "The return value is not 1 when the Single is positive!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P06.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest7() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest7: Verify the return value should be -1 when the Single is negative."); - - try - { - Single s = TestLibrary.Generator.GetSingle(-55); - while (s <= 0) - { - s = TestLibrary.Generator.GetSingle(-55); - } - - if (Math.Sign(-s) != -1) - { - TestLibrary.TestFramework.LogError("P07.1", "The return value is not -1 when the Single is negative!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P07.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest8() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest8: Verify the return value should be 0 when the Single is zero."); - - try - { - Single s = 0.0f; - - if (Math.Sign(s) != 0) - { - TestLibrary.TestFramework.LogError("P08.1", "The return value is not -1 when the Single is negative!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P08.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("NegTest1: ArithmeticException should be thrown when value is equal to NaN."); - - try - { - Single s = Single.NaN; - Math.Sign(s); - - TestLibrary.TestFramework.LogError("N01.1", "ArithmeticException is not thrown when value is equal to NaN!"); - retVal = false; - - } - catch (ArithmeticException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("N01.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathsin.cs b/tests/src/CoreMangLib/cti/system/math/mathsin.cs deleted file mode 100644 index 84b20e0272..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathsin.cs +++ /dev/null @@ -1,232 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// Sin(System.Double) -/// </summary> - -public class MathSin -{ - public static int Main(string[] args) - { - MathSin test = new MathSin(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Sin(System.Double)."); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - retVal = PosTest8() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the result when radian is 0."); - - try - { - Double d = Math.Sin(0); - if (d != 0) - { - TestLibrary.TestFramework.LogError("P01.1", "The result is error when radian is 0!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P01.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify the result is 1 when radian is Math.PI/2."); - - try - { - Double d = Math.Sin(Math.PI/2); - if ( d != 1) - { - TestLibrary.TestFramework.LogError("P02.1", "The result is error when radian is Math.PI/2!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P02.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify the result is -1 when radian is -Math.PI/2."); - - try - { - Double d = Math.Sin(-Math.PI / 2); - if (d != -1) - { - TestLibrary.TestFramework.LogError("P03.1", "The result is error when radian is -Math.PI/2!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P03.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify the result is 1/2 when radian is Math.PI/6."); - - try - { - Double d = Math.Round(Math.Sin(Math.PI / 6), 2); - if (d != 0.5d) - { - TestLibrary.TestFramework.LogError("P04.1", "The result is error when radian is Math.PI/6!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P04.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify the result is -1/2 when radian is -Math.PI/6."); - - try - { - Double d = Math.Round(Math.Sin(-Math.PI / 6), 2); - if (d != -0.5d) - { - TestLibrary.TestFramework.LogError("P05.1", "The result is error when radian is -Math.PI/6!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P05.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest6: Verify the result is NaN when radian is PositiveInfinity."); - - try - { - Double d = Math.Sin(Double.PositiveInfinity); - if (d.CompareTo(Double.NaN) != 0) - { - TestLibrary.TestFramework.LogError("P06.1", "The result is error when radian is PositiveInfinity!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P06.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest7() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest7: Verify the result is NaN when radian is NegativeInfinity."); - - try - { - Double d = Math.Sin(Double.NegativeInfinity); - if (d.CompareTo(Double.NaN) != 0) - { - TestLibrary.TestFramework.LogError("P07.1", "The result is error when radian is NegativeInfinity!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P07.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest8() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest8: Verify the result is NaN when radian is NaN."); - - try - { - Double d = Math.Sin(Double.NaN); - if (d.CompareTo(Double.NaN) != 0) - { - TestLibrary.TestFramework.LogError("P08.1", "The result is error when radian is NaN!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P08.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathsinh.cs b/tests/src/CoreMangLib/cti/system/math/mathsinh.cs deleted file mode 100644 index 411c4b58d0..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathsinh.cs +++ /dev/null @@ -1,232 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -/// <summary> -/// Sinh(System.Double) -/// </summary> - -public class MathSinh -{ - public static int Main(string[] args) - { - MathSinh test = new MathSinh(); - TestLibrary.TestFramework.BeginTestCase("Testing System.Math.Sinh(System.Double)."); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - retVal = PosTest8() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the result when radian is 0."); - - try - { - Double d = Math.Sinh(0); - if (!MathTestLib.DoubleIsWithinEpsilon(d, 0)) - { - TestLibrary.TestFramework.LogError("P01.1", "The result is error when radian is 0!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P01.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify the result when radian is Math.PI/2."); - - try - { - Double d = Math.Sinh(Math.PI / 2); - if (!MathTestLib.DoubleIsWithinEpsilon(d ,2.3012989023072947)) - { - TestLibrary.TestFramework.LogError("P02.1", "The result is error when radian is Math.PI/2!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P02.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify the result when radian is -Math.PI/2."); - - try - { - Double d = Math.Sinh(-Math.PI / 2); - if (!MathTestLib.DoubleIsWithinEpsilon(d ,-2.3012989023072947)) - { - TestLibrary.TestFramework.LogError("P03.1", "The result is error when radian is -Math.PI/2!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P03.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify the result when radian is Math.PI/6."); - - try - { - Double d = Math.Sinh(Math.PI / 6); - if (!MathTestLib.DoubleIsWithinEpsilon(d,0.54785347388803973)) - { - TestLibrary.TestFramework.LogError("P04.1", "The result is error when radian is Math.PI/6!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P04.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify the result when radian is -Math.PI/6."); - - try - { - Double d = Math.Sinh(-Math.PI / 6); - if (!MathTestLib.DoubleIsWithinEpsilon(d ,-0.54785347388803973)) - { - TestLibrary.TestFramework.LogError("P05.1", "The result is error when radian is -Math.PI/6!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P05.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest6: Verify the result is PositiveInfinity when radian is PositiveInfinity."); - - try - { - Double d = Math.Sinh(Double.PositiveInfinity); - if (d.CompareTo(Double.PositiveInfinity) != 0) - { - TestLibrary.TestFramework.LogError("P06.1", "The result is error when radian is PositiveInfinity!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P06.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest7() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest7: Verify the result is NegativeInfinity when radian is NegativeInfinity."); - - try - { - Double d = Math.Sinh(Double.NegativeInfinity); - if (d.CompareTo(Double.NegativeInfinity) != 0) - { - TestLibrary.TestFramework.LogError("P07.1", "The result is error when radian is NegativeInfinity!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P07.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest8() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest8: Verify the result is NaN when radian is NaN."); - - try - { - Double d = Math.Sinh(Double.NaN); - if (d.CompareTo(Double.NaN) != 0) - { - TestLibrary.TestFramework.LogError("P08.1", "The result is error when radian is NaN!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P08.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathsqrt.cs b/tests/src/CoreMangLib/cti/system/math/mathsqrt.cs deleted file mode 100644 index f6108a4dcb..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathsqrt.cs +++ /dev/null @@ -1,167 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -/// <summary> -/// System.Math.Sqrt(double) -/// </summary> -public class MathSqrt -{ - public static int Main() - { - MathSqrt mathSqrt = new MathSqrt(); - TestLibrary.TestFramework.BeginTestCase("MathSqrt"); - if (mathSqrt.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - public bool RunTests() - { - bool retVal = true; - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - return retVal; - } - #region PositiveTest - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1:Calculate the zero sqrt"); - try - { - double source = 0; - double des = Math.Sqrt(source); - if (des != 0) - { - TestLibrary.TestFramework.LogError("001", "the ExpectResult is not the ActualResult"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2:Calculate the positive number sqrt"); - try - { - double source = 100; - double des = Math.Sqrt(source); - if (des != 10) - { - TestLibrary.TestFramework.LogError("003", "the ExpectResult is not the ActualResult"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3:Calculate the negative number sqrt"); - try - { - double source = -1; - double des = Math.Sqrt(source); - if (!double.IsNaN(des)) - { - TestLibrary.TestFramework.LogError("005", "the ExpectResult is not the ActualResult"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4:Calculate the double NaN sqrt"); - try - { - double source = double.NaN; - double des = Math.Sqrt(source); - if (!double.IsNaN(des)) - { - TestLibrary.TestFramework.LogError("007", "the ExpectResult is not the ActualResult"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5:Calculate the double PositiveInfinity sqrt"); - try - { - double source = double.PositiveInfinity; - double des = Math.Sqrt(source); - if (!double.IsPositiveInfinity(des)) - { - TestLibrary.TestFramework.LogError("009", "the ExpectResult is not the ActualResult"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - public bool PosTest6() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest6:Calculate the double NegativeInfinity sqrt"); - try - { - double source = double.NegativeInfinity; - double des = Math.Sqrt(source); - if (!double.IsNaN(des)) - { - TestLibrary.TestFramework.LogError("011", "the ExpectResult is not the ActualResult"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - #endregion -} diff --git a/tests/src/CoreMangLib/cti/system/math/mathtan.cs b/tests/src/CoreMangLib/cti/system/math/mathtan.cs deleted file mode 100644 index 1028bd5334..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathtan.cs +++ /dev/null @@ -1,191 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -/// <summary> -/// System.Math.Tan(Double) -/// </summary> -public class MathTan -{ - private const double c_DELTA = 0.000005d; - - public static int Main() - { - MathTan mathTan = new MathTan(); - TestLibrary.TestFramework.BeginTestCase("MathTan"); - if (mathTan.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - public bool RunTests() - { - bool retVal = true; - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - return retVal; - } - #region PositiveTest - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Caculate the tangent of 0 degrees"); - try - { - double sourceA = (double)0; - double desA = Math.Tan(sourceA); - if (!MathTestLib.DoubleIsWithinEpsilon(desA , (double)0)) - { - TestLibrary.TestFramework.LogError("001", "Expected: 0, actual: " + desA.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception" + e); - retVal = false; - } - return retVal; - } - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Calculate the tangent of 90 degrees"); - try - { - double sourceA = 90; - double desA = Math.Tan(sourceA * (Math.PI / 180)); - if ((desA - 16331778728383844.0) > c_DELTA) - { - TestLibrary.TestFramework.LogError("003", "the ExpectResult is not the ActualResult: Expected("+16331778728383844.0+") Actual("+desA+")"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception" + e); - retVal = false; - } - return retVal; - } - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Calculate the tangent of 180 degrees"); - try - { - double sourceA = 180; - double desA = Math.Tan(sourceA * (Math.PI / 180)); - if ((desA + 0.00000000000000012246063538223773) > c_DELTA) - { - TestLibrary.TestFramework.LogError("005", "Expected: 0.00000000000000012246063538223773, actual: " + desA.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception" + e); - retVal = false; - } - return retVal; - } - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Calculate the tangent of 45 degrees"); - try - { - double sourceA = 45.0; - double desA = Math.Tan(sourceA * (Math.PI / 180)); - if (!MathTestLib.DoubleIsWithinEpsilon(desA , 0.99999999999999989)) - { - TestLibrary.TestFramework.LogError("007", "Expected: 0.99999999999999989, actual: " + desA.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception" + e); - retVal = false; - } - return retVal; - } - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: The Double is Double NaN"); - try - { - double sourceA = Double.NaN; - double desA = Math.Tan(sourceA); - if (!double.IsNaN(desA)) - { - TestLibrary.TestFramework.LogError("009", "the ExpectResult is not the ActualResult: Expected(NaN) Actual("+desA+")"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception" + e); - retVal = false; - } - return retVal; - } - public bool PosTest6() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest6: The Double is Double NegativeInfinity"); - try - { - double sourceA = Double.NegativeInfinity; - double desA = Math.Tan(sourceA); - if (!double.IsNaN(desA)) - { - TestLibrary.TestFramework.LogError("011", "Expected: NaN, actual: " + desA.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpected exception" + e); - retVal = false; - } - return retVal; - } - public bool PosTest7() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest7: The Double is Double PositiveInfinity"); - try - { - double sourceA = Double.PositiveInfinity; - double desA = Math.Tan(sourceA); - if (!double.IsNaN(desA)) - { - TestLibrary.TestFramework.LogError("013", "Expected: NaN, actual: " + desA.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("014", "Unexpected exception" + e); - retVal = false; - } - return retVal; - } - #endregion -}
\ No newline at end of file diff --git a/tests/src/CoreMangLib/cti/system/math/mathtanh.cs b/tests/src/CoreMangLib/cti/system/math/mathtanh.cs deleted file mode 100644 index a117b0962c..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathtanh.cs +++ /dev/null @@ -1,193 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -/// <summary> -/// Math.Tanh(bouble) -/// </summary> -public class MathTanh -{ - public static int Main() - { - MathTanh mathTanh = new MathTanh(); - TestLibrary.TestFramework.BeginTestCase("MathTanh"); - if (mathTanh.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - public bool RunTests() - { - bool retVal = true; - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - return retVal; - } - #region PositiveTest - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Caculate the tanh of 0 degrees"); - try - { - double sourceA = 0; - double desA = Math.Tanh(sourceA); - if (!MathTestLib.DoubleIsWithinEpsilon(desA, sourceA)) - { - TestLibrary.TestFramework.LogError("001", "Expected: 0, actual: "+desA.ToString()+"; diff > epsilon = "+ - MathTestLib.Epsilon.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception" + e); - retVal = false; - } - return retVal; - } - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Calculate the tanh of 90 degrees"); - try - { - double sourceA = 90; - double desA = Math.Tanh(sourceA * (Math.PI / 180)); - if (!MathTestLib.DoubleIsWithinEpsilon(desA ,0.91715233566727439)) - { - TestLibrary.TestFramework.LogError("003", "Expected: 0.91715233566727439, actual: " + desA.ToString() + "; diff > epsilon = " + - MathTestLib.Epsilon.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception" + e); - retVal = false; - } - return retVal; - } - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Calculate the tanh of 180 degrees"); - try - { - double sourceA = 180; - double desA = Math.Tan(sourceA * (Math.PI / 180)); - if (!MathTestLib.DoubleIsWithinEpsilon(desA,-0.00000000000000012246063538223773)) - { - TestLibrary.TestFramework.LogError("005", "Expected: -0.00000000000000012246063538223773, actual: " + desA.ToString() + "; diff > epsilon = " + - MathTestLib.Epsilon.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception" + e); - retVal = false; - } - return retVal; - } - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Calculate the tanh of 45 degrees"); - try - { - double sourceA = 45.0; - double desA = Math.Tanh(sourceA * (Math.PI / 180)); - if (!MathTestLib.DoubleIsWithinEpsilon(desA ,0.65579420263267241)) - { - TestLibrary.TestFramework.LogError("007", "Expected: 0.65579420263267241, actual: " + desA.ToString() + "; diff > epsilon = " + - MathTestLib.Epsilon.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception" + e); - retVal = false; - } - return retVal; - } - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: tanh(NaN)=NaN"); - try - { - double sourceA = Double.NaN; - double desA = Math.Tanh(sourceA); - if (!double.IsNaN(desA)) - { - TestLibrary.TestFramework.LogError("009", "Expected: NaN, actual: " + desA.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception" + e); - retVal = false; - } - return retVal; - } - public bool PosTest6() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest6: tanh(-inf)=-1"); - try - { - double sourceA = Double.NegativeInfinity; - double desA = Math.Tanh(sourceA); - if (!MathTestLib.DoubleIsWithinEpsilon(desA ,-1)) - { - TestLibrary.TestFramework.LogError("011", "Expected: -1, actual: " + desA.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpected exception" + e); - retVal = false; - } - return retVal; - } - public bool PosTest7() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest7: tanh(+inf) = 1"); - try - { - double sourceA = Double.PositiveInfinity; - double desA = Math.Tanh(sourceA); - if (!MathTestLib.DoubleIsWithinEpsilon(desA ,1)) - { - TestLibrary.TestFramework.LogError("013", "Expected 1, actual: "+desA.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("014", "Unexpected exception" + e); - retVal = false; - } - return retVal; - } - #endregion -}
\ No newline at end of file diff --git a/tests/src/CoreMangLib/cti/system/math/mathtestlib.cs b/tests/src/CoreMangLib/cti/system/math/mathtestlib.cs deleted file mode 100644 index 50e1ed17ec..0000000000 --- a/tests/src/CoreMangLib/cti/system/math/mathtestlib.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// Summary description for Class1 -/// </summary> -public class MathTestLib -{ - private static Decimal epsilon = new Decimal(0.000001D); - - public static Decimal Epsilon - { - get - { - return epsilon; - } - set - { - epsilon = Convert.ToDecimal(value); - } - } - - public static bool DoubleIsWithinEpsilon(double x, double y) - { - Decimal dx = new Decimal(x); - Decimal dy = new Decimal(y); - Decimal diff = Math.Abs(Decimal.Subtract(dx, dy)); - return diff.CompareTo(Epsilon) <= 0; - } - - public static bool FloatIsWithinEpsilon(float x, float y) - { - Decimal dx = new Decimal(x); - Decimal dy = new Decimal(y); - Decimal diff = Math.Abs(Decimal.Subtract(dx, dy)); - return diff.CompareTo(Epsilon) <= 0; - } -} diff --git a/tests/src/CoreMangLib/cti/system/mathf/MathFAbs.csproj b/tests/src/CoreMangLib/cti/system/mathf/MathFAbs.csproj deleted file mode 100644 index d5d7a185ce..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/MathFAbs.csproj +++ /dev/null @@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{753E20EC-61C7-4BF3-92EE-4519A55FA4B5}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathfabs.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="..\..\..\..\Common\CoreCLRTestLibrary\CoreCLRTestLibrary.csproj"> - <Project>{C8C0DC74-FAC4-45B1-81FE-70C4808366E0}</Project> - <Name>CoreCLRTestLibrary</Name> - </ProjectReference> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/mathf/MathFAcos.csproj b/tests/src/CoreMangLib/cti/system/mathf/MathFAcos.csproj deleted file mode 100644 index 45707cac81..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/MathFAcos.csproj +++ /dev/null @@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{68E081B5-2C96-4105-B01B-34C7C746FDC8}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathfacos.cs" /> - <Compile Include="mathftestlib.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="..\..\..\..\Common\CoreCLRTestLibrary\CoreCLRTestLibrary.csproj"> - <Project>{C8C0DC74-FAC4-45B1-81FE-70C4808366E0}</Project> - <Name>CoreCLRTestLibrary</Name> - </ProjectReference> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/mathf/MathFAtan.csproj b/tests/src/CoreMangLib/cti/system/mathf/MathFAtan.csproj deleted file mode 100644 index 1dde46fa77..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/MathFAtan.csproj +++ /dev/null @@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{A1A8A825-38A2-4B8C-BD81-12494482AE26}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathfatan.cs" /> - <Compile Include="mathftestlib.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="..\..\..\..\Common\CoreCLRTestLibrary\CoreCLRTestLibrary.csproj"> - <Project>{C8C0DC74-FAC4-45B1-81FE-70C4808366E0}</Project> - <Name>CoreCLRTestLibrary</Name> - </ProjectReference> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/mathf/MathFAtan2.csproj b/tests/src/CoreMangLib/cti/system/mathf/MathFAtan2.csproj deleted file mode 100644 index 789d05e74b..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/MathFAtan2.csproj +++ /dev/null @@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{89EDC6AB-FDB9-4A19-A4E8-0DA10B59AE5E}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathfatan2.cs" /> - <Compile Include="mathftestlib.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="..\..\..\..\Common\CoreCLRTestLibrary\CoreCLRTestLibrary.csproj"> - <Project>{C8C0DC74-FAC4-45B1-81FE-70C4808366E0}</Project> - <Name>CoreCLRTestLibrary</Name> - </ProjectReference> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/mathf/MathFCeiling.csproj b/tests/src/CoreMangLib/cti/system/mathf/MathFCeiling.csproj deleted file mode 100644 index a77e400de9..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/MathFCeiling.csproj +++ /dev/null @@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{003D9B58-D8CA-4D5C-A3BB-2C36B166F3F2}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathfceiling.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="..\..\..\..\Common\CoreCLRTestLibrary\CoreCLRTestLibrary.csproj"> - <Project>{C8C0DC74-FAC4-45B1-81FE-70C4808366E0}</Project> - <Name>CoreCLRTestLibrary</Name> - </ProjectReference> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/mathf/MathFCos.csproj b/tests/src/CoreMangLib/cti/system/mathf/MathFCos.csproj deleted file mode 100644 index eab4794812..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/MathFCos.csproj +++ /dev/null @@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{D5D37943-62D6-4579-8AD9-6EC793534C31}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathfcos.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="..\..\..\..\Common\CoreCLRTestLibrary\CoreCLRTestLibrary.csproj"> - <Project>{C8C0DC74-FAC4-45B1-81FE-70C4808366E0}</Project> - <Name>CoreCLRTestLibrary</Name> - </ProjectReference> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/mathf/MathFCosh.csproj b/tests/src/CoreMangLib/cti/system/mathf/MathFCosh.csproj deleted file mode 100644 index 4aff0f9a9d..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/MathFCosh.csproj +++ /dev/null @@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{381997D1-75E4-46D4-8663-EE60183BAD60}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathfcosh.cs" /> - <Compile Include="mathftestlib.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="..\..\..\..\Common\CoreCLRTestLibrary\CoreCLRTestLibrary.csproj"> - <Project>{C8C0DC74-FAC4-45B1-81FE-70C4808366E0}</Project> - <Name>CoreCLRTestLibrary</Name> - </ProjectReference> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/mathf/MathFE.csproj b/tests/src/CoreMangLib/cti/system/mathf/MathFE.csproj deleted file mode 100644 index 349c5ed847..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/MathFE.csproj +++ /dev/null @@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{F5F42C53-AC5D-4140-82C7-A441C50726C8}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathfe.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="..\..\..\..\Common\CoreCLRTestLibrary\CoreCLRTestLibrary.csproj"> - <Project>{C8C0DC74-FAC4-45B1-81FE-70C4808366E0}</Project> - <Name>CoreCLRTestLibrary</Name> - </ProjectReference> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/mathf/MathFExp.csproj b/tests/src/CoreMangLib/cti/system/mathf/MathFExp.csproj deleted file mode 100644 index daa7295b0d..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/MathFExp.csproj +++ /dev/null @@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{3332C473-8FCF-4BC8-8A4A-EEA791A77C0D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathfexp.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="..\..\..\..\Common\CoreCLRTestLibrary\CoreCLRTestLibrary.csproj"> - <Project>{C8C0DC74-FAC4-45B1-81FE-70C4808366E0}</Project> - <Name>CoreCLRTestLibrary</Name> - </ProjectReference> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/mathf/MathFFloor.csproj b/tests/src/CoreMangLib/cti/system/mathf/MathFFloor.csproj deleted file mode 100644 index 8452492e66..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/MathFFloor.csproj +++ /dev/null @@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{E7916B4D-47B3-4F8D-B5C9-437318A10C69}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathffloor.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="..\..\..\..\Common\CoreCLRTestLibrary\CoreCLRTestLibrary.csproj"> - <Project>{C8C0DC74-FAC4-45B1-81FE-70C4808366E0}</Project> - <Name>CoreCLRTestLibrary</Name> - </ProjectReference> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/mathf/MathFIEEERemainder.csproj b/tests/src/CoreMangLib/cti/system/mathf/MathFIEEERemainder.csproj deleted file mode 100644 index dbe242e0e2..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/MathFIEEERemainder.csproj +++ /dev/null @@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{C288A75E-FCA5-41F4-80A2-3546920487F7}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathfieeeremainder.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="..\..\..\..\Common\CoreCLRTestLibrary\CoreCLRTestLibrary.csproj"> - <Project>{C8C0DC74-FAC4-45B1-81FE-70C4808366E0}</Project> - <Name>CoreCLRTestLibrary</Name> - </ProjectReference> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/mathf/MathFLog.csproj b/tests/src/CoreMangLib/cti/system/mathf/MathFLog.csproj deleted file mode 100644 index fff22875f9..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/MathFLog.csproj +++ /dev/null @@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{25B363C9-3059-4071-8B63-8AD56BEFB169}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathflog.cs" /> - <Compile Include="mathftestlib.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="..\..\..\..\Common\CoreCLRTestLibrary\CoreCLRTestLibrary.csproj"> - <Project>{C8C0DC74-FAC4-45B1-81FE-70C4808366E0}</Project> - <Name>CoreCLRTestLibrary</Name> - </ProjectReference> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/mathf/MathFLog10.csproj b/tests/src/CoreMangLib/cti/system/mathf/MathFLog10.csproj deleted file mode 100644 index 70ce57199d..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/MathFLog10.csproj +++ /dev/null @@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{BB3AD81D-7036-49BC-A0C3-318FC89F00FD}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathflog10.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="..\..\..\..\Common\CoreCLRTestLibrary\CoreCLRTestLibrary.csproj"> - <Project>{C8C0DC74-FAC4-45B1-81FE-70C4808366E0}</Project> - <Name>CoreCLRTestLibrary</Name> - </ProjectReference> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/mathf/MathFMax.csproj b/tests/src/CoreMangLib/cti/system/mathf/MathFMax.csproj deleted file mode 100644 index 3cb581dadf..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/MathFMax.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{8CFA48E4-0F16-4B70-841A-A276E55B2536}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathfmax.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/mathf/MathFMin.csproj b/tests/src/CoreMangLib/cti/system/mathf/MathFMin.csproj deleted file mode 100644 index 0f3522c32e..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/MathFMin.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{78BFB69A-326B-4BCE-9913-E5CBA473FC94}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathfmin.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/mathf/MathFPI.csproj b/tests/src/CoreMangLib/cti/system/mathf/MathFPI.csproj deleted file mode 100644 index 65d4a855c3..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/MathFPI.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{6FD7CFCB-9BE3-46D9-9AA1-F15574084F22}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathfpi.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/mathf/MathFPow.csproj b/tests/src/CoreMangLib/cti/system/mathf/MathFPow.csproj deleted file mode 100644 index f7fc8d1a65..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/MathFPow.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{AF3C5F7A-51BC-4B3B-A12A-068765B390D6}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathfpow.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/mathf/MathFRound1.csproj b/tests/src/CoreMangLib/cti/system/mathf/MathFRound1.csproj deleted file mode 100644 index 123671afd9..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/MathFRound1.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{DE4C7ADC-AC3D-4555-9E3B-F9C3C5542A1E}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathfround1.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/mathf/MathFRound2.csproj b/tests/src/CoreMangLib/cti/system/mathf/MathFRound2.csproj deleted file mode 100644 index 1ca9c2b292..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/MathFRound2.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{ABFDE127-D0A5-4202-8320-E1B0B52B218D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathfround2.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/mathf/MathFSign.csproj b/tests/src/CoreMangLib/cti/system/mathf/MathFSign.csproj deleted file mode 100644 index 96780ec70b..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/MathFSign.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{D030C47B-3942-4B1F-800D-28863DDB6F0D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathfsign.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/mathf/MathFSin.csproj b/tests/src/CoreMangLib/cti/system/mathf/MathFSin.csproj deleted file mode 100644 index 0d2113a27c..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/MathFSin.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{8B5F12CB-20BC-472D-BE8F-EC289FD8D85B}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathfsin.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/mathf/MathFSinh.csproj b/tests/src/CoreMangLib/cti/system/mathf/MathFSinh.csproj deleted file mode 100644 index b1b7c40925..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/MathFSinh.csproj +++ /dev/null @@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{9340A0ED-9EA3-4B36-8C15-43FBB22C640E}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathfsinh.cs" /> - <Compile Include="mathftestlib.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/mathf/MathFSqrt.csproj b/tests/src/CoreMangLib/cti/system/mathf/MathFSqrt.csproj deleted file mode 100644 index f5b1ef0b26..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/MathFSqrt.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{5F8BCFB3-581B-455C-AA69-F1434DB4948A}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathfsqrt.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/mathf/MathFTan.csproj b/tests/src/CoreMangLib/cti/system/mathf/MathFTan.csproj deleted file mode 100644 index af846cd409..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/MathFTan.csproj +++ /dev/null @@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{12FAA70F-51FD-49C3-A3BE-48254AEB9354}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathftan.cs" /> - <Compile Include="mathftestlib.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/mathf/MathFTanh.csproj b/tests/src/CoreMangLib/cti/system/mathf/MathFTanh.csproj deleted file mode 100644 index 1586499159..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/MathFTanh.csproj +++ /dev/null @@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{EFC1E11C-BA0F-44A5-AC95-7572BE852F37}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="mathftanh.cs" /> - <Compile Include="mathftestlib.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/mathf/mathfabs.cs b/tests/src/CoreMangLib/cti/system/mathf/mathfabs.cs deleted file mode 100644 index 7e0184d437..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/mathfabs.cs +++ /dev/null @@ -1,183 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.MathF.Abs(System.Single) -/// </summary> -public class MathFAbs -{ - public static int Main(string[] args) - { - MathFAbs abs = new MathFAbs(); - TestLibrary.TestFramework.BeginTestCase("Testing System.MathF.Abs(System.Single)..."); - - if (abs.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the max value of float should be equal to its Abs value"); - - try - { - float max = float.MaxValue; - if (MathF.Abs(max) != max) - { - TestLibrary.TestFramework.LogError("001", "The Abs of max value should be equal to itself!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify the min value of float should be equal to its Abs value"); - - try - { - float min = float.MinValue; - if (MathF.Abs(min) != -min) - { - TestLibrary.TestFramework.LogError("003", "The Abs of max value should be equal to it's contrary!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify the NegativeInfinity of float should be equal to its contrary..."); - - try - { - float negInfinit = float.NegativeInfinity; - if (MathF.Abs(negInfinit) != -negInfinit) - { - TestLibrary.TestFramework.LogError("005", "The Abs of max value should be equal to it's contrary!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify the PositiveInfinity of float should be equal to its Abs value"); - - try - { - float posInfinit = float.PositiveInfinity; - if (MathF.Abs(posInfinit) != posInfinit) - { - TestLibrary.TestFramework.LogError("007", "The Abs of max value should be equal to itself!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify Abs value of zero should be equal to both itself and its contrary value..."); - - try - { - float zero = 0; - if (MathF.Abs(zero) != zero || MathF.Abs(zero) != -zero) - { - TestLibrary.TestFramework.LogError("009", "Abs value of zero should be equal to both itself and its contrary value!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest6: Verify Abs value of Epsilon "); - - try - { - float epsilon = float.Epsilon; - if (MathF.Abs(epsilon) != epsilon) - { - TestLibrary.TestFramework.LogError("011", "Abs value of epsilon should be equal to itself..."); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/mathf/mathfacos.cs b/tests/src/CoreMangLib/cti/system/mathf/mathfacos.cs deleted file mode 100644 index a3ea64e23c..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/mathfacos.cs +++ /dev/null @@ -1,210 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.MathF.Acos(System.Single) -/// </summary> -public class MathFAcos -{ - public static int Main(string[] args) - { - MathFAcos Acos = new MathFAcos(); - TestLibrary.TestFramework.BeginTestCase("Testing System.MathF.Acos(System.Single)..."); - - if (Acos.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - - //TestLibrary.TestFramework.LogInformation("[Negtive]"); - //retVal = NegTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the value of Arccos(-1) is MathF.PI..."); - - try - { - float angle = MathF.Acos(-1); - if (!MathFTestLib.SingleIsWithinEpsilon(angle, MathF.PI)) - { - TestLibrary.TestFramework.LogError("001", "Expected MathF.Acos(-1) = " + MathF.PI.ToString() + ", received " + - angle.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify the value of Arccos(0) is MathF.PI/2..."); - - try - { - float angle = MathF.Acos(0); - if (!MathFTestLib.SingleIsWithinEpsilon(angle, MathF.PI / 2)) - { - TestLibrary.TestFramework.LogError("003", "Expected pi/2, got " + angle.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify the value of Arccos(1) is 0..."); - - try - { - float angle = MathF.Acos(1); - if (!MathFTestLib.SingleIsWithinEpsilon(angle, 0)) - { - TestLibrary.TestFramework.LogError("005", "Expected 1, got " + angle.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify the value of Arccos(0.5) is MathF.PI/3..."); - - try - { - float angle = MathF.Acos(0.5f); - if (!MathFTestLib.SingleIsWithinEpsilon(angle, 1.04719755f)) - { - TestLibrary.TestFramework.LogError("007", "Expected 1.04719755, got " + angle.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify the value of Arccos(-0.5) is 2*MathF.PI/3..."); - - try - { - float angle = MathF.Acos(-0.5f); - if (!MathFTestLib.SingleIsWithinEpsilon(angle, 2.09439510f)) - { - TestLibrary.TestFramework.LogError("009", "Expected: 2.09439510, actual: " + angle.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest6: Verify the value of Arccos(MathF.Sqrt(3)/2) is MathF.PI/6..."); - - try - { - float angle = MathF.Acos(MathF.Sqrt(3) / 2); - if (!MathFTestLib.SingleIsWithinEpsilon(angle, 0.523598776f)) - { - TestLibrary.TestFramework.LogError("011", "Expected: 0.523598776, actual: " + angle.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest7() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest7: Verify the value of Arccos(-MathF.Sqrt(3)/2) is 5*MathF.PI/6..."); - - try - { - float angle = MathF.Acos(-MathF.Sqrt(3) / 2); - if (!MathFTestLib.SingleIsWithinEpsilon(angle, 2.61799388f)) - { - TestLibrary.TestFramework.LogError("013", "Expected: 2.61799388, actual: " + angle.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("014", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/mathf/mathfatan.cs b/tests/src/CoreMangLib/cti/system/mathf/mathfatan.cs deleted file mode 100644 index e2b3c75b7a..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/mathfatan.cs +++ /dev/null @@ -1,164 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.MathF.Atan(System.Single) -/// </summary> -public class MathFAtan -{ - public static int Main(string[] args) - { - MathFAtan arctan = new MathFAtan(); - TestLibrary.TestFramework.BeginTestCase("Testing System.MathF.Atan(System.Single)..."); - - if (arctan.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the value of arctan(NegativeInfinity) is -MathF.PI/2..."); - - try - { - float angle = MathF.Atan(float.NegativeInfinity); - if (!MathFTestLib.SingleIsWithinEpsilon(angle, -MathF.PI / 2)) - { - TestLibrary.TestFramework.LogError("001", "Expected: -pi/2, actual: " + - angle.ToString() + " diff>epsilon= " + MathFTestLib.Epsilon.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify the value of arctan(PositiveInfinity) is MathF.PI/2..."); - - try - { - float angle = MathF.Atan(float.PositiveInfinity); - if (!MathFTestLib.SingleIsWithinEpsilon(angle, MathF.PI / 2)) - { - TestLibrary.TestFramework.LogError("003", "Expected: pi/2, actual: " + - angle.ToString() + " diff>epsilon= " + MathFTestLib.Epsilon.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify the value of arctan(0) is zero..."); - - try - { - float angle = MathF.Atan(0); - if (!MathFTestLib.SingleIsWithinEpsilon(angle, 0)) - { - TestLibrary.TestFramework.LogError("005", "Expected: 0, actual: " + - angle.ToString() + " diff>epsilon= " + MathFTestLib.Epsilon.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify the value of atn(inf+1)=atn(inf)"); - - try - { - float angle = MathF.Atan(float.PositiveInfinity + 1); - float baseline = MathF.Atan(float.PositiveInfinity); - if (!MathFTestLib.SingleIsWithinEpsilon(angle, baseline)) - { - TestLibrary.TestFramework.LogError("007", "Expected: " + baseline.ToString() + ", actual: " + - angle.ToString() + " diff>epsilon= " + MathFTestLib.Epsilon.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify atn(-inf -1)=atn(-inf)"); - - try - { - float angle = MathF.Atan(float.NegativeInfinity - 1); - float baseline = MathF.Atan(float.NegativeInfinity); - if (!MathFTestLib.SingleIsWithinEpsilon(angle, baseline)) - { - TestLibrary.TestFramework.LogError("009", "Expected " + baseline.ToString() + ", actual: " + angle.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/mathf/mathfatan2.cs b/tests/src/CoreMangLib/cti/system/mathf/mathfatan2.cs deleted file mode 100644 index 264c6240fc..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/mathfatan2.cs +++ /dev/null @@ -1,272 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.MathF.Atan2(System.Single, System.Single) -/// </summary> -public class MathFAtan2 -{ - public static int Main(string[] args) - { - MathFAtan2 arctan2 = new MathFAtan2(); - TestLibrary.TestFramework.BeginTestCase("Testing System.MathF.Atan2(System.Single,System.Single)..."); - - if (arctan2.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the angle of arctan(x,y) when the point in quadrant one..."); - - try - { - float x = TestLibrary.Generator.GetSingle(-55); - while (x <= 0) - { - x = TestLibrary.Generator.GetSingle(-55); - } - float y = TestLibrary.Generator.GetSingle(-55); - while (y <= 0) - { - y = TestLibrary.Generator.GetSingle(-55); - } - - float angle = MathF.Atan2(y, x); - if (angle > MathF.PI / 2 || angle < 0) - { - TestLibrary.TestFramework.LogError("001", "The angle should be between 0 and MathF.PI/2, actual: " + - angle.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify the angle of arctan(x,y) when the point in quadrant four..."); - - try - { - float x = TestLibrary.Generator.GetSingle(-55); - while (x <= 0) - { - x = TestLibrary.Generator.GetSingle(-55); - } - float y = TestLibrary.Generator.GetSingle(-55); - while (y >= 0) - { - y = -TestLibrary.Generator.GetSingle(-55); - } - - float angle = MathF.Atan2(y, x); - if (angle > 0 || angle < -MathF.PI / 2) - { - TestLibrary.TestFramework.LogError("003", "The angle should be between 0 and -MathF.PI/2, actual: " + - angle.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify the angle of arctan(x,y) when the point in forward direction of X axis..."); - - try - { - float x = TestLibrary.Generator.GetSingle(-55); - while (x <= 0) - { - x = TestLibrary.Generator.GetSingle(-55); - } - - float y = 0; - float angle = MathF.Atan2(y, x); - if (!MathFTestLib.SingleIsWithinEpsilon(angle, 0.0f)) - { - TestLibrary.TestFramework.LogError("005", "The angle should be zero,actual: " + angle.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify the angle of arctan(x,y) when the point in forward direction of Y axis..."); - - try - { - float x = 0; - float y = TestLibrary.Generator.GetSingle(-55); - while (y <= 0) - { - y = TestLibrary.Generator.GetSingle(-55); - } - float angle = MathF.Atan2(y, x); - if (!MathFTestLib.SingleIsWithinEpsilon(angle, MathF.PI / 2)) - { - TestLibrary.TestFramework.LogError("007", "The angle should be pi/2, actual:" + angle.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify the angle of arctan(x,y) when the point in negative direction of Y axis..."); - - try - { - float x = 0; - float y = TestLibrary.Generator.GetSingle(-55); - while (y >= 0) - { - y = -TestLibrary.Generator.GetSingle(-55); - } - float angle = MathF.Atan2(y, x); - if (!MathFTestLib.SingleIsWithinEpsilon(angle, -MathF.PI / 2)) - { - TestLibrary.TestFramework.LogError("009", "The angle should be -pi/2, actual: " + angle.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest6: Verify the angle of arctan(x,y) when the point in quadrant two..."); - - try - { - float x = TestLibrary.Generator.GetSingle(-55); - while (x >= 0) - { - x = -TestLibrary.Generator.GetSingle(-55); - } - float y = TestLibrary.Generator.GetSingle(-55); - while (y <= 0) - { - y = TestLibrary.Generator.GetSingle(-55); - } - - float angle = MathF.Atan2(y, x); - if (angle < MathF.PI / 2 || angle > MathF.PI) - { - TestLibrary.TestFramework.LogError("011", "The angle should be between 0 and MathF.PI/2, actual: " + angle.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest7() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest7: Verify the angle of arctan(x,y) when the point in quadrant three..."); - - try - { - float x = TestLibrary.Generator.GetSingle(-55); - while (x >= 0) - { - x = -TestLibrary.Generator.GetSingle(-55); - } - float y = TestLibrary.Generator.GetSingle(-55); - while (y >= 0) - { - y = -TestLibrary.Generator.GetSingle(-55); - } - - float angle = MathF.Atan2(y, x); - if (angle > -MathF.PI / 2 || angle < -MathF.PI) - { - TestLibrary.TestFramework.LogError("013", "The angle should be between 0 and MathF.PI/2, actual: " + - angle.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("014", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/mathf/mathfceiling.cs b/tests/src/CoreMangLib/cti/system/mathf/mathfceiling.cs deleted file mode 100644 index 7398697037..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/mathfceiling.cs +++ /dev/null @@ -1,206 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.MathF.Ceiling(System.Single) -/// </summary> -public class MathFCeiling -{ - public static int Main(string[] args) - { - MathFCeiling ceiling = new MathFCeiling(); - TestLibrary.TestFramework.BeginTestCase("Testing System.MathF.Ceiling(System.Single)..."); - - if (ceiling.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify Ceiling number should be equal to the integer part of negative number..."); - - try - { - float number = TestLibrary.Generator.GetSingle(-55); - while (number >= 0) - { - number = (-TestLibrary.Generator.GetSingle(-55)) * 100; - } - - float ceilingNumber = MathF.Ceiling(number); - if (ceilingNumber < number || ceilingNumber > number + 1) - { - TestLibrary.TestFramework.LogError("001", "The Ceiling number should be equal to the integer part of negative number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify Ceiling number should be equal to itself when number is negative integer"); - - try - { - float number = TestLibrary.Generator.GetSingle(-55); - while (number >= 0) - { - number = (-TestLibrary.Generator.GetSingle(-55)) * 100; - } - - float ceilingNumber = MathF.Ceiling(number); - if (ceilingNumber != MathF.Ceiling(ceilingNumber)) - { - TestLibrary.TestFramework.LogError("003", "The Ceiling number should be equal to itself when number is negative integer..."); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify Ceiling number should be equal to the integer part plus one of positive number..."); - - try - { - float number = TestLibrary.Generator.GetSingle(-55); - while (number <= 0) - { - number = (TestLibrary.Generator.GetSingle(-55)) * 100; - } - - float ceilingNumber = MathF.Ceiling(number); - if (ceilingNumber < number || ceilingNumber > number + 1) - { - TestLibrary.TestFramework.LogError("005", "The Ceiling number should be equal to the integer part plus one of positive number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify Ceiling number should be equal to itself when number is positive integer"); - - try - { - float number = TestLibrary.Generator.GetSingle(-55); - while (number <= 0) - { - number = (TestLibrary.Generator.GetSingle(-55)) * 100; - } - - float ceilingNumber = MathF.Ceiling(number); - if (ceilingNumber != MathF.Ceiling(ceilingNumber)) - { - TestLibrary.TestFramework.LogError("007", "The Ceiling number should be equal to itself when number is positive integer..."); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify Ceiling number should be equal to itself when number is maxvalue..."); - - try - { - float ceilingMax = MathF.Ceiling(float.MaxValue); - if (ceilingMax != float.MaxValue) - { - TestLibrary.TestFramework.LogError("009", "The Ceiling number should be equal to itself when number is maxvalue!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest6: Verify Ceiling number should be equal to itself when number is minvalue..."); - - try - { - float ceilingMax = MathF.Ceiling(float.MinValue); - if (ceilingMax != float.MinValue) - { - TestLibrary.TestFramework.LogError("011", "The Ceiling number should be equal to itself when number is minvalue!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/mathf/mathfcos.cs b/tests/src/CoreMangLib/cti/system/mathf/mathfcos.cs deleted file mode 100644 index 30f41cbd98..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/mathfcos.cs +++ /dev/null @@ -1,184 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.MathF.Cos(System.Single) -/// </summary> -public class MathFCos -{ - public static int Main(string[] args) - { - MathFCos cos = new MathFCos(); - TestLibrary.TestFramework.BeginTestCase("Testing System.MathF.Cos(System.Single)..."); - - if (cos.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the value of cosine(0)..."); - - try - { - float value = MathF.Cos(0); - if (value != 1) - { - TestLibrary.TestFramework.LogError("001", "cosine(0) should be 1!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify the value of cosine(MathF.PI/2)..."); - - try - { - float value = MathF.Cos(MathF.PI / 2); - if (MathF.Abs(1000000 * value) >= 0.1) - { - TestLibrary.TestFramework.LogError("003", "cosine(MathF.PI/2) should be 0!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify the value of cosine(MathF.PI)..."); - - try - { - float value = MathF.Cos(MathF.PI); - if (value != -1) - { - TestLibrary.TestFramework.LogError("005", "cosine(MathF.PI) should be -1!"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify the value of cosine(3*MathF.PI/2)..."); - - try - { - float value = MathF.Cos(3 * MathF.PI / 2); - if (MathF.Abs(1000000 * value) >= 0.1) - { - TestLibrary.TestFramework.LogError("007", "cosine(3*MathF.PI/2) should be 0!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify the value of cosine(2*MathF.PI) is equal to cosine(0)..."); - - try - { - float value1 = MathF.Cos(0); - float value2 = MathF.Cos(2 * MathF.PI); - if (value1 != value2) - { - TestLibrary.TestFramework.LogError("009", "cosine(3*MathF.PI/2) should be 0!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest6: Verify the value of cosine(number) is between -1 and 1..."); - - try - { - float coefficient = TestLibrary.Generator.GetSingle(-55); - if (MathF.Cos(2 * coefficient * MathF.PI) > 1 || MathF.Cos(2 * coefficient * MathF.PI) < -1) - { - TestLibrary.TestFramework.LogError("011", "The scale of cosine is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/mathf/mathfcosh.cs b/tests/src/CoreMangLib/cti/system/mathf/mathfcosh.cs deleted file mode 100644 index a67ad0104d..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/mathfcosh.cs +++ /dev/null @@ -1,169 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.MathF.Cosh(System.Single) -/// </summary> -public class MathFCosh -{ - public static int Main(string[] args) - { - MathFCosh cosh = new MathFCosh(); - TestLibrary.TestFramework.BeginTestCase("Testing System.MathF.Cosh(System.Single)..."); - - if (cosh.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the monotonicity of cosh function..."); - - try - { - float variable = TestLibrary.Generator.GetSingle(-55); - float value1 = MathF.Cosh(variable); - float positiveoffset = MathF.Exp(-15); - float value2 = MathF.Cosh(variable + positiveoffset); - - if (value2 <= value1) - { - TestLibrary.TestFramework.LogError("001", "the monotonicity of cosh function [x>=y -> cosh(x)>=cosh(y)]"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify the evenness of cosh function [cosh(x)=cosh(-x)]"); - - try - { - float variable = TestLibrary.Generator.GetSingle(-55); - float value1 = MathF.Cosh(variable); - float value2 = MathF.Cosh(-variable); - - if (!MathFTestLib.SingleIsWithinEpsilon(value1, value2)) - { - TestLibrary.TestFramework.LogError("003", "The parity of cosh should be even function!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify the value of cosh(0) = 1..."); - - try - { - float zero = 0; - float value = MathF.Cosh(zero); - if (!MathFTestLib.SingleIsWithinEpsilon(value, 1)) - { - TestLibrary.TestFramework.LogError("005", "The value of cosh(0) should be 1, actual: " + value.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify the cosh(+inf)=+inf..."); - - try - { - float variable = float.MaxValue; - float value = MathF.Cosh(variable); - if (value != float.PositiveInfinity) - { - TestLibrary.TestFramework.LogError("007", "The value should be float.PositiveInfinity, actual: " + value.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify the value of cosh(float.MinValue)=+inf"); - - try - { - float variable = float.MinValue; - float value = MathF.Cosh(variable); - if (value != float.PositiveInfinity) - { - TestLibrary.TestFramework.LogError("009", "The value should be float.PositiveInfinity, actual: " + - value.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/mathf/mathfe.cs b/tests/src/CoreMangLib/cti/system/mathf/mathfe.cs deleted file mode 100644 index 91acdd5ca3..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/mathfe.cs +++ /dev/null @@ -1,62 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.MathF.E -/// </summary> -public class MathFE -{ - public static int Main(string[] args) - { - MathFE mathE = new MathFE(); - TestLibrary.TestFramework.BeginTestCase("Testing System.MathF.E..."); - - if (mathE.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the value of MathF.E..."); - - try - { - float constantE = MathF.E; - if (constantE != 2.71828183f) - { - TestLibrary.TestFramework.LogError("001", "The value of E is not correct!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/mathf/mathfexp.cs b/tests/src/CoreMangLib/cti/system/mathf/mathfexp.cs deleted file mode 100644 index a1c9abd557..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/mathfexp.cs +++ /dev/null @@ -1,171 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.MathF.Exp(System.Single) -/// </summary> -public class MathFExp -{ - public static int Main(string[] args) - { - MathFExp exp = new MathFExp(); - TestLibrary.TestFramework.BeginTestCase("Testing System.MathF.Exp(System.Single)..."); - - if (exp.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify monotonicity of Exp function"); - - try - { - float variable = TestLibrary.Generator.GetSingle(-55); - float value1 = MathF.Exp(variable); - float positiveoffset = MathF.Exp(-15); - float value2 = MathF.Exp(variable + positiveoffset); - - if (value2 <= value1) - { - TestLibrary.TestFramework.LogError("001", "The monotonicity of chx function should be increase by degree!"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify Exp is neither odd function nor even function..."); - - try - { - float variable = TestLibrary.Generator.GetSingle(-55); - float value1 = MathF.Exp(variable); - float value2 = MathF.Exp(-variable); - - if (value1 == value2 || value1 == -value2) - { - TestLibrary.TestFramework.LogError("003", "The exp function should not be symmetry!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify the value of Exp(0) is 1..."); - - try - { - float value = MathF.Exp(0); - - if (value != 1) - { - TestLibrary.TestFramework.LogError("005", "The value of Exp(0) is 1!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify the value of Exp(float.MaxValue)..."); - - try - { - float variable = float.MaxValue; - float value = MathF.Exp(variable); - - if (value != float.PositiveInfinity) - { - TestLibrary.TestFramework.LogError("007", "The value of Exp(float.MaxValue) should be PositiveInfinity!"); - retVal = true; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify the value of Exp(float.MaxValue)"); - - try - { - float variable = float.MinValue; - float value = MathF.Exp(variable); - - if (value != 0) - { - TestLibrary.TestFramework.LogError("009", "The value of Exp(float.MaxValue) should be PositiveInfinity!"); - retVal = true; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/mathf/mathffloor.cs b/tests/src/CoreMangLib/cti/system/mathf/mathffloor.cs deleted file mode 100644 index 88e2a941d6..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/mathffloor.cs +++ /dev/null @@ -1,206 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.MathF.Floor(System.Single) -/// </summary> -public class MathFFloor -{ - public static int Main(string[] args) - { - MathFFloor floor = new MathFFloor(); - TestLibrary.TestFramework.BeginTestCase("Testing System.MathF.Floor(System.Single)..."); - - if (floor.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify floor number should be equal to intefer part subtract one of negative number..."); - - try - { - float number = TestLibrary.Generator.GetSingle(-55); - while (number >= 0) - { - number = (-TestLibrary.Generator.GetSingle(-55)) * 100; - } - - float floorNumber = MathF.Floor(number); - if (floorNumber < number - 1 || floorNumber > number) - { - TestLibrary.TestFramework.LogError("001", "The Ceiling number should be equal to the integer part of negative number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify floor number should be equal to itself when number is negative integer..."); - - try - { - float number = TestLibrary.Generator.GetSingle(-55); - while (number >= 0) - { - number = (-TestLibrary.Generator.GetSingle(-55)) * 100; - } - - float floorNumber = MathF.Floor(number); - if (floorNumber != MathF.Floor(floorNumber)) - { - TestLibrary.TestFramework.LogError("003", "The floor number should be equal to itself when number is negative integer..."); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify floor number should be equal to the integer part of positive number..."); - - try - { - float number = TestLibrary.Generator.GetSingle(-55); - while (number <= 0) - { - number = (TestLibrary.Generator.GetSingle(-55)) * 100; - } - - float floorNumber = MathF.Floor(number); - if (floorNumber < number - 1 || floorNumber > number) - { - TestLibrary.TestFramework.LogError("005", "The floor number should be equal to the integer part plus one of positive number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify floor number should be equal to itself when number is positive integer..."); - - try - { - float number = TestLibrary.Generator.GetSingle(-55); - while (number <= 0) - { - number = (TestLibrary.Generator.GetSingle(-55)) * 100; - } - - float floorNumber = MathF.Floor(number); - if (floorNumber != MathF.Floor(floorNumber)) - { - TestLibrary.TestFramework.LogError("007", "The floor number should be equal to itself when number is positive integer..."); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify floor number should be equal to itself when number is maxvalue..."); - - try - { - float floorMax = MathF.Floor(float.MaxValue); - if (floorMax != float.MaxValue) - { - TestLibrary.TestFramework.LogError("009", "The floor number should be equal to itself when number is maxvalue!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest6: Verify floor number should be equal to itself when number is minvalue..."); - - try - { - float floorMin = MathF.Floor(float.MinValue); - if (floorMin != float.MinValue) - { - TestLibrary.TestFramework.LogError("011", "The floor number should be equal to itself when number is minvalue!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/mathf/mathfieeeremainder.cs b/tests/src/CoreMangLib/cti/system/mathf/mathfieeeremainder.cs deleted file mode 100644 index a4cdde39fe..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/mathfieeeremainder.cs +++ /dev/null @@ -1,148 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.MathF.IEEERemainder(System.Single, System.Single) -/// </summary> -public class MathFIEEERemainder -{ - public static int Main(string[] args) - { - MathFIEEERemainder ieeeRemainder = new MathFIEEERemainder(); - TestLibrary.TestFramework.BeginTestCase("Testing System.MathF.IEEERemainder(System.Single,System.Single)..."); - - if (ieeeRemainder.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify x / y fails halfway between two integer,the even integer is less than odd integer..."); - - try - { - float x = 5; - float y = 2; - float remainder = MathF.IEEERemainder(x, y); - - // When x=5,y=2,the quotient should be equal to the even nember 2, therefore the IEEERemainder is positive - if (remainder != x - MathF.Floor(x / y) * y) - { - TestLibrary.TestFramework.LogError("001", "The remainder should be x - (y*quotient)!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify x/y fails halfway between two integer,the add integer is less than even integer..."); - - try - { - float x = 7; - float y = 2; - float remainder = MathF.IEEERemainder(x, y); - - //When x=7,y=2,the quotient should be equal to the even number 4,therefore the IEEERemainder is negative - if (remainder != x - MathF.Ceiling(x / y) * y) - { - TestLibrary.TestFramework.LogError("003", "The remainder should be x - (y*quotient)!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify divisor is zero..."); - - try - { - float x = TestLibrary.Generator.GetSingle(-55); - float y = 0; - float remainder = MathF.IEEERemainder(x, y); - - if (!float.IsNaN(remainder)) - { - TestLibrary.TestFramework.LogError("005", "The value should be float.NaN!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify the value 0 is returned when x - (y*quotient) is zero..."); - - try - { - float x = 6; - float y = 2; - float remainder = MathF.IEEERemainder(x, y); - - if (remainder != 0) - { - TestLibrary.TestFramework.LogError("007", "The value should be zero!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/mathf/mathflog.cs b/tests/src/CoreMangLib/cti/system/mathf/mathflog.cs deleted file mode 100644 index 7e460c4f26..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/mathflog.cs +++ /dev/null @@ -1,246 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.MathF.Log(System.Single) -/// </summary> -public class MathFLog -{ - public static int Main(string[] args) - { - MathFLog log = new MathFLog(); - TestLibrary.TestFramework.BeginTestCase("Testing System.MathF.Log(System.Single)..."); - - if (log.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the monotonicity of ln(f)..."); - - try - { - float var1 = 100.1f * TestLibrary.Generator.GetSingle(-55); - float var2 = 100.1f * TestLibrary.Generator.GetSingle(-55); - - if (var1 < var2) - { - if (MathF.Log(var1) >= MathF.Log(var2)) - { - TestLibrary.TestFramework.LogError("001", "The value of ln(var1)=" + MathF.Log(var1).ToString() + - " should be less than ln(var2)=" + MathF.Log(var2).ToString()); - retVal = false; - } - } - else if (var1 > var2) - { - if (MathF.Log(var1) <= MathF.Log(var2)) - { - TestLibrary.TestFramework.LogError("002", "The value of ln(var1)=" + MathF.Log(var1).ToString() + - " should be larger than ln(var2)=" + MathF.Log(var2).ToString()); - retVal = false; - } - } - else - { - if (!MathFTestLib.SingleIsWithinEpsilon(MathF.Log(var1), MathF.Log(var2))) - { - TestLibrary.TestFramework.LogError("003", "The value of ln(var1)=" + MathF.Log(var1).ToString() + - " should be equal to ln(var2)=" + MathF.Log(var2).ToString()); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify the value is negative when var is between o and 1..."); - - try - { - float var = 0; - while (var <= 0 && var >= 1) - { - var = TestLibrary.Generator.GetSingle(-55); - } - - if (MathF.Log(var) >= 0) - { - TestLibrary.TestFramework.LogError("005", "The value should be negative, is " + MathF.Log(var).ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify the value of ln(1) is 0..."); - - try - { - float var = 1; - if (!MathFTestLib.SingleIsWithinEpsilon(MathF.Log(var), 0)) - { - TestLibrary.TestFramework.LogError("007", "The value of ln(1) should be zero, is " + MathF.Log(var).ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify the value of ln(var) is larger than zero..."); - - try - { - float var = TestLibrary.Generator.GetSingle(-55); - while (var <= 1) - { - var *= 10; - } - - if (MathF.Log(var) < 0) - { - TestLibrary.TestFramework.LogError("009", "The value should be larger than zero, is " + MathF.Log(var).ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify the value of ln(0)..."); - - try - { - float var = 0; - if (!float.IsNegativeInfinity(MathF.Log(var))) - { - TestLibrary.TestFramework.LogError("011", "the value of ln(0) should be negativeInfinity, is " + - MathF.Log(var).ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest6: Verify the value of ln(var) when var is negative..."); - - try - { - float var = -TestLibrary.Generator.GetSingle(-55); - while (var >= 0) - { - var = TestLibrary.Generator.GetSingle(-55); - } - - if (!float.IsNaN(MathF.Log(var))) - { - TestLibrary.TestFramework.LogError("013", "The value should be NaN, is " + MathF.Log(var).ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("014", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest7() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest7: Verify the value of ln(e)..."); - - try - { - float var = MathF.E; - if (!MathFTestLib.SingleIsWithinEpsilon(MathF.Log(var), 1)) - { - TestLibrary.TestFramework.LogError("015", "The value should be equal to 1, is " + MathF.Log(var).ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("016", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/mathf/mathflog10.cs b/tests/src/CoreMangLib/cti/system/mathf/mathflog10.cs deleted file mode 100644 index 753bbf43a0..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/mathflog10.cs +++ /dev/null @@ -1,242 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.MathF.Log10(System.Single) -/// </summary> -public class MathFLog10 -{ - public static int Main(string[] args) - { - MathFLog10 log10 = new MathFLog10(); - TestLibrary.TestFramework.BeginTestCase("Testing System.MathF.Log10(System.Single)..."); - - if (log10.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the monotonicity of Log10(var)..."); - - try - { - float var1 = 100.1f * TestLibrary.Generator.GetSingle(-55); - float var2 = 100.1f * TestLibrary.Generator.GetSingle(-55); - - if (var1 < var2) - { - if (MathF.Log10(var1) >= MathF.Log10(var2)) - { - TestLibrary.TestFramework.LogError("001", "The value of Log10(var1) should be less than In(var2)..."); - retVal = false; - } - } - else if (var1 > var2) - { - if (MathF.Log10(var1) <= MathF.Log10(var2)) - { - TestLibrary.TestFramework.LogError("002", "The value of Log10(var1) should be larger than In(var2)..."); - retVal = false; - } - } - else - { - if (MathF.Log10(var1) != MathF.Log10(var2)) - { - TestLibrary.TestFramework.LogError("003", "The value of Log10(var1) should be equal to In(var2)..."); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify the value is negative when var is between o and 1..."); - - try - { - float var = 0; - while (var <= 0 && var >= 1) - { - var = TestLibrary.Generator.GetSingle(-55); - } - - if (MathF.Log10(var) >= 0) - { - TestLibrary.TestFramework.LogError("005", "The value should be negative!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify the value of Log10(1) is 0..."); - - try - { - float var = 1; - if (MathF.Log10(var) != 0) - { - TestLibrary.TestFramework.LogError("007", "The value of Log10(1) should be zero!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify the value of Log10(var) is larger than zero..."); - - try - { - float var = TestLibrary.Generator.GetSingle(-55); - while (var <= 1) - { - var *= 10; - } - - if (MathF.Log10(var) < 0) - { - TestLibrary.TestFramework.LogError("009", "The value should be larger than zero!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify the value of Log10(0)..."); - - try - { - float var = 0; - if (!float.IsNegativeInfinity(MathF.Log10(var))) - { - TestLibrary.TestFramework.LogError("011", "the value of Log10(0) should be negativeInfinity!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest6: Verify the value of Log10(var) when var is negative..."); - - try - { - float var = -TestLibrary.Generator.GetSingle(-55); - while (var >= 0) - { - var = TestLibrary.Generator.GetSingle(-55); - } - - if (!float.IsNaN(MathF.Log10(var))) - { - TestLibrary.TestFramework.LogError("013", "The value should be NaN!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("014", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest7() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest7: Verify the value of Log10(10)..."); - - try - { - float var = 10; - if (MathF.Log10(var) != 1) - { - TestLibrary.TestFramework.LogError("015", "the value should be equal to 1!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("016", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/mathf/mathfmax.cs b/tests/src/CoreMangLib/cti/system/mathf/mathfmax.cs deleted file mode 100644 index 421a1817c4..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/mathfmax.cs +++ /dev/null @@ -1,102 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.MathF.Max(System.Single, System.Single) -/// </summary> -public class MathFMax8 -{ - public static int Main(string[] args) - { - MathFMax8 max8 = new MathFMax8(); - TestLibrary.TestFramework.BeginTestCase("Testing System.MathF.Max(System.Single,System.Single)..."); - - if (max8.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the return value of max function..."); - - try - { - float var1 = TestLibrary.Generator.GetSingle(-55); - float var2 = TestLibrary.Generator.GetSingle(-55); - - if (var1 > var2 && !float.IsNaN(var1) && !float.IsNaN(var2)) - { - if (MathF.Max(var1, var2) != var1) - { - TestLibrary.TestFramework.LogError("001", "The return value should be var1!"); - retVal = false; - } - } - else if (!float.IsNaN(var1) && !float.IsNaN(var2)) - { - if (MathF.Max(var1, var2) != var2) - { - TestLibrary.TestFramework.LogError("002", "The return value should be var2!"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify the max value of float.NaN and float.PositiveInfinity..."); - - try - { - float var1 = float.NaN; - float var2 = float.PositiveInfinity; - - if (!float.IsNaN(MathF.Max(var1, var2))) - { - TestLibrary.TestFramework.LogError("004", "The return value should be single.NaN!"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("005", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/mathf/mathfmin.cs b/tests/src/CoreMangLib/cti/system/mathf/mathfmin.cs deleted file mode 100644 index 4920faeb1b..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/mathfmin.cs +++ /dev/null @@ -1,101 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.MathF.Min(System.Single, System.Single) -/// </summary> -public class MathFMin8 -{ - public static int Main(string[] args) - { - MathFMin8 min8 = new MathFMin8(); - TestLibrary.TestFramework.BeginTestCase("Testing System.MathF.Min(System.Single,System.Single)..."); - - if (min8.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the return value of min function..."); - - try - { - float var1 = TestLibrary.Generator.GetSingle(-55); - float var2 = TestLibrary.Generator.GetSingle(-55); - - if (var1 < var2 && !float.IsNaN(var1) && !float.IsNaN(var2)) - { - if (MathF.Min(var1, var2) != var1) - { - TestLibrary.TestFramework.LogError("001", "The return value should be var1!"); - retVal = false; - } - } - else if (!float.IsNaN(var1) && !float.IsNaN(var2)) - { - if (MathF.Min(var1, var2) != var2) - { - TestLibrary.TestFramework.LogError("002", "The return value should be var2!"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify the min value of float.NaN and float.NegativeInfinity..."); - - try - { - float var1 = float.NaN; - float var2 = float.NegativeInfinity; - - if (!float.IsNaN(MathF.Min(var1, var2))) - { - TestLibrary.TestFramework.LogError("004", "The return value should be float.NaN!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("005", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/mathf/mathfpi.cs b/tests/src/CoreMangLib/cti/system/mathf/mathfpi.cs deleted file mode 100644 index d793a11c42..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/mathfpi.cs +++ /dev/null @@ -1,62 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.MathF.PI -/// </summary> -public class MathFPI -{ - public static int Main(string[] args) - { - MathFPI mathPI = new MathFPI(); - TestLibrary.TestFramework.BeginTestCase("Testing System.MathF.PI..."); - - if (mathPI.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify the value of MathF.PI..."); - - try - { - float mathPI = MathF.PI; - if (mathPI != 3.14159265f) - { - TestLibrary.TestFramework.LogError("001", "The value of MathF.PI is not correct!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/mathf/mathfpow.cs b/tests/src/CoreMangLib/cti/system/mathf/mathfpow.cs deleted file mode 100644 index deac1d8978..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/mathfpow.cs +++ /dev/null @@ -1,523 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.MathF.Pow(System.Single, System.Single) -/// </summary> -public class MathFPow -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - retVal = PosTest8() && retVal; - retVal = PosTest9() && retVal; - retVal = PosTest10() && retVal; - retVal = PosTest11() && retVal; - retVal = PosTest12() && retVal; - retVal = PosTest13() && retVal; - retVal = PosTest14() && retVal; - retVal = PosTest15() && retVal; - retVal = PosTest16() && retVal; - - - // - // TODO: Add your negative test cases here - // - // TestLibrary.TestFramework.LogInformation("[Negative]"); - // retVal = NegTest1() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify Pow when one of args is NaN ."); - - try - { - float f = MathF.Pow(float.NaN, TestLibrary.Generator.GetByte(-55)); - - if (!float.IsNaN(f)) - { - TestLibrary.TestFramework.LogError("001.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify Pow when second arg is zero ."); - - try - { - float f = MathF.Pow(TestLibrary.Generator.GetByte(-55), 0); - - if (f != 1) - { - TestLibrary.TestFramework.LogError("002.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify Pow(NegativeInfinity, < 0) ."); - - try - { - float f = MathF.Pow(float.NegativeInfinity, -TestLibrary.Generator.GetSingle(-55)); - - if (f != 0) - { - TestLibrary.TestFramework.LogError("003.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify Pow(NegativeInfinity, positive odd int) ."); - - try - { - float f = MathF.Pow(float.NegativeInfinity, TestLibrary.Generator.GetByte(-55) * 2 + 1); - - if (f != float.NegativeInfinity) - { - TestLibrary.TestFramework.LogError("004.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify Pow(NegativeInfinity, positive non-odd int) ."); - - try - { - int e = (TestLibrary.Generator.GetByte(-55) + 1) * 2; - float f = MathF.Pow(float.NegativeInfinity, e); - - if (f != float.PositiveInfinity) - { - TestLibrary.TestFramework.LogError("005.1", "Return value is wrong: expected float.PositiveInfinity, actual: " + - f.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("005.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest6: Verify Pow(< 0, non-int) ."); - - try - { - float f = MathF.Pow(-TestLibrary.Generator.GetByte(-55) - 1, TestLibrary.Generator.GetSingle() + 0.1f); - - if (!float.IsNaN(f)) - { - TestLibrary.TestFramework.LogError("006.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest7() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest7: Verify Pow(-1, NegativeInfinity) ."); - - try - { - float f = MathF.Pow(-1, float.NegativeInfinity); - - if (f != 1) - { - TestLibrary.TestFramework.LogError("007.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("007.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest8() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest8: Verify Pow(-1<x<1, NegativeInfinity) ."); - - try - { - float f = MathF.Pow(TestLibrary.Generator.GetSingle(-55), float.NegativeInfinity); - - if (!float.IsPositiveInfinity(f)) - { - TestLibrary.TestFramework.LogError("008.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest9() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest9: Verify Pow(-1<x<1, PositiveInfinity) ."); - - try - { - float f = MathF.Pow(TestLibrary.Generator.GetSingle(-55), float.PositiveInfinity); - - if (f != 0) - { - TestLibrary.TestFramework.LogError("009.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("009.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest10() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest10: Verify Pow(>1, NegativeInfinity) ."); - - try - { - float f = MathF.Pow(TestLibrary.Generator.GetSingle(-55) + 1, float.NegativeInfinity); - - if (f != 0) - { - TestLibrary.TestFramework.LogError("010.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest11() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest11: Verify Pow(>1, PositiveInfinity) ."); - - try - { - float f = MathF.Pow(TestLibrary.Generator.GetSingle(-55) + 1, float.PositiveInfinity); - - if (!float.IsPositiveInfinity(f)) - { - TestLibrary.TestFramework.LogError("011.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("011.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest12() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest12: Verify Pow( 0, < 0) ."); - - try - { - float f = MathF.Pow(0, -TestLibrary.Generator.GetSingle(-55) - 0.1f); - - if (!float.IsPositiveInfinity(f)) - { - TestLibrary.TestFramework.LogError("012.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest13() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest13: Verify Pow( 0, > 0) ."); - - try - { - float f = MathF.Pow(0, TestLibrary.Generator.GetSingle(-55) + 0.1f); - - if (f != 0) - { - TestLibrary.TestFramework.LogError("013.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("013.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest14() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest14: Verify Pow( 1, any value) ."); - - try - { - float f = MathF.Pow(1, TestLibrary.Generator.GetSingle(-55)); - - if (f != 1) - { - TestLibrary.TestFramework.LogError("014.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("014.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest15() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest15: Verify Pow( PositiveInfinity, < 0) ."); - - try - { - float f = MathF.Pow(float.PositiveInfinity, -TestLibrary.Generator.GetSingle(-55) - 0.1f); - - if (f != 0) - { - TestLibrary.TestFramework.LogError("015.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("015.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest16() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest16: Verify Pow( PositiveInfinity, > 0) ."); - - try - { - float f = MathF.Pow(float.PositiveInfinity, TestLibrary.Generator.GetSingle(-55) + 0.1f); - - if (!float.IsPositiveInfinity(f)) - { - TestLibrary.TestFramework.LogError("015.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("015.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - //public bool NegTest1() - //{ - // bool retVal = true; - - // TestLibrary.TestFramework.BeginScenario("NegTest1: "); - - // try - // { - // // - // // Add your test logic here - // // - // } - // catch (Exception e) - // { - // TestLibrary.TestFramework.LogError("101", "Unexpected exception: " + e); - // TestLibrary.TestFramework.LogInformation(e.StackTrace); - // retVal = false; - // } - - // return retVal; - //} - #endregion - #endregion - - public static int Main() - { - MathFPow test = new MathFPow(); - - TestLibrary.TestFramework.BeginTestCase("MathFPow"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/mathf/mathfround1.cs b/tests/src/CoreMangLib/cti/system/mathf/mathfround1.cs deleted file mode 100644 index 7ee824e0f3..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/mathfround1.cs +++ /dev/null @@ -1,145 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.MathF.Round(System.Single) -/// </summary> -public class MathFRound1 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - - retVal = NegTest1() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify Round(System.Single) when decimal part of arg f <= 0.5 ."); - - try - { - int tempIntVar = TestLibrary.Generator.GetInt32(-55); - - float tempSingleVar; - do - tempSingleVar = TestLibrary.Generator.GetSingle(-55); - while (tempSingleVar > 0.5); - - float f = tempIntVar + tempSingleVar; - - if (MathF.Round(f) != tempIntVar) - { - Console.WriteLine("actual value = " + tempIntVar); - Console.WriteLine("expected value = " + MathF.Round(f)); - TestLibrary.TestFramework.LogError("001.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify Round(System.Single) when decimal part of arg f > 0.5 ."); - - try - { - int tempIntVar = TestLibrary.Generator.GetInt32(-55); - - float tempSingleVar; - do - tempSingleVar = TestLibrary.Generator.GetSingle(-55); - while (tempSingleVar <= 0.5); - - float f = tempIntVar + tempSingleVar; - - if (MathF.Round(f) != tempIntVar + 1) - { - Console.WriteLine("actual value = " + (tempIntVar + 1)); - Console.WriteLine("expected value = " + MathF.Round(f)); - TestLibrary.TestFramework.LogError("001.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: OverflowException is not thrown."); - - try - { - float result = MathF.Round(float.Parse(float.MaxValue.ToString() + "1")); - TestLibrary.TestFramework.LogError("101.1", " OverflowException is not thrown."); - retVal = false; - } - catch (OverflowException) - { } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("101.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - MathFRound1 test = new MathFRound1(); - - TestLibrary.TestFramework.BeginTestCase("MathFRound1"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/mathf/mathfround2.cs b/tests/src/CoreMangLib/cti/system/mathf/mathfround2.cs deleted file mode 100644 index 8ad7a3e485..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/mathfround2.cs +++ /dev/null @@ -1,188 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.MathF.Pow(System.Single, System.Int32) -/// </summary> -public class MathFRound2 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify Round(f, 0)"); - - try - { - int i = 0; - if (MathF.Round(3.4f, i) != 3 || MathF.Round(3.5f, i) != 4 || MathF.Round(3.6f, i) != 4) - { - TestLibrary.TestFramework.LogError("001.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify Round(f, 1)"); - - try - { - if (MathF.Round(3.44f, 1) != 3.4f || MathF.Round(3.45f, 1) != 3.4f || MathF.Round(3.46f, 1) != 3.5f) - { - TestLibrary.TestFramework.LogError("002.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify Round(f, 6)"); - - try - { - float f1 = 1234.56784f; - float expectedResult1 = 1234.5678f; - - float f2 = 1234.56785f; - float expectedResult2 = 1234.5679f; - - float f3 = 1234.56786f; - float expectedResult3 = 1234.5679f; - - int i = 6; - - if (MathF.Round(f1, i).ToString() != expectedResult1.ToString() - || MathF.Round(f2, i).ToString() != expectedResult2.ToString() - || MathF.Round(f3, i).ToString() != expectedResult3.ToString()) - { - TestLibrary.TestFramework.LogError("003.1", "Return value is wrong!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: ArgumentOutOfRangeException is not thrown."); - - try - { - float f = MathF.Round(3.45f, -1); - TestLibrary.TestFramework.LogError("101.1", " OverflowException is not thrown."); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("101.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest2: ArgumentOutOfRangeException is not thrown."); - - try - { - float f = MathF.Round(12345.6789f, 8); - TestLibrary.TestFramework.LogError("102.1", " OverflowException is not thrown."); - retVal = false; - } - catch (ArgumentOutOfRangeException) - { } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("102.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - MathFRound2 test = new MathFRound2(); - - TestLibrary.TestFramework.BeginTestCase("MathFRound4"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/mathf/mathfsign.cs b/tests/src/CoreMangLib/cti/system/mathf/mathfsign.cs deleted file mode 100644 index de9a5b432a..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/mathfsign.cs +++ /dev/null @@ -1,270 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.MathF.Sign(System.Single) -/// </summary> -public class MathFSign -{ - public static int Main(string[] args) - { - MathFSign test = new MathFSign(); - TestLibrary.TestFramework.BeginTestCase("Testing System.MathF.Sign(System.Single)."); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - retVal = PosTest8() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negtive]"); - retVal = NegTest1() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify float.MaxValue is a positive number."); - - try - { - float s = float.MaxValue; - if (MathF.Sign(s) != 1) - { - TestLibrary.TestFramework.LogError("P01.1", "float.MaxValue is not a positive number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P01.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify float.MinValue is a negative number."); - - try - { - float s = float.MinValue; - if (MathF.Sign(s) != -1) - { - TestLibrary.TestFramework.LogError("P02.1", "float.MinValue is not a negative number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P02.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify float.PositiveInfinity is a positive number."); - - try - { - float s = float.PositiveInfinity; - if (MathF.Sign(s) != 1) - { - TestLibrary.TestFramework.LogError("P03.1", "float.PositiveInfinity is not a positive number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P03.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify float.NegativeInfinity is a negative number."); - - try - { - float s = float.NegativeInfinity; - if (MathF.Sign(s) != -1) - { - TestLibrary.TestFramework.LogError("P04.1", "float.NegativeInfinity is not a negative number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P04.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify float.Epsilon is a positive number."); - - try - { - float s = float.Epsilon; - if (MathF.Sign(s) != 1) - { - TestLibrary.TestFramework.LogError("P05.1", "float.Epsilon is not a positive number!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P05.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest6: Verify the return value should be 1 when the float is positive."); - - try - { - float s = TestLibrary.Generator.GetSingle(-55); - while (s <= 0) - { - s = TestLibrary.Generator.GetSingle(-55); - } - - if (MathF.Sign(s) != 1) - { - TestLibrary.TestFramework.LogError("P06.1", "The return value is not 1 when the float is positive!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P06.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest7() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest7: Verify the return value should be -1 when the float is negative."); - - try - { - float s = TestLibrary.Generator.GetSingle(-55); - while (s <= 0) - { - s = TestLibrary.Generator.GetSingle(-55); - } - - if (MathF.Sign(-s) != -1) - { - TestLibrary.TestFramework.LogError("P07.1", "The return value is not -1 when the float is negative!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P07.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest8() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest8: Verify the return value should be 0 when the float is zero."); - - try - { - float s = 0.0f; - - if (MathF.Sign(s) != 0) - { - TestLibrary.TestFramework.LogError("P08.1", "The return value is not -1 when the float is negative!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P08.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("NegTest1: ArithmeticException should be thrown when value is equal to NaN."); - - try - { - float s = float.NaN; - MathF.Sign(s); - - TestLibrary.TestFramework.LogError("N01.1", "ArithmeticException is not thrown when value is equal to NaN!"); - retVal = false; - - } - catch (ArithmeticException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("N01.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/mathf/mathfsin.cs b/tests/src/CoreMangLib/cti/system/mathf/mathfsin.cs deleted file mode 100644 index bd212777b4..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/mathfsin.cs +++ /dev/null @@ -1,230 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.MathF.Sin(System.Single) -/// </summary> -public class MathFSin -{ - public static int Main(string[] args) - { - MathFSin test = new MathFSin(); - TestLibrary.TestFramework.BeginTestCase("Testing System.MathF.Sin(System.Single)."); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - retVal = PosTest8() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the result when radian is 0."); - - try - { - float f = MathF.Sin(0); - if (f != 0) - { - TestLibrary.TestFramework.LogError("P01.1", "The result is error when radian is 0!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P01.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify the result is 1 when radian is MathF.PI/2."); - - try - { - float f = MathF.Sin(MathF.PI / 2); - if (f != 1) - { - TestLibrary.TestFramework.LogError("P02.1", "The result is error when radian is MathF.PI/2!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P02.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify the result is -1 when radian is -MathF.PI/2."); - - try - { - float f = MathF.Sin(-MathF.PI / 2); - if (f != -1) - { - TestLibrary.TestFramework.LogError("P03.1", "The result is error when radian is -MathF.PI/2!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P03.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify the result is 1/2 when radian is MathF.PI/6."); - - try - { - float f = MathF.Round(MathF.Sin(MathF.PI / 6), 2); - if (f != 0.5d) - { - TestLibrary.TestFramework.LogError("P04.1", "The result is error when radian is MathF.PI/6!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P04.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify the result is -1/2 when radian is -MathF.PI/6."); - - try - { - float f = MathF.Round(MathF.Sin(-MathF.PI / 6), 2); - if (f != -0.5d) - { - TestLibrary.TestFramework.LogError("P05.1", "The result is error when radian is -MathF.PI/6!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P05.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest6: Verify the result is NaN when radian is PositiveInfinity."); - - try - { - float f = MathF.Sin(float.PositiveInfinity); - if (f.CompareTo(float.NaN) != 0) - { - TestLibrary.TestFramework.LogError("P06.1", "The result is error when radian is PositiveInfinity!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P06.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest7() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest7: Verify the result is NaN when radian is NegativeInfinity."); - - try - { - float f = MathF.Sin(float.NegativeInfinity); - if (f.CompareTo(float.NaN) != 0) - { - TestLibrary.TestFramework.LogError("P07.1", "The result is error when radian is NegativeInfinity!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P07.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest8() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest8: Verify the result is NaN when radian is NaN."); - - try - { - float f = MathF.Sin(float.NaN); - if (f.CompareTo(float.NaN) != 0) - { - TestLibrary.TestFramework.LogError("P08.1", "The result is error when radian is NaN!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P08.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/mathf/mathfsinh.cs b/tests/src/CoreMangLib/cti/system/mathf/mathfsinh.cs deleted file mode 100644 index 427c8723b0..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/mathfsinh.cs +++ /dev/null @@ -1,230 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.MathF.Sinh(System.Single) -/// </summary> -public class MathFSinh -{ - public static int Main(string[] args) - { - MathFSinh test = new MathFSinh(); - TestLibrary.TestFramework.BeginTestCase("Testing System.MathF.Sinh(System.Single)."); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - retVal = PosTest8() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the result when radian is 0."); - - try - { - float f = MathF.Sinh(0); - if (!MathFTestLib.SingleIsWithinEpsilon(f, 0)) - { - TestLibrary.TestFramework.LogError("P01.1", "The result is error when radian is 0!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P01.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify the result when radian is MathF.PI/2."); - - try - { - float f = MathF.Sinh(MathF.PI / 2); - if (!MathFTestLib.SingleIsWithinEpsilon(f, 2.30129890f)) - { - TestLibrary.TestFramework.LogError("P02.1", "The result is error when radian is MathF.PI/2!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P02.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify the result when radian is -MathF.PI/2."); - - try - { - float f = MathF.Sinh(-MathF.PI / 2); - if (!MathFTestLib.SingleIsWithinEpsilon(f, -2.30129890f)) - { - TestLibrary.TestFramework.LogError("P03.1", "The result is error when radian is -MathF.PI/2!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P03.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Verify the result when radian is MathF.PI/6."); - - try - { - float f = MathF.Sinh(MathF.PI / 6); - if (!MathFTestLib.SingleIsWithinEpsilon(f, 0.547853474f)) - { - TestLibrary.TestFramework.LogError("P04.1", "The result is error when radian is MathF.PI/6!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P04.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: Verify the result when radian is -MathF.PI/6."); - - try - { - float f = MathF.Sinh(-MathF.PI / 6); - if (!MathFTestLib.SingleIsWithinEpsilon(f, -0.547853474f)) - { - TestLibrary.TestFramework.LogError("P05.1", "The result is error when radian is -MathF.PI/6!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P05.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest6: Verify the result is PositiveInfinity when radian is PositiveInfinity."); - - try - { - float f = MathF.Sinh(float.PositiveInfinity); - if (f.CompareTo(float.PositiveInfinity) != 0) - { - TestLibrary.TestFramework.LogError("P06.1", "The result is error when radian is PositiveInfinity!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P06.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest7() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest7: Verify the result is NegativeInfinity when radian is NegativeInfinity."); - - try - { - float f = MathF.Sinh(float.NegativeInfinity); - if (f.CompareTo(float.NegativeInfinity) != 0) - { - TestLibrary.TestFramework.LogError("P07.1", "The result is error when radian is NegativeInfinity!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P07.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest8() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest8: Verify the result is NaN when radian is NaN."); - - try - { - float f = MathF.Sinh(float.NaN); - if (f.CompareTo(float.NaN) != 0) - { - TestLibrary.TestFramework.LogError("P08.1", "The result is error when radian is NaN!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("P08.2", "Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/mathf/mathfsqrt.cs b/tests/src/CoreMangLib/cti/system/mathf/mathfsqrt.cs deleted file mode 100644 index 8771f84333..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/mathfsqrt.cs +++ /dev/null @@ -1,175 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.MathF.Sqrt(float) -/// </summary> -public class MathFSqrt -{ - public static int Main() - { - MathFSqrt mathSqrt = new MathFSqrt(); - TestLibrary.TestFramework.BeginTestCase("MathFSqrt"); - if (mathSqrt.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - return retVal; - } - - #region PositiveTest - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1:Calculate the zero sqrt"); - try - { - float source = 0; - float des = MathF.Sqrt(source); - if (des != 0) - { - TestLibrary.TestFramework.LogError("001", "the ExpectResult is not the ActualResult"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2:Calculate the positive number sqrt"); - try - { - float source = 100; - float des = MathF.Sqrt(source); - if (des != 10) - { - TestLibrary.TestFramework.LogError("003", "the ExpectResult is not the ActualResult"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3:Calculate the negative number sqrt"); - try - { - float source = -1; - float des = MathF.Sqrt(source); - if (!float.IsNaN(des)) - { - TestLibrary.TestFramework.LogError("005", "the ExpectResult is not the ActualResult"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4:Calculate the float NaN sqrt"); - try - { - float source = float.NaN; - float des = MathF.Sqrt(source); - if (!float.IsNaN(des)) - { - TestLibrary.TestFramework.LogError("007", "the ExpectResult is not the ActualResult"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5:Calculate the float PositiveInfinity sqrt"); - try - { - float source = float.PositiveInfinity; - float des = MathF.Sqrt(source); - if (!float.IsPositiveInfinity(des)) - { - TestLibrary.TestFramework.LogError("009", "the ExpectResult is not the ActualResult"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest6:Calculate the float NegativeInfinity sqrt"); - try - { - float source = float.NegativeInfinity; - float des = MathF.Sqrt(source); - if (!float.IsNaN(des)) - { - TestLibrary.TestFramework.LogError("011", "the ExpectResult is not the ActualResult"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - #endregion -} diff --git a/tests/src/CoreMangLib/cti/system/mathf/mathftan.cs b/tests/src/CoreMangLib/cti/system/mathf/mathftan.cs deleted file mode 100644 index 08391150f4..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/mathftan.cs +++ /dev/null @@ -1,200 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.MathF.Tan(float) -/// </summary> -public class MathFTan -{ - private const float c_DELTA = 0.000005f; - - public static int Main() - { - MathFTan mathTan = new MathFTan(); - TestLibrary.TestFramework.BeginTestCase("MathFTan"); - if (mathTan.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - return retVal; - } - - #region PositiveTest - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Caculate the tangent of 0 degrees"); - try - { - float sourceA = (float)0; - float desA = MathF.Tan(sourceA); - if (!MathFTestLib.SingleIsWithinEpsilon(desA, (float)0)) - { - TestLibrary.TestFramework.LogError("001", "Expected: 0, actual: " + desA.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Calculate the tangent of 90 degrees"); - try - { - float sourceA = 90; - float desA = MathF.Tan(sourceA * (MathF.PI / 180)); - if ((desA - 16331778728383844.0) > c_DELTA) - { - TestLibrary.TestFramework.LogError("003", "the ExpectResult is not the ActualResult: Expected(" + 16331778728383844.0 + ") Actual(" + desA + ")"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Calculate the tangent of 180 degrees"); - try - { - float sourceA = 180; - float desA = MathF.Tan(sourceA * (MathF.PI / 180)); - if ((desA + 0.00000000000000012246063538223773) > c_DELTA) - { - TestLibrary.TestFramework.LogError("005", "Expected: 0.00000000000000012246063538223773, actual: " + desA.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Calculate the tangent of 45 degrees"); - try - { - float sourceA = 45.0f; - float desA = MathF.Tan(sourceA * (MathF.PI / 180)); - if (!MathFTestLib.SingleIsWithinEpsilon(desA, 1.0f)) - { - TestLibrary.TestFramework.LogError("007", "Expected: 1.0, actual: " + desA.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: The float is float NaN"); - try - { - float sourceA = float.NaN; - float desA = MathF.Tan(sourceA); - if (!float.IsNaN(desA)) - { - TestLibrary.TestFramework.LogError("009", "the ExpectResult is not the ActualResult: Expected(NaN) Actual(" + desA + ")"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest6: The float is float NegativeInfinity"); - try - { - float sourceA = float.NegativeInfinity; - float desA = MathF.Tan(sourceA); - if (!float.IsNaN(desA)) - { - TestLibrary.TestFramework.LogError("011", "Expected: NaN, actual: " + desA.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpected exception" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest7() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest7: The float is float PositiveInfinity"); - try - { - float sourceA = float.PositiveInfinity; - float desA = MathF.Tan(sourceA); - if (!float.IsNaN(desA)) - { - TestLibrary.TestFramework.LogError("013", "Expected: NaN, actual: " + desA.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("014", "Unexpected exception" + e); - retVal = false; - } - return retVal; - } - #endregion -} diff --git a/tests/src/CoreMangLib/cti/system/mathf/mathftanh.cs b/tests/src/CoreMangLib/cti/system/mathf/mathftanh.cs deleted file mode 100644 index 311be44a2b..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/mathftanh.cs +++ /dev/null @@ -1,202 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.MathF.Tanh(bouble) -/// </summary> -public class MathFTanh -{ - public static int Main() - { - MathFTanh mathTanh = new MathFTanh(); - TestLibrary.TestFramework.BeginTestCase("MathFTanh"); - if (mathTanh.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - retVal = PosTest7() && retVal; - return retVal; - } - - #region PositiveTest - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1: Caculate the tanh of 0 degrees"); - try - { - float sourceA = 0; - float desA = MathF.Tanh(sourceA); - if (!MathFTestLib.SingleIsWithinEpsilon(desA, sourceA)) - { - TestLibrary.TestFramework.LogError("001", "Expected: 0, actual: " + desA.ToString() + "; diff > epsilon = " + - MathFTestLib.Epsilon.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2: Calculate the tanh of 90 degrees"); - try - { - float sourceA = 90; - float desA = MathF.Tanh(sourceA * (MathF.PI / 180)); - if (!MathFTestLib.SingleIsWithinEpsilon(desA, 0.917152336f)) - { - TestLibrary.TestFramework.LogError("003", "Expected: 0.917152336, actual: " + desA.ToString() + "; diff > epsilon = " + - MathFTestLib.Epsilon.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3: Calculate the tanh of 180 degrees"); - try - { - float sourceA = 180; - float desA = MathF.Tan(sourceA * (MathF.PI / 180)); - if (!MathFTestLib.SingleIsWithinEpsilon(desA, -0.0f)) - { - TestLibrary.TestFramework.LogError("005", "Expected: -0.0, actual: " + desA.ToString() + "; diff > epsilon = " + - MathFTestLib.Epsilon.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4: Calculate the tanh of 45 degrees"); - try - { - float sourceA = 45.0f; - float desA = MathF.Tanh(sourceA * (MathF.PI / 180)); - if (!MathFTestLib.SingleIsWithinEpsilon(desA, 0.655794203f)) - { - TestLibrary.TestFramework.LogError("007", "Expected: 0.655794203, actual: " + desA.ToString() + "; diff > epsilon = " + - MathFTestLib.Epsilon.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest5: tanh(NaN)=NaN"); - try - { - float sourceA = float.NaN; - float desA = MathF.Tanh(sourceA); - if (!float.IsNaN(desA)) - { - TestLibrary.TestFramework.LogError("009", "Expected: NaN, actual: " + desA.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest6: tanh(-inf)=-1"); - try - { - float sourceA = float.NegativeInfinity; - float desA = MathF.Tanh(sourceA); - if (!MathFTestLib.SingleIsWithinEpsilon(desA, -1)) - { - TestLibrary.TestFramework.LogError("011", "Expected: -1, actual: " + desA.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpected exception" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest7() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest7: tanh(+inf) = 1"); - try - { - float sourceA = float.PositiveInfinity; - float desA = MathF.Tanh(sourceA); - if (!MathFTestLib.SingleIsWithinEpsilon(desA, 1)) - { - TestLibrary.TestFramework.LogError("013", "Expected 1, actual: " + desA.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("014", "Unexpected exception" + e); - retVal = false; - } - return retVal; - } - #endregion -} diff --git a/tests/src/CoreMangLib/cti/system/mathf/mathftestlib.cs b/tests/src/CoreMangLib/cti/system/mathf/mathftestlib.cs deleted file mode 100644 index d9aadcb946..0000000000 --- a/tests/src/CoreMangLib/cti/system/mathf/mathftestlib.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// Summary description for Class1 -/// </summary> -public class MathFTestLib -{ - private static decimal epsilon = new decimal(0.000001D); - - public static decimal Epsilon - { - get - { - return epsilon; - } - - set - { - epsilon = Convert.ToDecimal(value); - } - } - - public static bool SingleIsWithinEpsilon(float x, float y) - { - decimal dx = new decimal(x); - decimal dy = new decimal(y); - - decimal diff = Math.Abs(decimal.Subtract(dx, dy)); - return diff.CompareTo(Epsilon) <= 0; - } -} diff --git a/tests/src/CoreMangLib/cti/system/obsoleteattribute/ObsoleteAttributeCtor1.csproj b/tests/src/CoreMangLib/cti/system/obsoleteattribute/ObsoleteAttributeCtor1.csproj deleted file mode 100644 index 87ae750075..0000000000 --- a/tests/src/CoreMangLib/cti/system/obsoleteattribute/ObsoleteAttributeCtor1.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="obsoleteattributector1.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/obsoleteattribute/ObsoleteAttributeCtor2.csproj b/tests/src/CoreMangLib/cti/system/obsoleteattribute/ObsoleteAttributeCtor2.csproj deleted file mode 100644 index 3c9e711d73..0000000000 --- a/tests/src/CoreMangLib/cti/system/obsoleteattribute/ObsoleteAttributeCtor2.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="obsoleteattributector2.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/obsoleteattribute/ObsoleteAttributeCtor3.csproj b/tests/src/CoreMangLib/cti/system/obsoleteattribute/ObsoleteAttributeCtor3.csproj deleted file mode 100644 index 29a016f1f0..0000000000 --- a/tests/src/CoreMangLib/cti/system/obsoleteattribute/ObsoleteAttributeCtor3.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="obsoleteattributector3.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/obsoleteattribute/ObsoleteAttributeIsError.csproj b/tests/src/CoreMangLib/cti/system/obsoleteattribute/ObsoleteAttributeIsError.csproj deleted file mode 100644 index 539d3e49ce..0000000000 --- a/tests/src/CoreMangLib/cti/system/obsoleteattribute/ObsoleteAttributeIsError.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="obsoleteattributeiserror.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/obsoleteattribute/ObsoleteAttributeMessage.csproj b/tests/src/CoreMangLib/cti/system/obsoleteattribute/ObsoleteAttributeMessage.csproj deleted file mode 100644 index b82080aead..0000000000 --- a/tests/src/CoreMangLib/cti/system/obsoleteattribute/ObsoleteAttributeMessage.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="obsoleteattributemessage.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/obsoleteattribute/obsoleteattributector1.cs b/tests/src/CoreMangLib/cti/system/obsoleteattribute/obsoleteattributector1.cs deleted file mode 100644 index cf35c68d5c..0000000000 --- a/tests/src/CoreMangLib/cti/system/obsoleteattribute/obsoleteattributector1.cs +++ /dev/null @@ -1,158 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.ObsoleteAttribute.Ctor()[v-juwa] -/// </summary> -public class ObsoleteAttributeCtor1 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - const string c_TEST_DESC = "PosTest1: Verify created the object is not null"; - const string c_TEST_ID = "P001"; - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - - try - { - ObsoleteAttribute oa = new ObsoleteAttribute(); - if (oa == null) - { - string errorDesc = "created ObsoleteAttribute should not be null"; - TestLibrary.TestFramework.LogError("001 " + "TestID_" + c_TEST_ID, errorDesc); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - const string c_TEST_DESC = "PosTest2: Verify createed ObsoleteAttribute object's Message is null"; - const string c_TEST_ID = "P002"; - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - - try - { - ObsoleteAttribute oa = new ObsoleteAttribute(); - if (oa.Message != null) - { - string errorDesc = "created ObsoleteAttribute's Message should be null"; - TestLibrary.TestFramework.LogError("003 " + "TestID_" + c_TEST_ID, errorDesc); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - - public bool PosTest3() - { - bool retVal = true; - - const string c_TEST_DESC = "PosTest3: Verify create the ObsoleteAttribute object's IsError property is false"; - const string c_TEST_ID = "P003"; - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - - try - { - ObsoleteAttribute oa = new ObsoleteAttribute(); - if (oa.IsError) - { - string errorDesc = "created ObsoleteAttribute IsError property should be false"; - TestLibrary.TestFramework.LogError("005 " + "TestID_" + c_TEST_ID, errorDesc); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - //public bool NegTest1() - //{ - // bool retVal = true; - - // TestLibrary.TestFramework.BeginScenario("NegTest1: "); - - // try - // { - // // - // // Add your test logic here - // // - // } - // catch (Exception e) - // { - // TestLibrary.TestFramework.LogError("101", "Unexpected exception: " + e); - // TestLibrary.TestFramework.LogInformation(e.StackTrace); - // retVal = false; - // } - - // return retVal; - //} - #endregion - #endregion - - public static int Main() - { - ObsoleteAttributeCtor1 test = new ObsoleteAttributeCtor1(); - - TestLibrary.TestFramework.BeginTestCase("For method:System.ObsoleteAttribute.Ctor()"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/obsoleteattribute/obsoleteattributector2.cs b/tests/src/CoreMangLib/cti/system/obsoleteattribute/obsoleteattributector2.cs deleted file mode 100644 index 4706a73da2..0000000000 --- a/tests/src/CoreMangLib/cti/system/obsoleteattribute/obsoleteattributector2.cs +++ /dev/null @@ -1,161 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.ObsoleteAttribute.Ctor(String)[v-juwa] -/// </summary> -public class ObsoleteAttributeCtor2 -{ - private int c_MINI_STRING_LENGTH = 8; - private int c_MAX_STRING_LENGTH = 256; - - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - const string c_TEST_DESC = "PosTest1: Verify the message is the random string"; - const string c_TEST_ID = "P001"; - - string message = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH); - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - - try - { - ObsoleteAttribute oa = new ObsoleteAttribute(message); - if (oa.Message != message) - { - string errorDesc = "Message is not \""+message+"\" as expected:Actual(\""+oa.Message+"\")"; - TestLibrary.TestFramework.LogError("001 " + "TestID_" + c_TEST_ID, errorDesc); - retVal = false; - } - - if (oa.IsError) - { - string errorDesc = "created ObsoleteAttribute IsError property should be false"; - TestLibrary.TestFramework.LogError("002 " + "TestID_" + c_TEST_ID, errorDesc); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003 ", "Unexpected exception: " + e+"message is "+message); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - const string c_TEST_DESC = "PosTest2: Verify the message is empty"; - const string c_TEST_ID = "P002"; - - string message = String.Empty; - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - - try - { - ObsoleteAttribute oa = new ObsoleteAttribute(message); - if (oa.Message != message) - { - string errorDesc = "Message is not empty as expected:Actual(\"" + oa.Message + "\")"; - TestLibrary.TestFramework.LogError("004 " + "TestID_" + c_TEST_ID, errorDesc); - retVal = false; - } - - if (oa.IsError) - { - string errorDesc = "created ObsoleteAttribute IsError property should be false"; - TestLibrary.TestFramework.LogError("005 " + "TestID_" + c_TEST_ID, errorDesc); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006 ", "Unexpected exception: " + e+"message is empty"); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - const string c_TEST_DESC = "PosTest3: Verify the message is null"; - const string c_TEST_ID = "P003"; - - string message = null; - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - - try - { - ObsoleteAttribute oa = new ObsoleteAttribute(message); - if (oa.Message != null) - { - string errorDesc = "Message is not null as expected:Actual(\"" + oa.Message + "\")"; - TestLibrary.TestFramework.LogError("007 " + "TestID_" + c_TEST_ID, errorDesc); - retVal = false; - } - - if (oa.IsError) - { - string errorDesc = "created ObsoleteAttribute IsError property should be false"; - TestLibrary.TestFramework.LogError("008 " + "TestID_" + c_TEST_ID, errorDesc); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("009 ", "Unexpected exception: " + e+"message is null"); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - return retVal; - } - #endregion - - #endregion - - public static int Main() - { - ObsoleteAttributeCtor2 test = new ObsoleteAttributeCtor2(); - - TestLibrary.TestFramework.BeginTestCase("For method:System.ObsoleteAttribute.Ctor(String)"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/obsoleteattribute/obsoleteattributector3.cs b/tests/src/CoreMangLib/cti/system/obsoleteattribute/obsoleteattributector3.cs deleted file mode 100644 index 3d473a4ad8..0000000000 --- a/tests/src/CoreMangLib/cti/system/obsoleteattribute/obsoleteattributector3.cs +++ /dev/null @@ -1,200 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -public class ObsoleteAttributeCtor3 -{ - private int c_MINI_STRING_LENGTH = 8; - private int c_MAX_STRING_LENGTH = 256; - - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - const string c_TEST_DESC = "PosTest1: Verify the message is the random string and isError is false"; - const string c_TEST_ID = "P001"; - - string message = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH); - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - - try - { - ObsoleteAttribute oa = new ObsoleteAttribute(message,false); - if (oa.Message != message) - { - string errorDesc = "Message is not \"" + message + "\" as expected:Actual(\"" + oa.Message + "\")"; - TestLibrary.TestFramework.LogError("001 " + "TestID_" + c_TEST_ID, errorDesc); - retVal = false; - } - - if (oa.IsError) - { - string errorDesc = "IsError should be false"; - TestLibrary.TestFramework.LogError("002 " + "TestID_" + c_TEST_ID, errorDesc); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003 " + "TestID_" + c_TEST_ID, "Unexpected exception: " + e +"IsError is false and message is "+message); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - const string c_TEST_DESC = "PosTest2: Verify the message is the random string and isError is true"; - const string c_TEST_ID = "P002"; - - string message = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH); - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - - try - { - ObsoleteAttribute oa = new ObsoleteAttribute(message, true); - if (oa.Message != message) - { - string errorDesc = "Message is not \"" + message + "\" as expected:Actual(\"" + oa.Message + "\")"; - TestLibrary.TestFramework.LogError("004 " + "TestID_" + c_TEST_ID, errorDesc); - retVal = false; - } - - if (!oa.IsError) - { - string errorDesc = "IsError should be true"; - TestLibrary.TestFramework.LogError("005 " + "TestID_" + c_TEST_ID, errorDesc); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006 " + "TestID_" + c_TEST_ID, "Unexpected exception: " + e + "message is " + "IsError is true and message is " + message); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - const string c_TEST_DESC = "PosTest3: Verify the message is empty and isError is true"; - const string c_TEST_ID = "P003"; - - string message = String.Empty; - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - - try - { - ObsoleteAttribute oa = new ObsoleteAttribute(message, true); - if (oa.Message != message) - { - string errorDesc = "Message is not empty as expected:Actual(\"" + oa.Message + "\")"; - TestLibrary.TestFramework.LogError("007 " + "TestID_" + c_TEST_ID, errorDesc); - retVal = false; - } - - if (!oa.IsError) - { - string errorDesc = "IsError should be true"; - TestLibrary.TestFramework.LogError("008 " + "TestID_" + c_TEST_ID, errorDesc); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("009 " + "TestID_" + c_TEST_ID, "Unexpected exception: " + e + "message is " + "IsError is true and message is empty"); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - const string c_TEST_DESC = "PosTest4: Verify the message is null and isError is true"; - const string c_TEST_ID = "P004"; - - string message = null; - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - - try - { - ObsoleteAttribute oa = new ObsoleteAttribute(message, true); - if (oa.Message != null) - { - string errorDesc = "Message is not null as expected:Actual(\"" + oa.Message + "\")"; - TestLibrary.TestFramework.LogError("010 " + "TestID_" + c_TEST_ID, errorDesc); - retVal = false; - } - - if (!oa.IsError) - { - string errorDesc = "IsError should be true"; - TestLibrary.TestFramework.LogError("011 " + "TestID_" + c_TEST_ID, errorDesc); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012 " + "TestID_" + c_TEST_ID, "Unexpected exception: " + e + "message is " + "IsError is true and message is null"); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - #endregion - - #endregion - - public static int Main() - { - ObsoleteAttributeCtor3 test = new ObsoleteAttributeCtor3(); - - TestLibrary.TestFramework.BeginTestCase("For method:System.ObsoleteAttributeCtor(String,Boolean)"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/obsoleteattribute/obsoleteattributeiserror.cs b/tests/src/CoreMangLib/cti/system/obsoleteattribute/obsoleteattributeiserror.cs deleted file mode 100644 index 7596e28de3..0000000000 --- a/tests/src/CoreMangLib/cti/system/obsoleteattribute/obsoleteattributeiserror.cs +++ /dev/null @@ -1,141 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.ObsoleteAttribute.IsError[v-juwa] -/// </summary> -public class ObsoleteAttributeIsError -{ - private int c_MINI_STRING_LENGTH = 8; - private int c_MAX_STRING_LENGTH = 256; - - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - const string c_TEST_DESC = "PosTest1: Verify IsError property default value is false"; - const string c_TEST_ID = "P001"; - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - - try - { - ObsoleteAttribute oa = new ObsoleteAttribute(); - if (oa.IsError) - { - string errorDesc = "IsError property default value should be false"; - TestLibrary.TestFramework.LogError("001 " + "TestID_" + c_TEST_ID, errorDesc); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002 "+"TestID_" + c_TEST_ID, "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - const string c_TEST_DESC = "PosTest2: Verify IsError property is false"; - const string c_TEST_ID = "P002"; - - string message = TestLibrary.Generator.GetString(-55, false,c_MINI_STRING_LENGTH,c_MAX_STRING_LENGTH); - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - - try - { - ObsoleteAttribute oa = new ObsoleteAttribute(message,false); - if (oa.IsError) - { - string errorDesc = "IsError property value should be false"; - TestLibrary.TestFramework.LogError("003 " + "TestID_" + c_TEST_ID, errorDesc); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004 " + "TestID_" + c_TEST_ID, "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - const string c_TEST_DESC = "PosTest3: Verify IsError property is true"; - const string c_TEST_ID = "P003"; - - string message = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH); - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - - try - { - ObsoleteAttribute oa = new ObsoleteAttribute(message, true); - if (!oa.IsError) - { - string errorDesc = "IsError property value should be true"; - TestLibrary.TestFramework.LogError("005 " + "TestID_" + c_TEST_ID, errorDesc); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006 " + "TestID_" + c_TEST_ID, "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - #endregion - - #endregion - - public static int Main() - { - ObsoleteAttributeIsError test = new ObsoleteAttributeIsError(); - - TestLibrary.TestFramework.BeginTestCase("For property:System.ObsoleteAttribute.IsError"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/obsoleteattribute/obsoleteattributemessage.cs b/tests/src/CoreMangLib/cti/system/obsoleteattribute/obsoleteattributemessage.cs deleted file mode 100644 index 99f1533d67..0000000000 --- a/tests/src/CoreMangLib/cti/system/obsoleteattribute/obsoleteattributemessage.cs +++ /dev/null @@ -1,196 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// System.ObsoleteAttribute.Message[v-juwa] -/// </summary> -public class ObsoleteAttributeMessage -{ - private int c_MINI_STRING_LENGTH = 8; - private int c_MAX_STRING_LENGTH = 256; - - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - const string c_TEST_DESC = "PosTest1: Verify Message property default value is null"; - const string c_TEST_ID = "P001"; - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - - try - { - ObsoleteAttribute oa = new ObsoleteAttribute(); - if (oa.Message != null) - { - string errorDesc = "Message default value is not null expected:Actual (\""+oa.Message+"\")"; - TestLibrary.TestFramework.LogError("001 " + "TestID_" + c_TEST_ID, errorDesc); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002 " + "TestID_" + c_TEST_ID, "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - const string c_TEST_DESC = "PosTest2: Verify Message property is random string"; - const string c_TEST_ID = "P002"; - - string message = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH); - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - - try - { - ObsoleteAttribute oa = new ObsoleteAttribute(message); - if (oa.Message != message) - { - string errorDesc = "Message value is not \""+message+"\" expected:Actual (\"" + oa.Message + "\")"; - TestLibrary.TestFramework.LogError("003 " + "TestID_" + c_TEST_ID, errorDesc); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004 " + "TestID_" + c_TEST_ID, "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - const string c_TEST_DESC = "PosTest3: Verify Message property is empty"; - const string c_TEST_ID = "P003"; - - string message = String.Empty; - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - - try - { - ObsoleteAttribute oa = new ObsoleteAttribute(message,false); - if (oa.Message != message) - { - string errorDesc = "Message value is not empty expected:Actual (\"" + oa.Message + "\")"; - TestLibrary.TestFramework.LogError("005 " + "TestID_" + c_TEST_ID, errorDesc); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006 " + "TestID_" + c_TEST_ID, "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - const string c_TEST_DESC = "PosTest4: Verify Message property is null"; - const string c_TEST_ID = "P004"; - - string message = null; - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - - try - { - ObsoleteAttribute oa = new ObsoleteAttribute(message); - if (oa.Message != null) - { - string errorDesc = "Message value is not null expected:Actual (\"" + oa.Message + "\")"; - TestLibrary.TestFramework.LogError("007 " + "TestID_" + c_TEST_ID, errorDesc); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008 " + "TestID_" + c_TEST_ID, "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - #endregion - - #region Nagetive Test Cases - //public bool NegTest1() - //{ - // bool retVal = true; - - // TestLibrary.TestFramework.BeginScenario("NegTest1: "); - - // try - // { - // // - // // Add your test logic here - // // - // } - // catch (Exception e) - // { - // TestLibrary.TestFramework.LogError("101", "Unexpected exception: " + e); - // TestLibrary.TestFramework.LogInformation(e.StackTrace); - // retVal = false; - // } - - // return retVal; - //} - #endregion - #endregion - - public static int Main() - { - ObsoleteAttributeMessage test = new ObsoleteAttributeMessage(); - - TestLibrary.TestFramework.BeginTestCase("For property:System.ObsoleteAttribute.Message"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/paramarrayattribute/ParamArrayAttributeCtor.csproj b/tests/src/CoreMangLib/cti/system/paramarrayattribute/ParamArrayAttributeCtor.csproj deleted file mode 100644 index 1bc7d64bbd..0000000000 --- a/tests/src/CoreMangLib/cti/system/paramarrayattribute/ParamArrayAttributeCtor.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="paramarrayattributector.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/paramarrayattribute/paramarrayattributector.cs b/tests/src/CoreMangLib/cti/system/paramarrayattribute/paramarrayattributector.cs deleted file mode 100644 index 412b0c2526..0000000000 --- a/tests/src/CoreMangLib/cti/system/paramarrayattribute/paramarrayattributector.cs +++ /dev/null @@ -1,71 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// ParamArrayAttribute constructor [v-yaduoj] -/// </summary> -public class ParamArrayAttributeCtor -{ - public static int Main() - { - ParamArrayAttributeCtor testObj = new ParamArrayAttributeCtor(); - - TestLibrary.TestFramework.BeginTestCase("for ParamArrayAttribute()"); - if (testObj.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - return retVal; - } - - #region Positive tests - public bool PosTest1() - { - bool retVal = true; - - const string c_TEST_ID = "P001"; - string c_TEST_DESC = "PosTest1: initialize an instance of type ParamArrayAttribute via default constructor"; - string errorDesc; - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - try - { - ParamArrayAttribute paramArrayAtt = new ParamArrayAttribute(); - if (null == paramArrayAtt) - { - errorDesc = "Failed to initialize an instance of type ParamArrayAttribute via default constructor."; - TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc); - retVal = false; - } - } - catch (Exception e) - { - errorDesc = "Unexpected exception: " + e; - TestLibrary.TestFramework.LogError("002" + " TestId-" + c_TEST_ID, errorDesc); - retVal = false; - } - - return retVal; - } - - #endregion -} diff --git a/tests/src/CoreMangLib/cti/system/reflection/assembly/TestAssembly1.csproj b/tests/src/CoreMangLib/cti/system/reflection/assembly/TestAssembly1.csproj deleted file mode 100644 index fb4f23cabd..0000000000 --- a/tests/src/CoreMangLib/cti/system/reflection/assembly/TestAssembly1.csproj +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Library</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>SharedLibrary</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="testassembly1.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> diff --git a/tests/src/CoreMangLib/cti/system/reflection/assembly/TestTarget2.csproj b/tests/src/CoreMangLib/cti/system/reflection/assembly/TestTarget2.csproj deleted file mode 100644 index 1d34ba7a16..0000000000 --- a/tests/src/CoreMangLib/cti/system/reflection/assembly/TestTarget2.csproj +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Library</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>SharedLibrary</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="testtarget.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> diff --git a/tests/src/CoreMangLib/cti/system/reflection/assembly/testassembly1.cs b/tests/src/CoreMangLib/cti/system/reflection/assembly/testassembly1.cs deleted file mode 100644 index f6132d0739..0000000000 --- a/tests/src/CoreMangLib/cti/system/reflection/assembly/testassembly1.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Security; -using System.Collections.Generic; -using System.Text; - -[assembly: SecurityCritical] - -namespace general -{ - class Class1 - { - } -} diff --git a/tests/src/CoreMangLib/cti/system/reflection/assembly/testtarget.cs b/tests/src/CoreMangLib/cti/system/reflection/assembly/testtarget.cs deleted file mode 100644 index 73e4a83e86..0000000000 --- a/tests/src/CoreMangLib/cti/system/reflection/assembly/testtarget.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Security; - -[assembly: SecurityCritical] - -public class TestTarget -{ - public static void Main() - { - } -} diff --git a/tests/src/CoreMangLib/cti/system/resources/missingmanifestresourceexception/MissingManifestResourceExceptionCtor1.csproj b/tests/src/CoreMangLib/cti/system/resources/missingmanifestresourceexception/MissingManifestResourceExceptionCtor1.csproj deleted file mode 100644 index bbba3c6e65..0000000000 --- a/tests/src/CoreMangLib/cti/system/resources/missingmanifestresourceexception/MissingManifestResourceExceptionCtor1.csproj +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="missingmanifestresourceexceptionctor1.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> diff --git a/tests/src/CoreMangLib/cti/system/resources/missingmanifestresourceexception/MissingManifestResourceExceptionCtor2.csproj b/tests/src/CoreMangLib/cti/system/resources/missingmanifestresourceexception/MissingManifestResourceExceptionCtor2.csproj deleted file mode 100644 index fbb2a8b7d8..0000000000 --- a/tests/src/CoreMangLib/cti/system/resources/missingmanifestresourceexception/MissingManifestResourceExceptionCtor2.csproj +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="missingmanifestresourceexceptionctor2.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> diff --git a/tests/src/CoreMangLib/cti/system/resources/missingmanifestresourceexception/MissingManifestResourceExceptionCtor3.csproj b/tests/src/CoreMangLib/cti/system/resources/missingmanifestresourceexception/MissingManifestResourceExceptionCtor3.csproj deleted file mode 100644 index 35a7e90a09..0000000000 --- a/tests/src/CoreMangLib/cti/system/resources/missingmanifestresourceexception/MissingManifestResourceExceptionCtor3.csproj +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="missingmanifestresourceexceptionctor3.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> diff --git a/tests/src/CoreMangLib/cti/system/resources/missingmanifestresourceexception/missingmanifestresourceexceptionctor1.cs b/tests/src/CoreMangLib/cti/system/resources/missingmanifestresourceexception/missingmanifestresourceexceptionctor1.cs deleted file mode 100644 index 3a5e37b0f8..0000000000 --- a/tests/src/CoreMangLib/cti/system/resources/missingmanifestresourceexception/missingmanifestresourceexceptionctor1.cs +++ /dev/null @@ -1,70 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Resources; - -/// <summary> -/// ctor [v-yishi] -/// </summary> -public class MissingManifestResourceExceptionCtor1 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Call ctor to create a new instance"); - - try - { - MissingManifestResourceException ex = new MissingManifestResourceException(); - if (ex == null) - { - TestLibrary.TestFramework.LogError("001.1", "Calling ctor returns null reference"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("001.0", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - MissingManifestResourceExceptionCtor1 test = new MissingManifestResourceExceptionCtor1(); - - TestLibrary.TestFramework.BeginTestCase("MissingManifestResourceExceptionCtor1"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/resources/missingmanifestresourceexception/missingmanifestresourceexceptionctor2.cs b/tests/src/CoreMangLib/cti/system/resources/missingmanifestresourceexception/missingmanifestresourceexceptionctor2.cs deleted file mode 100644 index ff415da41e..0000000000 --- a/tests/src/CoreMangLib/cti/system/resources/missingmanifestresourceexception/missingmanifestresourceexceptionctor2.cs +++ /dev/null @@ -1,148 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Resources; - -/// <summary> -/// ctor(System.String) [v-yishi] -/// </summary> -public class MissingManifestResourceExceptionCtor2 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Call ctor with null"); - - try - { - MissingManifestResourceException ex = new MissingManifestResourceException(null); - if (null == ex) - { - TestLibrary.TestFramework.LogError("001.1", "Calling ctor will null returns null reference"); - retVal = false; - } - - string message = ex.Message; - // using default message - if (message == null) - { - TestLibrary.TestFramework.LogError("001.2", "Calling ctor will null returns null message"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("001.0", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Call ctor with string.Empty"); - - try - { - MissingManifestResourceException ex = new MissingManifestResourceException(string.Empty); - if (null == ex) - { - TestLibrary.TestFramework.LogError("002.1", "Calling ctor will string.Empty returns null reference"); - retVal = false; - } - - string message = ex.Message; - // using default message - if (message == null) - { - TestLibrary.TestFramework.LogError("002.2", "Calling ctor will string.Empty returns null message"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002.0", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: Call ctor with rand message"); - - try - { - string expected = TestLibrary.Generator.GetString(-55, false, 1, 256); - MissingManifestResourceException ex = new MissingManifestResourceException(expected); - if (null == ex) - { - TestLibrary.TestFramework.LogError("003.1", "Calling ctor will rand message returns null reference"); - retVal = false; - } - - string message = ex.Message; - // using default message - if (message != expected) - { - TestLibrary.TestFramework.LogError("003.2", "Calling ctor will rand message returns null message"); - TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] message = " + message + ", expected = " + expected); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003.0", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - MissingManifestResourceExceptionCtor2 test = new MissingManifestResourceExceptionCtor2(); - - TestLibrary.TestFramework.BeginTestCase("MissingManifestResourceExceptionCtor2"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/resources/missingmanifestresourceexception/missingmanifestresourceexceptionctor3.cs b/tests/src/CoreMangLib/cti/system/resources/missingmanifestresourceexception/missingmanifestresourceexceptionctor3.cs deleted file mode 100644 index 81ebe2c1b1..0000000000 --- a/tests/src/CoreMangLib/cti/system/resources/missingmanifestresourceexception/missingmanifestresourceexceptionctor3.cs +++ /dev/null @@ -1,177 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Resources; - -public class TestException : Exception -{ -} - -/// <summary> -/// ctor(System.String,System.Exception) [v-yishi] -/// </summary> -public class MissingManifestResourceExceptionCtor3 -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Call ctor with null"); - - try - { - MissingManifestResourceException ex = new MissingManifestResourceException(null, null); - if (null == ex) - { - TestLibrary.TestFramework.LogError("001.1", "Calling ctor will null returns null reference"); - retVal = false; - } - - string message = ex.Message; - // using default message - if (message == null) - { - TestLibrary.TestFramework.LogError("001.2", "Calling ctor will null returns null message"); - retVal = false; - } - - Exception innerException = ex.InnerException; - // using default message - if (innerException != null) - { - TestLibrary.TestFramework.LogError("001.3", "Calling ctor will null returns not null innerException"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("001.0", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Call ctor with string.Empty"); - - try - { - MissingManifestResourceException ex = new MissingManifestResourceException(string.Empty, null); - if (null == ex) - { - TestLibrary.TestFramework.LogError("002.1", "Calling ctor will string.Empty returns null reference"); - retVal = false; - } - - string message = ex.Message; - // using default message - if (message == null) - { - TestLibrary.TestFramework.LogError("002.2", "Calling ctor will string.Empty returns null message"); - retVal = false; - } - - Exception innerException = ex.InnerException; - // using default message - if (innerException != null) - { - TestLibrary.TestFramework.LogError("002.3", "Calling ctor will string.Empty returns not null innerException"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002.0", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: Call ctor with rand message"); - - try - { - string expected = TestLibrary.Generator.GetString(-55, false, 1, 256); - Exception expectedException = new TestException(); - MissingManifestResourceException ex = new MissingManifestResourceException(expected, expectedException); - if (null == ex) - { - TestLibrary.TestFramework.LogError("003.1", "Calling ctor will rand message returns null reference"); - retVal = false; - } - - string message = ex.Message; - // using default message - if (message != expected) - { - TestLibrary.TestFramework.LogError("003.2", "Calling ctor will rand message returns null message"); - TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] message = " + message + ", expected = " + expected); - retVal = false; - } - - Exception innerException = ex.InnerException; - // using default message - if (innerException != expectedException) - { - TestLibrary.TestFramework.LogError("003.3", "Calling ctor will string.Empty returns wrong inner exception"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003.0", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - MissingManifestResourceExceptionCtor3 test = new MissingManifestResourceExceptionCtor3(); - - TestLibrary.TestFramework.BeginTestCase("MissingManifestResourceExceptionCtor3"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/resources/neutralresourceslanguageattribute/CultureName.csproj b/tests/src/CoreMangLib/cti/system/resources/neutralresourceslanguageattribute/CultureName.csproj deleted file mode 100644 index 23f4d300e3..0000000000 --- a/tests/src/CoreMangLib/cti/system/resources/neutralresourceslanguageattribute/CultureName.csproj +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="neutralresourceslanguageattributeculturename.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> diff --git a/tests/src/CoreMangLib/cti/system/resources/neutralresourceslanguageattribute/NeutralResourcesLanguageAttributeCtor.csproj b/tests/src/CoreMangLib/cti/system/resources/neutralresourceslanguageattribute/NeutralResourcesLanguageAttributeCtor.csproj deleted file mode 100644 index 8cf7de47b8..0000000000 --- a/tests/src/CoreMangLib/cti/system/resources/neutralresourceslanguageattribute/NeutralResourcesLanguageAttributeCtor.csproj +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="neutralresourceslanguageattributector.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> diff --git a/tests/src/CoreMangLib/cti/system/resources/neutralresourceslanguageattribute/neutralresourceslanguageattributector.cs b/tests/src/CoreMangLib/cti/system/resources/neutralresourceslanguageattribute/neutralresourceslanguageattributector.cs deleted file mode 100644 index 8a03125964..0000000000 --- a/tests/src/CoreMangLib/cti/system/resources/neutralresourceslanguageattribute/neutralresourceslanguageattributector.cs +++ /dev/null @@ -1,144 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Resources; - -/// <summary> -/// ctor(System.String) [v-yishi] -/// </summary> -public class NeutralResourcesLanguageAttributeCtor -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Call ctor with string.Empty reference"); - - try - { - NeutralResourcesLanguageAttribute attr = new NeutralResourcesLanguageAttribute(string.Empty); - - if (attr == null) - { - TestLibrary.TestFramework.LogError("001.1", "Calling ctor with string.Empty returns null reference"); - retVal = false; - } - - string actual = attr.CultureName; - if (actual != string.Empty) - { - TestLibrary.TestFramework.LogError("001.2", "Calling ctor with string.Empty does not returns null CultureName"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("001.0", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Call ctor with rand string"); - - try - { - string expected = TestLibrary.Generator.GetString(-55, false, 1, 10); - NeutralResourcesLanguageAttribute attr = new NeutralResourcesLanguageAttribute(expected); - - if (attr == null) - { - TestLibrary.TestFramework.LogError("002.1", "Calling ctor with rand string returns null reference"); - retVal = false; - } - - string actual = attr.CultureName; - if (actual != expected) - { - TestLibrary.TestFramework.LogError("002.2", "Calling ctor with rand string does not returns expected CultureName"); - TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLE] actual = " + actual + ", expected = " + expected); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002.0", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - #endregion - - #region Negtive Test Cases - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1: Call ctor with null reference"); - - try - { - NeutralResourcesLanguageAttribute attr = new NeutralResourcesLanguageAttribute(null); - TestLibrary.TestFramework.LogError("101.1", "ArgumentNullException exception does not thrown when calling ctor with null reference"); - retVal = false; - } - catch ( ArgumentNullException ) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("101.0", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - NeutralResourcesLanguageAttributeCtor test = new NeutralResourcesLanguageAttributeCtor(); - - TestLibrary.TestFramework.BeginTestCase("NeutralResourcesLanguageAttributeCtor"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/resources/neutralresourceslanguageattribute/neutralresourceslanguageattributeculturename.cs b/tests/src/CoreMangLib/cti/system/resources/neutralresourceslanguageattribute/neutralresourceslanguageattributeculturename.cs deleted file mode 100644 index 739c8328fc..0000000000 --- a/tests/src/CoreMangLib/cti/system/resources/neutralresourceslanguageattribute/neutralresourceslanguageattributeculturename.cs +++ /dev/null @@ -1,114 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Resources; - -/// <summary> -/// CultureName [v-yishi] -/// </summary> -public class NeutralResourcesLanguageAttributeCultureName -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Call CultureName when NeutralResourcesLanguageAttribute created with string.Empty reference"); - - try - { - NeutralResourcesLanguageAttribute attr = new NeutralResourcesLanguageAttribute(string.Empty); - - if (attr == null) - { - TestLibrary.TestFramework.LogError("001.1", "Calling CultureName when NeutralResourcesLanguageAttribute created with string.Empty returns null reference"); - retVal = false; - } - - string actual = attr.CultureName; - if (actual != string.Empty) - { - TestLibrary.TestFramework.LogError("001.2", "Calling CultureName when NeutralResourcesLanguageAttribute created with string.Empty does not returns null CultureName"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("001.0", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Call CultureName when NeutralResourcesLanguageAttribute created with rand string"); - - try - { - string expected = TestLibrary.Generator.GetString(-55, false, 1, 10); - NeutralResourcesLanguageAttribute attr = new NeutralResourcesLanguageAttribute(expected); - - if (attr == null) - { - TestLibrary.TestFramework.LogError("002.1", "Calling ctor with rand string returns null reference"); - retVal = false; - } - - string actual = attr.CultureName; - if (actual != expected) - { - TestLibrary.TestFramework.LogError("002.2", "Calling ctor with rand string does not returns expected CultureName"); - TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLE] actual = " + actual + ", expected = " + expected); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002.0", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - NeutralResourcesLanguageAttributeCultureName test = new NeutralResourcesLanguageAttributeCultureName(); - - TestLibrary.TestFramework.BeginTestCase("NeutralResourcesLanguageAttributeCultureName"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/resources/satellitecontractversionattribute/AttributeCtor.csproj b/tests/src/CoreMangLib/cti/system/resources/satellitecontractversionattribute/AttributeCtor.csproj deleted file mode 100644 index de97eb2f1d..0000000000 --- a/tests/src/CoreMangLib/cti/system/resources/satellitecontractversionattribute/AttributeCtor.csproj +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="satellitecontractversionattributector.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> diff --git a/tests/src/CoreMangLib/cti/system/resources/satellitecontractversionattribute/AttributeVersion.csproj b/tests/src/CoreMangLib/cti/system/resources/satellitecontractversionattribute/AttributeVersion.csproj deleted file mode 100644 index 78392fa7e7..0000000000 --- a/tests/src/CoreMangLib/cti/system/resources/satellitecontractversionattribute/AttributeVersion.csproj +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="satellitecontractversionattributeversion.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> diff --git a/tests/src/CoreMangLib/cti/system/resources/satellitecontractversionattribute/satellitecontractversionattributector.cs b/tests/src/CoreMangLib/cti/system/resources/satellitecontractversionattribute/satellitecontractversionattributector.cs deleted file mode 100644 index ac5da18bcc..0000000000 --- a/tests/src/CoreMangLib/cti/system/resources/satellitecontractversionattribute/satellitecontractversionattributector.cs +++ /dev/null @@ -1,131 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Resources; - -///<summary> -///System.Resouces.SatelliteContractVersionAttribute.Ctor(String) [v-zuolan] -///</summary> - -public class SatelliteContractVersionAttributeCtor -{ - - public static int Main() - { - SatelliteContractVersionAttributeCtor testObj = new SatelliteContractVersionAttributeCtor(); - TestLibrary.TestFramework.BeginTestCase("for Constructor of System.Resouces.SatelliteContractVersionAttribute"); - if (testObj.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - - } - - public bool RunTests() - { - bool retVal = true; - TestLibrary.TestFramework.LogInformation("Positive"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - - TestLibrary.TestFramework.LogInformation("Negative"); - retVal = NegTest1() && retVal; - - return retVal; - } - - - #region Test Logic - public bool PosTest1() - { - bool retVal = true; - - String version = TestLibrary.Generator.GetString(-55, false, 1, 255); - - String expectedValue = version; - String actualValue; - - TestLibrary.TestFramework.BeginScenario("PosTest1:Create a instance with normal string"); - try - { - SatelliteContractVersionAttribute sCVA = new SatelliteContractVersionAttribute(version); - actualValue = sCVA.Version; - if (expectedValue != actualValue) - { - TestLibrary.TestFramework.LogError("001", "ExpectedValue(" + expectedValue + ") !=ActualValue(" + actualValue + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - String version = TestLibrary.Generator.GetString(-55, false, 256, 512); - - String expectedValue = version; - String actualValue; - - TestLibrary.TestFramework.BeginScenario("PosTest1:Create a instance with long string"); - try - { - SatelliteContractVersionAttribute sCVA = new SatelliteContractVersionAttribute(version); - actualValue = sCVA.Version; - if (expectedValue != actualValue) - { - TestLibrary.TestFramework.LogError("003", "ExpectedValue(" + expectedValue + ") !=ActualValue(" + actualValue + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - #endregion - - #region Negative Test Logic - public bool NegTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("NegTest1:Create a instance with null string"); - try - { - SatelliteContractVersionAttribute sCVA = new SatelliteContractVersionAttribute(null); - TestLibrary.TestFramework.LogError("005", "No ArgumentNullException throw out expected."); - retVal = false; - } - catch (ArgumentNullException) - { - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - #endregion -} diff --git a/tests/src/CoreMangLib/cti/system/resources/satellitecontractversionattribute/satellitecontractversionattributeversion.cs b/tests/src/CoreMangLib/cti/system/resources/satellitecontractversionattribute/satellitecontractversionattributeversion.cs deleted file mode 100644 index 9d7d9ace02..0000000000 --- a/tests/src/CoreMangLib/cti/system/resources/satellitecontractversionattribute/satellitecontractversionattributeversion.cs +++ /dev/null @@ -1,104 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Resources; - -///<summary> -///System.Resouces.SatelliteContractVersionAttribute.Version [v-zuolan] -///</summary> - -public class SatelliteContractVersionAttributeVersion -{ - - public static int Main() - { - SatelliteContractVersionAttributeVersion testObj = new SatelliteContractVersionAttributeVersion(); - TestLibrary.TestFramework.BeginTestCase("for property of System.Resouces.SatelliteContractVersionAttribute.Version"); - if (testObj.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - - } - - public bool RunTests() - { - bool retVal = true; - TestLibrary.TestFramework.LogInformation("Positive"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - - return retVal; - } - - - #region Test Logic - public bool PosTest1() - { - bool retVal = true; - - String version = TestLibrary.Generator.GetString(-55, false, 1, 255); - SatelliteContractVersionAttribute sCVA = new SatelliteContractVersionAttribute(version); - - String expectedValue = version; - String actualValue; - - TestLibrary.TestFramework.BeginScenario("PosTest1:Set Version as normal String and get it."); - try - { - actualValue = sCVA.Version; - if (expectedValue != actualValue) - { - TestLibrary.TestFramework.LogError("001", "ExpectedValue(" + expectedValue + ") !=ActualValue(" + actualValue + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - String version = TestLibrary.Generator.GetString(-55, false, 256, 512); - SatelliteContractVersionAttribute sCVA = new SatelliteContractVersionAttribute(version); - - String expectedValue = version; - String actualValue; - - TestLibrary.TestFramework.BeginScenario("PosTest1:Set Version as long String and get it."); - try - { - actualValue = sCVA.Version; - if (expectedValue != actualValue) - { - TestLibrary.TestFramework.LogError("003", "ExpectedValue(" + expectedValue + ") !=ActualValue(" + actualValue + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - #endregion - -} diff --git a/tests/src/CoreMangLib/cti/system/runtime/compilerservices/runtimehelpers/GetHashCode.csproj b/tests/src/CoreMangLib/cti/system/runtime/compilerservices/runtimehelpers/GetHashCode.csproj deleted file mode 100644 index f409a309e4..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtime/compilerservices/runtimehelpers/GetHashCode.csproj +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="gethashcode.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> diff --git a/tests/src/CoreMangLib/cti/system/runtime/compilerservices/runtimehelpers/PlatformAssembly.csproj b/tests/src/CoreMangLib/cti/system/runtime/compilerservices/runtimehelpers/PlatformAssembly.csproj deleted file mode 100644 index c0b5b0e75f..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtime/compilerservices/runtimehelpers/PlatformAssembly.csproj +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Library</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>SharedLibrary</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="platformassembly.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="../../../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project>
\ No newline at end of file diff --git a/tests/src/CoreMangLib/cti/system/runtime/compilerservices/runtimehelpers/UserAssembly.csproj b/tests/src/CoreMangLib/cti/system/runtime/compilerservices/runtimehelpers/UserAssembly.csproj deleted file mode 100644 index 1228e63ce1..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtime/compilerservices/runtimehelpers/UserAssembly.csproj +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Library</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>SharedLibrary</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="userassembly.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="../../../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project>
\ No newline at end of file diff --git a/tests/src/CoreMangLib/cti/system/runtime/compilerservices/runtimehelpers/gethashcode.cs b/tests/src/CoreMangLib/cti/system/runtime/compilerservices/runtimehelpers/gethashcode.cs deleted file mode 100644 index 32905f7cae..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtime/compilerservices/runtimehelpers/gethashcode.cs +++ /dev/null @@ -1,95 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Security; -using System.Runtime.CompilerServices; -using TestLibrary; - -// Class has two fields, x and y; we consider two instances to be equal (Equals returns true, -// and GetHashCode returns the same for both instances) iff x==x and y==y -class ClassWithEquivalence -{ - int x; - int y; - - public ClassWithEquivalence(int _x, int _y) - { - this.x = _x; - this.y = _y; - } - - public override bool Equals(object b) - { - ClassWithEquivalence bProper = b as ClassWithEquivalence; - if (bProper != null) - return (x == bProper.x) && (y == bProper.y); - else - return false; - } - - public override int GetHashCode() - { - return x.GetHashCode() + y.GetHashCode(); - } -} -public class GetHashCode -{ - public bool PosTest1() - { - bool retVal = true; - TestFramework.BeginScenario("PosTest1: RuntimeHelpers.GetHashCode() on two non-reference-equals objects returns non-equal codes"); - Object a, b; - try - { - a = new ClassWithEquivalence(10, 20); - b = new ClassWithEquivalence(10, 20); - - if (!(a.Equals(b) && (a.GetHashCode() == b.GetHashCode())) - || (Object.ReferenceEquals(a, b))) - { - // Log: setup failed - return false; - } - - if (RuntimeHelpers.GetHashCode(a) == RuntimeHelpers.GetHashCode(b)) - { - // Log: RTH.GHC should have returned different hash codes since the - // objects are not reference-equals. - TestFramework.LogError("001", "a and b are not reference equal, and yet RuntimeHelpers.GetHashCode returned same value for each"); - retVal = false; - - } - } - catch (Exception e) - { - TestFramework.LogError("002", "Unexpected exception: " + e); - retVal = false; - } - return retVal; - } - - public bool RunTests() - { - bool retVal = true; - retVal = PosTest1() && retVal; - - return retVal; - } - - public static int Main(string[] args) - { - GetHashCode ghc = new GetHashCode(); - if (ghc.RunTests()) - { - TestFramework.LogInformation("PASSED"); - return 100; - } - else - { - TestFramework.LogInformation("FAILED"); - return 99; - } - } - -}
\ No newline at end of file diff --git a/tests/src/CoreMangLib/cti/system/runtime/compilerservices/runtimehelpers/platformassembly.cs b/tests/src/CoreMangLib/cti/system/runtime/compilerservices/runtimehelpers/platformassembly.cs deleted file mode 100644 index 77b6f8e090..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtime/compilerservices/runtimehelpers/platformassembly.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -// Platform types for RunClassConstructor tests - -using System; -using System.Security; - -public class Watcher -{ - public static bool f_hasRun = false; -} - -[System.Security.SecurityCritical] -public class CriticalHasCctor -{ - - public static int x; - public static bool hasRun; - static CriticalHasCctor() { - Console.WriteLine("Diagnostic: inside CriticalHasCctor..cctor"); - //x = 2; - Watcher.f_hasRun = true; - } -} - -[System.Security.SecuritySafeCritical] -public class SafeCriticalHasCctor -{ - - static SafeCriticalHasCctor() - { - Console.WriteLine("Diagnostic: inside SafeCriticalHasCctor..cctor"); - Watcher.f_hasRun = true; - } -} - -[System.Security.SecuritySafeCritical] -public class SafeCriticalThrowingCctor -{ - static SafeCriticalThrowingCctor() - { - throw new ArgumentException("I have an argument."); - } - -}
\ No newline at end of file diff --git a/tests/src/CoreMangLib/cti/system/runtime/compilerservices/runtimehelpers/userassembly.cs b/tests/src/CoreMangLib/cti/system/runtime/compilerservices/runtimehelpers/userassembly.cs deleted file mode 100644 index 7c07401598..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtime/compilerservices/runtimehelpers/userassembly.cs +++ /dev/null @@ -1,112 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -// User/transparent types for RunClassConstructor tests - -using System; -using System.Security; - -public class Watcher -{ - public static bool f_hasRun = false; - public static string lastTypeParameter = ""; -} - -public class GenericWithCctor<T> -{ - //public static string myTypeName = - // typeof(T).FullName; - static GenericWithCctor() - { - Watcher.lastTypeParameter = typeof(T).FullName; - Watcher.f_hasRun = true; - } -} -public class NoCctor -{ -} - -public class NestedContainer -{ - // "nested public" - public class NestedPublicHasCctor { - static NestedPublicHasCctor() - { - Watcher.f_hasRun = true; - } - } - - // "nested private" - private class NestedPrivateHasCctor { - static NestedPrivateHasCctor() - { - Watcher.f_hasRun = true; - } - } - - // "nested assembly" - internal class NestedAssemHasCctor - { - static NestedAssemHasCctor() - { - Watcher.f_hasRun = true; - } - } - - // "nested famorassem" - internal protected class NestedFamOrAssemHasCctor - { - static NestedFamOrAssemHasCctor() - { - Watcher.f_hasRun = true; - } - } - -} -class PrivateHasCctor -{ - static PrivateHasCctor() - { - Watcher.f_hasRun = true; - } -} - -public class HasCctor -{ - static HasCctor() - { - Watcher.f_hasRun = true; - } -} - -public class CriticalCctor -{ - [System.Security.SecurityCritical] - static CriticalCctor() - { - Watcher.f_hasRun = true; - } -} -// base-class of (...); duplicate of HasCctor so we guarantee that it hasn't -// been initialized when we call its subclass cctor. -public class BaseWithCctor -{ - static BaseWithCctor() - { - Watcher.f_hasRun = true; - } -} - -public class CctorInBase : BaseWithCctor -{ - -} - -public class ThrowingCctor -{ - static ThrowingCctor() - { - throw new ArgumentException("I have an argument."); - } - -}
\ No newline at end of file diff --git a/tests/src/CoreMangLib/cti/system/runtime/interopservices/callingconvention/CallingConventionWinapi.csproj b/tests/src/CoreMangLib/cti/system/runtime/interopservices/callingconvention/CallingConventionWinapi.csproj deleted file mode 100644 index a48d705629..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtime/interopservices/callingconvention/CallingConventionWinapi.csproj +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="callingconventionwinapi.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> diff --git a/tests/src/CoreMangLib/cti/system/runtime/interopservices/callingconvention/callingconventionwinapi.cs b/tests/src/CoreMangLib/cti/system/runtime/interopservices/callingconvention/callingconventionwinapi.cs deleted file mode 100644 index dc27528628..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtime/interopservices/callingconvention/callingconventionwinapi.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Runtime.InteropServices; - - -///<summary> -///System.Runtime.InteropServices.CallingConvention.Winapi [v-zuolan] -///</summary> - -public class CallingConventionWinapi -{ - - public static int Main() - { - CallingConventionWinapi testObj = new CallingConventionWinapi(); - TestLibrary.TestFramework.BeginTestCase("for property of System.Runtime.InteropServices.CallingConvention.Winapi"); - if (testObj.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - - } - - public bool RunTests() - { - bool retVal = true; - TestLibrary.TestFramework.LogInformation("Positive"); - retVal = PosTest1() && retVal; - - return retVal; - } - - - #region Test Logic - public bool PosTest1() - { - bool retVal = true; - - int expectedValue = 1; - int actualValue; - - TestLibrary.TestFramework.BeginScenario("PosTest1:get the property"); - try - { - actualValue = (int)CallingConvention.Winapi; - if (expectedValue != actualValue) - { - TestLibrary.TestFramework.LogError("001", "ExpectedValue(" + expectedValue + ") !=ActualValue(" + actualValue + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - #endregion -} diff --git a/tests/src/CoreMangLib/cti/system/runtime/interopservices/charset/CharSetUnicode.csproj b/tests/src/CoreMangLib/cti/system/runtime/interopservices/charset/CharSetUnicode.csproj deleted file mode 100644 index 503646f4f8..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtime/interopservices/charset/CharSetUnicode.csproj +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="charsetunicode.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> diff --git a/tests/src/CoreMangLib/cti/system/runtime/interopservices/charset/charsetunicode.cs b/tests/src/CoreMangLib/cti/system/runtime/interopservices/charset/charsetunicode.cs deleted file mode 100644 index f7c26dd1f0..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtime/interopservices/charset/charsetunicode.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Runtime.InteropServices; - - -///<summary> -///System.Runtime.InteropServices.CharSet.Unicode [v-zuolan] -///</summary> - -public class CharSetUnicode -{ - - public static int Main() - { - CharSetUnicode testObj = new CharSetUnicode(); - TestLibrary.TestFramework.BeginTestCase("for property of System.Runtime.InteropServices.CharSet.Unicode"); - if (testObj.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - - } - - public bool RunTests() - { - bool retVal = true; - TestLibrary.TestFramework.LogInformation("Positive"); - retVal = PosTest1() && retVal; - - return retVal; - } - - - #region Test Logic - public bool PosTest1() - { - bool retVal = true; - - int expectedValue = 3; - int actualValue; - - TestLibrary.TestFramework.BeginScenario("PosTest1:get the property"); - try - { - actualValue = (int)CharSet.Unicode; - if (expectedValue != actualValue) - { - TestLibrary.TestFramework.LogError("001", "ExpectedValue(" + expectedValue + ") !=ActualValue(" + actualValue + ")"); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - #endregion -} diff --git a/tests/src/CoreMangLib/cti/system/runtime/interopservices/gchandletype/GCHandleTypeNormal.csproj b/tests/src/CoreMangLib/cti/system/runtime/interopservices/gchandletype/GCHandleTypeNormal.csproj deleted file mode 100644 index e712db6169..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtime/interopservices/gchandletype/GCHandleTypeNormal.csproj +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="gchandletypenormal.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> diff --git a/tests/src/CoreMangLib/cti/system/runtime/interopservices/gchandletype/GCHandleTypePinned.csproj b/tests/src/CoreMangLib/cti/system/runtime/interopservices/gchandletype/GCHandleTypePinned.csproj deleted file mode 100644 index 18cd1f7968..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtime/interopservices/gchandletype/GCHandleTypePinned.csproj +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="gchandletypepinned.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> diff --git a/tests/src/CoreMangLib/cti/system/runtime/interopservices/gchandletype/GCHandleTypeWeak.csproj b/tests/src/CoreMangLib/cti/system/runtime/interopservices/gchandletype/GCHandleTypeWeak.csproj deleted file mode 100644 index 1406dbd2ef..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtime/interopservices/gchandletype/GCHandleTypeWeak.csproj +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="gchandletypeweak.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> diff --git a/tests/src/CoreMangLib/cti/system/runtime/interopservices/gchandletype/GCHandleTypeWeakTrackResurrection.csproj b/tests/src/CoreMangLib/cti/system/runtime/interopservices/gchandletype/GCHandleTypeWeakTrackResurrection.csproj deleted file mode 100644 index a4c6c88667..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtime/interopservices/gchandletype/GCHandleTypeWeakTrackResurrection.csproj +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="gchandletypeweaktrackresurrection.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> diff --git a/tests/src/CoreMangLib/cti/system/runtime/interopservices/gchandletype/gchandletypenormal.cs b/tests/src/CoreMangLib/cti/system/runtime/interopservices/gchandletype/gchandletypenormal.cs deleted file mode 100644 index aa605f41a8..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtime/interopservices/gchandletype/gchandletypenormal.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Runtime.InteropServices; -/// <summary> -/// GCHandleType.Normal [v-minch] -/// </summary> -public class GCHandleTypeNormal -{ - public static int Main() - { - GCHandleTypeNormal test = new GCHandleTypeNormal(); - TestLibrary.TestFramework.BeginTestCase("GCHandleType.Normal"); - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - public bool RunTests() - { - bool retVal = true; - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - return retVal; - } - #region PositiveTest - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1:Verify the Normal in the GCHandleType Enumerator"); - try - { - int myVal = (int)GCHandleType.Normal; - if (myVal != 2) - { - TestLibrary.TestFramework.LogError("001", "the Normal in the GCHandleType ExpectResult is 2 but the ActualResult is " + myVal); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - #endregion -}
\ No newline at end of file diff --git a/tests/src/CoreMangLib/cti/system/runtime/interopservices/gchandletype/gchandletypepinned.cs b/tests/src/CoreMangLib/cti/system/runtime/interopservices/gchandletype/gchandletypepinned.cs deleted file mode 100644 index 7d368ce6a0..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtime/interopservices/gchandletype/gchandletypepinned.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Runtime.InteropServices; -/// <summary> -/// GCHandleType.Pinned [v-minch] -/// </summary> -public class GCHandleTypePinned -{ - public static int Main() - { - GCHandleTypePinned test = new GCHandleTypePinned(); - TestLibrary.TestFramework.BeginTestCase("GCHandleType.Pinned"); - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - public bool RunTests() - { - bool retVal = true; - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - return retVal; - } - #region PositiveTest - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1:Verify the Pinned in the GCHandleType Enumerator"); - try - { - int myVal = (int)GCHandleType.Pinned; - if (myVal != 3) - { - TestLibrary.TestFramework.LogError("001", "the Pinned in the GCHandleType ExpectResult is 3 but the ActualResult is " + myVal); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - #endregion -}
\ No newline at end of file diff --git a/tests/src/CoreMangLib/cti/system/runtime/interopservices/gchandletype/gchandletypeweak.cs b/tests/src/CoreMangLib/cti/system/runtime/interopservices/gchandletype/gchandletypeweak.cs deleted file mode 100644 index 3d46f286c3..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtime/interopservices/gchandletype/gchandletypeweak.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Runtime.InteropServices; -/// <summary> -/// GCHandleType.Weak [v-minch] -/// </summary> -public class GCHandleTypeWeak -{ - public static int Main() - { - GCHandleTypeWeak test = new GCHandleTypeWeak(); - TestLibrary.TestFramework.BeginTestCase("GCHandleType.Weak"); - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - public bool RunTests() - { - bool retVal = true; - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - return retVal; - } - #region PositiveTest - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1:Verify the Weak in the GCHandleType Enumerator"); - try - { - int myVal = (int)GCHandleType.Weak; - if (myVal != 0) - { - TestLibrary.TestFramework.LogError("001", "the Weak in the GCHandleType ExpectResult is 0 but the ActualResult is " + myVal); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - #endregion -}
\ No newline at end of file diff --git a/tests/src/CoreMangLib/cti/system/runtime/interopservices/gchandletype/gchandletypeweaktrackresurrection.cs b/tests/src/CoreMangLib/cti/system/runtime/interopservices/gchandletype/gchandletypeweaktrackresurrection.cs deleted file mode 100644 index b5e014c0c3..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtime/interopservices/gchandletype/gchandletypeweaktrackresurrection.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Runtime.InteropServices; -/// <summary> -/// GCHandleType.WeakTrackResurrection [v-minch] -/// </summary> -public class GCHandleTypeWeakTrackResurrection -{ - public static int Main() - { - GCHandleTypeWeakTrackResurrection test = new GCHandleTypeWeakTrackResurrection(); - TestLibrary.TestFramework.BeginTestCase("GCHandleType.WeakTrackResurrection"); - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - public bool RunTests() - { - bool retVal = true; - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - return retVal; - } - #region PositiveTest - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1:Verify the WeakTrackResurrection in the GCHandleType Enumerator"); - try - { - int myVal = (int)GCHandleType.WeakTrackResurrection; - if (myVal != 1) - { - TestLibrary.TestFramework.LogError("001", "the WeakTrackResurrection in the GCHandleType ExpectResult is 1 but the ActualResult is " + myVal); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - #endregion -}
\ No newline at end of file diff --git a/tests/src/CoreMangLib/cti/system/runtime/interopservices/layoutkind/LayoutKindAuto.csproj b/tests/src/CoreMangLib/cti/system/runtime/interopservices/layoutkind/LayoutKindAuto.csproj deleted file mode 100644 index a9717c5a2b..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtime/interopservices/layoutkind/LayoutKindAuto.csproj +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="layoutkindauto.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> diff --git a/tests/src/CoreMangLib/cti/system/runtime/interopservices/layoutkind/LayoutKindSequential.csproj b/tests/src/CoreMangLib/cti/system/runtime/interopservices/layoutkind/LayoutKindSequential.csproj deleted file mode 100644 index 9c6aba29f3..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtime/interopservices/layoutkind/LayoutKindSequential.csproj +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="layoutkindsequential.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> diff --git a/tests/src/CoreMangLib/cti/system/runtime/interopservices/layoutkind/layoutkindauto.cs b/tests/src/CoreMangLib/cti/system/runtime/interopservices/layoutkind/layoutkindauto.cs deleted file mode 100644 index 2559837eca..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtime/interopservices/layoutkind/layoutkindauto.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Runtime.InteropServices; -/// <summary> -/// LayoutKind.Auto [v-minch] -/// </summary> -public class LayoutKindAuto -{ - public static int Main() - { - LayoutKindAuto test = new LayoutKindAuto(); - TestLibrary.TestFramework.BeginTestCase("LayoutKind.Auto"); - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - public bool RunTests() - { - bool retVal = true; - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - return retVal; - } - #region PositiveTest - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1:Verify the Auto in the LayoutKind Enumerator"); - try - { - int myVal = (int)LayoutKind.Auto; - if (myVal != 3) - { - TestLibrary.TestFramework.LogError("001", "the Auto in the LayoutKind ExpectResult is 3 but the ActualResult is " + myVal); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - #endregion -}
\ No newline at end of file diff --git a/tests/src/CoreMangLib/cti/system/runtime/interopservices/layoutkind/layoutkindsequential.cs b/tests/src/CoreMangLib/cti/system/runtime/interopservices/layoutkind/layoutkindsequential.cs deleted file mode 100644 index 745fcef7b4..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtime/interopservices/layoutkind/layoutkindsequential.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Runtime.InteropServices; -/// <summary> -/// LayoutKind.Sequential [v-minch] -/// </summary> -public class LayoutKindSequential -{ - public static int Main() - { - LayoutKindSequential test = new LayoutKindSequential(); - TestLibrary.TestFramework.BeginTestCase("LayoutKind.Sequential"); - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - public bool RunTests() - { - bool retVal = true; - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - return retVal; - } - #region PositiveTest - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1:Verify the Sequential in the LayoutKind Enumerator"); - try - { - int myVal = (int)LayoutKind.Sequential; - if (myVal != 0) - { - TestLibrary.TestFramework.LogError("001", "the Sequential in the LayoutKind ExpectResult is 0 but the ActualResult is " + myVal); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - #endregion -}
\ No newline at end of file diff --git a/tests/src/CoreMangLib/cti/system/runtime/interopservices/unmanagedtype/UnmanagedType.csproj b/tests/src/CoreMangLib/cti/system/runtime/interopservices/unmanagedtype/UnmanagedType.csproj deleted file mode 100644 index a496316a80..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtime/interopservices/unmanagedtype/UnmanagedType.csproj +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="unmanagedtype.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="../../../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project>
\ No newline at end of file diff --git a/tests/src/CoreMangLib/cti/system/runtime/interopservices/unmanagedtype/unmanagedtype.cs b/tests/src/CoreMangLib/cti/system/runtime/interopservices/unmanagedtype/unmanagedtype.cs Binary files differdeleted file mode 100644 index 19074ed7ca..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtime/interopservices/unmanagedtype/unmanagedtype.cs +++ /dev/null diff --git a/tests/src/CoreMangLib/cti/system/runtimefieldhandle/RuntimeFieldHandleEquals.csproj b/tests/src/CoreMangLib/cti/system/runtimefieldhandle/RuntimeFieldHandleEquals.csproj deleted file mode 100644 index 0ce64223d7..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtimefieldhandle/RuntimeFieldHandleEquals.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="runtimefieldhandleequals.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/runtimefieldhandle/RuntimeFieldHandleGetHashCode.csproj b/tests/src/CoreMangLib/cti/system/runtimefieldhandle/RuntimeFieldHandleGetHashCode.csproj deleted file mode 100644 index 555c615f56..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtimefieldhandle/RuntimeFieldHandleGetHashCode.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="runtimefieldhandlegethashcode.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/runtimefieldhandle/runtimefieldhandleequals.cs b/tests/src/CoreMangLib/cti/system/runtimefieldhandle/runtimefieldhandleequals.cs deleted file mode 100644 index fdd58e3753..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtimefieldhandle/runtimefieldhandleequals.cs +++ /dev/null @@ -1,172 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// Equals(System.Object) [v-jianq] -/// </summary> - -public class RuntimeFieldHandleEquals -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - - // - // TODO: Add your negative test cases here - // - // TestLibrary.TestFramework.LogInformation("[Negative]"); - // retVal = NegTest1() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify a struct RuntimeFieldHandle equals to itself."); - - try - { - RuntimeFieldHandle rfh = new RuntimeFieldHandle(); - - bool expected = true; - bool actual = rfh.Equals(rfh); - - if (actual != expected) - { - TestLibrary.TestFramework.LogError("001.1", "Method Equals Err."); - TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLE] actual = " + actual + ", expected = " + expected); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify two struct RuntimeFieldHandle equals."); - - try - { - RuntimeFieldHandle rfh1 = new RuntimeFieldHandle(); - RuntimeFieldHandle rfh2 = new RuntimeFieldHandle(); - - bool expected = true; - bool actual = rfh1.Equals(rfh2); - - if (actual != expected) - { - TestLibrary.TestFramework.LogError("002.1", "Method Equals Err."); - TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLE] actual = " + actual + ", expected = " + expected); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest3: Verify a struct RuntimeFieldHandle is not equals to a object."); - - try - { - RuntimeFieldHandle rfh = new RuntimeFieldHandle(); - object obj = new object(); - - bool expected = false; - bool actual = rfh.Equals(obj); - - if (actual != expected) - { - TestLibrary.TestFramework.LogError("003.1", "Method Equals Err."); - TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLE] actual = " + actual + ", expected = " + expected); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - //public bool NegTest1() - //{ - // bool retVal = true; - - // TestLibrary.TestFramework.BeginScenario("NegTest1: "); - - // try - // { - // // - // // Add your test logic here - // // - // } - // catch (Exception e) - // { - // TestLibrary.TestFramework.LogError("101", "Unexpected exception: " + e); - // TestLibrary.TestFramework.LogInformation(e.StackTrace); - // retVal = false; - // } - - // return retVal; - //} - #endregion - #endregion - - public static int Main() - { - RuntimeFieldHandleEquals test = new RuntimeFieldHandleEquals(); - - TestLibrary.TestFramework.BeginTestCase("RuntimeFieldHandleEquals"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/runtimefieldhandle/runtimefieldhandlegethashcode.cs b/tests/src/CoreMangLib/cti/system/runtimefieldhandle/runtimefieldhandlegethashcode.cs deleted file mode 100644 index 7cf7065bf2..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtimefieldhandle/runtimefieldhandlegethashcode.cs +++ /dev/null @@ -1,132 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -/// <summary> -/// GetHashCode [v-jianq] -/// </summary> - -public class RuntimeFieldHandleGetHashCode -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - - // - // TODO: Add your negative test cases here - // - // TestLibrary.TestFramework.LogInformation("[Negative]"); - // retVal = NegTest1() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest1: Verify two hashcode of RuntimeFieldHandle equals"); - - try - { - RuntimeFieldHandle rfh1 = new RuntimeFieldHandle(); - RuntimeFieldHandle rfh2 = new RuntimeFieldHandle(); - - if (rfh1.GetHashCode() != rfh2.GetHashCode()) - { - TestLibrary.TestFramework.LogError("001.1", "Method GetHashCode Err !"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - // Add your scenario description here - TestLibrary.TestFramework.BeginScenario("PosTest2: Verify a hashcode of RuntimeFieldHandle is not equal to object"); - - try - { - RuntimeFieldHandle rfh = new RuntimeFieldHandle(); - object obj = new object(); - - if (rfh.GetHashCode() == obj.GetHashCode()) - { - TestLibrary.TestFramework.LogError("001.1", "Method GetHashCode Err !"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - #endregion - - #region Nagetive Test Cases - //public bool NegTest1() - //{ - // bool retVal = true; - - // TestLibrary.TestFramework.BeginScenario("NegTest1: "); - - // try - // { - // // - // // Add your test logic here - // // - // } - // catch (Exception e) - // { - // TestLibrary.TestFramework.LogError("101", "Unexpected exception: " + e); - // TestLibrary.TestFramework.LogInformation(e.StackTrace); - // retVal = false; - // } - - // return retVal; - //} - #endregion - #endregion - - public static int Main() - { - RuntimeFieldHandleGetHashCode test = new RuntimeFieldHandleGetHashCode(); - - TestLibrary.TestFramework.BeginTestCase("RuntimeFieldHandleGetHashCode"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/runtimemethodhandle/RuntimeMethodHandleEquals.csproj b/tests/src/CoreMangLib/cti/system/runtimemethodhandle/RuntimeMethodHandleEquals.csproj deleted file mode 100644 index 6b74108a92..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtimemethodhandle/RuntimeMethodHandleEquals.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="runtimemethodhandleequals.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/runtimemethodhandle/RuntimeMethodHanldeGetHashCode.csproj b/tests/src/CoreMangLib/cti/system/runtimemethodhandle/RuntimeMethodHanldeGetHashCode.csproj deleted file mode 100644 index bfa9971fcb..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtimemethodhandle/RuntimeMethodHanldeGetHashCode.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="runtimemethodhanldegethashcode.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/runtimemethodhandle/runtimemethodhandleequals.cs b/tests/src/CoreMangLib/cti/system/runtimemethodhandle/runtimemethodhandleequals.cs deleted file mode 100644 index ac3f6e3c24..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtimemethodhandle/runtimemethodhandleequals.cs +++ /dev/null @@ -1,115 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Text; - -public class RuntimeMethodHandleEquals -{ - public object myRuntimeMethodHandle = new RuntimeMethodHandle(); - public object myObj = new object(); - - public static int Main(string[] args) - { - RuntimeMethodHandleEquals handleEquals = - new RuntimeMethodHandleEquals(); - TestLibrary.TestFramework.BeginTestCase("Tesing System.RuntimeMethodHandle.Equals..."); - - if (handleEquals.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify clone instance is equal to it original..."); - - try - { - RuntimeMethodHandle myHandle = new RuntimeMethodHandle(); - object cloneHandle = myHandle; - if (!myHandle.Equals(cloneHandle)) - { - TestLibrary.TestFramework.LogError("001","The two instances should be equal!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify different instances are equal when they have the same values..."); - - try - { - //default value is zero - RuntimeMethodHandle myHandle = new RuntimeMethodHandle(); - if (!myHandle.Equals(myRuntimeMethodHandle)) - { - TestLibrary.TestFramework.LogError("003","The two instance should be different!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify RuntimeMethodHandle instance is not equal to common object instance..."); - - try - { - RuntimeMethodHandle myHandle = new RuntimeMethodHandle(); - if (myHandle.Equals(myObj)) - { - TestLibrary.TestFramework.LogError("005","The two instances should not be equal!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/runtimemethodhandle/runtimemethodhanldegethashcode.cs b/tests/src/CoreMangLib/cti/system/runtimemethodhandle/runtimemethodhanldegethashcode.cs deleted file mode 100644 index f13895aee0..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtimemethodhandle/runtimemethodhanldegethashcode.cs +++ /dev/null @@ -1,89 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Collections; - -public class RuntimeMethodHanldeGetHashCode -{ - public static int Main(string[] args) - { - RuntimeMethodHanldeGetHashCode getHashCode = - new RuntimeMethodHanldeGetHashCode(); - TestLibrary.TestFramework.BeginTestCase("Testing System.RuntimeMethodHandle.GetHashCode method..."); - - if (getHashCode.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify different instances of RuntimeMethodGetHashCode..."); - - try - { - RuntimeMethodHandle myHandle1 = new RuntimeMethodHandle(); - RuntimeMethodHandle myHandle2 = new RuntimeMethodHandle(); - - if (myHandle1.GetHashCode() != myHandle2.GetHashCode()) - { - TestLibrary.TestFramework.LogError("001","The two instance should have the same HashCode!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002","Unexpected exception occurs: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("Verify cloned instance has the same hashcode of it original..."); - - try - { - RuntimeMethodHandle myHandle1 = new RuntimeMethodHandle(); - RuntimeMethodHandle myHandle2 = myHandle1; - - if (myHandle1.GetHashCode() != myHandle2.GetHashCode()) - { - TestLibrary.TestFramework.LogError("003","The two instances should have the same hashcode!"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004","Unexpected exception occurs: " + e); - return retVal; - } - - return retVal; - } -} diff --git a/tests/src/CoreMangLib/cti/system/runtimetypehandle/RuntimeTypeHandleEquals.csproj b/tests/src/CoreMangLib/cti/system/runtimetypehandle/RuntimeTypeHandleEquals.csproj deleted file mode 100644 index 68d7c3acec..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtimetypehandle/RuntimeTypeHandleEquals.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="runtimetypehandleequals.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/runtimetypehandle/RuntimeTypeHandleGetHashCode.csproj b/tests/src/CoreMangLib/cti/system/runtimetypehandle/RuntimeTypeHandleGetHashCode.csproj deleted file mode 100644 index 280bcb9bf4..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtimetypehandle/RuntimeTypeHandleGetHashCode.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="runtimetypehandlegethashcode.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/runtimetypehandle/runtimetypehandleequals.cs b/tests/src/CoreMangLib/cti/system/runtimetypehandle/runtimetypehandleequals.cs deleted file mode 100644 index 2f62b2ad8b..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtimetypehandle/runtimetypehandleequals.cs +++ /dev/null @@ -1,318 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -public class TestEmptyClass -{ -} - -public abstract class TestAbstractClass -{ - public TestAbstractClass() - { - x = 1; - x--; - } - - public abstract void TestAbstractMethod(); - - private int x; -} - -public class TestClass : TestAbstractClass -{ - public override void TestAbstractMethod() - { - } - - public void TestMethod() - { - } -} - -public struct TestStruct1 -{ - public TestStruct1(int value) - { - m_value = value; - } - - int m_value; -} - -public struct TestStruct2 -{ - public TestStruct2(int value) - { - m_value = value; - } - - int m_value; -} - -public enum TestEnum1 -{ - DEFAULT -} - -public enum TestEnum2 -{ - DEFAULT -} - -/// <summary> -/// Equals(System.Object) -/// </summary> -public class RuntimeTypeHandleEquals -{ - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - retVal = PosTest5() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: Equals should return true when comparing with itself"); - - try - { - RuntimeTypeHandle handle = typeof(TestEmptyClass).TypeHandle; - - if (!handle.Equals(handle)) - { - TestLibrary.TestFramework.LogError("001.1", "Equals returns false when comparing with itself"); - retVal = false; - } - handle = typeof(TestStruct1).TypeHandle; - if (!handle.Equals(handle)) - { - TestLibrary.TestFramework.LogError("001.2", "Equals returns false when comparing with itself"); - retVal = false; - } - - handle = typeof(TestEnum1).TypeHandle; - if (!handle.Equals(handle)) - { - TestLibrary.TestFramework.LogError("001.3", "Equals returns false when comparing with itself"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("001.4", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: Equals should return true when comparing with instance of same classes"); - - try - { - TestEmptyClass ec1 = new TestEmptyClass(); - TestEmptyClass ec2 = new TestEmptyClass(); - RuntimeTypeHandle handle1 = ec1.GetType().TypeHandle; - RuntimeTypeHandle handle2 = ec2.GetType().TypeHandle; - - if (!handle1.Equals(handle2)) - { - TestLibrary.TestFramework.LogError("002.1", "Equals returns false when comparing with instance of same classe"); - retVal = false; - } - - TestStruct1 ts1 = new TestStruct1(); - TestStruct1 ts2 = new TestStruct1(); - handle1 = ts1.GetType().TypeHandle; - handle2 = ts2.GetType().TypeHandle; - if (!handle1.Equals(handle2)) - { - TestLibrary.TestFramework.LogError("002.2", "Equals returns false when comparing with instance of same structs"); - retVal = false; - } - - TestEnum1 te1 = TestEnum1.DEFAULT; - TestEnum1 te2 = TestEnum1.DEFAULT; - handle1 = te1.GetType().TypeHandle; - handle2 = te2.GetType().TypeHandle; - if (!handle1.Equals(handle2)) - { - TestLibrary.TestFramework.LogError("002.3", "Equals returns false when comparing with instance of same enums"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002.4", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: Equals should return false when comparing with instance of different classes"); - - try - { - TestEmptyClass classInstance1 = new TestEmptyClass(); - TestClass classInstance2 = new TestClass(); - RuntimeTypeHandle classInstanceHandle1 = classInstance1.GetType().TypeHandle; - RuntimeTypeHandle classInstanceHandle2 = classInstance2.GetType().TypeHandle; - - if (classInstanceHandle1.Equals(classInstanceHandle2)) - { - TestLibrary.TestFramework.LogError("003.1", "Equals returns true when comparing with instance of different classe"); - retVal = false; - } - - TestStruct1 ts1 = new TestStruct1(); - TestStruct2 ts2 = new TestStruct2(); - RuntimeTypeHandle structHandle1 = ts1.GetType().TypeHandle; - RuntimeTypeHandle structHandle2 = ts2.GetType().TypeHandle; - if (structHandle1.Equals(structHandle2)) - { - TestLibrary.TestFramework.LogError("003.2", "Equals returns false when comparing with instance of different structs"); - retVal = false; - } - - TestEnum1 te1 = TestEnum1.DEFAULT; - TestEnum2 te2 = TestEnum2.DEFAULT; - RuntimeTypeHandle enumHandle1 = te1.GetType().TypeHandle; - RuntimeTypeHandle enumHandle2 = te2.GetType().TypeHandle; - if (enumHandle1.Equals(enumHandle2)) - { - TestLibrary.TestFramework.LogError("003.3", "Equals returns false when comparing with instance of different enums"); - retVal = false; - } - - if (classInstanceHandle1.Equals(structHandle1)) - { - TestLibrary.TestFramework.LogError("003.4", "Equals returns false when comparing a instance of struct with a instance of class"); - retVal = false; - } - - if (classInstanceHandle1.Equals(enumHandle1)) - { - TestLibrary.TestFramework.LogError("003.5", "Equals returns false when comparing a instance of enum with a instance of class"); - retVal = false; - } - - if (structHandle1.Equals(enumHandle1)) - { - TestLibrary.TestFramework.LogError("003.6", "Equals returns false when comparing a instance of struct with a instance of enum"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("003.7", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest4: Equals should return false when comparing with a invalid value"); - - try - { - RuntimeTypeHandle handle = typeof(TestClass).TypeHandle; - if (handle.Equals(null)) - { - TestLibrary.TestFramework.LogError("004.1", "Equals returns true when comparing with a null"); - retVal = false; - } - - if (handle.Equals(new Object())) - { - TestLibrary.TestFramework.LogError("004.2", "Equals returns true when comparing with a instance of object"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004.3", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest5: Equals should return false when comparing with RuntimeTypeHandle of base class"); - - try - { - RuntimeTypeHandle handle1 = typeof(TestClass).TypeHandle; - RuntimeTypeHandle handle2 = typeof(Object).TypeHandle; - if (handle1.Equals(handle2)) - { - TestLibrary.TestFramework.LogError("005.1", "Equals returns true when comparing with RuntimeTypeHandle of base class"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("005.2", "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - RuntimeTypeHandleEquals test = new RuntimeTypeHandleEquals(); - - TestLibrary.TestFramework.BeginTestCase("RuntimeTypeHandleEquals"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } -} diff --git a/tests/src/CoreMangLib/cti/system/runtimetypehandle/runtimetypehandlegethashcode.cs b/tests/src/CoreMangLib/cti/system/runtimetypehandle/runtimetypehandlegethashcode.cs deleted file mode 100644 index 91dc7b2c6d..0000000000 --- a/tests/src/CoreMangLib/cti/system/runtimetypehandle/runtimetypehandlegethashcode.cs +++ /dev/null @@ -1,228 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -public class TestEmptyClass -{ -} - -public abstract class TestAbstractClass -{ - public TestAbstractClass() - { - x = 1; - x--; - } - - public abstract void TestAbstractMethod(); - - private int x; -} - -public class TestClass : TestAbstractClass -{ - public override void TestAbstractMethod() - { - } - - public void TestMethod() - { - } -} - -public struct TestStruct1 -{ - public TestStruct1(int value) - { - m_value = value; - } - - int m_value; -} - -public struct TestStruct2 -{ - public TestStruct2(int value) - { - m_value = value; - } - - int m_value; -} - -public enum TestEnum1 -{ - DEFAULT -} - -public enum TestEnum2 -{ - DEFAULT -} - -/// <summary> -/// GetHashCode -/// </summary> -public class RuntimeTypeHandleGetHashCode -{ - #region Private Fields - private int m_ErrorNo = 0; - #endregion - - #region Public Methods - public bool RunTests() - { - bool retVal = true; - - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - - return retVal; - } - - #region Positive Test Cases - public bool PosTest1() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest1: GetHashCode should return valid hash code"); - - try - { - retVal = retVal && VerifyHashCode(new TestEmptyClass()); - retVal = retVal && VerifyHashCode(new TestClass()); - retVal = retVal && VerifyHashCode(new TestStruct1()); - retVal = retVal && VerifyHashCode(TestEnum1.DEFAULT); - } - catch (Exception e) - { - m_ErrorNo++; - TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest2: GetHashCode should return same hash code for instances from same class"); - - try - { - retVal = retVal && VerifyHashCode(new TestEmptyClass(), new TestEmptyClass(), true); - retVal = retVal && VerifyHashCode(new TestClass(), new TestClass(), true); - retVal = retVal && VerifyHashCode(new TestStruct1(), new TestStruct1(), true); - retVal = retVal && VerifyHashCode(TestEnum1.DEFAULT, TestEnum1.DEFAULT, true); - } - catch (Exception e) - { - m_ErrorNo++; - TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - TestLibrary.TestFramework.BeginScenario("PosTest3: GetHashCode should return different hash code for instances from different classes"); - - try - { - retVal = retVal && VerifyHashCode(new TestEmptyClass(), new TestClass(), false); - retVal = retVal && VerifyHashCode(new TestClass(), new TestStruct1(), false); - retVal = retVal && VerifyHashCode(new TestStruct1(), new TestStruct2(), false); - retVal = retVal && VerifyHashCode(TestEnum1.DEFAULT, TestEnum2.DEFAULT, false); - retVal = retVal && VerifyHashCode(TestEnum1.DEFAULT, new TestStruct1(), false); - retVal = retVal && VerifyHashCode(TestEnum1.DEFAULT, new TestClass(), false); - } - catch (Exception e) - { - m_ErrorNo++; - TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Unexpected exception: " + e); - TestLibrary.TestFramework.LogInformation(e.StackTrace); - retVal = false; - } - - return retVal; - } - #endregion - #endregion - - public static int Main() - { - RuntimeTypeHandleGetHashCode test = new RuntimeTypeHandleGetHashCode(); - - TestLibrary.TestFramework.BeginTestCase("RuntimeTypeHandleGetHashCode"); - - if (test.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - #region Private Method - private bool VerifyHashCode(Object o) - { - bool retVal = true; - RuntimeTypeHandle handle = o.GetType().TypeHandle; - int value1 = handle.GetHashCode(); - int value2 = handle.GetHashCode(); - - m_ErrorNo++; - if (value1 == 0) - { - TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "RuntimeTypeHandle.GetHashCode returns 0"); - retVal = false; - } - - m_ErrorNo++; - if (value1 != value2) - { - TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Call RuntimeTypeHandle.GetHashCode twice returns wrong hash code"); - retVal = false; - } - - return retVal; - } - - private bool VerifyHashCode(Object o1, Object o2, bool desiredValue) - { - bool retVal = true; - RuntimeTypeHandle handle1 = o1.GetType().TypeHandle; - RuntimeTypeHandle handle2 = o2.GetType().TypeHandle; - int value1 = handle1.GetHashCode(); - int value2 = handle2.GetHashCode(); - - bool actualValue = value1 == value2; - - m_ErrorNo++; - if (actualValue != desiredValue) - { - TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Compare the hash code for handle1 with handle2 returns ACTUAL: " + actualValue.ToString() + ", DESIRED: " + desiredValue.ToString()); - retVal = false; - } - - return retVal; - } - #endregion -} diff --git a/tests/src/CoreMangLib/cti/system/typeloadexception/TypeLoadExceptionCtor1.csproj b/tests/src/CoreMangLib/cti/system/typeloadexception/TypeLoadExceptionCtor1.csproj deleted file mode 100644 index a6d4a9151f..0000000000 --- a/tests/src/CoreMangLib/cti/system/typeloadexception/TypeLoadExceptionCtor1.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="typeloadexceptionctor1.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/typeloadexception/TypeLoadExceptionCtor2.csproj b/tests/src/CoreMangLib/cti/system/typeloadexception/TypeLoadExceptionCtor2.csproj deleted file mode 100644 index c19b9b7db4..0000000000 --- a/tests/src/CoreMangLib/cti/system/typeloadexception/TypeLoadExceptionCtor2.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="typeloadexceptionctor2.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/typeloadexception/TypeLoadExceptionCtor3.csproj b/tests/src/CoreMangLib/cti/system/typeloadexception/TypeLoadExceptionCtor3.csproj deleted file mode 100644 index d572e943fc..0000000000 --- a/tests/src/CoreMangLib/cti/system/typeloadexception/TypeLoadExceptionCtor3.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="typeloadexceptionctor3.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/typeloadexception/TypeLoadExceptionMessage.csproj b/tests/src/CoreMangLib/cti/system/typeloadexception/TypeLoadExceptionMessage.csproj deleted file mode 100644 index 02e16ac513..0000000000 --- a/tests/src/CoreMangLib/cti/system/typeloadexception/TypeLoadExceptionMessage.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="typeloadexceptionmessage.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="$(SourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project> - diff --git a/tests/src/CoreMangLib/cti/system/typeloadexception/typeloadexceptionctor1.cs b/tests/src/CoreMangLib/cti/system/typeloadexception/typeloadexceptionctor1.cs deleted file mode 100644 index 5a91918448..0000000000 --- a/tests/src/CoreMangLib/cti/system/typeloadexception/typeloadexceptionctor1.cs +++ /dev/null @@ -1,70 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -///<summary> -///System.TypeLoadException.Ctor() [v-zuolan] -///</summary> - -public class TypeLoadExceptionCtor -{ - - public static int Main() - { - TypeLoadExceptionCtor testObj = new TypeLoadExceptionCtor(); - TestLibrary.TestFramework.BeginTestCase("for constructor of System.TypeLoadException"); - if (testObj.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - - } - - public bool RunTests() - { - bool retVal = true; - TestLibrary.TestFramework.LogInformation("Positive"); - retVal = PosTest1() && retVal; - return retVal; - } - - - #region Test Logic - - public bool PosTest1() - { - bool retVal = true; - - String errMessage = TestLibrary.Generator.GetString(-55, false, 1, 255); - - TestLibrary.TestFramework.BeginScenario("PosTest1:Create a instance of TypeLoadException"); - try - { - TypeLoadException tLE = new TypeLoadException(); - - if (tLE == null) - { - TestLibrary.TestFramework.LogError("001", "ExpectedValue(not null) !=ActualValue(null)"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - - #endregion -} diff --git a/tests/src/CoreMangLib/cti/system/typeloadexception/typeloadexceptionctor2.cs b/tests/src/CoreMangLib/cti/system/typeloadexception/typeloadexceptionctor2.cs deleted file mode 100644 index 0f735c6352..0000000000 --- a/tests/src/CoreMangLib/cti/system/typeloadexception/typeloadexceptionctor2.cs +++ /dev/null @@ -1,189 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -///<summary> -///System.TypeLoadException.Ctor(String) [v-zuolan] -///</summary> - -public class TypeLoadExceptionCtor -{ - - public static int Main() - { - TypeLoadExceptionCtor testObj = new TypeLoadExceptionCtor(); - TestLibrary.TestFramework.BeginTestCase("for constructor of System.TypeLoadException"); - if (testObj.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - TestLibrary.TestFramework.LogInformation("Positive"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - return retVal; - } - - - #region Positive Test Logic - public bool PosTest1() - { - bool retVal = true; - - String errMessage = TestLibrary.Generator.GetString(-55, false, 1, 255); - - TestLibrary.TestFramework.BeginScenario("PosTest1:Create a instance of TypeLoadException"); - try - { - TypeLoadException tLE = new TypeLoadException(errMessage); - - if (tLE == null) - { - TestLibrary.TestFramework.LogError("001", "ExpectedValue(not null) !=ActualValue(null)"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - String errMessage = TestLibrary.Generator.GetString(-55, false, 1, 255); - - TestLibrary.TestFramework.BeginScenario("PosTest2:Determine the error message is changed or not when the exception is thown out"); - try - { - - TypeLoadException tLE = new TypeLoadException(errMessage); - - if (tLE == null) - { - TestLibrary.TestFramework.LogError("003", "ExpectedValue(not null) !=ActualValue(null)"); - retVal = false; - } - else - { - retVal = false; - throw tLE; - } - } - catch (TypeLoadException eE) - { - retVal = true; - if (!eE.Message.Equals(errMessage)) - { - TestLibrary.TestFramework.LogError("004", "ExpectedValue(Message Not Be Changed) !=ActualValue(Message Be Changed)"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("005", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - String errMessage = String.Empty; - - TestLibrary.TestFramework.BeginScenario("PosTest3:Determine the method with Empty String"); - try - { - - TypeLoadException tLE = new TypeLoadException(errMessage); - - if (tLE == null) - { - TestLibrary.TestFramework.LogError("006", "ExpectedValue(not null) !=ActualValue(null)"); - retVal = false; - } - else - { - retVal = false; - throw tLE; - } - } - catch (TypeLoadException eE) - { - retVal = true; - if (!eE.Message.Equals(errMessage)) - { - TestLibrary.TestFramework.LogError("007", "ExpectedValue(Message Not Be Changed) !=ActualValue(Message Be Changed)"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - String errMessage = TestLibrary.Generator.GetString(-55, false, 256, 512); - - TestLibrary.TestFramework.BeginScenario("PosTest4:Determine the method with Long String"); - try - { - - TypeLoadException tLE = new TypeLoadException(errMessage); - - if (tLE == null) - { - TestLibrary.TestFramework.LogError("009", "ExpectedValue(not null) !=ActualValue(null)"); - retVal = false; - } - else - { - retVal = false; - throw tLE; - } - } - catch (TypeLoadException eE) - { - retVal = true; - if (!eE.Message.Equals(errMessage)) - { - TestLibrary.TestFramework.LogError("010", "ExpectedValue(Message Not Be Changed) !=ActualValue(Message Be Changed)"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("011", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - #endregion -} diff --git a/tests/src/CoreMangLib/cti/system/typeloadexception/typeloadexceptionctor3.cs b/tests/src/CoreMangLib/cti/system/typeloadexception/typeloadexceptionctor3.cs deleted file mode 100644 index 38f532589f..0000000000 --- a/tests/src/CoreMangLib/cti/system/typeloadexception/typeloadexceptionctor3.cs +++ /dev/null @@ -1,189 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -///<summary> -///System.TypeLoadException.Ctor(String,Exception) [v-zuolan] -///</summary> - -public class TypeLoadExceptionCtor -{ - - public static int Main() - { - TypeLoadExceptionCtor testObj = new TypeLoadExceptionCtor(); - TestLibrary.TestFramework.BeginTestCase("for constructor of System.TypeLoadException"); - if (testObj.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - TestLibrary.TestFramework.LogInformation("Positive"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - return retVal; - } - - - #region Positive Test Logic - public bool PosTest1() - { - bool retVal = true; - - String errMessage = TestLibrary.Generator.GetString(-55, false, 1, 255); - - TestLibrary.TestFramework.BeginScenario("PosTest1:Create a instance of TypeLoadException"); - try - { - TypeLoadException tLE = new TypeLoadException(errMessage, new Exception()); - - if (tLE == null) - { - TestLibrary.TestFramework.LogError("001", "ExpectedValue(not null) !=ActualValue(null)"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - String errMessage = TestLibrary.Generator.GetString(-55, false, 1, 255); - - TestLibrary.TestFramework.BeginScenario("PosTest2:Determine the error message is changed or not when the exception is thown out"); - try - { - - TypeLoadException tLE = new TypeLoadException(errMessage, new Exception()); - - if (tLE == null) - { - TestLibrary.TestFramework.LogError("003", "ExpectedValue(not null) !=ActualValue(null)"); - retVal = false; - } - else - { - retVal = false; - throw tLE; - } - } - catch (TypeLoadException eE) - { - retVal = true; - if (!eE.Message.Equals(errMessage)) - { - TestLibrary.TestFramework.LogError("004", "ExpectedValue(Message Not Be Changed) !=ActualValue(Message Be Changed)"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("005", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - String errMessage = String.Empty; - - TestLibrary.TestFramework.BeginScenario("PosTest3:Determine the method with Empty String"); - try - { - - TypeLoadException tLE = new TypeLoadException(errMessage, new Exception()); - - if (tLE == null) - { - TestLibrary.TestFramework.LogError("006", "ExpectedValue(not null) !=ActualValue(null)"); - retVal = false; - } - else - { - retVal = false; - throw tLE; - } - } - catch (TypeLoadException eE) - { - retVal = true; - if (!eE.Message.Equals(errMessage)) - { - TestLibrary.TestFramework.LogError("007", "ExpectedValue(Message Not Be Changed) !=ActualValue(Message Be Changed)"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - String errMessage = TestLibrary.Generator.GetString(-55, false, 256, 512); - - TestLibrary.TestFramework.BeginScenario("PosTest4:Determine the method with Long String"); - try - { - - TypeLoadException tLE = new TypeLoadException(errMessage, new Exception()); - - if (tLE == null) - { - TestLibrary.TestFramework.LogError("009", "ExpectedValue(not null) !=ActualValue(null)"); - retVal = false; - } - else - { - retVal = false; - throw tLE; - } - } - catch (TypeLoadException eE) - { - retVal = true; - if (!eE.Message.Equals(errMessage)) - { - TestLibrary.TestFramework.LogError("010", "ExpectedValue(Message Not Be Changed) !=ActualValue(Message Be Changed)"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("011", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - #endregion -} diff --git a/tests/src/CoreMangLib/cti/system/typeloadexception/typeloadexceptionmessage.cs b/tests/src/CoreMangLib/cti/system/typeloadexception/typeloadexceptionmessage.cs deleted file mode 100644 index adff82ee6c..0000000000 --- a/tests/src/CoreMangLib/cti/system/typeloadexception/typeloadexceptionmessage.cs +++ /dev/null @@ -1,166 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; - -///<summary> -///System.TypeLoadException.Message [v-zuolan] -///</summary> - -public class TypeLoadExceptionCtor -{ - - public static int Main() - { - TypeLoadExceptionCtor testObj = new TypeLoadExceptionCtor(); - TestLibrary.TestFramework.BeginTestCase("for property of System.TypeLoadException"); - if (testObj.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - - public bool RunTests() - { - bool retVal = true; - TestLibrary.TestFramework.LogInformation("Positive"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - return retVal; - } - - - #region Positive Test Logic - public bool PosTest1() - { - bool retVal = true; - - String errMessage = TestLibrary.Generator.GetString(-55, false, 1, 255); - TypeLoadException tLE = new TypeLoadException(errMessage); - - String expectedValue = errMessage; - String actualValue; - - TestLibrary.TestFramework.BeginScenario("PosTest1:Get Message when the message is a random string"); - try - { - actualValue = tLE.Message; - - if (!actualValue.Equals(expectedValue)) - { - TestLibrary.TestFramework.LogError("001", "ExpectedValue(" + expectedValue + ") !=ActualValue(" + actualValue + ")"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - String errMessage = null; - TypeLoadException tLE = new TypeLoadException(errMessage); - - String expectedValue = "Failure has occurred while loading a type."; - //when message is null,it will return the default message. - - String actualValue; - - TestLibrary.TestFramework.BeginScenario("PosTest2:Get Message when the message is a null string"); - try - { - actualValue = tLE.Message; - - if ((actualValue != expectedValue) & - !(actualValue.Contains("[Arg_TypeLoadException]"))) - { - TestLibrary.TestFramework.LogError("003", "ExpectedValue(" + expectedValue + ") !=ActualValue(" + actualValue + ")"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - - public bool PosTest3() - { - bool retVal = true; - - String errMessage = ""; - TypeLoadException tLE = new TypeLoadException(errMessage); - - String expectedValue = errMessage; - String actualValue; - - TestLibrary.TestFramework.BeginScenario("PosTest3:Get Message when the message is a empty string"); - try - { - actualValue = tLE.Message; - - if (!actualValue.Equals(expectedValue)) - { - TestLibrary.TestFramework.LogError("005", "ExpectedValue(" + expectedValue + ") !=ActualValue(" + actualValue + ")"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - - public bool PosTest4() - { - bool retVal = true; - - String errMessage = TestLibrary.Generator.GetString(-55, false, 256, 512); - TypeLoadException tLE = new TypeLoadException(errMessage); - - String expectedValue = errMessage; - String actualValue; - - TestLibrary.TestFramework.BeginScenario("PosTest4:Get Message when the message is a long random string"); - try - { - actualValue = tLE.Message; - - if (!actualValue.Equals(expectedValue)) - { - TestLibrary.TestFramework.LogError("007", "ExpectedValue(" + expectedValue + ") !=ActualValue(" + actualValue + ")"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - #endregion -} diff --git a/tests/src/CoreMangLib/cti/system/reflection/emit/DynMethodJumpStubTests/DynMethodJumpStubTests.cs b/tests/src/CoreMangLib/system/reflection/emit/DynMethodJumpStubTests/DynMethodJumpStubTests.cs index d50d3cedbf..d50d3cedbf 100644 --- a/tests/src/CoreMangLib/cti/system/reflection/emit/DynMethodJumpStubTests/DynMethodJumpStubTests.cs +++ b/tests/src/CoreMangLib/system/reflection/emit/DynMethodJumpStubTests/DynMethodJumpStubTests.cs diff --git a/tests/src/CoreMangLib/cti/system/reflection/emit/DynMethodJumpStubTests/DynMethodJumpStubTests.csproj b/tests/src/CoreMangLib/system/reflection/emit/DynMethodJumpStubTests/DynMethodJumpStubTests.csproj index 2fe258684b..2fe258684b 100644 --- a/tests/src/CoreMangLib/cti/system/reflection/emit/DynMethodJumpStubTests/DynMethodJumpStubTests.csproj +++ b/tests/src/CoreMangLib/system/reflection/emit/DynMethodJumpStubTests/DynMethodJumpStubTests.csproj |