Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ByteEquals2.cmd_20]
-RelativePath=CoreMangLib\cti\system\byte\ByteEquals2\ByteEquals2.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteEquals2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[LdfldGeneric_ro.cmd_21]
RelativePath=JIT\SIMD\LdfldGeneric_ro\LdfldGeneric_ro.cmd
WorkingDir=JIT\SIMD\LdfldGeneric_ro
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharIsControl2.cmd_76]
-RelativePath=CoreMangLib\cti\system\char\CharIsControl2\CharIsControl2.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsControl2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[struct02.cmd_77]
RelativePath=JIT\Generics\Arrays\ConstructedTypes\Jagged\struct02\struct02.cmd
WorkingDir=JIT\Generics\Arrays\ConstructedTypes\Jagged\struct02
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt32IConvertibleToInt32.cmd_87]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32IConvertibleToInt32\UInt32IConvertibleToInt32.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32IConvertibleToInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[DoWhileBndChk.cmd_88]
RelativePath=JIT\RyuJIT\DoWhileBndChk\DoWhileBndChk.cmd
WorkingDir=JIT\RyuJIT\DoWhileBndChk
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[SingleToUInt64.cmd_100]
-RelativePath=CoreMangLib\cti\system\single\SingleToUInt64\SingleToUInt64.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleToUInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b19171.cmd_101]
RelativePath=JIT\Regression\CLR-x86-JIT\V1.2-M02\b19171\b19171\b19171.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1.2-M02\b19171\b19171
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DoubleNaN.cmd_145]
-RelativePath=CoreMangLib\cti\system\double\DoubleNaN\DoubleNaN.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleNaN
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_relfibo_cs.cmd_146]
RelativePath=JIT\Methodical\Boxing\functional\_relfibo_cs\_relfibo_cs.cmd
WorkingDir=JIT\Methodical\Boxing\functional\_relfibo_cs
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[AmbiguousMatchExceptionCtor3.cmd_154]
-RelativePath=CoreMangLib\cti\system\reflection\ambiguousmatchexception\AmbiguousMatchExceptionCtor3\AmbiguousMatchExceptionCtor3.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\ambiguousmatchexception\AmbiguousMatchExceptionCtor3
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b07369.cmd_155]
RelativePath=JIT\Regression\CLR-x86-JIT\V1.2-M01\b07369\b07369\b07369.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1.2-M01\b07369\b07369
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharEnumeratorIEnumgetCurrent.cmd_202]
-RelativePath=CoreMangLib\cti\system\charenumerator\CharEnumeratorIEnumgetCurrent\CharEnumeratorIEnumgetCurrent.cmd
-WorkingDir=CoreMangLib\cti\system\charenumerator\CharEnumeratorIEnumgetCurrent
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[beq_i4.cmd_204]
RelativePath=JIT\IL_Conformance\Old\Conformance_Base\beq_i4\beq_i4.cmd
WorkingDir=JIT\IL_Conformance\Old\Conformance_Base\beq_i4
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[SingleIsPositiveInfinity.cmd_213]
-RelativePath=CoreMangLib\cti\system\single\SingleIsPositiveInfinity\SingleIsPositiveInfinity.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleIsPositiveInfinity
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[classarr_cs_d.cmd_214]
RelativePath=JIT\Methodical\MDArray\GaussJordan\classarr_cs_d\classarr_cs_d.cmd
WorkingDir=JIT\Methodical\MDArray\GaussJordan\classarr_cs_d
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalDivide.cmd_217]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalDivide\DecimalDivide.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalDivide
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated554.cmd_218]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest554\Generated554\Generated554.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest554\Generated554
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringEquals3.cmd_223]
-RelativePath=CoreMangLib\cti\system\string\StringEquals3\StringEquals3.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringEquals3
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[structfpseh5_1.cmd_224]
RelativePath=JIT\jit64\gc\misc\structfpseh5_1\structfpseh5_1.cmd
WorkingDir=JIT\jit64\gc\misc\structfpseh5_1
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DoubleMaxValue.cmd_234]
-RelativePath=CoreMangLib\cti\system\double\DoubleMaxValue\DoubleMaxValue.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleMaxValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[pow2_cs_ro.cmd_236]
RelativePath=JIT\Directed\intrinsic\pow\pow2_cs_ro\pow2_cs_ro.cmd
WorkingDir=JIT\Directed\intrinsic\pow\pow2_cs_ro
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DoubleEquals1.cmd_241]
-RelativePath=CoreMangLib\cti\system\double\DoubleEquals1\DoubleEquals1.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleEquals1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1394.cmd_243]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1394\Generated1394\Generated1394.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1394\Generated1394
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharIsUpper1.cmd_254]
-RelativePath=CoreMangLib\cti\system\char\CharIsUpper1\CharIsUpper1.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsUpper1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Test12224.cmd_255]
RelativePath=Regressions\coreclr\GitHub_12224\Test12224\Test12224.cmd
WorkingDir=Regressions\coreclr\GitHub_12224\Test12224
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharIConvertibleToUInt16.cmd_298]
-RelativePath=CoreMangLib\cti\system\char\CharIConvertibleToUInt16\CharIConvertibleToUInt16.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIConvertibleToUInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[branchoutoftryfinally_r.cmd_299]
RelativePath=JIT\Methodical\eh\leaves\branchoutoftryfinally_r\branchoutoftryfinally_r.cmd
WorkingDir=JIT\Methodical\eh\leaves\branchoutoftryfinally_r
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int32IConvertibleToDouble.cmd_305]
-RelativePath=CoreMangLib\cti\system\int\Int32IConvertibleToDouble\Int32IConvertibleToDouble.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32IConvertibleToDouble
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated146.cmd_306]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest146\Generated146\Generated146.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest146\Generated146
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringReplace3.cmd_312]
-RelativePath=CoreMangLib\cti\system\string\StringReplace3\StringReplace3.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringReplace3
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[GCSimulator_273.cmd_313]
RelativePath=GC\Scenarios\GCSimulator\GCSimulator_273\GCSimulator_273.cmd
WorkingDir=GC\Scenarios\GCSimulator\GCSimulator_273
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalOne.cmd_331]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalOne\DecimalOne.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalOne
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[castclass045.cmd_332]
RelativePath=JIT\jit64\valuetypes\nullable\castclass\castclass\castclass045\castclass045.cmd
WorkingDir=JIT\jit64\valuetypes\nullable\castclass\castclass\castclass045
Categories=EXPECTED_PASS
HostStyle=0
-[AmbiguousMatchExceptionCtor1.cmd_351]
-RelativePath=CoreMangLib\cti\system\reflection\ambiguousmatchexception\AmbiguousMatchExceptionCtor1\AmbiguousMatchExceptionCtor1.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\ambiguousmatchexception\AmbiguousMatchExceptionCtor1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b47471.cmd_352]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b47471\b47471\b47471.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b47471\b47471
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharIsUpper2.cmd_375]
-RelativePath=CoreMangLib\cti\system\char\CharIsUpper2\CharIsUpper2.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsUpper2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[GCSimulator_320.cmd_376]
RelativePath=GC\Scenarios\GCSimulator\GCSimulator_320\GCSimulator_320.cmd
WorkingDir=GC\Scenarios\GCSimulator\GCSimulator_320
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt32IConvertibleToInt16.cmd_388]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32IConvertibleToInt16\UInt32IConvertibleToInt16.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32IConvertibleToInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[add_r8.cmd_389]
RelativePath=JIT\IL_Conformance\Old\Conformance_Base\add_r8\add_r8.cmd
WorkingDir=JIT\IL_Conformance\Old\Conformance_Base\add_r8
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int32IConvertibleToUInt16.cmd_398]
-RelativePath=CoreMangLib\cti\system\int\Int32IConvertibleToUInt16\Int32IConvertibleToUInt16.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32IConvertibleToUInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Ctors_r.cmd_400]
RelativePath=JIT\SIMD\Ctors_r\Ctors_r.cmd
WorkingDir=JIT\SIMD\Ctors_r
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ByteIConvertibleToBoolean.cmd_480]
-RelativePath=CoreMangLib\cti\system\byte\ByteIConvertibleToBoolean\ByteIConvertibleToBoolean.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteIConvertibleToBoolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b102887.cmd_481]
RelativePath=JIT\Regression\VS-ia64-JIT\V1.2-Beta1\b102887\b102887\b102887.cmd
WorkingDir=JIT\Regression\VS-ia64-JIT\V1.2-Beta1\b102887\b102887
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharIsSurrogatePair1.cmd_494]
-RelativePath=CoreMangLib\cti\system\char\CharIsSurrogatePair1\CharIsSurrogatePair1.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsSurrogatePair1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[simplerethrow_d.cmd_495]
RelativePath=JIT\Methodical\eh\rethrow\simplerethrow_d\simplerethrow_d.cmd
WorkingDir=JIT\Methodical\eh\rethrow\simplerethrow_d
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[SingleIsNaN.cmd_501]
-RelativePath=CoreMangLib\cti\system\single\SingleIsNaN\SingleIsNaN.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleIsNaN
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated8.cmd_502]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest8\Generated8\Generated8.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest8\Generated8
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CompilerGeneratedAttributeCtor.cmd_535]
-RelativePath=CoreMangLib\cti\system\runtime\compilerservices\compilergeneratedattribute\CompilerGeneratedAttributeCtor\CompilerGeneratedAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\compilerservices\compilergeneratedattribute\CompilerGeneratedAttributeCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated750.cmd_536]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest750\Generated750\Generated750.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest750\Generated750
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int16IConvertibleToDouble.cmd_570]
-RelativePath=CoreMangLib\cti\system\int16\Int16IConvertibleToDouble\Int16IConvertibleToDouble.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16IConvertibleToDouble
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_speed_dbghan2.cmd_571]
RelativePath=JIT\Methodical\VT\etc\_speed_dbghan2\_speed_dbghan2.cmd
WorkingDir=JIT\Methodical\VT\etc\_speed_dbghan2
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt64IConvertibleToType.cmd_599]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64IConvertibleToType\UInt64IConvertibleToType.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64IConvertibleToType
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated619.cmd_600]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest619\Generated619\Generated619.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest619\Generated619
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[AssemblyDescriptionAttributeCtor.cmd_602]
-RelativePath=CoreMangLib\cti\system\reflection\assemblydescriptionattribute\AssemblyDescriptionAttributeCtor\AssemblyDescriptionAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblydescriptionattribute\AssemblyDescriptionAttributeCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[GenericExceptions04.cmd_603]
RelativePath=baseservices\exceptions\generics\GenericExceptions04\GenericExceptions04.cmd
WorkingDir=baseservices\exceptions\generics\GenericExceptions04
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt16ToString4.cmd_618]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16ToString4\UInt16ToString4.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16ToString4
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[VectorDot_ro.cmd_619]
RelativePath=JIT\SIMD\VectorDot_ro\VectorDot_ro.cmd
WorkingDir=JIT\SIMD\VectorDot_ro
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[IConvertibleToChar.cmd_630]
-RelativePath=CoreMangLib\cti\system\iconvertible\IConvertibleToChar\IConvertibleToChar.cmd
-WorkingDir=CoreMangLib\cti\system\iconvertible\IConvertibleToChar
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_speed_relthrow.cmd_631]
RelativePath=JIT\Methodical\casts\SEH\_speed_relthrow\_speed_relthrow.cmd
WorkingDir=JIT\Methodical\casts\SEH\_speed_relthrow
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharIConvertibleToInt64.cmd_643]
-RelativePath=CoreMangLib\cti\system\char\CharIConvertibleToInt64\CharIConvertibleToInt64.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIConvertibleToInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated867.cmd_644]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest867\Generated867\Generated867.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest867\Generated867
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringIConvertibleToByte.cmd_645]
-RelativePath=CoreMangLib\cti\system\string\StringIConvertibleToByte\StringIConvertibleToByte.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringIConvertibleToByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated465.cmd_646]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest465\Generated465\Generated465.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest465\Generated465
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DoubleCompareTo1.cmd_659]
-RelativePath=CoreMangLib\cti\system\double\DoubleCompareTo1\DoubleCompareTo1.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleCompareTo1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[struct_static01.cmd_660]
RelativePath=JIT\Generics\MemberAccess\struct_static01\struct_static01.cmd
WorkingDir=JIT\Generics\MemberAccess\struct_static01
Categories=EXPECTED_PASS
HostStyle=0
-[DoubleIConvertibleToInt64.cmd_671]
-RelativePath=CoreMangLib\cti\system\double\DoubleIConvertibleToInt64\DoubleIConvertibleToInt64.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleIConvertibleToInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[callconv2_cs_r.cmd_672]
RelativePath=JIT\Directed\PREFIX\PrimitiveVT\callconv2_cs_r\callconv2_cs_r.cmd
WorkingDir=JIT\Directed\PREFIX\PrimitiveVT\callconv2_cs_r
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringFormat1.cmd_686]
-RelativePath=CoreMangLib\cti\system\string\StringFormat1\StringFormat1.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringFormat1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
-[Int16IConvertibleToInt64.cmd_687]
-RelativePath=CoreMangLib\cti\system\int16\Int16IConvertibleToInt64\Int16IConvertibleToInt64.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16IConvertibleToInt64
-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
Categories=EXPECTED_PASS
HostStyle=0
-[BooleanToString.cmd_691]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanToString\BooleanToString.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanToString
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated524.cmd_692]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest524\Generated524\Generated524.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest524\Generated524
Categories=EXPECTED_PASS
HostStyle=0
-[DecimalToChar.cmd_697]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToChar\DecimalToChar.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToChar
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[throwinnestedfinally_d.cmd_698]
RelativePath=JIT\Methodical\eh\nested\general\throwinnestedfinally_d\throwinnestedfinally_d.cmd
WorkingDir=JIT\Methodical\eh\nested\general\throwinnestedfinally_d
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[SByteGetHashCode.cmd_701]
-RelativePath=CoreMangLib\cti\system\sbyte\SByteGetHashCode\SByteGetHashCode.cmd
-WorkingDir=CoreMangLib\cti\system\sbyte\SByteGetHashCode
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[JTrueGeFP.cmd_702]
RelativePath=JIT\CodeGenBringUpTests\JTrueGeFP_ro\JTrueGeFP_ro.cmd
WorkingDir=JIT\CodeGenBringUpTests\JTrueGeFP_ro
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringConcat7.cmd_708]
-RelativePath=CoreMangLib\cti\system\string\StringConcat7\StringConcat7.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringConcat7
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[TestCase0.cmd_709]
RelativePath=Loader\classloader\InterfaceFolding\TestCase0\TestCase0.cmd
WorkingDir=Loader\classloader\InterfaceFolding\TestCase0
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StructLayoutAttributeValue.cmd_727]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\structlayoutattribute\StructLayoutAttributeValue\StructLayoutAttributeValue.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\structlayoutattribute\StructLayoutAttributeValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated877.cmd_728]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest877\Generated877\Generated877.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest877\Generated877
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[BooleanIConvertibleToUInt64.cmd_731]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanIConvertibleToUInt64\BooleanIConvertibleToUInt64.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanIConvertibleToUInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated824.cmd_732]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest824\Generated824\Generated824.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest824\Generated824
Categories=EXPECTED_PASS
HostStyle=0
-[CharIsWhiteSpace1.cmd_763]
-RelativePath=CoreMangLib\cti\system\char\CharIsWhiteSpace1\CharIsWhiteSpace1.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsWhiteSpace1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1354.cmd_764]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1354\Generated1354\Generated1354.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1354\Generated1354
Categories=EXPECTED_PASS
HostStyle=0
-[Int64IConvertibleToByte.cmd_771]
-RelativePath=CoreMangLib\cti\system\int64\Int64IConvertibleToByte\Int64IConvertibleToByte.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64IConvertibleToByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated409.cmd_772]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest409\Generated409\Generated409.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest409\Generated409
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt32Equals1.cmd_778]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32Equals1\UInt32Equals1.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32Equals1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b14057.cmd_779]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M09\b14057\b14057\b14057.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M09\b14057\b14057
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[AssemblyNameSetPublicKey.cmd_799]
-RelativePath=CoreMangLib\cti\system\reflection\assemblyname\AssemblyNameSetPublicKey\AssemblyNameSetPublicKey.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblyname\AssemblyNameSetPublicKey
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[isinst_ro.cmd_800]
RelativePath=JIT\Directed\nullabletypes\isinst_ro\isinst_ro.cmd
WorkingDir=JIT\Directed\nullabletypes\isinst_ro
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[IConvertibleToInt64.cmd_819]
-RelativePath=CoreMangLib\cti\system\iconvertible\IConvertibleToInt64\IConvertibleToInt64.cmd
-WorkingDir=CoreMangLib\cti\system\iconvertible\IConvertibleToInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[VectorAbs_r.cmd_820]
RelativePath=JIT\SIMD\VectorAbs_r\VectorAbs_r.cmd
WorkingDir=JIT\SIMD\VectorAbs_r
Categories=EXPECTED_PASS
HostStyle=0
-[StringToString1.cmd_821]
-RelativePath=CoreMangLib\cti\system\string\StringToString1\StringToString1.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringToString1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[NDhrystone.cmd_823]
RelativePath=JIT\Performance\CodeQuality\Benchstones\BenchI\NDhrystone\NDhrystone\NDhrystone.cmd
WorkingDir=JIT\Performance\CodeQuality\Benchstones\BenchI\NDhrystone\NDhrystone
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringCtorChar.cmd_831]
-RelativePath=CoreMangLib\cti\system\string\StringCtorChar\StringCtorChar.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringCtorChar
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated101.cmd_832]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest101\Generated101\Generated101.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest101\Generated101
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalCtor5.cmd_835]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalCtor5\DecimalCtor5.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalCtor5
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b14422.cmd_836]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M09\b14422\b14422\b14422.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M09\b14422\b14422
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimaFloor.cmd_852]
-RelativePath=CoreMangLib\cti\system\decimal\DecimaFloor\DecimaFloor.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimaFloor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[GThread08.cmd_853]
RelativePath=baseservices\threading\generics\syncdelegate\GThread08\GThread08.cmd
WorkingDir=baseservices\threading\generics\syncdelegate\GThread08
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DllNotFoundException1.cmd_865]
-RelativePath=CoreMangLib\cti\system\dllnotfoundexception\DllNotFoundException1\DllNotFoundException1.cmd
-WorkingDir=CoreMangLib\cti\system\dllnotfoundexception\DllNotFoundException1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
-[Int32MaxValue.cmd_866]
-RelativePath=CoreMangLib\cti\system\int\Int32MaxValue\Int32MaxValue.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32MaxValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[thread23.cmd_867]
RelativePath=baseservices\threading\generics\WaitCallback\thread23\thread23.cmd
WorkingDir=baseservices\threading\generics\WaitCallback\thread23
Categories=EXPECTED_PASS
HostStyle=0
-[SByteIConvertibleToUInt32.cmd_883]
-RelativePath=CoreMangLib\cti\system\sbyte\SByteIConvertibleToUInt32\SByteIConvertibleToUInt32.cmd
-WorkingDir=CoreMangLib\cti\system\sbyte\SByteIConvertibleToUInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b11490.cmd_884]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M09.5-PDC\b11490\b11490\b11490.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M09.5-PDC\b11490\b11490
Categories=EXPECTED_PASS
HostStyle=0
-[UInt32GetHashCode.cmd_948]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32GetHashCode\UInt32GetHashCode.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32GetHashCode
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[callconv2_cs_do.cmd_949]
RelativePath=JIT\Directed\PREFIX\PrimitiveVT\callconv2_cs_do\callconv2_cs_do.cmd
WorkingDir=JIT\Directed\PREFIX\PrimitiveVT\callconv2_cs_do
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[AssemblyKeyFileAttributeCtor.cmd_971]
-RelativePath=CoreMangLib\cti\system\reflection\assemblykeyfileattribute\AssemblyKeyFileAttributeCtor\AssemblyKeyFileAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblykeyfileattribute\AssemblyKeyFileAttributeCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[nullcomparaison_r.cmd_972]
RelativePath=JIT\Directed\nullabletypes\Desktop\nullcomparaison_r\nullcomparaison_r.cmd
WorkingDir=JIT\Directed\nullabletypes\Desktop\nullcomparaison_r
Categories=EXPECTED_PASS
HostStyle=0
-[DoubleEpsilon.cmd_985]
-RelativePath=CoreMangLib\cti\system\double\DoubleEpsilon\DoubleEpsilon.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleEpsilon
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[client.cmd_986]
RelativePath=Loader\binding\assemblies\assemblybugs\203962w\client\client.cmd
WorkingDir=Loader\binding\assemblies\assemblybugs\203962w\client
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DoubleIConvertibleToDecimal.cmd_1037]
-RelativePath=CoreMangLib\cti\system\double\DoubleIConvertibleToDecimal\DoubleIConvertibleToDecimal.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleIConvertibleToDecimal
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[tlstest_il_r.cmd_1038]
RelativePath=JIT\Directed\coverage\oldtests\tlstest_il_r\tlstest_il_r.cmd
WorkingDir=JIT\Directed\coverage\oldtests\tlstest_il_r
Categories=EXPECTED_PASS
HostStyle=0
-[Int32IConvertibleToByte.cmd_1045]
-RelativePath=CoreMangLib\cti\system\int\Int32IConvertibleToByte\Int32IConvertibleToByte.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32IConvertibleToByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_speed_relcastclass_ldarg.cmd_1046]
RelativePath=JIT\Methodical\casts\coverage\_speed_relcastclass_ldarg\_speed_relcastclass_ldarg.cmd
WorkingDir=JIT\Methodical\casts\coverage\_speed_relcastclass_ldarg
Categories=EXPECTED_PASS
HostStyle=0
-[UInt16Equals2.cmd_1047]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16Equals2\UInt16Equals2.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16Equals2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[expl_float_1_r.cmd_1048]
RelativePath=JIT\Methodical\explicit\coverage\expl_float_1_r\expl_float_1_r.cmd
WorkingDir=JIT\Methodical\explicit\coverage\expl_float_1_r
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalMinValue.cmd_1049]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalMinValue\DecimalMinValue.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalMinValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[eh07_large.cmd_1050]
RelativePath=JIT\jit64\localloc\ehverify\eh07_large\eh07_large.cmd
WorkingDir=JIT\jit64\localloc\ehverify\eh07_large
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[MarshalAsAttributeCtor1.cmd_1089]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeCtor1\MarshalAsAttributeCtor1.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeCtor1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_rels_muldiv.cmd_1090]
RelativePath=JIT\Methodical\int64\signed\_rels_muldiv\_rels_muldiv.cmd
WorkingDir=JIT\Methodical\int64\signed\_rels_muldiv
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[IVTACtor.cmd_1099]
-RelativePath=CoreMangLib\cti\system\runtime\compilerservices\internalsvisibletoattribute\IVTACtor\IVTACtor.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\compilerservices\internalsvisibletoattribute\IVTACtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[callgenericctor.cmd_1100]
RelativePath=readytorun\tests\genericsload\callgenericctor\callgenericctor.cmd
WorkingDir=readytorun\tests\genericsload\callgenericctor
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ObjectReferenceEquals.cmd_1105]
-RelativePath=CoreMangLib\cti\system\object\ObjectReferenceEquals\ObjectReferenceEquals.cmd
-WorkingDir=CoreMangLib\cti\system\object\ObjectReferenceEquals
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[ble_un_r4.cmd_1106]
RelativePath=JIT\IL_Conformance\Old\Conformance_Base\ble_un_r4\ble_un_r4.cmd
WorkingDir=JIT\IL_Conformance\Old\Conformance_Base\ble_un_r4
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int64IConvertibleToSingle.cmd_1107]
-RelativePath=CoreMangLib\cti\system\int64\Int64IConvertibleToSingle\Int64IConvertibleToSingle.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64IConvertibleToSingle
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated788.cmd_1108]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest788\Generated788\Generated788.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest788\Generated788
Categories=EXPECTED_PASS
HostStyle=0
-[ConstructorInfoConstructorName.cmd_1151]
-RelativePath=CoreMangLib\cti\system\reflection\constructorinfo\ConstructorInfoConstructorName\ConstructorInfoConstructorName.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\constructorinfo\ConstructorInfoConstructorName
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_rellcs_ulong.cmd_1152]
RelativePath=JIT\Methodical\int64\arrays\_rellcs_ulong\_rellcs_ulong.cmd
WorkingDir=JIT\Methodical\int64\arrays\_rellcs_ulong
Categories=EXPECTED_PASS
HostStyle=0
-[Int64IConvertibleToUInt64.cmd_1166]
-RelativePath=CoreMangLib\cti\system\int64\Int64IConvertibleToUInt64\Int64IConvertibleToUInt64.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64IConvertibleToUInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[IsInst004.cmd_1167]
RelativePath=Loader\classloader\generics\Variance\IL\IsInst004\IsInst004.cmd
WorkingDir=Loader\classloader\generics\Variance\IL\IsInst004
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[IndexerNameAttributeCtor.cmd_1180]
-RelativePath=CoreMangLib\cti\system\runtime\compilerservices\indexernameattribute\IndexerNameAttributeCtor\IndexerNameAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\compilerservices\indexernameattribute\IndexerNameAttributeCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated451.cmd_1181]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest451\Generated451\Generated451.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest451\Generated451
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ByteIConvertibleToInt16.cmd_1225]
-RelativePath=CoreMangLib\cti\system\byte\ByteIConvertibleToInt16\ByteIConvertibleToInt16.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteIConvertibleToInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[mcc_i04.cmd_1226]
RelativePath=JIT\jit64\mcc\interop\mcc_i04\mcc_i04.cmd
WorkingDir=JIT\jit64\mcc\interop\mcc_i04
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[AssemblyTitleAttributeCtor.cmd_1237]
-RelativePath=CoreMangLib\cti\system\reflection\assemblytitleattribute\AssemblyTitleAttributeCtor\AssemblyTitleAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblytitleattribute\AssemblyTitleAttributeCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1143.cmd_1238]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1143\Generated1143\Generated1143.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1143\Generated1143
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringSubString2.cmd_1239]
-RelativePath=CoreMangLib\cti\system\string\StringSubString2\StringSubString2.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringSubString2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
-[UInt16IConvertibleToInt16.cmd_1241]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16IConvertibleToInt16\UInt16IConvertibleToInt16.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16IConvertibleToInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[structret2_2.cmd_1242]
RelativePath=JIT\jit64\gc\misc\structret2_2\structret2_2.cmd
WorkingDir=JIT\jit64\gc\misc\structret2_2
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringCompareOrdinal2.cmd_1273]
-RelativePath=CoreMangLib\cti\system\string\StringCompareOrdinal2\StringCompareOrdinal2.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringCompareOrdinal2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b35344.cmd_1274]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b35344\b35344\b35344.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b35344\b35344
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DelegateABI.cmd_1285]
-RelativePath=CoreMangLib\cti\system\delegate\DelegateABI\DelegateABI.cmd
-WorkingDir=CoreMangLib\cti\system\delegate\DelegateABI
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[i4flat_cs_do.cmd_1286]
RelativePath=JIT\Methodical\AsgOp\i4\i4flat_cs_do\i4flat_cs_do.cmd
WorkingDir=JIT\Methodical\AsgOp\i4\i4flat_cs_do
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalCtor7.cmd_1304]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalCtor7\DecimalCtor7.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalCtor7
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[mcc_i00.cmd_1306]
RelativePath=JIT\jit64\mcc\interop\mcc_i00\mcc_i00.cmd
WorkingDir=JIT\jit64\mcc\interop\mcc_i00
Categories=EXPECTED_PASS
HostStyle=0
-[DefaultMemberAttributeCtor.cmd_1319]
-RelativePath=CoreMangLib\cti\system\reflection\defaultmemberattribute\DefaultMemberAttributeCtor\DefaultMemberAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\defaultmemberattribute\DefaultMemberAttributeCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b35779.cmd_1320]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b35779\b35779\b35779.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b35779\b35779
Categories=EXPECTED_PASS
HostStyle=0
-[DoubleToString2.cmd_1350]
-RelativePath=CoreMangLib\cti\system\double\DoubleToString2\DoubleToString2.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleToString2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[5w1d-03_cs_do.cmd_1351]
RelativePath=JIT\Methodical\fp\exgen\5w1d-03_cs_do\5w1d-03_cs_do.cmd
WorkingDir=JIT\Methodical\fp\exgen\5w1d-03_cs_do
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[GCHandleTarget_PSC.cmd_1416]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\gchandle\GCHandleTarget_PSC\GCHandleTarget_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\gchandle\GCHandleTarget_PSC
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1152.cmd_1417]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1152\Generated1152\Generated1152.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1152\Generated1152
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt16Equals1.cmd_1427]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16Equals1\UInt16Equals1.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16Equals1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[GCSimulator_138.cmd_1429]
RelativePath=GC\Scenarios\GCSimulator\GCSimulator_138\GCSimulator_138.cmd
WorkingDir=GC\Scenarios\GCSimulator\GCSimulator_138
Categories=EXPECTED_FAIL;9462;EXCLUDED;VARARG;Pri1
HostStyle=0
-[Int32IConvertibleToUInt32.cmd_1443]
-RelativePath=CoreMangLib\cti\system\int\Int32IConvertibleToUInt32\Int32IConvertibleToUInt32.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32IConvertibleToUInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated732.cmd_1444]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest732\Generated732\Generated732.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest732\Generated732
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharIsSurrogate1.cmd_1449]
-RelativePath=CoreMangLib\cti\system\char\CharIsSurrogate1\CharIsSurrogate1.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsSurrogate1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b16895.cmd_1450]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M09.5-PDC\b16895\b16895\b16895.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M09.5-PDC\b16895\b16895
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int32CompareTo1.cmd_1456]
-RelativePath=CoreMangLib\cti\system\int\Int32CompareTo1\Int32CompareTo1.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32CompareTo1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_dbgsizeof.cmd_1457]
RelativePath=JIT\Methodical\xxobj\sizeof\_dbgsizeof\_dbgsizeof.cmd
WorkingDir=JIT\Methodical\xxobj\sizeof\_dbgsizeof
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringPadRight1.cmd_1522]
-RelativePath=CoreMangLib\cti\system\string\StringPadRight1\StringPadRight1.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringPadRight1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[throwincatch_r.cmd_1523]
RelativePath=JIT\Methodical\eh\basics\throwincatch_r\throwincatch_r.cmd
WorkingDir=JIT\Methodical\eh\basics\throwincatch_r
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int64IConvertibleToSByte.cmd_1538]
-RelativePath=CoreMangLib\cti\system\int64\Int64IConvertibleToSByte\Int64IConvertibleToSByte.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64IConvertibleToSByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_speed_dbgstress3.cmd_1542]
RelativePath=JIT\Methodical\refany\_speed_dbgstress3\_speed_dbgstress3.cmd
WorkingDir=JIT\Methodical\refany\_speed_dbgstress3
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[SByteIConvertibleToByte.cmd_1599]
-RelativePath=CoreMangLib\cti\system\sbyte\SByteIConvertibleToByte\SByteIConvertibleToByte.cmd
-WorkingDir=CoreMangLib\cti\system\sbyte\SByteIConvertibleToByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated373.cmd_1600]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest373\Generated373\Generated373.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest373\Generated373
Categories=EXPECTED_PASS
HostStyle=0
-[Int32IConvertibleToInt16.cmd_1604]
-RelativePath=CoreMangLib\cti\system\int\Int32IConvertibleToInt16\Int32IConvertibleToInt16.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32IConvertibleToInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[eh04_dynamic.cmd_1605]
RelativePath=JIT\jit64\localloc\eh\eh04_dynamic\eh04_dynamic.cmd
WorkingDir=JIT\jit64\localloc\eh\eh04_dynamic
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt32IConvertibleToUInt16.cmd_1648]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32IConvertibleToUInt16\UInt32IConvertibleToUInt16.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32IConvertibleToUInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_il_dbgs_addsub.cmd_1649]
RelativePath=JIT\Methodical\int64\signed\_il_dbgs_addsub\_il_dbgs_addsub.cmd
WorkingDir=JIT\Methodical\int64\signed\_il_dbgs_addsub
Categories=EXPECTED_PASS
HostStyle=0
-[UInt32Equals2.cmd_1675]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32Equals2\UInt32Equals2.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32Equals2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated312.cmd_1676]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest312\Generated312\Generated312.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest312\Generated312
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[IConvertibleToDouble.cmd_1701]
-RelativePath=CoreMangLib\cti\system\iconvertible\IConvertibleToDouble\IConvertibleToDouble.cmd
-WorkingDir=CoreMangLib\cti\system\iconvertible\IConvertibleToDouble
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[VectorInit_r.cmd_1702]
RelativePath=JIT\SIMD\VectorInit_r\VectorInit_r.cmd
WorkingDir=JIT\SIMD\VectorInit_r
Categories=EXPECTED_PASS
HostStyle=0
-[ATPAPropertyName.cmd_1727]
-RelativePath=CoreMangLib\cti\system\runtime\compilerservices\accessedthroughpropertyattribute\ATPAPropertyName\ATPAPropertyName.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\compilerservices\accessedthroughpropertyattribute\ATPAPropertyName
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_odbgsin_il_il.cmd_1728]
RelativePath=JIT\Methodical\Boxing\xlang\_odbgsin_il_il\_odbgsin_il_il.cmd
WorkingDir=JIT\Methodical\Boxing\xlang\_odbgsin_il_il
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[SingleNaN.cmd_1752]
-RelativePath=CoreMangLib\cti\system\single\SingleNaN\SingleNaN.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleNaN
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b491215.cmd_1753]
RelativePath=JIT\Regression\CLR-x86-JIT\V2.0-RTM\b491215\b491215\b491215.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V2.0-RTM\b491215\b491215
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringEquals2.cmd_1791]
-RelativePath=CoreMangLib\cti\system\string\StringEquals2\StringEquals2.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringEquals2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[GThread15.cmd_1793]
RelativePath=baseservices\threading\generics\syncdelegate\GThread15\GThread15.cmd
WorkingDir=baseservices\threading\generics\syncdelegate\GThread15
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[TargetInvocationExceptionCtor1.cmd_1802]
-RelativePath=CoreMangLib\cti\system\reflection\targetinvocationexception\TargetInvocationExceptionCtor1\TargetInvocationExceptionCtor1.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\targetinvocationexception\TargetInvocationExceptionCtor1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b25647.cmd_1803]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M09.5-PDC\b25647\b25647\b25647.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M09.5-PDC\b25647\b25647
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharIConvertibleToDecimal.cmd_1809]
-RelativePath=CoreMangLib\cti\system\char\CharIConvertibleToDecimal\CharIConvertibleToDecimal.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIConvertibleToDecimal
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[class01_instance.cmd_1810]
RelativePath=JIT\Generics\Arrays\ConstructedTypes\Jagged\class01_instance\class01_instance.cmd
WorkingDir=JIT\Generics\Arrays\ConstructedTypes\Jagged\class01_instance
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringJoin2.cmd_1829]
-RelativePath=CoreMangLib\cti\system\string\StringJoin2\StringJoin2.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringJoin2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_il_reljumper1.cmd_1830]
RelativePath=JIT\Methodical\VT\callconv\_il_reljumper1\_il_reljumper1.cmd
WorkingDir=JIT\Methodical\VT\callconv\_il_reljumper1
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[GCMaxGeneration.cmd_1861]
-RelativePath=CoreMangLib\cti\system\gc\GCMaxGeneration\GCMaxGeneration.cmd
-WorkingDir=CoreMangLib\cti\system\gc\GCMaxGeneration
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1201.cmd_1862]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1201\Generated1201\Generated1201.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1201\Generated1201
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalToString1.cmd_1892]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToString1\DecimalToString1.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToString1
-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
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int32IConvertibleToUInt64.cmd_2000]
-RelativePath=CoreMangLib\cti\system\int\Int32IConvertibleToUInt64\Int32IConvertibleToUInt64.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32IConvertibleToUInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
-[DoubleIConvertibleToSingle.cmd_2001]
-RelativePath=CoreMangLib\cti\system\double\DoubleIConvertibleToSingle\DoubleIConvertibleToSingle.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleIConvertibleToSingle
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[L-1-6-1.cmd_2002]
RelativePath=Loader\classloader\v1\Beta1\Layout\Matrix\cs\L-1-6-1\L-1-6-1.cmd
WorkingDir=Loader\classloader\v1\Beta1\Layout\Matrix\cs\L-1-6-1
Categories=EXPECTED_PASS
HostStyle=0
-[UInt32IConvertibleToUInt64.cmd_2055]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32IConvertibleToUInt64\UInt32IConvertibleToUInt64.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32IConvertibleToUInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[ldelemnullarr2.cmd_2056]
RelativePath=JIT\Directed\coverage\importer\ldelemnullarr2\ldelemnullarr2.cmd
WorkingDir=JIT\Directed\coverage\importer\ldelemnullarr2
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int32IConvertibleToSingle.cmd_2079]
-RelativePath=CoreMangLib\cti\system\int\Int32IConvertibleToSingle\Int32IConvertibleToSingle.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32IConvertibleToSingle
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
-[SByteIConvertibleToInt64.cmd_2080]
-RelativePath=CoreMangLib\cti\system\sbyte\SByteIConvertibleToInt64\SByteIConvertibleToInt64.cmd
-WorkingDir=CoreMangLib\cti\system\sbyte\SByteIConvertibleToInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[ThreadStartUInt.cmd_2082]
RelativePath=baseservices\threading\paramthreadstart\ThreadStartUInt\ThreadStartUInt.cmd
WorkingDir=baseservices\threading\paramthreadstart\ThreadStartUInt
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[AssemblyConfigurationAttributeCtor.cmd_2086]
-RelativePath=CoreMangLib\cti\system\reflection\assemblyconfigurationattribute\AssemblyConfigurationAttributeCtor\AssemblyConfigurationAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblyconfigurationattribute\AssemblyConfigurationAttributeCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[lohfragmentation.cmd_2088]
RelativePath=GC\Features\LOHFragmentation\lohfragmentation\lohfragmentation.cmd
WorkingDir=GC\Features\LOHFragmentation\lohfragmentation
Categories=EXPECTED_FAIL;Pri1
HostStyle=0
-[CharIsLetter1.cmd_2089]
-RelativePath=CoreMangLib\cti\system\char\CharIsLetter1\CharIsLetter1.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsLetter1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1306.cmd_2090]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1306\Generated1306\Generated1306.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1306\Generated1306
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int32Equals2.cmd_2102]
-RelativePath=CoreMangLib\cti\system\int\Int32Equals2\Int32Equals2.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32Equals2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[waitanynullarray.cmd_2103]
RelativePath=baseservices\threading\waithandle\waitany\waitanynullarray\waitanynullarray.cmd
WorkingDir=baseservices\threading\waithandle\waitany\waitanynullarray
Categories=EXPECTED_PASS
HostStyle=0
-[StringChars.cmd_2116]
-RelativePath=CoreMangLib\cti\system\string\StringChars\StringChars.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringChars
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[popi.cmd_2117]
RelativePath=JIT\IL_Conformance\Old\Conformance_Base\popi\popi.cmd
WorkingDir=JIT\IL_Conformance\Old\Conformance_Base\popi
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringCompare9.cmd_2168]
-RelativePath=CoreMangLib\cti\system\string\StringCompare9\StringCompare9.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringCompare9
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[uint32_cs_r.cmd_2170]
RelativePath=JIT\Directed\shift\uint32_cs_r\uint32_cs_r.cmd
WorkingDir=JIT\Directed\shift\uint32_cs_r
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[TargetParameterCountExceptionCtor3.cmd_2180]
-RelativePath=CoreMangLib\cti\system\reflection\targetparametercountexception\TargetParameterCountExceptionCtor3\TargetParameterCountExceptionCtor3.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\targetparametercountexception\TargetParameterCountExceptionCtor3
-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
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt16IConvertibleToChar.cmd_2205]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16IConvertibleToChar\UInt16IConvertibleToChar.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16IConvertibleToChar
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b14323.cmd_2206]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M09\b14323\b14323\b14323.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M09\b14323\b14323
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ATPACtor.cmd_2209]
-RelativePath=CoreMangLib\cti\system\runtime\compilerservices\accessedthroughpropertyattribute\ATPACtor\ATPACtor.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\compilerservices\accessedthroughpropertyattribute\ATPACtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[repro177066.cmd_2212]
RelativePath=Loader\binding\assemblies\assemblybugs\177066w\repro177066\repro177066.cmd
WorkingDir=Loader\binding\assemblies\assemblybugs\177066w\repro177066
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt16IConvertibleToUInt16.cmd_2219]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16IConvertibleToUInt16\UInt16IConvertibleToUInt16.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16IConvertibleToUInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[ldc_add_ovf_i8.cmd_2220]
RelativePath=JIT\IL_Conformance\Old\Conformance_Base\ldc_add_ovf_i8\ldc_add_ovf_i8.cmd
WorkingDir=JIT\IL_Conformance\Old\Conformance_Base\ldc_add_ovf_i8
Categories=EXPECTED_PASS
HostStyle=0
-[CharEnumeratorIEnumeratorCurrent.cmd_2230]
-RelativePath=CoreMangLib\cti\system\charenumerator\CharEnumeratorIEnumeratorCurrent\CharEnumeratorIEnumeratorCurrent.cmd
-WorkingDir=CoreMangLib\cti\system\charenumerator\CharEnumeratorIEnumeratorCurrent
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[AddArray2.cmd_2231]
RelativePath=JIT\Performance\CodeQuality\Benchstones\BenchI\AddArray2\AddArray2\AddArray2.cmd
WorkingDir=JIT\Performance\CodeQuality\Benchstones\BenchI\AddArray2\AddArray2
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int16IConvertibleToChar.cmd_2262]
-RelativePath=CoreMangLib\cti\system\int16\Int16IConvertibleToChar\Int16IConvertibleToChar.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16IConvertibleToChar
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[gcvariant.cmd_2263]
RelativePath=GC\Scenarios\Boxing\gcvariant\gcvariant.cmd
WorkingDir=GC\Scenarios\Boxing\gcvariant
Categories=EXPECTED_PASS
HostStyle=0
-[Int64IConvertibleToDecimal.cmd_2282]
-RelativePath=CoreMangLib\cti\system\int64\Int64IConvertibleToDecimal\Int64IConvertibleToDecimal.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64IConvertibleToDecimal
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[shl.cmd_2283]
RelativePath=JIT\IL_Conformance\Old\Base\shl\shl.cmd
WorkingDir=JIT\IL_Conformance\Old\Base\shl
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ByteIConvertibleToInt64.cmd_2288]
-RelativePath=CoreMangLib\cti\system\byte\ByteIConvertibleToInt64\ByteIConvertibleToInt64.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteIConvertibleToInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b64579.cmd_2289]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b64579\b64579\b64579.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b64579\b64579
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[BooleanCompareTo_Boolean.cmd_2367]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanCompareTo_Boolean\BooleanCompareTo_Boolean.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanCompareTo_Boolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated410.cmd_2369]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest410\Generated410\Generated410.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest410\Generated410
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt16ToString3.cmd_2375]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16ToString3\UInt16ToString3.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16ToString3
-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
Categories=EXPECTED_PASS
HostStyle=0
-[UInt64IConvertibleToSingle.cmd_2381]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64IConvertibleToSingle\UInt64IConvertibleToSingle.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64IConvertibleToSingle
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b89946.cmd_2382]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M13-RTM\b89946\b89946\b89946.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M13-RTM\b89946\b89946
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int64IConvertibleToBoolean.cmd_2409]
-RelativePath=CoreMangLib\cti\system\int64\Int64IConvertibleToBoolean\Int64IConvertibleToBoolean.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64IConvertibleToBoolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated754.cmd_2410]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest754\Generated754\Generated754.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest754\Generated754
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringIConvertibleToUInt64.cmd_2411]
-RelativePath=CoreMangLib\cti\system\string\StringIConvertibleToUInt64\StringIConvertibleToUInt64.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringIConvertibleToUInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_dbgcastclass_ldloc.cmd_2412]
RelativePath=JIT\Methodical\casts\coverage\_dbgcastclass_ldloc\_dbgcastclass_ldloc.cmd
WorkingDir=JIT\Methodical\casts\coverage\_dbgcastclass_ldloc
Categories=EXPECTED_PASS
HostStyle=0
-[BooleanGetHashCode.cmd_2419]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanGetHashCode\BooleanGetHashCode.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanGetHashCode
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1299.cmd_2421]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1299\Generated1299\Generated1299.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1299\Generated1299
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[GCWaitForPendingFinalizers.cmd_2428]
-RelativePath=CoreMangLib\cti\system\gc\GCWaitForPendingFinalizers\GCWaitForPendingFinalizers.cmd
-WorkingDir=CoreMangLib\cti\system\gc\GCWaitForPendingFinalizers
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[structfp1_3.cmd_2429]
RelativePath=JIT\jit64\gc\misc\structfp1_3\structfp1_3.cmd
WorkingDir=JIT\jit64\gc\misc\structfp1_3
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalZero.cmd_2450]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalZero\DecimalZero.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalZero
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[tryfinallythrow_nonlocalexit_ro.cmd_2451]
RelativePath=JIT\Methodical\eh\finallyexec\tryfinallythrow_nonlocalexit_ro\tryfinallythrow_nonlocalexit_ro.cmd
WorkingDir=JIT\Methodical\eh\finallyexec\tryfinallythrow_nonlocalexit_ro
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharIsLetterOrDigit2.cmd_2452]
-RelativePath=CoreMangLib\cti\system\char\CharIsLetterOrDigit2\CharIsLetterOrDigit2.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsLetterOrDigit2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_opt_relrefarg_i1.cmd_2454]
RelativePath=JIT\Methodical\explicit\basic\_opt_relrefarg_i1\_opt_relrefarg_i1.cmd
WorkingDir=JIT\Methodical\explicit\basic\_opt_relrefarg_i1
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[SingleToBoolean.cmd_2485]
-RelativePath=CoreMangLib\cti\system\single\SingleToBoolean\SingleToBoolean.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleToBoolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[compareexchangeobject.cmd_2486]
RelativePath=baseservices\threading\interlocked\compareexchange\compareexchangeobject\compareexchangeobject.cmd
WorkingDir=baseservices\threading\interlocked\compareexchange\compareexchangeobject
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[IConvertibleToByte.cmd_2508]
-RelativePath=CoreMangLib\cti\system\iconvertible\IConvertibleToByte\IConvertibleToByte.cmd
-WorkingDir=CoreMangLib\cti\system\iconvertible\IConvertibleToByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_il_dbgselfref.cmd_2509]
RelativePath=JIT\Methodical\Arrays\misc\_il_dbgselfref\_il_dbgselfref.cmd
WorkingDir=JIT\Methodical\Arrays\misc\_il_dbgselfref
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharIConvertibleToInt16.cmd_2527]
-RelativePath=CoreMangLib\cti\system\char\CharIConvertibleToInt16\CharIConvertibleToInt16.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIConvertibleToInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_il_relrefloc_r8.cmd_2528]
RelativePath=JIT\Methodical\explicit\basic\_il_relrefloc_r8\_il_relrefloc_r8.cmd
WorkingDir=JIT\Methodical\explicit\basic\_il_relrefloc_r8
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ManualResetEventCtor.cmd_2548]
-RelativePath=CoreMangLib\cti\system\threading\manualresetevent\ManualResetEventCtor\ManualResetEventCtor.cmd
-WorkingDir=CoreMangLib\cti\system\threading\manualresetevent\ManualResetEventCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[struct3_2.cmd_2549]
RelativePath=JIT\jit64\gc\misc\struct3_2\struct3_2.cmd
WorkingDir=JIT\jit64\gc\misc\struct3_2
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[SingleToDecimal.cmd_2558]
-RelativePath=CoreMangLib\cti\system\single\SingleToDecimal\SingleToDecimal.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleToDecimal
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[stind_i2.cmd_2559]
RelativePath=JIT\IL_Conformance\Old\Conformance_Base\stind_i2\stind_i2.cmd
WorkingDir=JIT\IL_Conformance\Old\Conformance_Base\stind_i2
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[SByteIConvertibleToBoolean.cmd_2566]
-RelativePath=CoreMangLib\cti\system\sbyte\SByteIConvertibleToBoolean\SByteIConvertibleToBoolean.cmd
-WorkingDir=CoreMangLib\cti\system\sbyte\SByteIConvertibleToBoolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[box-unbox007.cmd_2567]
RelativePath=JIT\jit64\valuetypes\nullable\box-unbox\box-unbox\box-unbox007\box-unbox007.cmd
WorkingDir=JIT\jit64\valuetypes\nullable\box-unbox\box-unbox\box-unbox007
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringTrim4.cmd_2586]
-RelativePath=CoreMangLib\cti\system\string\StringTrim4\StringTrim4.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringTrim4
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_il_relarray2.cmd_2587]
RelativePath=JIT\Methodical\refany\_il_relarray2\_il_relarray2.cmd
WorkingDir=JIT\Methodical\refany\_il_relarray2
Categories=EXPECTED_PASS
HostStyle=0
-[Int64IConvertibleToInt32.cmd_2614]
-RelativePath=CoreMangLib\cti\system\int64\Int64IConvertibleToInt32\Int64IConvertibleToInt32.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64IConvertibleToInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[throwoutside_do.cmd_2615]
RelativePath=JIT\Methodical\eh\basics\throwoutside_do\throwoutside_do.cmd
WorkingDir=JIT\Methodical\eh\basics\throwoutside_do
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalEquals3.cmd_2627]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalEquals3\DecimalEquals3.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalEquals3
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[test2-xassem.cmd_2628]
RelativePath=JIT\Methodical\stringintern\test2-xassem\test2-xassem.cmd
WorkingDir=JIT\Methodical\stringintern\test2-xassem
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharIsPunctuation2.cmd_2646]
-RelativePath=CoreMangLib\cti\system\char\CharIsPunctuation2\CharIsPunctuation2.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsPunctuation2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1016.cmd_2648]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1016\Generated1016\Generated1016.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1016\Generated1016
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[RuntimeCompatAttrCtor.cmd_2702]
-RelativePath=CoreMangLib\cti\system\runtime\compilerservices\runtimecompatibilityattribute\RuntimeCompatAttrCtor\RuntimeCompatAttrCtor.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\compilerservices\runtimecompatibilityattribute\RuntimeCompatAttrCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[jmp.cmd_2703]
RelativePath=JIT\IL_Conformance\Old\Base\jmp\jmp.cmd
WorkingDir=JIT\IL_Conformance\Old\Base\jmp
Categories=EXPECTED_PASS
HostStyle=0
-[WaitHandleDispose3.cmd_2720]
-RelativePath=CoreMangLib\cti\system\threading\waithandle\WaitHandleDispose3\WaitHandleDispose3.cmd
-WorkingDir=CoreMangLib\cti\system\threading\waithandle\WaitHandleDispose3
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[GCSimulator_378.cmd_2721]
RelativePath=GC\Scenarios\GCSimulator\GCSimulator_378\GCSimulator_378.cmd
WorkingDir=GC\Scenarios\GCSimulator\GCSimulator_378
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[IConvertibleToDateTime.cmd_2727]
-RelativePath=CoreMangLib\cti\system\iconvertible\IConvertibleToDateTime\IConvertibleToDateTime.cmd
-WorkingDir=CoreMangLib\cti\system\iconvertible\IConvertibleToDateTime
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b111130.cmd_2728]
RelativePath=JIT\Regression\VS-ia64-JIT\M00\b111130\b111130\b111130.cmd
WorkingDir=JIT\Regression\VS-ia64-JIT\M00\b111130\b111130
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int64MinValue.cmd_2732]
-RelativePath=CoreMangLib\cti\system\int64\Int64MinValue\Int64MinValue.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64MinValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b31780.cmd_2733]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b31780\b31780\b31780.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b31780\b31780
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharIsNumber1.cmd_2735]
-RelativePath=CoreMangLib\cti\system\char\CharIsNumber1\CharIsNumber1.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsNumber1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
-[CharIConvertibleToChar.cmd_2736]
-RelativePath=CoreMangLib\cti\system\char\CharIConvertibleToChar\CharIConvertibleToChar.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIConvertibleToChar
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[tryfinallyintrycatchwithleaveintotry_r.cmd_2737]
RelativePath=JIT\Methodical\eh\leaves\tryfinallyintrycatchwithleaveintotry_r\tryfinallyintrycatchwithleaveintotry_r.cmd
WorkingDir=JIT\Methodical\eh\leaves\tryfinallyintrycatchwithleaveintotry_r
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[WeakReferenceIsAlive_PSC.cmd_2768]
-RelativePath=CoreMangLib\cti\system\weakreference\WeakReferenceIsAlive_PSC\WeakReferenceIsAlive_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\weakreference\WeakReferenceIsAlive_PSC
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b59948.cmd_2769]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b59948\b59948\b59948.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b59948\b59948
Categories=EXPECTED_PASS
HostStyle=0
-[StringInsert.cmd_2807]
-RelativePath=CoreMangLib\cti\system\string\StringInsert\StringInsert.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringInsert
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[jmp_opt.cmd_2808]
RelativePath=JIT\jit64\opt\cg\il\jmp_opt\jmp_opt.cmd
WorkingDir=JIT\jit64\opt\cg\il\jmp_opt
Categories=EXPECTED_PASS
HostStyle=0
-[WeakReferenceTrackResurrection_cti_PSC.cmd_2811]
-RelativePath=CoreMangLib\cti\system\weakreference\WeakReferenceTrackResurrection_cti_PSC\WeakReferenceTrackResurrection_cti_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\weakreference\WeakReferenceTrackResurrection_cti_PSC
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_rellcsmax.cmd_2812]
RelativePath=JIT\Methodical\Arrays\lcs\_rellcsmax\_rellcsmax.cmd
WorkingDir=JIT\Methodical\Arrays\lcs\_rellcsmax
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringSubString1.cmd_2826]
-RelativePath=CoreMangLib\cti\system\string\StringSubString1\StringSubString1.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringSubString1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_opt_relrefarg_f4.cmd_2827]
RelativePath=JIT\Methodical\explicit\basic\_opt_relrefarg_f4\_opt_relrefarg_f4.cmd
WorkingDir=JIT\Methodical\explicit\basic\_opt_relrefarg_f4
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharIsLetter2.cmd_2871]
-RelativePath=CoreMangLib\cti\system\char\CharIsLetter2\CharIsLetter2.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsLetter2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1210.cmd_2872]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1210\Generated1210\Generated1210.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1210\Generated1210
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharGetHashCode.cmd_2874]
-RelativePath=CoreMangLib\cti\system\char\CharGetHashCode\CharGetHashCode.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharGetHashCode
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[AbstractBase03.cmd_2875]
RelativePath=Loader\classloader\generics\Instantiation\Positive\AbstractBase03\AbstractBase03.cmd
WorkingDir=Loader\classloader\generics\Instantiation\Positive\AbstractBase03
Categories=EXPECTED_PASS
HostStyle=0
-[ByteMaxValue.cmd_2890]
-RelativePath=CoreMangLib\cti\system\byte\ByteMaxValue\ByteMaxValue.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteMaxValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b31493.cmd_2892]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b31493\b31493\b31493.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b31493\b31493
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[SingleToInt32.cmd_2898]
-RelativePath=CoreMangLib\cti\system\single\SingleToInt32\SingleToInt32.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleToInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b604247.cmd_2899]
RelativePath=JIT\Regression\CLR-x86-JIT\V2.0-RTM\b604247\b604247\b604247.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V2.0-RTM\b604247\b604247
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt64IConvertibleToInt64.cmd_2939]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64IConvertibleToInt64\UInt64IConvertibleToInt64.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64IConvertibleToInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b70967.cmd_2940]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b70967\b70967\b70967.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b70967\b70967
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StructLayoutAttributePack.cmd_2953]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\structlayoutattribute\StructLayoutAttributePack\StructLayoutAttributePack.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\structlayoutattribute\StructLayoutAttributePack
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[castclass-null044.cmd_2954]
RelativePath=JIT\jit64\valuetypes\nullable\castclass\null\castclass-null044\castclass-null044.cmd
WorkingDir=JIT\jit64\valuetypes\nullable\castclass\null\castclass-null044
Categories=EXPECTED_PASS
HostStyle=0
-[ObjectEquals1.cmd_2963]
-RelativePath=CoreMangLib\cti\system\object\ObjectEquals1\ObjectEquals1.cmd
-WorkingDir=CoreMangLib\cti\system\object\ObjectEquals1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[method014.cmd_2964]
RelativePath=Loader\classloader\generics\GenericMethods\method014\method014.cmd
WorkingDir=Loader\classloader\generics\GenericMethods\method014
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt64IConvertibleToDateTime.cmd_2969]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64IConvertibleToDateTime\UInt64IConvertibleToDateTime.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64IConvertibleToDateTime
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[SP1a2.cmd_2970]
RelativePath=JIT\Directed\StructPromote\SP1a2\SP1a2.cmd
WorkingDir=JIT\Directed\StructPromote\SP1a2
Categories=EXPECTED_PASS
HostStyle=0
-[DecimalToInt32.cmd_3082]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToInt32\DecimalToInt32.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[overflow02_add.cmd_3083]
RelativePath=JIT\jit64\rtchecks\overflow\overflow02_add\overflow02_add.cmd
WorkingDir=JIT\jit64\rtchecks\overflow\overflow02_add
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringReplace2.cmd_3149]
-RelativePath=CoreMangLib\cti\system\string\StringReplace2\StringReplace2.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringReplace2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated379.cmd_3151]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest379\Generated379\Generated379.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest379\Generated379
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ObjectFinalize.cmd_3200]
-RelativePath=CoreMangLib\cti\system\object\ObjectFinalize\ObjectFinalize.cmd
-WorkingDir=CoreMangLib\cti\system\object\ObjectFinalize
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[convr4a_cs_r.cmd_3201]
RelativePath=JIT\Methodical\FPtrunc\convr4a_cs_r\convr4a_cs_r.cmd
WorkingDir=JIT\Methodical\FPtrunc\convr4a_cs_r
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ObjectEquals2.cmd_3215]
-RelativePath=CoreMangLib\cti\system\object\ObjectEquals2\ObjectEquals2.cmd
-WorkingDir=CoreMangLib\cti\system\object\ObjectEquals2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated901.cmd_3216]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest901\Generated901\Generated901.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest901\Generated901
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[WeakReferenceTargetb_PSC.cmd_3245]
-RelativePath=CoreMangLib\cti\system\weakreference\WeakReferenceTargetb_PSC\WeakReferenceTargetb_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\weakreference\WeakReferenceTargetb_PSC
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[localloc.cmd_3246]
RelativePath=JIT\Directed\PREFIX\volatile\1\localloc\localloc.cmd
WorkingDir=JIT\Directed\PREFIX\volatile\1\localloc
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DoubleIsInfinity.cmd_3250]
-RelativePath=CoreMangLib\cti\system\double\DoubleIsInfinity\DoubleIsInfinity.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleIsInfinity
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[VectorUnused_ro.cmd_3252]
RelativePath=JIT\SIMD\VectorUnused_ro\VectorUnused_ro.cmd
WorkingDir=JIT\SIMD\VectorUnused_ro
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalCompare.cmd_3256]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalCompare\DecimalCompare.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalCompare
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_dbgstress3.cmd_3257]
RelativePath=JIT\Methodical\refany\_dbgstress3\_dbgstress3.cmd
WorkingDir=JIT\Methodical\refany\_dbgstress3
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int64Equals2.cmd_3287]
-RelativePath=CoreMangLib\cti\system\int64\Int64Equals2\Int64Equals2.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64Equals2
-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
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[r4_cs_ro.cmd_3290]
RelativePath=JIT\Methodical\AsgOp\r4\r4_cs_ro\r4_cs_ro.cmd
WorkingDir=JIT\Methodical\AsgOp\r4\r4_cs_ro
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringIConvertibleToUInt16.cmd_3302]
-RelativePath=CoreMangLib\cti\system\string\StringIConvertibleToUInt16\StringIConvertibleToUInt16.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringIConvertibleToUInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[AbstractBase06.cmd_3303]
RelativePath=Loader\classloader\generics\Instantiation\Positive\AbstractBase06\AbstractBase06.cmd
WorkingDir=Loader\classloader\generics\Instantiation\Positive\AbstractBase06
Categories=EXPECTED_PASS
HostStyle=0
-[WaitHandleDispose1.cmd_3304]
-RelativePath=CoreMangLib\cti\system\threading\waithandle\WaitHandleDispose1\WaitHandleDispose1.cmd
-WorkingDir=CoreMangLib\cti\system\threading\waithandle\WaitHandleDispose1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Marshal.cmd_3305]
RelativePath=Regressions\common\Marshal\Marshal.cmd
WorkingDir=Regressions\common\Marshal
Categories=EXPECTED_PASS
HostStyle=0
-[SingleMinValue.cmd_3312]
-RelativePath=CoreMangLib\cti\system\single\SingleMinValue\SingleMinValue.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleMinValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[i8rem_cs_d.cmd_3313]
RelativePath=JIT\Methodical\divrem\rem\i8rem_cs_d\i8rem_cs_d.cmd
WorkingDir=JIT\Methodical\divrem\rem\i8rem_cs_d
Categories=EXPECTED_PASS
HostStyle=0
-[DoubleToString4.cmd_3319]
-RelativePath=CoreMangLib\cti\system\double\DoubleToString4\DoubleToString4.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleToString4
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[castclass024.cmd_3320]
RelativePath=JIT\jit64\valuetypes\nullable\castclass\castclass\castclass024\castclass024.cmd
WorkingDir=JIT\jit64\valuetypes\nullable\castclass\castclass\castclass024
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[OutAttributeCtor.cmd_3358]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\outattribute\OutAttributeCtor\OutAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\outattribute\OutAttributeCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[LLoops.cmd_3359]
RelativePath=JIT\Performance\CodeQuality\Benchstones\BenchF\LLoops\LLoops\LLoops.cmd
WorkingDir=JIT\Performance\CodeQuality\Benchstones\BenchF\LLoops\LLoops
Categories=EXPECTED_PASS
HostStyle=0
-[UInt64IConvertibleToUInt32.cmd_3373]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64IConvertibleToUInt32\UInt64IConvertibleToUInt32.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64IConvertibleToUInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[thread16.cmd_3374]
RelativePath=baseservices\threading\generics\WaitCallback\thread16\thread16.cmd
WorkingDir=baseservices\threading\generics\WaitCallback\thread16
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringConcat4.cmd_3396]
-RelativePath=CoreMangLib\cti\system\string\StringConcat4\StringConcat4.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringConcat4
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[blt_i8.cmd_3397]
RelativePath=JIT\IL_Conformance\Old\Conformance_Base\blt_i8\blt_i8.cmd
WorkingDir=JIT\IL_Conformance\Old\Conformance_Base\blt_i8
Categories=EXPECTED_PASS
HostStyle=0
-[Int64IConvertibleToInt64.cmd_3436]
-RelativePath=CoreMangLib\cti\system\int64\Int64IConvertibleToInt64\Int64IConvertibleToInt64.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64IConvertibleToInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b52838.cmd_3437]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b52838\b52838\b52838.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b52838\b52838
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[SByteMinValue.cmd_3459]
-RelativePath=CoreMangLib\cti\system\sbyte\SByteMinValue\SByteMinValue.cmd
-WorkingDir=CoreMangLib\cti\system\sbyte\SByteMinValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_speed_dbgaccum.cmd_3460]
RelativePath=JIT\Methodical\VT\identity\_speed_dbgaccum\_speed_dbgaccum.cmd
WorkingDir=JIT\Methodical\VT\identity\_speed_dbgaccum
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int16IConvertibleToBoolean.cmd_3475]
-RelativePath=CoreMangLib\cti\system\int16\Int16IConvertibleToBoolean\Int16IConvertibleToBoolean.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16IConvertibleToBoolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b28927.cmd_3476]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M09.5-PDC\b28927\b28927\b28927.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M09.5-PDC\b28927\b28927
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt32IConvertibleToByte.cmd_3490]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32IConvertibleToByte\UInt32IConvertibleToByte.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32IConvertibleToByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1155.cmd_3491]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1155\Generated1155\Generated1155.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1155\Generated1155
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int64CompareTo1.cmd_3519]
-RelativePath=CoreMangLib\cti\system\int64\Int64CompareTo1\Int64CompareTo1.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64CompareTo1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[test137310.cmd_3520]
RelativePath=Loader\classloader\generics\regressions\137310\test137310\test137310.cmd
WorkingDir=Loader\classloader\generics\regressions\137310\test137310
Categories=EXPECTED_PASS
HostStyle=0
-[BooleanIConvertibleToChar.cmd_3559]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanIConvertibleToChar\BooleanIConvertibleToChar.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanIConvertibleToChar
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Finalize.cmd_3560]
RelativePath=GC\API\GC\Finalize\Finalize.cmd
WorkingDir=GC\API\GC\Finalize
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[WeakReferenceCtor1_PSC.cmd_3602]
-RelativePath=CoreMangLib\cti\system\weakreference\WeakReferenceCtor1_PSC\WeakReferenceCtor1_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\weakreference\WeakReferenceCtor1_PSC
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_rels_ldc_mulovf.cmd_3603]
RelativePath=JIT\Methodical\int64\signed\_rels_ldc_mulovf\_rels_ldc_mulovf.cmd
WorkingDir=JIT\Methodical\int64\signed\_rels_ldc_mulovf
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringConcat1.cmd_3611]
-RelativePath=CoreMangLib\cti\system\string\StringConcat1\StringConcat1.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringConcat1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b25815.cmd_3612]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M09.5-PDC\b25815\b25815\b25815.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M09.5-PDC\b25815\b25815
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[TargetInvocationExceptionCtor2.cmd_3619]
-RelativePath=CoreMangLib\cti\system\reflection\targetinvocationexception\TargetInvocationExceptionCtor2\TargetInvocationExceptionCtor2.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\targetinvocationexception\TargetInvocationExceptionCtor2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1406.cmd_3620]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1406\Generated1406\Generated1406.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1406\Generated1406
Categories=EXPECTED_PASS
HostStyle=0
-[StringConcat5.cmd_3637]
-RelativePath=CoreMangLib\cti\system\string\StringConcat5\StringConcat5.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringConcat5
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[boxunboxenum_do.cmd_3638]
RelativePath=JIT\Directed\nullabletypes\boxunboxenum_do\boxunboxenum_do.cmd
WorkingDir=JIT\Directed\nullabletypes\boxunboxenum_do
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringCtor5.cmd_3677]
-RelativePath=CoreMangLib\cti\system\string\StringCtor5\StringCtor5.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringCtor5
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[tail.cmd_3678]
RelativePath=JIT\Directed\pinvoke\tail\tail.cmd
WorkingDir=JIT\Directed\pinvoke\tail
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalGetBits.cmd_3706]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalGetBits\DecimalGetBits.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalGetBits
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[exchange4.cmd_3707]
RelativePath=baseservices\threading\interlocked\exchange\exchange4\exchange4.cmd
WorkingDir=baseservices\threading\interlocked\exchange\exchange4
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt32MaxValue.cmd_3713]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32MaxValue\UInt32MaxValue.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32MaxValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b81763.cmd_3714]
RelativePath=JIT\Regression\VS-ia64-JIT\M00\b81763\b81763\b81763.cmd
WorkingDir=JIT\Regression\VS-ia64-JIT\M00\b81763\b81763
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharToString2.cmd_3728]
-RelativePath=CoreMangLib\cti\system\char\CharToString2\CharToString2.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharToString2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_dbgisinst_ldarg.cmd_3729]
RelativePath=JIT\Methodical\casts\coverage\_dbgisinst_ldarg\_dbgisinst_ldarg.cmd
WorkingDir=JIT\Methodical\casts\coverage\_dbgisinst_ldarg
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[SByteIConvertibleToUInt16.cmd_3759]
-RelativePath=CoreMangLib\cti\system\sbyte\SByteIConvertibleToUInt16\SByteIConvertibleToUInt16.cmd
-WorkingDir=CoreMangLib\cti\system\sbyte\SByteIConvertibleToUInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[mixedexpr1_r_loop_try.cmd_3760]
RelativePath=JIT\jit64\opt\cse\mixedexpr1_r_loop_try\mixedexpr1_r_loop_try.cmd
WorkingDir=JIT\jit64\opt\cse\mixedexpr1_r_loop_try
Categories=EXPECTED_PASS
HostStyle=0
-[BooleanIConvertibleToType.cmd_3764]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanIConvertibleToType\BooleanIConvertibleToType.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanIConvertibleToType
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b173569.cmd_3765]
RelativePath=JIT\Regression\clr-x64-JIT\v2.1\b173569\b173569\b173569.cmd
WorkingDir=JIT\Regression\clr-x64-JIT\v2.1\b173569\b173569
Categories=EXPECTED_PASS
HostStyle=0
-[DoubleIConvertibleToSByte.cmd_3770]
-RelativePath=CoreMangLib\cti\system\double\DoubleIConvertibleToSByte\DoubleIConvertibleToSByte.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleIConvertibleToSByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[DevDiv2_10623.cmd_3772]
RelativePath=JIT\Regression\Dev11\DevDiv2_10623\DevDiv2_10623\DevDiv2_10623.cmd
WorkingDir=JIT\Regression\Dev11\DevDiv2_10623\DevDiv2_10623
Categories=EXPECTED_FAIL;2451;EXCLUDED;RVA_STATIC;Pri1
HostStyle=0
-[Int16IConvertibleToDecimal.cmd_3799]
-RelativePath=CoreMangLib\cti\system\int16\Int16IConvertibleToDecimal\Int16IConvertibleToDecimal.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16IConvertibleToDecimal
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[DblAddConst.cmd_3800]
RelativePath=JIT\CodeGenBringUpTests\DblAddConst_ro\DblAddConst_ro.cmd
WorkingDir=JIT\CodeGenBringUpTests\DblAddConst_ro
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt32IConvertibleToChar.cmd_3838]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32IConvertibleToChar\UInt32IConvertibleToChar.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32IConvertibleToChar
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b26957.cmd_3839]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M09.5-PDC\b26957\b26957\b26957.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M09.5-PDC\b26957\b26957
Categories=EXPECTED_PASS
HostStyle=0
-[UInt64ToString2.cmd_3854]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64ToString2\UInt64ToString2.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64ToString2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[tryfinallyincatchtry_d.cmd_3855]
RelativePath=JIT\Methodical\eh\disconnected\tryfinallyincatchtry_d\tryfinallyincatchtry_d.cmd
WorkingDir=JIT\Methodical\eh\disconnected\tryfinallyincatchtry_d
Categories=EXPECTED_PASS
HostStyle=0
-[StringPadLeft1.cmd_3862]
-RelativePath=CoreMangLib\cti\system\string\StringPadLeft1\StringPadLeft1.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringPadLeft1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[longinccheckreturn.cmd_3863]
RelativePath=baseservices\threading\interlocked\checkreturn\longinccheckreturn\longinccheckreturn.cmd
WorkingDir=baseservices\threading\interlocked\checkreturn\longinccheckreturn
Categories=EXPECTED_PASS
HostStyle=0
-[DecimalSubtract.cmd_3878]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalSubtract\DecimalSubtract.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalSubtract
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
-[CharIConvertibleToDouble.cmd_3879]
-RelativePath=CoreMangLib\cti\system\char\CharIConvertibleToDouble\CharIConvertibleToDouble.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIConvertibleToDouble
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[samethrowtwice_d.cmd_3880]
RelativePath=JIT\Methodical\eh\rethrow\samethrowtwice_d\samethrowtwice_d.cmd
WorkingDir=JIT\Methodical\eh\rethrow\samethrowtwice_d
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringIConvertibleToSByte.cmd_3907]
-RelativePath=CoreMangLib\cti\system\string\StringIConvertibleToSByte\StringIConvertibleToSByte.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringIConvertibleToSByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[r8NaNmul_cs_do.cmd_3908]
RelativePath=JIT\Methodical\NaN\r8NaNmul_cs_do\r8NaNmul_cs_do.cmd
WorkingDir=JIT\Methodical\NaN\r8NaNmul_cs_do
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[BooleanIConvertibleToDouble.cmd_3909]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanIConvertibleToDouble\BooleanIConvertibleToDouble.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanIConvertibleToDouble
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[refs.cmd_3910]
RelativePath=JIT\IL_Conformance\Old\Conformance_Base\refs\refs.cmd
WorkingDir=JIT\IL_Conformance\Old\Conformance_Base\refs
Categories=EXPECTED_FAIL;9462;EXCLUDED;VARARG;Pri1
HostStyle=0
-[AssemblyKeyNameAttributeCtor.cmd_3916]
-RelativePath=CoreMangLib\cti\system\reflection\assemblykeynameattribute\AssemblyKeyNameAttributeCtor\AssemblyKeyNameAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblykeynameattribute\AssemblyKeyNameAttributeCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[test.cmd_3917]
RelativePath=JIT\jit64\regress\vsw\568666\test\test.cmd
WorkingDir=JIT\jit64\regress\vsw\568666\test
Categories=EXPECTED_PASS
HostStyle=0
-[StringEquals6.cmd_3977]
-RelativePath=CoreMangLib\cti\system\string\StringEquals6\StringEquals6.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringEquals6
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[constructor_d.cmd_3978]
RelativePath=JIT\Directed\nullabletypes\constructor_d\constructor_d.cmd
WorkingDir=JIT\Directed\nullabletypes\constructor_d
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ByteIConvertibleToDecimal.cmd_3992]
-RelativePath=CoreMangLib\cti\system\byte\ByteIConvertibleToDecimal\ByteIConvertibleToDecimal.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteIConvertibleToDecimal
-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
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringReplace1.cmd_4002]
-RelativePath=CoreMangLib\cti\system\string\StringReplace1\StringReplace1.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringReplace1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[throwinfinallyintryfilter3_r.cmd_4003]
RelativePath=JIT\Methodical\eh\basics\throwinfinallyintryfilter3_r\throwinfinallyintryfilter3_r.cmd
WorkingDir=JIT\Methodical\eh\basics\throwinfinallyintryfilter3_r
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ByteIConvertibleToDouble.cmd_4013]
-RelativePath=CoreMangLib\cti\system\byte\ByteIConvertibleToDouble\ByteIConvertibleToDouble.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteIConvertibleToDouble
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[castclass-generics016.cmd_4014]
RelativePath=JIT\jit64\valuetypes\nullable\castclass\generics\castclass-generics016\castclass-generics016.cmd
WorkingDir=JIT\jit64\valuetypes\nullable\castclass\generics\castclass-generics016
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt64MinValue.cmd_4066]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64MinValue\UInt64MinValue.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64MinValue
-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
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[SByteIConvertibleToInt32.cmd_4076]
-RelativePath=CoreMangLib\cti\system\sbyte\SByteIConvertibleToInt32\SByteIConvertibleToInt32.cmd
-WorkingDir=CoreMangLib\cti\system\sbyte\SByteIConvertibleToInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[interface_struct01.cmd_4078]
RelativePath=JIT\Generics\MemberAccess\interface_struct01\interface_struct01.cmd
WorkingDir=JIT\Generics\MemberAccess\interface_struct01
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalToString3.cmd_4083]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToString3\DecimalToString3.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToString3
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b30125.cmd_4084]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M09.5-PDC\b30125\b30125\b30125.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M09.5-PDC\b30125\b30125
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[BooleanIConvertibleToUInt32.cmd_4132]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanIConvertibleToUInt32\BooleanIConvertibleToUInt32.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanIConvertibleToUInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[VectorSqrt_r.cmd_4134]
RelativePath=JIT\SIMD\VectorSqrt_r\VectorSqrt_r.cmd
WorkingDir=JIT\SIMD\VectorSqrt_r
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharIConvertibleToDateTime.cmd_4201]
-RelativePath=CoreMangLib\cti\system\char\CharIConvertibleToDateTime\CharIConvertibleToDateTime.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIConvertibleToDateTime
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1158.cmd_4202]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1158\Generated1158\Generated1158.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1158\Generated1158
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharIsSeparator2.cmd_4261]
-RelativePath=CoreMangLib\cti\system\char\CharIsSeparator2\CharIsSeparator2.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsSeparator2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated132.cmd_4262]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest132\Generated132\Generated132.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest132\Generated132
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[MarshalAsAttributeSizeConst.cmd_4271]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeSizeConst\MarshalAsAttributeSizeConst.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeSizeConst
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_il_dbgpointer.cmd_4272]
RelativePath=JIT\Methodical\tailcall\_il_dbgpointer\_il_dbgpointer.cmd
WorkingDir=JIT\Methodical\tailcall\_il_dbgpointer
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ByteToString3.cmd_4296]
-RelativePath=CoreMangLib\cti\system\byte\ByteToString3\ByteToString3.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteToString3
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
-[MethodImplOptionsNoInlining.cmd_4298]
-RelativePath=CoreMangLib\cti\system\runtime\compilerservices\methodimploptions\MethodImplOptionsNoInlining\MethodImplOptionsNoInlining.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\compilerservices\methodimploptions\MethodImplOptionsNoInlining
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[box-unbox002.cmd_4299]
RelativePath=JIT\jit64\valuetypes\nullable\box-unbox\box-unbox\box-unbox002\box-unbox002.cmd
WorkingDir=JIT\jit64\valuetypes\nullable\box-unbox\box-unbox\box-unbox002
Categories=EXPECTED_FAIL;9462;EXCLUDED;VARARG;Pri1
HostStyle=0
-[UInt32IConvertibleToInt64.cmd_4301]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32IConvertibleToInt64\UInt32IConvertibleToInt64.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32IConvertibleToInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[decimaldiv_cs_d.cmd_4302]
RelativePath=JIT\Methodical\divrem\div\decimaldiv_cs_d\decimaldiv_cs_d.cmd
WorkingDir=JIT\Methodical\divrem\div\decimaldiv_cs_d
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringTrim1b.cmd_4342]
-RelativePath=CoreMangLib\cti\system\string\StringTrim1b\StringTrim1b.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringTrim1b
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Int_Xor_Op_cs_ro.cmd_4343]
RelativePath=JIT\Directed\cmov\Int_Xor_Op_cs_ro\Int_Xor_Op_cs_ro.cmd
WorkingDir=JIT\Directed\cmov\Int_Xor_Op_cs_ro
Categories=EXPECTED_PASS
HostStyle=0
-[Int32IConvertibleToChar.cmd_4359]
-RelativePath=CoreMangLib\cti\system\int\Int32IConvertibleToChar\Int32IConvertibleToChar.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32IConvertibleToChar
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
-[WeakReferenceIsAliveb_PSC.cmd_4360]
-RelativePath=CoreMangLib\cti\system\weakreference\WeakReferenceIsAliveb_PSC\WeakReferenceIsAliveb_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\weakreference\WeakReferenceIsAliveb_PSC
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[GetTotalMemory.cmd_4361]
RelativePath=GC\API\GC\GetTotalMemory\GetTotalMemory.cmd
WorkingDir=GC\API\GC\GetTotalMemory
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalToInt64.cmd_4368]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToInt64\DecimalToInt64.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_Simpletest4.cmd_4370]
RelativePath=JIT\Methodical\stringintern\_Simpletest4\_Simpletest4.cmd
WorkingDir=JIT\Methodical\stringintern\_Simpletest4
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringTrim1.cmd_4448]
-RelativePath=CoreMangLib\cti\system\string\StringTrim1\StringTrim1.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringTrim1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_il_relbox.cmd_4449]
RelativePath=JIT\Methodical\int64\misc\_il_relbox\_il_relbox.cmd
WorkingDir=JIT\Methodical\int64\misc\_il_relbox
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringIConvertibleToInt16.cmd_4455]
-RelativePath=CoreMangLib\cti\system\string\StringIConvertibleToInt16\StringIConvertibleToInt16.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringIConvertibleToInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[AutoResetCtor1.cmd_4458]
RelativePath=baseservices\threading\events\EventWaitHandle\AutoReset\AutoResetCtor1\AutoResetCtor1.cmd
WorkingDir=baseservices\threading\events\EventWaitHandle\AutoReset\AutoResetCtor1
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalToDecimal.cmd_4468]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToDecimal\DecimalToDecimal.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToDecimal
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1219.cmd_4469]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1219\Generated1219\Generated1219.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1219\Generated1219
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringCopyTo.cmd_4472]
-RelativePath=CoreMangLib\cti\system\string\StringCopyTo\StringCopyTo.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringCopyTo
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1007.cmd_4473]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1007\Generated1007\Generated1007.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1007\Generated1007
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int64IConvertibleToChar.cmd_4475]
-RelativePath=CoreMangLib\cti\system\int64\Int64IConvertibleToChar\Int64IConvertibleToChar.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64IConvertibleToChar
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated852.cmd_4476]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest852\Generated852\Generated852.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest852\Generated852
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt32MinValue.cmd_4477]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32MinValue\UInt32MinValue.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32MinValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_orelsin_il_il.cmd_4478]
RelativePath=JIT\Methodical\Boxing\xlang\_orelsin_il_il\_orelsin_il_il.cmd
WorkingDir=JIT\Methodical\Boxing\xlang\_orelsin_il_il
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ByteToString2.cmd_4494]
-RelativePath=CoreMangLib\cti\system\byte\ByteToString2\ByteToString2.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteToString2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b28787.cmd_4495]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M09.5-PDC\b28787\b28787\b28787.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M09.5-PDC\b28787\b28787
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalToUInt32.cmd_4526]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToUInt32\DecimalToUInt32.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToUInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated801.cmd_4527]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest801\Generated801\Generated801.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest801\Generated801
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharToString1.cmd_4553]
-RelativePath=CoreMangLib\cti\system\char\CharToString1\CharToString1.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharToString1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b102886.cmd_4554]
RelativePath=JIT\Regression\VS-ia64-JIT\V1.2-M02\b102886\b102886\b102886.cmd
WorkingDir=JIT\Regression\VS-ia64-JIT\V1.2-M02\b102886\b102886
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[FlagsAttributeCtor.cmd_4563]
-RelativePath=CoreMangLib\cti\system\flagsattribute\FlagsAttributeCtor\FlagsAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\flagsattribute\FlagsAttributeCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b98958.cmd_4564]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M13-RTM\b98958\b98958\b98958.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M13-RTM\b98958\b98958
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt64IConvertibleToSByte.cmd_4576]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64IConvertibleToSByte\UInt64IConvertibleToSByte.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64IConvertibleToSByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated793.cmd_4577]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest793\Generated793\Generated793.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest793\Generated793
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[AssemblyNameSetPublicKeyToken.cmd_4583]
-RelativePath=CoreMangLib\cti\system\reflection\assemblyname\AssemblyNameSetPublicKeyToken\AssemblyNameSetPublicKeyToken.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblyname\AssemblyNameSetPublicKeyToken
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1076.cmd_4586]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1076\Generated1076\Generated1076.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1076\Generated1076
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[SByteEquals2.cmd_4607]
-RelativePath=CoreMangLib\cti\system\sbyte\SByteEquals2\SByteEquals2.cmd
-WorkingDir=CoreMangLib\cti\system\sbyte\SByteEquals2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[TestGC.cmd_4608]
RelativePath=baseservices\compilerservices\dynamicobjectproperties\TestGC\TestGC.cmd
WorkingDir=baseservices\compilerservices\dynamicobjectproperties\TestGC
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[SingleIsInfinity.cmd_4665]
-RelativePath=CoreMangLib\cti\system\single\SingleIsInfinity\SingleIsInfinity.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleIsInfinity
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[GCSimulator_223.cmd_4666]
RelativePath=GC\Scenarios\GCSimulator\GCSimulator_223\GCSimulator_223.cmd
WorkingDir=GC\Scenarios\GCSimulator\GCSimulator_223
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringTrim3.cmd_4676]
-RelativePath=CoreMangLib\cti\system\string\StringTrim3\StringTrim3.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringTrim3
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[8Queens.cmd_4677]
RelativePath=JIT\Performance\CodeQuality\Benchstones\BenchI\8Queens\8Queens\8Queens.cmd
WorkingDir=JIT\Performance\CodeQuality\Benchstones\BenchI\8Queens\8Queens
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[BooleanIConvertibleToSingle.cmd_4693]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanIConvertibleToSingle\BooleanIConvertibleToSingle.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanIConvertibleToSingle
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_il_dbginitializearray_enum.cmd_4694]
RelativePath=JIT\Methodical\Arrays\misc\_il_dbginitializearray_enum\_il_dbginitializearray_enum.cmd
WorkingDir=JIT\Methodical\Arrays\misc\_il_dbginitializearray_enum
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[GCGetTotalMemory.cmd_4699]
-RelativePath=CoreMangLib\cti\system\gc\GCGetTotalMemory\GCGetTotalMemory.cmd
-WorkingDir=CoreMangLib\cti\system\gc\GCGetTotalMemory
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[fgtest1.cmd_4700]
RelativePath=JIT\jit64\gc\misc\fgtest1\fgtest1.cmd
WorkingDir=JIT\jit64\gc\misc\fgtest1
Categories=EXPECTED_PASS
HostStyle=0
-[AssemblyKeyFileAttributeKeyFile.cmd_4707]
-RelativePath=CoreMangLib\cti\system\reflection\assemblykeyfileattribute\AssemblyKeyFileAttributeKeyFile\AssemblyKeyFileAttributeKeyFile.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblykeyfileattribute\AssemblyKeyFileAttributeKeyFile
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[semaphoreopenneg2.cmd_4709]
RelativePath=baseservices\threading\semaphore\ctoropen\semaphoreopenneg2\semaphoreopenneg2.cmd
WorkingDir=baseservices\threading\semaphore\ctoropen\semaphoreopenneg2
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[SByteEquals1.cmd_4721]
-RelativePath=CoreMangLib\cti\system\sbyte\SByteEquals1\SByteEquals1.cmd
-WorkingDir=CoreMangLib\cti\system\sbyte\SByteEquals1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated580.cmd_4722]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest580\Generated580\Generated580.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest580\Generated580
Categories=EXPECTED_PASS
HostStyle=0
-[StringToCharArray.cmd_4735]
-RelativePath=CoreMangLib\cti\system\string\StringToCharArray\StringToCharArray.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringToCharArray
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_rels_ldfld_mul.cmd_4736]
RelativePath=JIT\Methodical\int64\signed\_rels_ldfld_mul\_rels_ldfld_mul.cmd
WorkingDir=JIT\Methodical\int64\signed\_rels_ldfld_mul
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ByteIConvertibleToByte.cmd_4776]
-RelativePath=CoreMangLib\cti\system\byte\ByteIConvertibleToByte\ByteIConvertibleToByte.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteIConvertibleToByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[5w1d-01_cs_ro.cmd_4777]
RelativePath=JIT\Methodical\fp\exgen\5w1d-01_cs_ro\5w1d-01_cs_ro.cmd
WorkingDir=JIT\Methodical\fp\exgen\5w1d-01_cs_ro
Categories=EXPECTED_PASS
HostStyle=0
-[BooleanIConvertibleToDateTime.cmd_4787]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanIConvertibleToDateTime\BooleanIConvertibleToDateTime.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanIConvertibleToDateTime
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b29727.cmd_4788]
RelativePath=JIT\Regression\VS-ia64-JIT\V1.2-M02\b29727\b29727\b29727.cmd
WorkingDir=JIT\Regression\VS-ia64-JIT\V1.2-M02\b29727\b29727
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalToString2.cmd_4813]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToString2\DecimalToString2.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToString2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[castclass021.cmd_4814]
RelativePath=JIT\jit64\valuetypes\nullable\castclass\castclass\castclass021\castclass021.cmd
WorkingDir=JIT\jit64\valuetypes\nullable\castclass\castclass\castclass021
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ObjectToString.cmd_4823]
-RelativePath=CoreMangLib\cti\system\object\ObjectToString\ObjectToString.cmd
-WorkingDir=CoreMangLib\cti\system\object\ObjectToString
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_opt_relrefarg_c.cmd_4825]
RelativePath=JIT\Methodical\explicit\basic\_opt_relrefarg_c\_opt_relrefarg_c.cmd
WorkingDir=JIT\Methodical\explicit\basic\_opt_relrefarg_c
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[SingleToDateTime.cmd_4826]
-RelativePath=CoreMangLib\cti\system\single\SingleToDateTime\SingleToDateTime.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleToDateTime
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1215.cmd_4827]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1215\Generated1215\Generated1215.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1215\Generated1215
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt16IConvertibleToByte.cmd_4834]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16IConvertibleToByte\UInt16IConvertibleToByte.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16IConvertibleToByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[expl_double.cmd_4835]
RelativePath=Regressions\expl_double\expl_double\expl_double.cmd
WorkingDir=Regressions\expl_double\expl_double
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int16IConvertibleToByte.cmd_4863]
-RelativePath=CoreMangLib\cti\system\int16\Int16IConvertibleToByte\Int16IConvertibleToByte.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16IConvertibleToByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[castclass-null008.cmd_4864]
RelativePath=JIT\jit64\valuetypes\nullable\castclass\null\castclass-null008\castclass-null008.cmd
WorkingDir=JIT\jit64\valuetypes\nullable\castclass\null\castclass-null008
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[MethodImplOptionsPreserveSig.cmd_4865]
-RelativePath=CoreMangLib\cti\system\runtime\compilerservices\methodimploptions\MethodImplOptionsPreserveSig\MethodImplOptionsPreserveSig.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\compilerservices\methodimploptions\MethodImplOptionsPreserveSig
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[switch6.cmd_4866]
RelativePath=JIT\Methodical\switch\switch6\switch6.cmd
WorkingDir=JIT\Methodical\switch\switch6
Categories=EXPECTED_PASS
HostStyle=0
-[BooleanIConvertibleToInt16.cmd_4876]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanIConvertibleToInt16\BooleanIConvertibleToInt16.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanIConvertibleToInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_il_relint32_0_5a.cmd_4877]
RelativePath=JIT\Methodical\Arrays\range\_il_relint32_0_5a\_il_relint32_0_5a.cmd
WorkingDir=JIT\Methodical\Arrays\range\_il_relint32_0_5a
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StructLayoutAttributeCtor.cmd_4883]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\structlayoutattribute\StructLayoutAttributeCtor\StructLayoutAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\structlayoutattribute\StructLayoutAttributeCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated348.cmd_4884]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest348\Generated348\Generated348.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest348\Generated348
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int16IConvertibleToInt16.cmd_4897]
-RelativePath=CoreMangLib\cti\system\int16\Int16IConvertibleToInt16\Int16IConvertibleToInt16.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16IConvertibleToInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[GCSimulator_269.cmd_4898]
RelativePath=GC\Scenarios\GCSimulator\GCSimulator_269\GCSimulator_269.cmd
WorkingDir=GC\Scenarios\GCSimulator\GCSimulator_269
Categories=EXPECTED_PASS
HostStyle=0
-[CharIConvertibleToInt32.cmd_4927]
-RelativePath=CoreMangLib\cti\system\char\CharIConvertibleToInt32\CharIConvertibleToInt32.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIConvertibleToInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated5.cmd_4928]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest5\Generated5\Generated5.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest5\Generated5
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalCtor3.cmd_4961]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalCtor3\DecimalCtor3.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalCtor3
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated280.cmd_4962]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest280\Generated280\Generated280.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest280\Generated280
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalTruncate.cmd_4987]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalTruncate\DecimalTruncate.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalTruncate
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_dbgunsafe-6.cmd_4989]
RelativePath=JIT\Methodical\unsafecsharp\_dbgunsafe-6\_dbgunsafe-6.cmd
WorkingDir=JIT\Methodical\unsafecsharp\_dbgunsafe-6
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DoubleIConvertibleToDouble.cmd_4990]
-RelativePath=CoreMangLib\cti\system\double\DoubleIConvertibleToDouble\DoubleIConvertibleToDouble.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleIConvertibleToDouble
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[GCSimulator_33.cmd_4991]
RelativePath=GC\Scenarios\GCSimulator\GCSimulator_33\GCSimulator_33.cmd
WorkingDir=GC\Scenarios\GCSimulator\GCSimulator_33
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[GCCollect.cmd_5027]
-RelativePath=CoreMangLib\cti\system\gc\GCCollect\GCCollect.cmd
-WorkingDir=CoreMangLib\cti\system\gc\GCCollect
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;GCSTRESS_EXCLUDE;Pri1
-HostStyle=0
-
[_reljumper.cmd_5030]
RelativePath=JIT\Methodical\VT\callconv\_reljumper\_reljumper.cmd
WorkingDir=JIT\Methodical\VT\callconv\_reljumper
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[SingleToByte.cmd_5049]
-RelativePath=CoreMangLib\cti\system\single\SingleToByte\SingleToByte.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleToByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[HelloWorld.cmd_5052]
RelativePath=Loader\classloader\TSAmbiguities\CollapsedMethods\InterfaceImplementation\HelloWorld\HelloWorld.cmd
WorkingDir=Loader\classloader\TSAmbiguities\CollapsedMethods\InterfaceImplementation\HelloWorld
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringPadRight.cmd_5060]
-RelativePath=CoreMangLib\cti\system\string\StringPadRight\StringPadRight.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringPadRight
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1268.cmd_5061]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1268\Generated1268\Generated1268.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1268\Generated1268
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalCtor2.cmd_5079]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalCtor2\DecimalCtor2.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalCtor2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Int_Xor_Op_cs_r.cmd_5080]
RelativePath=JIT\Directed\cmov\Int_Xor_Op_cs_r\Int_Xor_Op_cs_r.cmd
WorkingDir=JIT\Directed\cmov\Int_Xor_Op_cs_r
Categories=EXPECTED_PASS
HostStyle=0
-[SingleToInt64.cmd_5096]
-RelativePath=CoreMangLib\cti\system\single\SingleToInt64\SingleToInt64.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleToInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b48350.cmd_5097]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M11-Beta1\b48350\b48350\b48350.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M11-Beta1\b48350\b48350
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[SByteIConvertibleToUInt64.cmd_5099]
-RelativePath=CoreMangLib\cti\system\sbyte\SByteIConvertibleToUInt64\SByteIConvertibleToUInt64.cmd
-WorkingDir=CoreMangLib\cti\system\sbyte\SByteIConvertibleToUInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Call_instance01_do.cmd_5100]
RelativePath=JIT\Generics\Constraints\Call_instance01_do\Call_instance01_do.cmd
WorkingDir=JIT\Generics\Constraints\Call_instance01_do
Categories=EXPECTED_PASS
HostStyle=0
-[CharEnumeratorCurrent.cmd_5113]
-RelativePath=CoreMangLib\cti\system\charenumerator\CharEnumeratorCurrent\CharEnumeratorCurrent.cmd
-WorkingDir=CoreMangLib\cti\system\charenumerator\CharEnumeratorCurrent
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1260.cmd_5114]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1260\Generated1260\Generated1260.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1260\Generated1260
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalMaxValue.cmd_5145]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalMaxValue\DecimalMaxValue.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalMaxValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_il_relhan3.cmd_5146]
RelativePath=JIT\Methodical\VT\etc\_il_relhan3\_il_relhan3.cmd
WorkingDir=JIT\Methodical\VT\etc\_il_relhan3
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[AssemblyDelaySignAttributeCtor.cmd_5159]
-RelativePath=CoreMangLib\cti\system\reflection\assemblydelaysignattribute\AssemblyDelaySignAttributeCtor\AssemblyDelaySignAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblydelaysignattribute\AssemblyDelaySignAttributeCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Double_And_Op_cs_r.cmd_5160]
RelativePath=JIT\Directed\cmov\Double_And_Op_cs_r\Double_And_Op_cs_r.cmd
WorkingDir=JIT\Directed\cmov\Double_And_Op_cs_r
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt64IConvertibleToUInt16.cmd_5168]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64IConvertibleToUInt16\UInt64IConvertibleToUInt16.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64IConvertibleToUInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[class_instance01.cmd_5169]
RelativePath=JIT\Generics\MemberAccess\class_instance01\class_instance01.cmd
WorkingDir=JIT\Generics\MemberAccess\class_instance01
Categories=EXPECTED_PASS
HostStyle=0
-[DecimalToDateTime.cmd_5175]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToDateTime\DecimalToDateTime.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToDateTime
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b43958.cmd_5176]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M11-Beta1\b43958\b43958\b43958.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M11-Beta1\b43958\b43958
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringPadLeft2.cmd_5181]
-RelativePath=CoreMangLib\cti\system\string\StringPadLeft2\StringPadLeft2.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringPadLeft2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[NestedInterface02.cmd_5182]
RelativePath=Loader\classloader\generics\Instantiation\Positive\NestedInterface02\NestedInterface02.cmd
WorkingDir=Loader\classloader\generics\Instantiation\Positive\NestedInterface02
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ConstructorInfoTypeConstructorName.cmd_5205]
-RelativePath=CoreMangLib\cti\system\reflection\constructorinfo\ConstructorInfoTypeConstructorName\ConstructorInfoTypeConstructorName.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\constructorinfo\ConstructorInfoTypeConstructorName
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b44657.cmd_5206]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M11-Beta1\b44657\b44657\b44657.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M11-Beta1\b44657\b44657
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[SingleToUInt16.cmd_5249]
-RelativePath=CoreMangLib\cti\system\single\SingleToUInt16\SingleToUInt16.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleToUInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated595.cmd_5250]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest595\Generated595\Generated595.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest595\Generated595
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ByteIConvertibleToUInt32.cmd_5289]
-RelativePath=CoreMangLib\cti\system\byte\ByteIConvertibleToUInt32\ByteIConvertibleToUInt32.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteIConvertibleToUInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[trybodyinbetweencatchhandlers_d.cmd_5290]
RelativePath=JIT\Methodical\eh\disconnected\trybodyinbetweencatchhandlers_d\trybodyinbetweencatchhandlers_d.cmd
WorkingDir=JIT\Methodical\eh\disconnected\trybodyinbetweencatchhandlers_d
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringIndexOf10.cmd_5322]
-RelativePath=CoreMangLib\cti\system\string\StringIndexOf10\StringIndexOf10.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringIndexOf10
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Target.cmd_5323]
RelativePath=GC\API\GCHandle\Target\Target.cmd
WorkingDir=GC\API\GCHandle\Target
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalCtor1.cmd_5329]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalCtor1\DecimalCtor1.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalCtor1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated162.cmd_5330]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest162\Generated162\Generated162.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest162\Generated162
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt16IConvertibleToInt64.cmd_5338]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16IConvertibleToInt64\UInt16IConvertibleToInt64.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16IConvertibleToInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[RMV-2-13-26-two.cmd_5339]
RelativePath=Loader\classloader\rmv\il\RMV-2-13-26-two\RMV-2-13-26-two.cmd
WorkingDir=Loader\classloader\rmv\il\RMV-2-13-26-two
Categories=EXPECTED_PASS
HostStyle=0
-[ConditionalAttributeConditionString.cmd_5345]
-RelativePath=CoreMangLib\cti\system\diagnostics\conditionalattribute\ConditionalAttributeConditionString\ConditionalAttributeConditionString.cmd
-WorkingDir=CoreMangLib\cti\system\diagnostics\conditionalattribute\ConditionalAttributeConditionString
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[box-unbox-null019.cmd_5346]
RelativePath=JIT\jit64\valuetypes\nullable\box-unbox\null\box-unbox-null019\box-unbox-null019.cmd
WorkingDir=JIT\jit64\valuetypes\nullable\box-unbox\null\box-unbox-null019
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ObjectMemberwiseClone.cmd_5350]
-RelativePath=CoreMangLib\cti\system\object\ObjectMemberwiseClone\ObjectMemberwiseClone.cmd
-WorkingDir=CoreMangLib\cti\system\object\ObjectMemberwiseClone
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[GThread17.cmd_5351]
RelativePath=baseservices\threading\generics\syncdelegate\GThread17\GThread17.cmd
WorkingDir=baseservices\threading\generics\syncdelegate\GThread17
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt16IConvertibleToSByte.cmd_5389]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16IConvertibleToSByte\UInt16IConvertibleToSByte.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16IConvertibleToSByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b28806.cmd_5390]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M09.5-PDC\b28806\b28806\b28806.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M09.5-PDC\b28806\b28806
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[SingleIsNegativeInfinity.cmd_5441]
-RelativePath=CoreMangLib\cti\system\single\SingleIsNegativeInfinity\SingleIsNegativeInfinity.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleIsNegativeInfinity
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated502.cmd_5442]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest502\Generated502\Generated502.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest502\Generated502
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DoubleEquals2.cmd_5466]
-RelativePath=CoreMangLib\cti\system\double\DoubleEquals2\DoubleEquals2.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleEquals2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[HugeArray1.cmd_5467]
RelativePath=JIT\jit64\opt\cse\HugeArray1\HugeArray1.cmd
WorkingDir=JIT\jit64\opt\cse\HugeArray1
Categories=EXPECTED_PASS
HostStyle=0
-[Int16Equals2.cmd_5506]
-RelativePath=CoreMangLib\cti\system\int16\Int16Equals2\Int16Equals2.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16Equals2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1226.cmd_5507]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1226\Generated1226\Generated1226.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1226\Generated1226
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int32IConvertibleToSByte.cmd_5510]
-RelativePath=CoreMangLib\cti\system\int\Int32IConvertibleToSByte\Int32IConvertibleToSByte.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32IConvertibleToSByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b43719.cmd_5511]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M11-Beta1\b43719\b43719\b43719.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M11-Beta1\b43719\b43719
Categories=EXPECTED_PASS
HostStyle=0
-[Int32ToString3.cmd_5513]
-RelativePath=CoreMangLib\cti\system\int\Int32ToString3\Int32ToString3.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32ToString3
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[throwtest.cmd_5514]
RelativePath=JIT\opt\Inline\tests\throwtest\throwtest.cmd
WorkingDir=JIT\opt\Inline\tests\throwtest
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalMinusOne.cmd_5557]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalMinusOne\DecimalMinusOne.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalMinusOne
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[DevDiv_142976.cmd_5559]
RelativePath=JIT\Regression\JitBlue\DevDiv_142976\DevDiv_142976\DevDiv_142976.cmd
WorkingDir=JIT\Regression\JitBlue\DevDiv_142976\DevDiv_142976
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[SingleToInt16.cmd_5612]
-RelativePath=CoreMangLib\cti\system\single\SingleToInt16\SingleToInt16.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleToInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b31452.cmd_5613]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b31452\b31452\b31452.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b31452\b31452
Categories=EXPECTED_PASS
HostStyle=0
-[UInt16IConvertibleToUInt32.cmd_5629]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16IConvertibleToUInt32\UInt16IConvertibleToUInt32.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16IConvertibleToUInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated20.cmd_5631]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest20\Generated20\Generated20.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest20\Generated20
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int32IConvertibleToInt64.cmd_5673]
-RelativePath=CoreMangLib\cti\system\int\Int32IConvertibleToInt64\Int32IConvertibleToInt64.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32IConvertibleToInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[assemname_cs_ro.cmd_5675]
RelativePath=JIT\Methodical\cctor\misc\assemname_cs_ro\assemname_cs_ro.cmd
WorkingDir=JIT\Methodical\cctor\misc\assemname_cs_ro
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ObjectGetHashCode.cmd_5682]
-RelativePath=CoreMangLib\cti\system\object\ObjectGetHashCode\ObjectGetHashCode.cmd
-WorkingDir=CoreMangLib\cti\system\object\ObjectGetHashCode
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[hfa_sf0C_r.cmd_5683]
RelativePath=JIT\jit64\hfa\main\testC\hfa_sf0C_r\hfa_sf0C_r.cmd
WorkingDir=JIT\jit64\hfa\main\testC\hfa_sf0C_r
Categories=EXPECTED_PASS
HostStyle=0
-[AssemblyKeyNameAttributeKeyName.cmd_5720]
-RelativePath=CoreMangLib\cti\system\reflection\assemblykeynameattribute\AssemblyKeyNameAttributeKeyName\AssemblyKeyNameAttributeKeyName.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblykeynameattribute\AssemblyKeyNameAttributeKeyName
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[struct03.cmd_5721]
RelativePath=JIT\Generics\Instantiation\Structs\struct03\struct03.cmd
WorkingDir=JIT\Generics\Instantiation\Structs\struct03
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharIsWhiteSpace2.cmd_5743]
-RelativePath=CoreMangLib\cti\system\char\CharIsWhiteSpace2\CharIsWhiteSpace2.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsWhiteSpace2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_il_reltailcall.cmd_5744]
RelativePath=JIT\Methodical\Boxing\boxunbox\_il_reltailcall\_il_reltailcall.cmd
WorkingDir=JIT\Methodical\Boxing\boxunbox\_il_reltailcall
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[MarshalAsAttributeValue.cmd_5758]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeValue\MarshalAsAttributeValue.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[box-unbox-generics031.cmd_5759]
RelativePath=JIT\jit64\valuetypes\nullable\box-unbox\generics\box-unbox-generics031\box-unbox-generics031.cmd
WorkingDir=JIT\jit64\valuetypes\nullable\box-unbox\generics\box-unbox-generics031
Categories=EXPECTED_PASS
HostStyle=0
-[DecimalConstantAttributeCtor.cmd_5769]
-RelativePath=CoreMangLib\cti\system\runtime\decimalconstantattribute\DecimalConstantAttributeCtor\DecimalConstantAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\decimalconstantattribute\DecimalConstantAttributeCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated522.cmd_5770]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest522\Generated522\Generated522.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest522\Generated522
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[AssemblyDefaultAliasAttribute.cmd_5779]
-RelativePath=CoreMangLib\cti\system\reflection\assemblydefaultaliasattribute\AssemblyDefaultAliasAttribute\AssemblyDefaultAliasAttribute.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblydefaultaliasattribute\AssemblyDefaultAliasAttribute
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[CgStress1_ro.cmd_5780]
RelativePath=JIT\jit64\opt\cg\cgstress\CgStress1_ro\CgStress1_ro.cmd
WorkingDir=JIT\jit64\opt\cg\cgstress\CgStress1_ro
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[SByteIConvertibleToDecimal.cmd_5813]
-RelativePath=CoreMangLib\cti\system\sbyte\SByteIConvertibleToDecimal\SByteIConvertibleToDecimal.cmd
-WorkingDir=CoreMangLib\cti\system\sbyte\SByteIConvertibleToDecimal
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b30905.cmd_5814]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M09.5-PDC\b30905\b30905\b30905.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M09.5-PDC\b30905\b30905
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[IConvertibleToInt16.cmd_5823]
-RelativePath=CoreMangLib\cti\system\iconvertible\IConvertibleToInt16\IConvertibleToInt16.cmd
-WorkingDir=CoreMangLib\cti\system\iconvertible\IConvertibleToInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[rethrowincatchnestedinfinally_ro.cmd_5824]
RelativePath=JIT\Methodical\eh\nested\general\rethrowincatchnestedinfinally_ro\rethrowincatchnestedinfinally_ro.cmd
WorkingDir=JIT\Methodical\eh\nested\general\rethrowincatchnestedinfinally_ro
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DoubleIConvertibleToDateTime.cmd_5830]
-RelativePath=CoreMangLib\cti\system\double\DoubleIConvertibleToDateTime\DoubleIConvertibleToDateTime.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleIConvertibleToDateTime
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
-[UInt64IConvertibleToInt32.cmd_5831]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64IConvertibleToInt32\UInt64IConvertibleToInt32.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64IConvertibleToInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b16382.cmd_5832]
RelativePath=JIT\Regression\CLR-x86-JIT\V1.2-M01\b16382\b16382\b16382.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1.2-M01\b16382\b16382
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[IConvertibleToInt32.cmd_5840]
-RelativePath=CoreMangLib\cti\system\iconvertible\IConvertibleToInt32\IConvertibleToInt32.cmd
-WorkingDir=CoreMangLib\cti\system\iconvertible\IConvertibleToInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1445.cmd_5841]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1445\Generated1445\Generated1445.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1445\Generated1445
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalToUInt16.cmd_5871]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToUInt16\DecimalToUInt16.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToUInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[method001g.cmd_5872]
RelativePath=Loader\classloader\generics\GenericMethods\method001g\method001g.cmd
WorkingDir=Loader\classloader\generics\GenericMethods\method001g
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int16MinValue.cmd_5891]
-RelativePath=CoreMangLib\cti\system\int16\Int16MinValue\Int16MinValue.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16MinValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[castclass038.cmd_5892]
RelativePath=JIT\jit64\valuetypes\nullable\castclass\castclass\castclass038\castclass038.cmd
WorkingDir=JIT\jit64\valuetypes\nullable\castclass\castclass\castclass038
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharIsLetterOrDigit1.cmd_5895]
-RelativePath=CoreMangLib\cti\system\char\CharIsLetterOrDigit1\CharIsLetterOrDigit1.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsLetterOrDigit1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[preemptive_cooperative.cmd_5896]
RelativePath=JIT\Directed\pinvoke\preemptive_cooperative\preemptive_cooperative.cmd
WorkingDir=JIT\Directed\pinvoke\preemptive_cooperative
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt32IConvertibleToBoolean.cmd_5926]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32IConvertibleToBoolean\UInt32IConvertibleToBoolean.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32IConvertibleToBoolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[boxunboxinterface_r.cmd_5927]
RelativePath=JIT\Directed\nullabletypes\boxunboxinterface_r\boxunboxinterface_r.cmd
WorkingDir=JIT\Directed\nullabletypes\boxunboxinterface_r
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt64IConvertibleToDecimal.cmd_5938]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64IConvertibleToDecimal\UInt64IConvertibleToDecimal.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64IConvertibleToDecimal
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_relhan3.cmd_5939]
RelativePath=JIT\Methodical\VT\etc\_relhan3\_relhan3.cmd
WorkingDir=JIT\Methodical\VT\etc\_relhan3
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int16IConvertibleToUInt16.cmd_5944]
-RelativePath=CoreMangLib\cti\system\int16\Int16IConvertibleToUInt16\Int16IConvertibleToUInt16.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16IConvertibleToUInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[regression_749068.cmd_5945]
RelativePath=baseservices\threading\threadpool\unregister\regression_749068\regression_749068.cmd
WorkingDir=baseservices\threading\threadpool\unregister\regression_749068
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int64IConvertibleToType.cmd_5955]
-RelativePath=CoreMangLib\cti\system\int64\Int64IConvertibleToType\Int64IConvertibleToType.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64IConvertibleToType
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[castclass-generics005.cmd_5956]
RelativePath=JIT\jit64\valuetypes\nullable\castclass\generics\castclass-generics005\castclass-generics005.cmd
WorkingDir=JIT\jit64\valuetypes\nullable\castclass\generics\castclass-generics005
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalCtor8.cmd_5968]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalCtor8\DecimalCtor8.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalCtor8
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[BoxUnbox_r.cmd_5969]
RelativePath=JIT\SIMD\BoxUnbox_r\BoxUnbox_r.cmd
WorkingDir=JIT\SIMD\BoxUnbox_r
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[PreserveSigAttributeCtor.cmd_5986]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\preservesigattribute\PreserveSigAttributeCtor\PreserveSigAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\preservesigattribute\PreserveSigAttributeCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1275.cmd_5987]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1275\Generated1275\Generated1275.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1275\Generated1275
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalNegate.cmd_6032]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalNegate\DecimalNegate.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalNegate
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated965.cmd_6033]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest965\Generated965\Generated965.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest965\Generated965
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[GCHandleFree_PSC.cmd_6067]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\gchandle\GCHandleFree_PSC\GCHandleFree_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\gchandle\GCHandleFree_PSC
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b35348.cmd_6070]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b35348\b35348\b35348.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b35348\b35348
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt64GetHashCode.cmd_6108]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64GetHashCode\UInt64GetHashCode.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64GetHashCode
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[nestedTryRegionsWithSameOffset3.cmd_6109]
RelativePath=JIT\jit64\eh\FinallyExec\nestedTryRegionsWithSameOffset3\nestedTryRegionsWithSameOffset3.cmd
WorkingDir=JIT\jit64\eh\FinallyExec\nestedTryRegionsWithSameOffset3
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ConditionalAttributeCtor.cmd_6144]
-RelativePath=CoreMangLib\cti\system\diagnostics\conditionalattribute\ConditionalAttributeCtor\ConditionalAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\diagnostics\conditionalattribute\ConditionalAttributeCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[test9.cmd_6145]
RelativePath=Loader\classloader\explicitlayout\Regressions\ASURT\ASURT150271\test9\test9.cmd
WorkingDir=Loader\classloader\explicitlayout\Regressions\ASURT\ASURT150271\test9
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DoubleNegativeInfinity.cmd_6174]
-RelativePath=CoreMangLib\cti\system\double\DoubleNegativeInfinity\DoubleNegativeInfinity.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleNegativeInfinity
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[HugeArray.cmd_6175]
RelativePath=JIT\jit64\opt\cse\HugeArray\HugeArray.cmd
WorkingDir=JIT\jit64\opt\cse\HugeArray
Categories=EXPECTED_PASS
HostStyle=0
-[Int64IConvertibleToDateTime.cmd_6178]
-RelativePath=CoreMangLib\cti\system\int64\Int64IConvertibleToDateTime\Int64IConvertibleToDateTime.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64IConvertibleToDateTime
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[uint8_cs_do.cmd_6179]
RelativePath=JIT\Directed\shift\uint8_cs_do\uint8_cs_do.cmd
WorkingDir=JIT\Directed\shift\uint8_cs_do
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringPadRight2.cmd_6186]
-RelativePath=CoreMangLib\cti\system\string\StringPadRight2\StringPadRight2.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringPadRight2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[calli2_il_r.cmd_6187]
RelativePath=JIT\Directed\coverage\importer\Desktop\calli2_il_r\calli2_il_r.cmd
WorkingDir=JIT\Directed\coverage\importer\Desktop\calli2_il_r
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharIsLower2.cmd_6203]
-RelativePath=CoreMangLib\cti\system\char\CharIsLower2\CharIsLower2.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsLower2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[try-catch06.cmd_6204]
RelativePath=baseservices\exceptions\generics\try-catch06\try-catch06.cmd
WorkingDir=baseservices\exceptions\generics\try-catch06
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ByteIConvertibleToChar.cmd_6231]
-RelativePath=CoreMangLib\cti\system\byte\ByteIConvertibleToChar\ByteIConvertibleToChar.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteIConvertibleToChar
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[ldc_mul_ovf_i4.cmd_6232]
RelativePath=JIT\IL_Conformance\Old\Conformance_Base\ldc_mul_ovf_i4\ldc_mul_ovf_i4.cmd
WorkingDir=JIT\IL_Conformance\Old\Conformance_Base\ldc_mul_ovf_i4
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharIConvertibleToBoolean.cmd_6247]
-RelativePath=CoreMangLib\cti\system\char\CharIConvertibleToBoolean\CharIConvertibleToBoolean.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIConvertibleToBoolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[ldarga_ref.cmd_6248]
RelativePath=JIT\IL_Conformance\Old\Conformance_Base\ldarga_ref\ldarga_ref.cmd
WorkingDir=JIT\IL_Conformance\Old\Conformance_Base\ldarga_ref
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt32IConvertibleToUInt32.cmd_6281]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32IConvertibleToUInt32\UInt32IConvertibleToUInt32.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32IConvertibleToUInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[CgStress3_r.cmd_6282]
RelativePath=JIT\jit64\opt\cg\cgstress\CgStress3_r\CgStress3_r.cmd
WorkingDir=JIT\jit64\opt\cg\cgstress\CgStress3_r
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[AssemblyDescriptionAttributeDescription.cmd_6302]
-RelativePath=CoreMangLib\cti\system\reflection\assemblydescriptionattribute\AssemblyDescriptionAttributeDescription\AssemblyDescriptionAttributeDescription.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblydescriptionattribute\AssemblyDescriptionAttributeDescription
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[thread12.cmd_6303]
RelativePath=baseservices\threading\generics\WaitCallback\thread12\thread12.cmd
WorkingDir=baseservices\threading\generics\WaitCallback\thread12
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DefaultMemberAttributeMemberName.cmd_6309]
-RelativePath=CoreMangLib\cti\system\reflection\defaultmemberattribute\DefaultMemberAttributeMemberName\DefaultMemberAttributeMemberName.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\defaultmemberattribute\DefaultMemberAttributeMemberName
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[hfa_sd2C_r.cmd_6310]
RelativePath=JIT\jit64\hfa\main\testC\hfa_sd2C_r\hfa_sd2C_r.cmd
WorkingDir=JIT\jit64\hfa\main\testC\hfa_sd2C_r
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalToInt16.cmd_6312]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToInt16\DecimalToInt16.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[dev11_20929_do.cmd_6313]
RelativePath=JIT\Regression\Dev11\dev11_20929\dev11_20929_do\dev11_20929_do.cmd
WorkingDir=JIT\Regression\Dev11\dev11_20929\dev11_20929_do
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[BooleanIConvertibleToInt64.cmd_6331]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanIConvertibleToInt64\BooleanIConvertibleToInt64.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanIConvertibleToInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[expl_funcptr_val_d.cmd_6332]
RelativePath=JIT\Methodical\explicit\funcptr\expl_funcptr_val_d\expl_funcptr_val_d.cmd
WorkingDir=JIT\Methodical\explicit\funcptr\expl_funcptr_val_d
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalEquals2.cmd_6341]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalEquals2\DecimalEquals2.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalEquals2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[classarr_cs_r.cmd_6342]
RelativePath=JIT\Methodical\MDArray\GaussJordan\classarr_cs_r\classarr_cs_r.cmd
WorkingDir=JIT\Methodical\MDArray\GaussJordan\classarr_cs_r
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringConcat6.cmd_6349]
-RelativePath=CoreMangLib\cti\system\string\StringConcat6\StringConcat6.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringConcat6
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated914.cmd_6350]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest914\Generated914\Generated914.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest914\Generated914
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringGetHashCode.cmd_6406]
-RelativePath=CoreMangLib\cti\system\string\StringGetHashCode\StringGetHashCode.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringGetHashCode
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[box-unbox038.cmd_6407]
RelativePath=JIT\jit64\valuetypes\nullable\box-unbox\box-unbox\box-unbox038\box-unbox038.cmd
WorkingDir=JIT\jit64\valuetypes\nullable\box-unbox\box-unbox\box-unbox038
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ByteEquals1.cmd_6447]
-RelativePath=CoreMangLib\cti\system\byte\ByteEquals1\ByteEquals1.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteEquals1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[castclass-generics012.cmd_6448]
RelativePath=JIT\jit64\valuetypes\nullable\castclass\generics\castclass-generics012\castclass-generics012.cmd
WorkingDir=JIT\jit64\valuetypes\nullable\castclass\generics\castclass-generics012
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[IConvertibleToBoolean.cmd_6454]
-RelativePath=CoreMangLib\cti\system\iconvertible\IConvertibleToBoolean\IConvertibleToBoolean.cmd
-WorkingDir=CoreMangLib\cti\system\iconvertible\IConvertibleToBoolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[test.cmd_6455]
RelativePath=Regressions\coreclr\0487\test\test.cmd
WorkingDir=Regressions\coreclr\0487\test
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[IConvertibleToDecimal.cmd_6464]
-RelativePath=CoreMangLib\cti\system\iconvertible\IConvertibleToDecimal\IConvertibleToDecimal.cmd
-WorkingDir=CoreMangLib\cti\system\iconvertible\IConvertibleToDecimal
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
-[StringIsNullOrEmpty.cmd_6465]
-RelativePath=CoreMangLib\cti\system\string\StringIsNullOrEmpty\StringIsNullOrEmpty.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringIsNullOrEmpty
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[GCSimulator_249.cmd_6466]
RelativePath=GC\Scenarios\GCSimulator\GCSimulator_249\GCSimulator_249.cmd
WorkingDir=GC\Scenarios\GCSimulator\GCSimulator_249
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[GCHandleAlloc1_PSC.cmd_6518]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\gchandle\GCHandleAlloc1_PSC\GCHandleAlloc1_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\gchandle\GCHandleAlloc1_PSC
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[GCSimulator_80.cmd_6519]
RelativePath=GC\Scenarios\GCSimulator\GCSimulator_80\GCSimulator_80.cmd
WorkingDir=GC\Scenarios\GCSimulator\GCSimulator_80
Categories=EXPECTED_PASS
HostStyle=0
-[UInt16IConvertibleToSingle.cmd_6532]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16IConvertibleToSingle\UInt16IConvertibleToSingle.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16IConvertibleToSingle
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[seq_funcptr_val_r.cmd_6533]
RelativePath=JIT\Methodical\explicit\funcptr\seq_funcptr_val_r\seq_funcptr_val_r.cmd
WorkingDir=JIT\Methodical\explicit\funcptr\seq_funcptr_val_r
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringIConvertibleToUInt32.cmd_6540]
-RelativePath=CoreMangLib\cti\system\string\StringIConvertibleToUInt32\StringIConvertibleToUInt32.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringIConvertibleToUInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[am05waitanymutex.cmd_6541]
RelativePath=baseservices\threading\mutex\abandonedmutex\am05waitanymutex\am05waitanymutex.cmd
WorkingDir=baseservices\threading\mutex\abandonedmutex\am05waitanymutex
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int64IConvertibleToInt16.cmd_6543]
-RelativePath=CoreMangLib\cti\system\int64\Int64IConvertibleToInt16\Int64IConvertibleToInt16.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64IConvertibleToInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b71869.cmd_6544]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b71869\b71869\b71869.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b71869\b71869
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[SByteIConvertibleToDouble.cmd_6581]
-RelativePath=CoreMangLib\cti\system\sbyte\SByteIConvertibleToDouble\SByteIConvertibleToDouble.cmd
-WorkingDir=CoreMangLib\cti\system\sbyte\SByteIConvertibleToDouble
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[clt_i8.cmd_6582]
RelativePath=JIT\IL_Conformance\Old\Conformance_Base\clt_i8\clt_i8.cmd
WorkingDir=JIT\IL_Conformance\Old\Conformance_Base\clt_i8
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharIConvertibleToUInt64.cmd_6592]
-RelativePath=CoreMangLib\cti\system\char\CharIConvertibleToUInt64\CharIConvertibleToUInt64.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIConvertibleToUInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1068.cmd_6593]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1068\Generated1068\Generated1068.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1068\Generated1068
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ByteGetHashCode.cmd_6598]
-RelativePath=CoreMangLib\cti\system\byte\ByteGetHashCode\ByteGetHashCode.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteGetHashCode
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[test.cmd_6599]
RelativePath=JIT\jit64\regress\vsw\543229\test\test.cmd
WorkingDir=JIT\jit64\regress\vsw\543229\test
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[BooleanIConvertibleToSByte.cmd_6606]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanIConvertibleToSByte\BooleanIConvertibleToSByte.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanIConvertibleToSByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[TestCase0_Nested_I.cmd_6607]
RelativePath=Loader\classloader\InterfaceFolding\TestCase0_Nested_I\TestCase0_Nested_I.cmd
WorkingDir=Loader\classloader\InterfaceFolding\TestCase0_Nested_I
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalToByte.cmd_6611]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToByte\DecimalToByte.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToByte
-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
Categories=EXPECTED_PASS
HostStyle=0
-[MarshalAsAttributeMarshalType.cmd_6618]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeMarshalType\MarshalAsAttributeMarshalType.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeMarshalType
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[LocallocCnstB1_PSP.cmd_6619]
RelativePath=JIT\CodeGenBringUpTests\LocallocCnstB1_PSP_ro\LocallocCnstB1_PSP_ro.cmd
WorkingDir=JIT\CodeGenBringUpTests\LocallocCnstB1_PSP_ro
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int16IConvertibleToInt32.cmd_6741]
-RelativePath=CoreMangLib\cti\system\int16\Int16IConvertibleToInt32\Int16IConvertibleToInt32.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16IConvertibleToInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Eq1.cmd_6742]
RelativePath=JIT\CodeGenBringUpTests\Eq1_ro\Eq1_ro.cmd
WorkingDir=JIT\CodeGenBringUpTests\Eq1_ro
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DoubleMinValue.cmd_6772]
-RelativePath=CoreMangLib\cti\system\double\DoubleMinValue\DoubleMinValue.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleMinValue
-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
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalToString4.cmd_6794]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToString4\DecimalToString4.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToString4
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[ThreadStartLong_2.cmd_6796]
RelativePath=baseservices\threading\paramthreadstart\ThreadStartLong_2\ThreadStartLong_2.cmd
WorkingDir=baseservices\threading\paramthreadstart\ThreadStartLong_2
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharIsSurrogatePair2.cmd_6829]
-RelativePath=CoreMangLib\cti\system\char\CharIsSurrogatePair2\CharIsSurrogatePair2.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsSurrogatePair2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[tryfinallytrycatch_do.cmd_6832]
RelativePath=JIT\Methodical\eh\basics\tryfinallytrycatch_do\tryfinallytrycatch_do.cmd
WorkingDir=JIT\Methodical\eh\basics\tryfinallytrycatch_do
Categories=EXPECTED_PASS
HostStyle=0
-[AssemblyNameGetPublicKeyToken.cmd_6849]
-RelativePath=CoreMangLib\cti\system\reflection\assemblyname\AssemblyNameGetPublicKeyToken\AssemblyNameGetPublicKeyToken.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblyname\AssemblyNameGetPublicKeyToken
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[castclass-null017.cmd_6850]
RelativePath=JIT\jit64\valuetypes\nullable\castclass\null\castclass-null017\castclass-null017.cmd
WorkingDir=JIT\jit64\valuetypes\nullable\castclass\null\castclass-null017
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DoubleIsPositiveInfinity.cmd_6851]
-RelativePath=CoreMangLib\cti\system\double\DoubleIsPositiveInfinity\DoubleIsPositiveInfinity.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleIsPositiveInfinity
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1123.cmd_6852]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1123\Generated1123\Generated1123.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1123\Generated1123
Categories=EXPECTED_PASS
HostStyle=0
-[BooleanFalseString.cmd_6861]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanFalseString\BooleanFalseString.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanFalseString
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[ArrayMD2.cmd_6862]
RelativePath=JIT\CodeGenBringUpTests\ArrayMD2_ro\ArrayMD2_ro.cmd
WorkingDir=JIT\CodeGenBringUpTests\ArrayMD2_ro
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringRemove2.cmd_6871]
-RelativePath=CoreMangLib\cti\system\string\StringRemove2\StringRemove2.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringRemove2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1477.cmd_6872]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1477\Generated1477\Generated1477.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1477\Generated1477
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[FixedBufferAttributeLength.cmd_6881]
-RelativePath=CoreMangLib\cti\system\runtime\fixedbufferattribute\FixedBufferAttributeLength\FixedBufferAttributeLength.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\fixedbufferattribute\FixedBufferAttributeLength
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated171.cmd_6882]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest171\Generated171\Generated171.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest171\Generated171
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[BooleanIConvertibleToByte.cmd_6897]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanIConvertibleToByte\BooleanIConvertibleToByte.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanIConvertibleToByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[object-pin.cmd_6899]
RelativePath=JIT\Directed\pinning\object-pin\object-pin\object-pin.cmd
WorkingDir=JIT\Directed\pinning\object-pin\object-pin
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CustomConstantAttributector.cmd_6911]
-RelativePath=CoreMangLib\cti\system\runtime\compilerservices\customconstantattribute\CustomConstantAttributector\CustomConstantAttributector.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\compilerservices\customconstantattribute\CustomConstantAttributector
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[structfp1_2.cmd_6912]
RelativePath=JIT\jit64\gc\misc\structfp1_2\structfp1_2.cmd
WorkingDir=JIT\jit64\gc\misc\structfp1_2
Categories=EXPECTED_PASS
HostStyle=0
-[CharEquals2.cmd_6919]
-RelativePath=CoreMangLib\cti\system\char\CharEquals2\CharEquals2.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharEquals2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[ldftn.cmd_6920]
RelativePath=JIT\IL_Conformance\Old\Conformance_Base\ldftn\ldftn.cmd
WorkingDir=JIT\IL_Conformance\Old\Conformance_Base\ldftn
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt64IConvertibleToUInt64.cmd_6935]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64IConvertibleToUInt64\UInt64IConvertibleToUInt64.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64IConvertibleToUInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[bug595776.cmd_6936]
RelativePath=JIT\opt\Inline\regression\bug595776\bug595776\bug595776.cmd
WorkingDir=JIT\opt\Inline\regression\bug595776\bug595776
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[SByteMaxValue.cmd_7020]
-RelativePath=CoreMangLib\cti\system\sbyte\SByteMaxValue\SByteMaxValue.cmd
-WorkingDir=CoreMangLib\cti\system\sbyte\SByteMaxValue
-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
Categories=EXPECTED_PASS
HostStyle=0
-[DoubleIConvertibleToByte.cmd_7024]
-RelativePath=CoreMangLib\cti\system\double\DoubleIConvertibleToByte\DoubleIConvertibleToByte.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleIConvertibleToByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[eh12_large.cmd_7026]
RelativePath=JIT\jit64\localloc\ehverify\eh12_large\eh12_large.cmd
WorkingDir=JIT\jit64\localloc\ehverify\eh12_large
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalMultiply.cmd_7033]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalMultiply\DecimalMultiply.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalMultiply
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[DevDiv_278369.cmd_7034]
RelativePath=JIT\Regression\JitBlue\DevDiv_278369\DevDiv_278369\DevDiv_278369.cmd
WorkingDir=JIT\Regression\JitBlue\DevDiv_278369\DevDiv_278369
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[BooleanEquals_Object.cmd_7080]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanEquals_Object\BooleanEquals_Object.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanEquals_Object
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[VolatileTest_op_mul.cmd_7081]
RelativePath=JIT\jit64\opt\cse\VolatileTest_op_mul\VolatileTest_op_mul.cmd
WorkingDir=JIT\jit64\opt\cse\VolatileTest_op_mul
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[TargetParameterCountExceptionCtor2.cmd_7112]
-RelativePath=CoreMangLib\cti\system\reflection\targetparametercountexception\TargetParameterCountExceptionCtor2\TargetParameterCountExceptionCtor2.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\targetparametercountexception\TargetParameterCountExceptionCtor2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_dbgrefarg_i1.cmd_7113]
RelativePath=JIT\Methodical\explicit\basic\_dbgrefarg_i1\_dbgrefarg_i1.cmd
WorkingDir=JIT\Methodical\explicit\basic\_dbgrefarg_i1
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ObjectCtor.cmd_7116]
-RelativePath=CoreMangLib\cti\system\object\ObjectCtor\ObjectCtor.cmd
-WorkingDir=CoreMangLib\cti\system\object\ObjectCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b589202.cmd_7117]
RelativePath=JIT\Regression\CLR-x86-JIT\v2.1\b589202\b589202\b589202.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\v2.1\b589202\b589202
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt64IConvertibleToChar.cmd_7124]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64IConvertibleToChar\UInt64IConvertibleToChar.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64IConvertibleToChar
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
-[TimeOutInfinite.cmd_7125]
-RelativePath=CoreMangLib\cti\system\threading\timeout\TimeOutInfinite\TimeOutInfinite.cmd
-WorkingDir=CoreMangLib\cti\system\threading\timeout\TimeOutInfinite
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[structfp1_6.cmd_7126]
RelativePath=JIT\jit64\gc\misc\structfp1_6\structfp1_6.cmd
WorkingDir=JIT\jit64\gc\misc\structfp1_6
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringComparerCtor.cmd_7137]
-RelativePath=CoreMangLib\cti\system\stringcompare\StringComparerCtor\StringComparerCtor.cmd
-WorkingDir=CoreMangLib\cti\system\stringcompare\StringComparerCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[GCSimulator_95.cmd_7138]
RelativePath=GC\Scenarios\GCSimulator\GCSimulator_95\GCSimulator_95.cmd
WorkingDir=GC\Scenarios\GCSimulator\GCSimulator_95
Categories=EXPECTED_PASS
HostStyle=0
-[IVTAAssemblyName.cmd_7215]
-RelativePath=CoreMangLib\cti\system\runtime\compilerservices\internalsvisibletoattribute\IVTAAssemblyName\IVTAAssemblyName.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\compilerservices\internalsvisibletoattribute\IVTAAssemblyName
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[VectorHWAccel_ro.cmd_7217]
RelativePath=JIT\SIMD\VectorHWAccel_ro\VectorHWAccel_ro.cmd
WorkingDir=JIT\SIMD\VectorHWAccel_ro
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[SByteCompareTo2.cmd_7229]
-RelativePath=CoreMangLib\cti\system\sbyte\SByteCompareTo2\SByteCompareTo2.cmd
-WorkingDir=CoreMangLib\cti\system\sbyte\SByteCompareTo2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated296.cmd_7230]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest296\Generated296\Generated296.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest296\Generated296
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ByteMinValue.cmd_7263]
-RelativePath=CoreMangLib\cti\system\byte\ByteMinValue\ByteMinValue.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteMinValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated826.cmd_7264]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest826\Generated826\Generated826.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest826\Generated826
Categories=EXPECTED_PASS
HostStyle=0
-[UInt64IConvertibleToByte.cmd_7268]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64IConvertibleToByte\UInt64IConvertibleToByte.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64IConvertibleToByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_dbgldfld_mulovf.cmd_7269]
RelativePath=JIT\Methodical\int64\unsigned\_dbgldfld_mulovf\_dbgldfld_mulovf.cmd
WorkingDir=JIT\Methodical\int64\unsigned\_dbgldfld_mulovf
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringJoin1.cmd_7277]
-RelativePath=CoreMangLib\cti\system\string\StringJoin1\StringJoin1.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringJoin1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[ldind_ref.cmd_7278]
RelativePath=JIT\IL_Conformance\Old\Conformance_Base\ldind_ref\ldind_ref.cmd
WorkingDir=JIT\IL_Conformance\Old\Conformance_Base\ldind_ref
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int64GetHashCode.cmd_7286]
-RelativePath=CoreMangLib\cti\system\int64\Int64GetHashCode\Int64GetHashCode.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64GetHashCode
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1350.cmd_7288]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1350\Generated1350\Generated1350.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1350\Generated1350
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[AutoResetEventReSet.cmd_7292]
-RelativePath=CoreMangLib\cti\system\threading\autoresetevent\AutoResetEventReSet\AutoResetEventReSet.cmd
-WorkingDir=CoreMangLib\cti\system\threading\autoresetevent\AutoResetEventReSet
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b19112b.cmd_7293]
RelativePath=JIT\Regression\VS-ia64-JIT\V1.2-M01\b19112\b19112b\b19112b.cmd
WorkingDir=JIT\Regression\VS-ia64-JIT\V1.2-M01\b19112\b19112b
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringConcat8.cmd_7312]
-RelativePath=CoreMangLib\cti\system\string\StringConcat8\StringConcat8.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringConcat8
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[AutoResetCast1.cmd_7313]
RelativePath=baseservices\threading\events\EventWaitHandle\AutoReset\AutoResetCast1\AutoResetCast1.cmd
WorkingDir=baseservices\threading\events\EventWaitHandle\AutoReset\AutoResetCast1
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[FieldOffsetAttributeValue.cmd_7360]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\fieldoffsetattribute\FieldOffsetAttributeValue\FieldOffsetAttributeValue.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\fieldoffsetattribute\FieldOffsetAttributeValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[hfa_nd0G_r.cmd_7361]
RelativePath=JIT\jit64\hfa\main\testG\hfa_nd0G_r\hfa_nd0G_r.cmd
WorkingDir=JIT\jit64\hfa\main\testG\hfa_nd0G_r
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt32IConvertibleToDouble.cmd_7367]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32IConvertibleToDouble\UInt32IConvertibleToDouble.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32IConvertibleToDouble
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[box-unbox-value030.cmd_7368]
RelativePath=JIT\jit64\valuetypes\nullable\box-unbox\value\box-unbox-value030\box-unbox-value030.cmd
WorkingDir=JIT\jit64\valuetypes\nullable\box-unbox\value\box-unbox-value030
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int32Equals1.cmd_7392]
-RelativePath=CoreMangLib\cti\system\int\Int32Equals1\Int32Equals1.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32Equals1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[InterlockedAddInt_1.cmd_7393]
RelativePath=baseservices\threading\interlocked\add\InterlockedAddInt_1\InterlockedAddInt_1.cmd
WorkingDir=baseservices\threading\interlocked\add\InterlockedAddInt_1
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringIConvertibleToInt64.cmd_7488]
-RelativePath=CoreMangLib\cti\system\string\StringIConvertibleToInt64\StringIConvertibleToInt64.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringIConvertibleToInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[castclass-null007.cmd_7489]
RelativePath=JIT\jit64\valuetypes\nullable\castclass\null\castclass-null007\castclass-null007.cmd
WorkingDir=JIT\jit64\valuetypes\nullable\castclass\null\castclass-null007
Categories=EXPECTED_PASS
HostStyle=0
-[UInt16CompareTo1.cmd_7493]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16CompareTo1\UInt16CompareTo1.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16CompareTo1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[isinst2_r.cmd_7494]
RelativePath=JIT\Directed\nullabletypes\isinst2_r\isinst2_r.cmd
WorkingDir=JIT\Directed\nullabletypes\isinst2_r
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalToSByte.cmd_7504]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToSByte\DecimalToSByte.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToSByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_il_dbgcastclass_catch_neg.cmd_7505]
RelativePath=JIT\Methodical\casts\SEH\_il_dbgcastclass_catch_neg\_il_dbgcastclass_catch_neg.cmd
WorkingDir=JIT\Methodical\casts\SEH\_il_dbgcastclass_catch_neg
Categories=EXPECTED_PASS
HostStyle=0
-[DecimalAdd.cmd_7544]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalAdd\DecimalAdd.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalAdd
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated855.cmd_7546]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest855\Generated855\Generated855.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest855\Generated855
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int16IConvertibleToDateTime.cmd_7591]
-RelativePath=CoreMangLib\cti\system\int16\Int16IConvertibleToDateTime\Int16IConvertibleToDateTime.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16IConvertibleToDateTime
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b147816.cmd_7593]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-QFE\b147816\b147816\b147816.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-QFE\b147816\b147816
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringConcat2.cmd_7648]
-RelativePath=CoreMangLib\cti\system\string\StringConcat2\StringConcat2.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringConcat2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[ceq_i.cmd_7649]
RelativePath=JIT\IL_Conformance\Old\Conformance_Base\ceq_i\ceq_i.cmd
WorkingDir=JIT\IL_Conformance\Old\Conformance_Base\ceq_i
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt64IConvertibleToInt16.cmd_7659]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64IConvertibleToInt16\UInt64IConvertibleToInt16.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64IConvertibleToInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[int32_cs_d.cmd_7660]
RelativePath=JIT\Directed\shift\int32_cs_d\int32_cs_d.cmd
WorkingDir=JIT\Directed\shift\int32_cs_d
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[SByteIConvertibleToInt16.cmd_7689]
-RelativePath=CoreMangLib\cti\system\sbyte\SByteIConvertibleToInt16\SByteIConvertibleToInt16.cmd
-WorkingDir=CoreMangLib\cti\system\sbyte\SByteIConvertibleToInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[throwinfinally_50_ro.cmd_7690]
RelativePath=JIT\Methodical\eh\nested\nonlocalexit\throwinfinally_50_ro\throwinfinally_50_ro.cmd
WorkingDir=JIT\Methodical\eh\nested\nonlocalexit\throwinfinally_50_ro
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringCompareOrdinal1.cmd_7706]
-RelativePath=CoreMangLib\cti\system\string\StringCompareOrdinal1\StringCompareOrdinal1.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringCompareOrdinal1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[13662-simple.cmd_7707]
RelativePath=baseservices\threading\regressions\13662\13662-simple\13662-simple.cmd
WorkingDir=baseservices\threading\regressions\13662\13662-simple
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharMaxValue.cmd_7767]
-RelativePath=CoreMangLib\cti\system\char\CharMaxValue\CharMaxValue.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharMaxValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1039.cmd_7768]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1039\Generated1039\Generated1039.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1039\Generated1039
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ByteIConvertibleToType.cmd_7772]
-RelativePath=CoreMangLib\cti\system\byte\ByteIConvertibleToType\ByteIConvertibleToType.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteIConvertibleToType
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_speed_dbgcastclass_ldloc.cmd_7773]
RelativePath=JIT\Methodical\casts\coverage\_speed_dbgcastclass_ldloc\_speed_dbgcastclass_ldloc.cmd
WorkingDir=JIT\Methodical\casts\coverage\_speed_dbgcastclass_ldloc
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharEnumeratorReset.cmd_7834]
-RelativePath=CoreMangLib\cti\system\charenumerator\CharEnumeratorReset\CharEnumeratorReset.cmd
-WorkingDir=CoreMangLib\cti\system\charenumerator\CharEnumeratorReset
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[castclass-generics023.cmd_7835]
RelativePath=JIT\jit64\valuetypes\nullable\castclass\generics\castclass-generics023\castclass-generics023.cmd
WorkingDir=JIT\jit64\valuetypes\nullable\castclass\generics\castclass-generics023
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt64IConvertibleToDouble.cmd_7845]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64IConvertibleToDouble\UInt64IConvertibleToDouble.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64IConvertibleToDouble
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[ovfldiv2_il_r.cmd_7846]
RelativePath=JIT\Directed\coverage\oldtests\ovfldiv2_il_r\ovfldiv2_il_r.cmd
WorkingDir=JIT\Directed\coverage\oldtests\ovfldiv2_il_r
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[TargetParameterCountExceptionCtor1.cmd_7857]
-RelativePath=CoreMangLib\cti\system\reflection\targetparametercountexception\TargetParameterCountExceptionCtor1\TargetParameterCountExceptionCtor1.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\targetparametercountexception\TargetParameterCountExceptionCtor1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[test.cmd_7860]
RelativePath=JIT\jit64\regress\phoenix\62322\test\test.cmd
WorkingDir=JIT\jit64\regress\phoenix\62322\test
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[SingleToDouble.cmd_7870]
-RelativePath=CoreMangLib\cti\system\single\SingleToDouble\SingleToDouble.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleToDouble
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1401.cmd_7871]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1401\Generated1401\Generated1401.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1401\Generated1401
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[BooleanIConvertibleToDecimal.cmd_7874]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanIConvertibleToDecimal\BooleanIConvertibleToDecimal.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanIConvertibleToDecimal
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b49778.cmd_7875]
RelativePath=JIT\Regression\CLR-x86-JIT\v2.1\DDB\b49778\b49778\b49778.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\v2.1\DDB\b49778\b49778
Categories=EXPECTED_PASS
HostStyle=0
-[Int32IConvertibleToBoolean.cmd_7893]
-RelativePath=CoreMangLib\cti\system\int\Int32IConvertibleToBoolean\Int32IConvertibleToBoolean.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32IConvertibleToBoolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b59949.cmd_7894]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b59949\b59949\b59949.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b59949\b59949
Categories=EXPECTED_FAIL;9462;EXCLUDED;VARARG;Pri1
HostStyle=0
-[CharIsDigit1.cmd_7904]
-RelativePath=CoreMangLib\cti\system\char\CharIsDigit1\CharIsDigit1.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsDigit1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[localvarincatch_r.cmd_7905]
RelativePath=JIT\Methodical\eh\nested\general\localvarincatch_r\localvarincatch_r.cmd
WorkingDir=JIT\Methodical\eh\nested\general\localvarincatch_r
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharIsSymbol1.cmd_7910]
-RelativePath=CoreMangLib\cti\system\char\CharIsSymbol1\CharIsSymbol1.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsSymbol1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[try2_d.cmd_7911]
RelativePath=JIT\Directed\leave\try2_d\try2_d.cmd
WorkingDir=JIT\Directed\leave\try2_d
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ByteIConvertibleToSingle.cmd_7918]
-RelativePath=CoreMangLib\cti\system\byte\ByteIConvertibleToSingle\ByteIConvertibleToSingle.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteIConvertibleToSingle
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_dbgobj.cmd_7919]
RelativePath=JIT\Methodical\Invoke\implicit\_dbgobj\_dbgobj.cmd
WorkingDir=JIT\Methodical\Invoke\implicit\_dbgobj
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[MarshalAsAttributeCtor2.cmd_7924]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeCtor2\MarshalAsAttributeCtor2.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeCtor2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[GCSimulator_142.cmd_7925]
RelativePath=GC\Scenarios\GCSimulator\GCSimulator_142\GCSimulator_142.cmd
WorkingDir=GC\Scenarios\GCSimulator\GCSimulator_142
Categories=EXPECTED_PASS
HostStyle=0
-[UInt16IConvertibleToDecimal.cmd_7996]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16IConvertibleToDecimal\UInt16IConvertibleToDecimal.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16IConvertibleToDecimal
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[dblarray4_cs_r.cmd_7997]
RelativePath=JIT\Methodical\doublearray\dblarray4_cs_r\dblarray4_cs_r.cmd
WorkingDir=JIT\Methodical\doublearray\dblarray4_cs_r
Categories=EXPECTED_PASS
HostStyle=0
-[Int16GetHashCode.cmd_8041]
-RelativePath=CoreMangLib\cti\system\int16\Int16GetHashCode\Int16GetHashCode.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16GetHashCode
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[dblarray3_cs_do.cmd_8042]
RelativePath=JIT\Methodical\doublearray\dblarray3_cs_do\dblarray3_cs_do.cmd
WorkingDir=JIT\Methodical\doublearray\dblarray3_cs_do
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[SingleMaxValue.cmd_8057]
-RelativePath=CoreMangLib\cti\system\single\SingleMaxValue\SingleMaxValue.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleMaxValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[vsw610378.cmd_8058]
RelativePath=JIT\jit64\regress\vsw\610378\vsw610378\vsw610378.cmd
WorkingDir=JIT\jit64\regress\vsw\610378\vsw610378
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ByteIConvertibleToInt32.cmd_8185]
-RelativePath=CoreMangLib\cti\system\byte\ByteIConvertibleToInt32\ByteIConvertibleToInt32.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteIConvertibleToInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[L-2-6-3.cmd_8188]
RelativePath=Loader\classloader\v1\Beta1\Layout\Matrix\cs\L-2-6-3\L-2-6-3.cmd
WorkingDir=Loader\classloader\v1\Beta1\Layout\Matrix\cs\L-2-6-3
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringRemove1.cmd_8199]
-RelativePath=CoreMangLib\cti\system\string\StringRemove1\StringRemove1.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringRemove1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[test1307.cmd_8200]
RelativePath=Regressions\coreclr\1307\test1307\test1307.cmd
WorkingDir=Regressions\coreclr\1307\test1307
Categories=EXPECTED_PASS
HostStyle=0
-[Int16IConvertibleToUInt64.cmd_8218]
-RelativePath=CoreMangLib\cti\system\int16\Int16IConvertibleToUInt64\Int16IConvertibleToUInt64.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16IConvertibleToUInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Pi.cmd_8219]
RelativePath=JIT\Performance\CodeQuality\Benchstones\BenchI\Pi\Pi\Pi.cmd
WorkingDir=JIT\Performance\CodeQuality\Benchstones\BenchI\Pi\Pi
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharIsControl1.cmd_8237]
-RelativePath=CoreMangLib\cti\system\char\CharIsControl1\CharIsControl1.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsControl1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated96.cmd_8238]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest96\Generated96\Generated96.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest96\Generated96
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DoubleToString3.cmd_8327]
-RelativePath=CoreMangLib\cti\system\double\DoubleToString3\DoubleToString3.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleToString3
-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
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[MarshalAsAttributeMarshalTypeRef.cmd_8371]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeMarshalTypeRef\MarshalAsAttributeMarshalTypeRef.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeMarshalTypeRef
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[TryCatch.cmd_8372]
RelativePath=baseservices\exceptions\regressions\V1\SEH\VJ\TryCatch\TryCatch.cmd
WorkingDir=baseservices\exceptions\regressions\V1\SEH\VJ\TryCatch
Categories=EXPECTED_PASS
HostStyle=0
-[SByteIConvertibleToChar.cmd_8393]
-RelativePath=CoreMangLib\cti\system\sbyte\SByteIConvertibleToChar\SByteIConvertibleToChar.cmd
-WorkingDir=CoreMangLib\cti\system\sbyte\SByteIConvertibleToChar
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[AddingSequence_ro.cmd_8394]
RelativePath=JIT\SIMD\AddingSequence_ro\AddingSequence_ro.cmd
WorkingDir=JIT\SIMD\AddingSequence_ro
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[MarshalAsAttributeArraySubType.cmd_8406]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeArraySubType\MarshalAsAttributeArraySubType.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeArraySubType
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[thread13.cmd_8407]
RelativePath=baseservices\threading\generics\WaitCallback\thread13\thread13.cmd
WorkingDir=baseservices\threading\generics\WaitCallback\thread13
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StructLayoutAttributeCharSet.cmd_8443]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\structlayoutattribute\StructLayoutAttributeCharSet\StructLayoutAttributeCharSet.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\structlayoutattribute\StructLayoutAttributeCharSet
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[partialcompactiontest.cmd_8444]
RelativePath=GC\Features\PartialCompaction\partialcompactiontest\partialcompactiontest.cmd
WorkingDir=GC\Features\PartialCompaction\partialcompactiontest
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int32GetHashCode.cmd_8452]
-RelativePath=CoreMangLib\cti\system\int\Int32GetHashCode\Int32GetHashCode.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32GetHashCode
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[GetGenerationWR2.cmd_8453]
RelativePath=GC\API\GC\GetGenerationWR2\GetGenerationWR2.cmd
WorkingDir=GC\API\GC\GetGenerationWR2
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ByteIConvertibleToUInt16.cmd_8454]
-RelativePath=CoreMangLib\cti\system\byte\ByteIConvertibleToUInt16\ByteIConvertibleToUInt16.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteIConvertibleToUInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
-[CharIsSeparator1.cmd_8455]
-RelativePath=CoreMangLib\cti\system\char\CharIsSeparator1\CharIsSeparator1.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsSeparator1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
-[CharIsNumber2.cmd_8456]
-RelativePath=CoreMangLib\cti\system\char\CharIsNumber2\CharIsNumber2.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsNumber2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[OpMembersOfStructLocal.cmd_8458]
RelativePath=JIT\CodeGenBringUpTests\OpMembersOfStructLocal_ro\OpMembersOfStructLocal_ro.cmd
WorkingDir=JIT\CodeGenBringUpTests\OpMembersOfStructLocal_ro
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int16IConvertibleToSingle.cmd_8537]
-RelativePath=CoreMangLib\cti\system\int16\Int16IConvertibleToSingle\Int16IConvertibleToSingle.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16IConvertibleToSingle
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[params-varargs.cmd_8538]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-QFE\b151440\params-varargs\params-varargs.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-QFE\b151440\params-varargs
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalEquals1.cmd_8548]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalEquals1\DecimalEquals1.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalEquals1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Polyrec.cmd_8549]
RelativePath=Loader\regressions\polyrec\Polyrec\Polyrec.cmd
WorkingDir=Loader\regressions\polyrec\Polyrec
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DoublePositiveInfinity.cmd_8551]
-RelativePath=CoreMangLib\cti\system\double\DoublePositiveInfinity\DoublePositiveInfinity.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoublePositiveInfinity
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[XorRef.cmd_8552]
RelativePath=JIT\CodeGenBringUpTests\XorRef_ro\XorRef_ro.cmd
WorkingDir=JIT\CodeGenBringUpTests\XorRef_ro
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[WeakReferenceCtor2b_PSC.cmd_8567]
-RelativePath=CoreMangLib\cti\system\weakreference\WeakReferenceCtor2b_PSC\WeakReferenceCtor2b_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\weakreference\WeakReferenceCtor2b_PSC
-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
Categories=EXPECTED_PASS
HostStyle=0
-[FixedBufferAttributeElementType.cmd_8615]
-RelativePath=CoreMangLib\cti\system\runtime\fixedbufferattribute\FixedBufferAttributeElementType\FixedBufferAttributeElementType.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\fixedbufferattribute\FixedBufferAttributeElementType
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[thread18.cmd_8616]
RelativePath=baseservices\threading\generics\TimerCallback\thread18\thread18.cmd
WorkingDir=baseservices\threading\generics\TimerCallback\thread18
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int16MaxValue.cmd_8632]
-RelativePath=CoreMangLib\cti\system\int16\Int16MaxValue\Int16MaxValue.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16MaxValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[boxunboxinterface_d.cmd_8633]
RelativePath=JIT\Directed\nullabletypes\boxunboxinterface_d\boxunboxinterface_d.cmd
WorkingDir=JIT\Directed\nullabletypes\boxunboxinterface_d
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int32IConvertibleToDecimal.cmd_8669]
-RelativePath=CoreMangLib\cti\system\int\Int32IConvertibleToDecimal\Int32IConvertibleToDecimal.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32IConvertibleToDecimal
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[expl_funcptr_gc_r.cmd_8670]
RelativePath=JIT\Methodical\explicit\funcptr\expl_funcptr_gc_r\expl_funcptr_gc_r.cmd
WorkingDir=JIT\Methodical\explicit\funcptr\expl_funcptr_gc_r
Categories=EXPECTED_PASS
HostStyle=0
-[StringJoin.cmd_8677]
-RelativePath=CoreMangLib\cti\system\string\StringJoin\StringJoin.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringJoin
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_FAIL;Pri1
-HostStyle=0
-
[GCSimulator_25.cmd_8680]
RelativePath=GC\Scenarios\GCSimulator\GCSimulator_25\GCSimulator_25.cmd
WorkingDir=GC\Scenarios\GCSimulator\GCSimulator_25
Categories=EXPECTED_PASS
HostStyle=0
-[Int64IConvertibleToDouble.cmd_8686]
-RelativePath=CoreMangLib\cti\system\int64\Int64IConvertibleToDouble\Int64IConvertibleToDouble.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64IConvertibleToDouble
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[try-catch-struct03.cmd_8687]
RelativePath=baseservices\exceptions\generics\try-catch-struct03\try-catch-struct03.cmd
WorkingDir=baseservices\exceptions\generics\try-catch-struct03
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalToByte1.cmd_8723]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToByte1\DecimalToByte1.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToByte1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1160.cmd_8724]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1160\Generated1160\Generated1160.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1160\Generated1160
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[GCSuppressFinalize.cmd_8760]
-RelativePath=CoreMangLib\cti\system\gc\GCSuppressFinalize\GCSuppressFinalize.cmd
-WorkingDir=CoreMangLib\cti\system\gc\GCSuppressFinalize
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated727.cmd_8761]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest727\Generated727\Generated727.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest727\Generated727
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt16IConvertibleToDouble.cmd_8792]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16IConvertibleToDouble\UInt16IConvertibleToDouble.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16IConvertibleToDouble
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_reldeep.cmd_8793]
RelativePath=JIT\Methodical\Invoke\deep\_reldeep\_reldeep.cmd
WorkingDir=JIT\Methodical\Invoke\deep\_reldeep
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DoubleIConvertibleToInt16.cmd_8831]
-RelativePath=CoreMangLib\cti\system\double\DoubleIConvertibleToInt16\DoubleIConvertibleToInt16.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleIConvertibleToInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[ThreadStartUShort_2.cmd_8832]
RelativePath=baseservices\threading\paramthreadstart\ThreadStartUShort_2\ThreadStartUShort_2.cmd
WorkingDir=baseservices\threading\paramthreadstart\ThreadStartUShort_2
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int32IConvertibleToDateTime.cmd_8848]
-RelativePath=CoreMangLib\cti\system\int\Int32IConvertibleToDateTime\Int32IConvertibleToDateTime.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32IConvertibleToDateTime
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[strswitchfinal_ro.cmd_8849]
RelativePath=JIT\Methodical\eh\interactions\strswitchfinal_ro\strswitchfinal_ro.cmd
WorkingDir=JIT\Methodical\eh\interactions\strswitchfinal_ro
Categories=EXPECTED_PASS
HostStyle=0
-[GCKeepAlive.cmd_8869]
-RelativePath=CoreMangLib\cti\system\gc\GCKeepAlive\GCKeepAlive.cmd
-WorkingDir=CoreMangLib\cti\system\gc\GCKeepAlive
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b13586.cmd_8870]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M09.5-PDC\b13586\b13586\b13586.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M09.5-PDC\b13586\b13586
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DoubleIConvertibleToBoolean.cmd_8895]
-RelativePath=CoreMangLib\cti\system\double\DoubleIConvertibleToBoolean\DoubleIConvertibleToBoolean.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleIConvertibleToBoolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[pointerexpr1.cmd_8896]
RelativePath=JIT\jit64\opt\cse\pointerexpr1\pointerexpr1.cmd
WorkingDir=JIT\jit64\opt\cse\pointerexpr1
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringTrim2.cmd_8916]
-RelativePath=CoreMangLib\cti\system\string\StringTrim2\StringTrim2.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringTrim2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b19112a.cmd_8917]
RelativePath=JIT\Regression\VS-ia64-JIT\V1.2-M01\b19112\b19112a\b19112a.cmd
WorkingDir=JIT\Regression\VS-ia64-JIT\V1.2-M01\b19112\b19112a
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt32IConvertibleToDecimal.cmd_8924]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32IConvertibleToDecimal\UInt32IConvertibleToDecimal.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32IConvertibleToDecimal
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_speed_dbgbinop.cmd_8926]
RelativePath=JIT\Methodical\int64\misc\_speed_dbgbinop\_speed_dbgbinop.cmd
WorkingDir=JIT\Methodical\int64\misc\_speed_dbgbinop
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt32ToString2.cmd_8977]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32ToString2\UInt32ToString2.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32ToString2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[GCSimulator_218.cmd_8978]
RelativePath=GC\Scenarios\GCSimulator\GCSimulator_218\GCSimulator_218.cmd
WorkingDir=GC\Scenarios\GCSimulator\GCSimulator_218
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[AutoResetEventCtor.cmd_9007]
-RelativePath=CoreMangLib\cti\system\threading\autoresetevent\AutoResetEventCtor\AutoResetEventCtor.cmd
-WorkingDir=CoreMangLib\cti\system\threading\autoresetevent\AutoResetEventCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[hfa_nd1A_d.cmd_9008]
RelativePath=JIT\jit64\hfa\main\testA\hfa_nd1A_d\hfa_nd1A_d.cmd
WorkingDir=JIT\jit64\hfa\main\testA\hfa_nd1A_d
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int64IConvertibleToUInt16.cmd_9031]
-RelativePath=CoreMangLib\cti\system\int64\Int64IConvertibleToUInt16\Int64IConvertibleToUInt16.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64IConvertibleToUInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[struct6_2.cmd_9032]
RelativePath=JIT\jit64\gc\misc\struct6_2\struct6_2.cmd
WorkingDir=JIT\jit64\gc\misc\struct6_2
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt32CompareTo2.cmd_9039]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32CompareTo2\UInt32CompareTo2.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32CompareTo2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[cgt_u4.cmd_9040]
RelativePath=JIT\IL_Conformance\Old\Conformance_Base\cgt_u4\cgt_u4.cmd
WorkingDir=JIT\IL_Conformance\Old\Conformance_Base\cgt_u4
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringPadLeft.cmd_9058]
-RelativePath=CoreMangLib\cti\system\string\StringPadLeft\StringPadLeft.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringPadLeft
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_il_dbglcs_long.cmd_9061]
RelativePath=JIT\Methodical\int64\arrays\_il_dbglcs_long\_il_dbglcs_long.cmd
WorkingDir=JIT\Methodical\int64\arrays\_il_dbglcs_long
Categories=EXPECTED_PASS
HostStyle=0
-[DoubleIsNegativeInfinity.cmd_9081]
-RelativePath=CoreMangLib\cti\system\double\DoubleIsNegativeInfinity\DoubleIsNegativeInfinity.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleIsNegativeInfinity
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b53995.cmd_9082]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b53995\b53995\b53995.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b53995\b53995
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt32IConvertibleToSingle.cmd_9103]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32IConvertibleToSingle\UInt32IConvertibleToSingle.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32IConvertibleToSingle
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated365.cmd_9104]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest365\Generated365\Generated365.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest365\Generated365
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalToDouble.cmd_9109]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToDouble\DecimalToDouble.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToDouble
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_il_reli_flood.cmd_9110]
RelativePath=JIT\Methodical\ELEMENT_TYPE_IU\_il_reli_flood\_il_reli_flood.cmd
WorkingDir=JIT\Methodical\ELEMENT_TYPE_IU\_il_reli_flood
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[SingleToSingle.cmd_9117]
-RelativePath=CoreMangLib\cti\system\single\SingleToSingle\SingleToSingle.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleToSingle
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b45535.cmd_9118]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M11-Beta1\b45535\b45535\b45535.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M11-Beta1\b45535\b45535
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[FixedBufferAttributeCtor.cmd_9126]
-RelativePath=CoreMangLib\cti\system\runtime\fixedbufferattribute\FixedBufferAttributeCtor\FixedBufferAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\fixedbufferattribute\FixedBufferAttributeCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[GCSimulator_121.cmd_9127]
RelativePath=GC\Scenarios\GCSimulator\GCSimulator_121\GCSimulator_121.cmd
WorkingDir=GC\Scenarios\GCSimulator\GCSimulator_121
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharEnumeratorMoveNext.cmd_9135]
-RelativePath=CoreMangLib\cti\system\charenumerator\CharEnumeratorMoveNext\CharEnumeratorMoveNext.cmd
-WorkingDir=CoreMangLib\cti\system\charenumerator\CharEnumeratorMoveNext
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[mcc_i17.cmd_9138]
RelativePath=JIT\jit64\mcc\interop\mcc_i17\mcc_i17.cmd
WorkingDir=JIT\jit64\mcc\interop\mcc_i17
Categories=EXPECTED_PASS
HostStyle=0
-[Int16IConvertibleToType.cmd_9150]
-RelativePath=CoreMangLib\cti\system\int16\Int16IConvertibleToType\Int16IConvertibleToType.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16IConvertibleToType
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[try-fault-struct02.cmd_9151]
RelativePath=baseservices\exceptions\generics\try-fault-struct02\try-fault-struct02.cmd
WorkingDir=baseservices\exceptions\generics\try-fault-struct02
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharIsDigit2.cmd_9190]
-RelativePath=CoreMangLib\cti\system\char\CharIsDigit2\CharIsDigit2.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsDigit2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated475.cmd_9191]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest475\Generated475\Generated475.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest475\Generated475
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DllNotFoundExceptionCtor3.cmd_9224]
-RelativePath=CoreMangLib\cti\system\dllnotfoundexception\DllNotFoundExceptionCtor3\DllNotFoundExceptionCtor3.cmd
-WorkingDir=CoreMangLib\cti\system\dllnotfoundexception\DllNotFoundExceptionCtor3
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[ThreadStartString.cmd_9225]
RelativePath=baseservices\threading\paramthreadstart\ThreadStartString\ThreadStartString.cmd
WorkingDir=baseservices\threading\paramthreadstart\ThreadStartString
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ByteToString4.cmd_9285]
-RelativePath=CoreMangLib\cti\system\byte\ByteToString4\ByteToString4.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteToString4
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_il_dbgdeep_virt.cmd_9286]
RelativePath=JIT\Methodical\tailcall\_il_dbgdeep_virt\_il_dbgdeep_virt.cmd
WorkingDir=JIT\Methodical\tailcall\_il_dbgdeep_virt
Categories=EXPECTED_PASS
HostStyle=0
-[StructLayoutAttributeSize.cmd_9287]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\structlayoutattribute\StructLayoutAttributeSize\StructLayoutAttributeSize.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\structlayoutattribute\StructLayoutAttributeSize
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_il_dbgconst.cmd_9288]
RelativePath=JIT\Methodical\xxobj\operand\_il_dbgconst\_il_dbgconst.cmd
WorkingDir=JIT\Methodical\xxobj\operand\_il_dbgconst
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[BooleanEquals_Boolean.cmd_9292]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanEquals_Boolean\BooleanEquals_Boolean.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanEquals_Boolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_il_dbgfloat64_range2.cmd_9293]
RelativePath=JIT\Methodical\Arrays\range\_il_dbgfloat64_range2\_il_dbgfloat64_range2.cmd
WorkingDir=JIT\Methodical\Arrays\range\_il_dbgfloat64_range2
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharCompateTo1.cmd_9308]
-RelativePath=CoreMangLib\cti\system\char\CharCompateTo1\CharCompateTo1.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharCompateTo1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[compareexchangeint.cmd_9309]
RelativePath=baseservices\threading\interlocked\compareexchange\compareexchangeint\compareexchangeint.cmd
WorkingDir=baseservices\threading\interlocked\compareexchange\compareexchangeint
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringSplit1.cmd_9311]
-RelativePath=CoreMangLib\cti\system\string\StringSplit1\StringSplit1.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringSplit1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[fielda_tests.cmd_9312]
RelativePath=JIT\Directed\PREFIX\unaligned\4\fielda_tests\fielda_tests.cmd
WorkingDir=JIT\Directed\PREFIX\unaligned\4\fielda_tests
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[MarshalAsAttributeSizeParamIndex.cmd_9336]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeSizeParamIndex\MarshalAsAttributeSizeParamIndex.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeSizeParamIndex
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[NestedBaseClass03.cmd_9338]
RelativePath=Loader\classloader\generics\Instantiation\Positive\NestedBaseClass03\NestedBaseClass03.cmd
WorkingDir=Loader\classloader\generics\Instantiation\Positive\NestedBaseClass03
Categories=EXPECTED_PASS
HostStyle=0
-[DecimalConstantAttributeValue.cmd_9390]
-RelativePath=CoreMangLib\cti\system\runtime\decimalconstantattribute\DecimalConstantAttributeValue\DecimalConstantAttributeValue.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\decimalconstantattribute\DecimalConstantAttributeValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated396.cmd_9391]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest396\Generated396\Generated396.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest396\Generated396
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringEmpty.cmd_9393]
-RelativePath=CoreMangLib\cti\system\string\StringEmpty\StringEmpty.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringEmpty
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b32614.cmd_9394]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b32614\b32614\b32614.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b32614\b32614
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[AttributeCtor1.cmd_9430]
-RelativePath=CoreMangLib\cti\system\runtime\compilerservices\compilationrelaxations\AttributeCtor1\AttributeCtor1.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\compilerservices\compilationrelaxations\AttributeCtor1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[box-unbox-enum003.cmd_9431]
RelativePath=JIT\jit64\valuetypes\nullable\box-unbox\enum\box-unbox-enum003\box-unbox-enum003.cmd
WorkingDir=JIT\jit64\valuetypes\nullable\box-unbox\enum\box-unbox-enum003
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt32IConvertibleToSByte.cmd_9447]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32IConvertibleToSByte\UInt32IConvertibleToSByte.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32IConvertibleToSByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1154.cmd_9448]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1154\Generated1154\Generated1154.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1154\Generated1154
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharIsSurrogate2.cmd_9466]
-RelativePath=CoreMangLib\cti\system\char\CharIsSurrogate2\CharIsSurrogate2.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsSurrogate2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b84909.cmd_9468]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b84909\b84909\b84909.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b84909\b84909
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[AssemblyNameVersion.cmd_9475]
-RelativePath=CoreMangLib\cti\system\reflection\assemblyname\AssemblyNameVersion\AssemblyNameVersion.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblyname\AssemblyNameVersion
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[bge_s.cmd_9476]
RelativePath=JIT\IL_Conformance\Old\Base\bge_s\bge_s.cmd
WorkingDir=JIT\IL_Conformance\Old\Base\bge_s
Categories=EXPECTED_PASS
HostStyle=0
-[StringFormat2.cmd_9506]
-RelativePath=CoreMangLib\cti\system\string\StringFormat2\StringFormat2.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringFormat2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[box-unbox023.cmd_9508]
RelativePath=JIT\jit64\valuetypes\nullable\box-unbox\box-unbox\box-unbox023\box-unbox023.cmd
WorkingDir=JIT\jit64\valuetypes\nullable\box-unbox\box-unbox\box-unbox023
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[SingleToUInt32.cmd_9575]
-RelativePath=CoreMangLib\cti\system\single\SingleToUInt32\SingleToUInt32.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleToUInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[VectorArray_ro.cmd_9576]
RelativePath=JIT\SIMD\VectorArray_ro\VectorArray_ro.cmd
WorkingDir=JIT\SIMD\VectorArray_ro
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharEquals1.cmd_9589]
-RelativePath=CoreMangLib\cti\system\char\CharEquals1\CharEquals1.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharEquals1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[box-unbox006.cmd_9590]
RelativePath=JIT\jit64\valuetypes\nullable\box-unbox\box-unbox\box-unbox006\box-unbox006.cmd
WorkingDir=JIT\jit64\valuetypes\nullable\box-unbox\box-unbox\box-unbox006
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int32MinValue.cmd_9617]
-RelativePath=CoreMangLib\cti\system\int\Int32MinValue\Int32MinValue.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32MinValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_il_dbginstftn.cmd_9618]
RelativePath=JIT\Methodical\Invoke\fptr\_il_dbginstftn\_il_dbginstftn.cmd
WorkingDir=JIT\Methodical\Invoke\fptr\_il_dbginstftn
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharIConvertibleToType.cmd_9650]
-RelativePath=CoreMangLib\cti\system\char\CharIConvertibleToType\CharIConvertibleToType.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIConvertibleToType
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[ctest_cs_r.cmd_9651]
RelativePath=JIT\opt\virtualstubdispatch\manyintf\ctest_cs_r\ctest_cs_r.cmd
WorkingDir=JIT\opt\virtualstubdispatch\manyintf\ctest_cs_r
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int32IConvertibleToType.cmd_9711]
-RelativePath=CoreMangLib\cti\system\int\Int32IConvertibleToType\Int32IConvertibleToType.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32IConvertibleToType
-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
Categories=EXPECTED_PASS
HostStyle=0
-[UInt16IConvertibleToBoolean.cmd_9714]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16IConvertibleToBoolean\UInt16IConvertibleToBoolean.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16IConvertibleToBoolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[c_initblk.cmd_9715]
RelativePath=JIT\IL_Conformance\Old\Conformance_Base\c_initblk\c_initblk.cmd
WorkingDir=JIT\IL_Conformance\Old\Conformance_Base\c_initblk
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ByteIConvertibleToSByte.cmd_9718]
-RelativePath=CoreMangLib\cti\system\byte\ByteIConvertibleToSByte\ByteIConvertibleToSByte.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteIConvertibleToSByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_il_relcompat_r8_r4.cmd_9719]
RelativePath=JIT\Methodical\tailcall\_il_relcompat_r8_r4\_il_relcompat_r8_r4.cmd
WorkingDir=JIT\Methodical\tailcall\_il_relcompat_r8_r4
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ByteIConvertibleToUInt64.cmd_9720]
-RelativePath=CoreMangLib\cti\system\byte\ByteIConvertibleToUInt64\ByteIConvertibleToUInt64.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteIConvertibleToUInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b148815.cmd_9721]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-QFE\b148815\b148815\b148815.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-QFE\b148815\b148815
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringIConvertibleToInt32.cmd_9744]
-RelativePath=CoreMangLib\cti\system\string\StringIConvertibleToInt32\StringIConvertibleToInt32.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringIConvertibleToInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1437.cmd_9745]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1437\Generated1437\Generated1437.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1437\Generated1437
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringIConvertibleToBoolean.cmd_9773]
-RelativePath=CoreMangLib\cti\system\string\StringIConvertibleToBoolean\StringIConvertibleToBoolean.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringIConvertibleToBoolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1378.cmd_9774]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1378\Generated1378\Generated1378.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1378\Generated1378
Categories=EXPECTED_PASS
HostStyle=0
-[AssemblyDefaultAliasAttributeCtor.cmd_9893]
-RelativePath=CoreMangLib\cti\system\reflection\assemblydefaultaliasattribute\AssemblyDefaultAliasAttributeCtor\AssemblyDefaultAliasAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblydefaultaliasattribute\AssemblyDefaultAliasAttributeCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[waitanyex8.cmd_9894]
RelativePath=baseservices\threading\waithandle\waitany\waitanyex8\waitanyex8.cmd
WorkingDir=baseservices\threading\waithandle\waitany\waitanyex8
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[RCAttrWrapNEThrows.cmd_9901]
-RelativePath=CoreMangLib\cti\system\runtime\compilerservices\runtimecompatibilityattribute\RCAttrWrapNEThrows\RCAttrWrapNEThrows.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\compilerservices\runtimecompatibilityattribute\RCAttrWrapNEThrows
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[filter2_d.cmd_9902]
RelativePath=JIT\Directed\leave\filter2_d\filter2_d.cmd
WorkingDir=JIT\Directed\leave\filter2_d
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DoubleToString1.cmd_9954]
-RelativePath=CoreMangLib\cti\system\double\DoubleToString1\DoubleToString1.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleToString1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b06730.cmd_9955]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M10\b06730\b06730\b06730.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M10\b06730\b06730
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int32IConvertibleToInt32.cmd_9998]
-RelativePath=CoreMangLib\cti\system\int\Int32IConvertibleToInt32\Int32IConvertibleToInt32.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32IConvertibleToInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b26558.cmd_9999]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M09.5-PDC\b26558\b26558\b26558.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M09.5-PDC\b26558\b26558
Categories=EXPECTED_PASS
HostStyle=0
-[Int64Equals1.cmd_10124]
-RelativePath=CoreMangLib\cti\system\int64\Int64Equals1\Int64Equals1.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64Equals1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[switchdefaultonly2_il_d.cmd_10125]
RelativePath=JIT\Directed\coverage\oldtests\switchdefaultonly2_il_d\switchdefaultonly2_il_d.cmd
WorkingDir=JIT\Directed\coverage\oldtests\switchdefaultonly2_il_d
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int64MaxValue.cmd_10147]
-RelativePath=CoreMangLib\cti\system\int64\Int64MaxValue\Int64MaxValue.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64MaxValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[NestedInterface06.cmd_10148]
RelativePath=Loader\classloader\generics\Instantiation\Positive\NestedInterface06\NestedInterface06.cmd
WorkingDir=Loader\classloader\generics\Instantiation\Positive\NestedInterface06
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[WaitHandleCtor.cmd_10161]
-RelativePath=CoreMangLib\cti\system\threading\waithandle\WaitHandleCtor\WaitHandleCtor.cmd
-WorkingDir=CoreMangLib\cti\system\threading\waithandle\WaitHandleCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[DblNeg.cmd_10162]
RelativePath=JIT\CodeGenBringUpTests\DblNeg_ro\DblNeg_ro.cmd
WorkingDir=JIT\CodeGenBringUpTests\DblNeg_ro
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharMinValue.cmd_10175]
-RelativePath=CoreMangLib\cti\system\char\CharMinValue\CharMinValue.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharMinValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[r8nanconv_il_d.cmd_10176]
RelativePath=JIT\Methodical\NaN\r8nanconv_il_d\r8nanconv_il_d.cmd
WorkingDir=JIT\Methodical\NaN\r8nanconv_il_d
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringConcat3.cmd_10185]
-RelativePath=CoreMangLib\cti\system\string\StringConcat3\StringConcat3.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringConcat3
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated253.cmd_10187]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest253\Generated253\Generated253.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest253\Generated253
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalToBoolean.cmd_10237]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToBoolean\DecimalToBoolean.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToBoolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1157.cmd_10238]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1157\Generated1157\Generated1157.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1157\Generated1157
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DoubleIsNaN.cmd_10288]
-RelativePath=CoreMangLib\cti\system\double\DoubleIsNaN\DoubleIsNaN.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleIsNaN
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[GCSimulator_139.cmd_10289]
RelativePath=GC\Scenarios\GCSimulator\GCSimulator_139\GCSimulator_139.cmd
WorkingDir=GC\Scenarios\GCSimulator\GCSimulator_139
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[AssemblyDelaySignAttributeDelaySign.cmd_10298]
-RelativePath=CoreMangLib\cti\system\reflection\assemblydelaysignattribute\AssemblyDelaySignAttributeDelaySign\AssemblyDelaySignAttributeDelaySign.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblydelaysignattribute\AssemblyDelaySignAttributeDelaySign
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated53.cmd_10299]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest53\Generated53\Generated53.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest53\Generated53
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringLength.cmd_10301]
-RelativePath=CoreMangLib\cti\system\string\StringLength\StringLength.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringLength
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[ble_s.cmd_10302]
RelativePath=JIT\IL_Conformance\Old\Base\ble_s\ble_s.cmd
WorkingDir=JIT\IL_Conformance\Old\Base\ble_s
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int16IConvertibleToUInt32.cmd_10330]
-RelativePath=CoreMangLib\cti\system\int16\Int16IConvertibleToUInt32\Int16IConvertibleToUInt32.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16IConvertibleToUInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated204.cmd_10331]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest204\Generated204\Generated204.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest204\Generated204
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[GCHandleAddrOfPinnedObject_PSC.cmd_10387]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\gchandle\GCHandleAddrOfPinnedObject_PSC\GCHandleAddrOfPinnedObject_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\gchandle\GCHandleAddrOfPinnedObject_PSC
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[params-mixed.cmd_10388]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-QFE\b151440\params-mixed\params-mixed.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-QFE\b151440\params-mixed
Categories=EXPECTED_PASS
HostStyle=0
-[DecimalToSingle.cmd_10422]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToSingle\DecimalToSingle.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToSingle
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_relknight.cmd_10423]
RelativePath=JIT\Methodical\VT\etc\_relknight\_relknight.cmd
WorkingDir=JIT\Methodical\VT\etc\_relknight
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[AssemblyTitleAttributeTitle.cmd_10428]
-RelativePath=CoreMangLib\cti\system\reflection\assemblytitleattribute\AssemblyTitleAttributeTitle\AssemblyTitleAttributeTitle.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblytitleattribute\AssemblyTitleAttributeTitle
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[mcc_i03.cmd_10429]
RelativePath=JIT\jit64\mcc\interop\mcc_i03\mcc_i03.cmd
WorkingDir=JIT\jit64\mcc\interop\mcc_i03
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringGetEnumerator.cmd_10493]
-RelativePath=CoreMangLib\cti\system\string\StringGetEnumerator\StringGetEnumerator.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringGetEnumerator
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1416.cmd_10494]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1416\Generated1416\Generated1416.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1416\Generated1416
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt16IConvertibleToInt32.cmd_10535]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16IConvertibleToInt32\UInt16IConvertibleToInt32.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16IConvertibleToInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[add_ovf_u2.cmd_10536]
RelativePath=JIT\IL_Conformance\Old\Conformance_Base\add_ovf_u2\add_ovf_u2.cmd
WorkingDir=JIT\IL_Conformance\Old\Conformance_Base\add_ovf_u2
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharIConvertibleToUInt32.cmd_10538]
-RelativePath=CoreMangLib\cti\system\char\CharIConvertibleToUInt32\CharIConvertibleToUInt32.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIConvertibleToUInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
-[AmbiguousMatchExceptionCtor2.cmd_10539]
-RelativePath=CoreMangLib\cti\system\reflection\ambiguousmatchexception\AmbiguousMatchExceptionCtor2\AmbiguousMatchExceptionCtor2.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\ambiguousmatchexception\AmbiguousMatchExceptionCtor2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[ldvirtftnsideeffect_il_d.cmd_10540]
RelativePath=JIT\Directed\coverage\importer\Desktop\ldvirtftnsideeffect_il_d\ldvirtftnsideeffect_il_d.cmd
WorkingDir=JIT\Directed\coverage\importer\Desktop\ldvirtftnsideeffect_il_d
Categories=EXPECTED_PASS
HostStyle=0
-[CharIConvertibleToByte.cmd_10549]
-RelativePath=CoreMangLib\cti\system\char\CharIConvertibleToByte\CharIConvertibleToByte.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIConvertibleToByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[GCSimulator_58.cmd_10550]
RelativePath=GC\Scenarios\GCSimulator\GCSimulator_58\GCSimulator_58.cmd
WorkingDir=GC\Scenarios\GCSimulator\GCSimulator_58
Categories=EXPECTED_PASS
HostStyle=0
-[DoubleIConvertibleToInt32.cmd_10564]
-RelativePath=CoreMangLib\cti\system\double\DoubleIConvertibleToInt32\DoubleIConvertibleToInt32.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleIConvertibleToInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[GCSimulator_128.cmd_10565]
RelativePath=GC\Scenarios\GCSimulator\GCSimulator_128\GCSimulator_128.cmd
WorkingDir=GC\Scenarios\GCSimulator\GCSimulator_128
Categories=EXPECTED_PASS
HostStyle=0
-[CharIsLower1.cmd_10568]
-RelativePath=CoreMangLib\cti\system\char\CharIsLower1\CharIsLower1.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsLower1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
-[UInt64IConvertibleToBoolean.cmd_10569]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64IConvertibleToBoolean\UInt64IConvertibleToBoolean.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64IConvertibleToBoolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b07383.cmd_10571]
RelativePath=JIT\Regression\CLR-x86-JIT\V1.2-M01\b07383\b07383\b07383.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1.2-M01\b07383\b07383
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt64MaxValue.cmd_10583]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64MaxValue\UInt64MaxValue.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64MaxValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[throw_cs_d.cmd_10584]
RelativePath=JIT\Methodical\cctor\misc\throw_cs_d\throw_cs_d.cmd
WorkingDir=JIT\Methodical\cctor\misc\throw_cs_d
Categories=EXPECTED_PASS
HostStyle=0
-[DecimalCtor4.cmd_10597]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalCtor4\DecimalCtor4.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalCtor4
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[exploit.cmd_10598]
RelativePath=Loader\classloader\methodoverriding\regressions\549411\exploit\exploit.cmd
WorkingDir=Loader\classloader\methodoverriding\regressions\549411\exploit
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[MarshalAsAttributeMarshalCookie.cmd_10632]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeMarshalCookie\MarshalAsAttributeMarshalCookie.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeMarshalCookie
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[GCSimulator_318.cmd_10633]
RelativePath=GC\Scenarios\GCSimulator\GCSimulator_318\GCSimulator_318.cmd
WorkingDir=GC\Scenarios\GCSimulator\GCSimulator_318
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CharIConvertibleToSByte.cmd_10702]
-RelativePath=CoreMangLib\cti\system\char\CharIConvertibleToSByte\CharIConvertibleToSByte.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIConvertibleToSByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[EnterExit05.cmd_10703]
RelativePath=baseservices\threading\generics\Monitor\EnterExit05\EnterExit05.cmd
WorkingDir=baseservices\threading\generics\Monitor\EnterExit05
Categories=EXPECTED_PASS
HostStyle=0
-[DllNotFoundExceptionCtor2.cmd_10716]
-RelativePath=CoreMangLib\cti\system\dllnotfoundexception\DllNotFoundExceptionCtor2\DllNotFoundExceptionCtor2.cmd
-WorkingDir=CoreMangLib\cti\system\dllnotfoundexception\DllNotFoundExceptionCtor2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
-[DecimalCtor6.cmd_10717]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalCtor6\DecimalCtor6.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalCtor6
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[dblarray4_cs_d.cmd_10718]
RelativePath=JIT\Methodical\doublearray\dblarray4_cs_d\dblarray4_cs_d.cmd
WorkingDir=JIT\Methodical\doublearray\dblarray4_cs_d
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int16IConvertibleToSByte.cmd_10771]
-RelativePath=CoreMangLib\cti\system\int16\Int16IConvertibleToSByte\Int16IConvertibleToSByte.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16IConvertibleToSByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[TryEnter06.cmd_10772]
RelativePath=baseservices\threading\generics\Monitor\TryEnter06\TryEnter06.cmd
WorkingDir=baseservices\threading\generics\Monitor\TryEnter06
Categories=EXPECTED_PASS
HostStyle=0
-[ByteIConvertibleToDateTime.cmd_10775]
-RelativePath=CoreMangLib\cti\system\byte\ByteIConvertibleToDateTime\ByteIConvertibleToDateTime.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteIConvertibleToDateTime
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[SuppressFinalize_Null.cmd_10776]
RelativePath=GC\API\GC\SuppressFinalize_Null\SuppressFinalize_Null.cmd
WorkingDir=GC\API\GC\SuppressFinalize_Null
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[BooleanIConvertibleToBoolean.cmd_10806]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanIConvertibleToBoolean\BooleanIConvertibleToBoolean.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanIConvertibleToBoolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[gc_base1_1.cmd_10807]
RelativePath=GC\Scenarios\GCBase1\gc_base1_1\gc_base1_1.cmd
WorkingDir=GC\Scenarios\GCBase1\gc_base1_1
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[DecimalToUInt64.cmd_10834]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToUInt64\DecimalToUInt64.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToUInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_dbgldc_mul.cmd_10835]
RelativePath=JIT\Methodical\int64\unsigned\_dbgldc_mul\_dbgldc_mul.cmd
WorkingDir=JIT\Methodical\int64\unsigned\_dbgldc_mul
Categories=EXPECTED_PASS
HostStyle=0
-[AutoResetEventSet.cmd_10854]
-RelativePath=CoreMangLib\cti\system\threading\autoresetevent\AutoResetEventSet\AutoResetEventSet.cmd
-WorkingDir=CoreMangLib\cti\system\threading\autoresetevent\AutoResetEventSet
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[simpledeadehregion_r.cmd_10855]
RelativePath=JIT\Methodical\eh\deadcode\simpledeadehregion_r\simpledeadehregion_r.cmd
WorkingDir=JIT\Methodical\eh\deadcode\simpledeadehregion_r
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int16Equals1.cmd_10884]
-RelativePath=CoreMangLib\cti\system\int16\Int16Equals1\Int16Equals1.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16Equals1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_speed_dbgrecurse.cmd_10885]
RelativePath=JIT\Methodical\Invoke\fptr\_speed_dbgrecurse\_speed_dbgrecurse.cmd
WorkingDir=JIT\Methodical\Invoke\fptr\_speed_dbgrecurse
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[FieldOffsetAttributeCtor.cmd_10928]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\fieldoffsetattribute\FieldOffsetAttributeCtor\FieldOffsetAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\fieldoffsetattribute\FieldOffsetAttributeCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[mixed2_cs_d.cmd_10929]
RelativePath=JIT\Directed\perffix\primitivevt\mixed2_cs_d\mixed2_cs_d.cmd
WorkingDir=JIT\Directed\perffix\primitivevt\mixed2_cs_d
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[AssemblyConfigurationAttribute.cmd_10956]
-RelativePath=CoreMangLib\cti\system\reflection\assemblyconfigurationattribute\AssemblyConfigurationAttribute\AssemblyConfigurationAttribute.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblyconfigurationattribute\AssemblyConfigurationAttribute
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[smallFrame.cmd_10957]
RelativePath=JIT\Methodical\tailcall_v4\smallFrame\smallFrame.cmd
WorkingDir=JIT\Methodical\tailcall_v4\smallFrame
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[WeakReferenceCtor2_PSC.cmd_10961]
-RelativePath=CoreMangLib\cti\system\weakreference\WeakReferenceCtor2_PSC\WeakReferenceCtor2_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\weakreference\WeakReferenceCtor2_PSC
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1.cmd_10962]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1\Generated1\Generated1.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1\Generated1
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringEquals1.cmd_10964]
-RelativePath=CoreMangLib\cti\system\string\StringEquals1\StringEquals1.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringEquals1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
-[CharIConvertibleToSingle.cmd_10965]
-RelativePath=CoreMangLib\cti\system\char\CharIConvertibleToSingle\CharIConvertibleToSingle.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIConvertibleToSingle
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[add_I4.cmd_10967]
RelativePath=JIT\IL_Conformance\Old\Conformance_Base\add_I4\add_I4.cmd
WorkingDir=JIT\IL_Conformance\Old\Conformance_Base\add_I4
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt16IConvertibleToUInt64.cmd_10994]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16IConvertibleToUInt64\UInt16IConvertibleToUInt64.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16IConvertibleToUInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[box-unbox-generics045.cmd_10995]
RelativePath=JIT\jit64\valuetypes\nullable\box-unbox\generics\box-unbox-generics045\box-unbox-generics045.cmd
WorkingDir=JIT\jit64\valuetypes\nullable\box-unbox\generics\box-unbox-generics045
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int64IConvertibleToUInt32.cmd_11012]
-RelativePath=CoreMangLib\cti\system\int64\Int64IConvertibleToUInt32\Int64IConvertibleToUInt32.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64IConvertibleToUInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1164.cmd_11013]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1164\Generated1164\Generated1164.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1164\Generated1164
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt32IConvertibleToType.cmd_11016]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32IConvertibleToType\UInt32IConvertibleToType.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32IConvertibleToType
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Richards.cmd_11017]
RelativePath=JIT\Performance\CodeQuality\V8\Richards\Richards\Richards.cmd
WorkingDir=JIT\Performance\CodeQuality\V8\Richards\Richards
Categories=EXPECTED_PASS
HostStyle=0
-[GCReRegisterForFinalize.cmd_11018]
-RelativePath=CoreMangLib\cti\system\gc\GCReRegisterForFinalize\GCReRegisterForFinalize.cmd
-WorkingDir=CoreMangLib\cti\system\gc\GCReRegisterForFinalize
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_speed_reljumps.cmd_11019]
RelativePath=JIT\Methodical\VT\callconv\_speed_reljumps\_speed_reljumps.cmd
WorkingDir=JIT\Methodical\VT\callconv\_speed_reljumps
Categories=EXPECTED_PASS
HostStyle=0
-[BooleanIConvertibleToInt32.cmd_11097]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanIConvertibleToInt32\BooleanIConvertibleToInt32.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanIConvertibleToInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b27535.cmd_11098]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M09.5-PDC\b27535\b27535\b27535.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M09.5-PDC\b27535\b27535
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt16IConvertibleToDateTime.cmd_11134]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16IConvertibleToDateTime\UInt16IConvertibleToDateTime.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16IConvertibleToDateTime
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[GenericAssertin.cmd_11135]
RelativePath=Loader\classloader\regressions\vsw305955\GenericAssertin\GenericAssertin.cmd
WorkingDir=Loader\classloader\regressions\vsw305955\GenericAssertin
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[SingleEpsilon.cmd_11138]
-RelativePath=CoreMangLib\cti\system\single\SingleEpsilon\SingleEpsilon.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleEpsilon
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Interfaces001.cmd_11139]
RelativePath=Loader\classloader\generics\Variance\Interfaces\Interfaces001\Interfaces001.cmd
WorkingDir=Loader\classloader\generics\Variance\Interfaces\Interfaces001
Categories=EXPECTED_PASS
HostStyle=0
-[StringIConvertibleToChar.cmd_11149]
-RelativePath=CoreMangLib\cti\system\string\StringIConvertibleToChar\StringIConvertibleToChar.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringIConvertibleToChar
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1162.cmd_11150]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1162\Generated1162\Generated1162.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1162\Generated1162
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[StringIEnumerableGetEnumerator.cmd_11192]
-RelativePath=CoreMangLib\cti\system\string\StringIEnumerableGetEnumerator\StringIEnumerableGetEnumerator.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringIEnumerableGetEnumerator
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[csgen.1.cmd_11195]
RelativePath=Regressions\coreclr\0582\csgen.1\csgen.1.cmd
WorkingDir=Regressions\coreclr\0582\csgen.1
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[BooleanIConvertibleToUInt16.cmd_11200]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanIConvertibleToUInt16\BooleanIConvertibleToUInt16.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanIConvertibleToUInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_dbginstance_cs.cmd_11202]
RelativePath=JIT\Methodical\Boxing\callconv\_dbginstance_cs\_dbginstance_cs.cmd
WorkingDir=JIT\Methodical\Boxing\callconv\_dbginstance_cs
Categories=EXPECTED_PASS
HostStyle=0
-[SingleToChar.cmd_11223]
-RelativePath=CoreMangLib\cti\system\single\SingleToChar\SingleToChar.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleToChar
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[threadstartarray.cmd_11224]
RelativePath=baseservices\threading\paramthreadstart\threadstartarray\threadstartarray.cmd
WorkingDir=baseservices\threading\paramthreadstart\threadstartarray
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[InAttributeCtor.cmd_11229]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\inattribute\InAttributeCtor\InAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\inattribute\InAttributeCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_il_dbgcatchfinally_tail.cmd_11230]
RelativePath=JIT\Methodical\Invoke\SEH\_il_dbgcatchfinally_tail\_il_dbgcatchfinally_tail.cmd
WorkingDir=JIT\Methodical\Invoke\SEH\_il_dbgcatchfinally_tail
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[SingleToSByte.cmd_11274]
-RelativePath=CoreMangLib\cti\system\single\SingleToSByte\SingleToSByte.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleToSByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[csgen.2.cmd_11275]
RelativePath=hosting\stress\testset1\csgen.2\csgen.2.cmd
WorkingDir=hosting\stress\testset1\csgen.2
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UInt16IConvertibleToType.cmd_11329]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16IConvertibleToType\UInt16IConvertibleToType.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16IConvertibleToType
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Generated1008.cmd_11330]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1008\Generated1008\Generated1008.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1008\Generated1008
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[AssemblyNameGetPublicKey.cmd_11335]
-RelativePath=CoreMangLib\cti\system\reflection\assemblyname\AssemblyNameGetPublicKey\AssemblyNameGetPublicKey.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblyname\AssemblyNameGetPublicKey
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[nestedtryfault_d.cmd_11336]
RelativePath=JIT\Methodical\eh\nested\nestedtry\nestedtryfault_d\nestedtryfault_d.cmd
WorkingDir=JIT\Methodical\eh\nested\nestedtry\nestedtryfault_d
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Int64ToString3.cmd_11357]
-RelativePath=CoreMangLib\cti\system\int64\Int64ToString3\Int64ToString3.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64ToString3
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[_relmuldiv.cmd_11359]
RelativePath=JIT\Methodical\int64\unsigned\_relmuldiv\_relmuldiv.cmd
WorkingDir=JIT\Methodical\int64\unsigned\_relmuldiv
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[BooleanCompareTo_Boolean.cmd_697]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanCompareTo_Boolean\BooleanCompareTo_Boolean.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanCompareTo_Boolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[BooleanEquals_Boolean.cmd_698]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanEquals_Boolean\BooleanEquals_Boolean.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanEquals_Boolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[BooleanEquals_Object.cmd_699]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanEquals_Object\BooleanEquals_Object.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanEquals_Object
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[BooleanFalseString.cmd_700]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanFalseString\BooleanFalseString.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanFalseString
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[BooleanGetHashCode.cmd_701]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanGetHashCode\BooleanGetHashCode.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanGetHashCode
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[BooleanIConvertibleToBoolean.cmd_702]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanIConvertibleToBoolean\BooleanIConvertibleToBoolean.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanIConvertibleToBoolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[BooleanIConvertibleToByte.cmd_703]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanIConvertibleToByte\BooleanIConvertibleToByte.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanIConvertibleToByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[BooleanIConvertibleToChar.cmd_704]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanIConvertibleToChar\BooleanIConvertibleToChar.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanIConvertibleToChar
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[BooleanIConvertibleToDateTime.cmd_705]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanIConvertibleToDateTime\BooleanIConvertibleToDateTime.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanIConvertibleToDateTime
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[BooleanIConvertibleToDecimal.cmd_706]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanIConvertibleToDecimal\BooleanIConvertibleToDecimal.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanIConvertibleToDecimal
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[BooleanIConvertibleToDouble.cmd_707]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanIConvertibleToDouble\BooleanIConvertibleToDouble.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanIConvertibleToDouble
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[BooleanIConvertibleToInt16.cmd_708]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanIConvertibleToInt16\BooleanIConvertibleToInt16.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanIConvertibleToInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[BooleanIConvertibleToInt32.cmd_709]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanIConvertibleToInt32\BooleanIConvertibleToInt32.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanIConvertibleToInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[BooleanIConvertibleToInt64.cmd_710]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanIConvertibleToInt64\BooleanIConvertibleToInt64.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanIConvertibleToInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[BooleanIConvertibleToSByte.cmd_711]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanIConvertibleToSByte\BooleanIConvertibleToSByte.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanIConvertibleToSByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[BooleanIConvertibleToSingle.cmd_712]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanIConvertibleToSingle\BooleanIConvertibleToSingle.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanIConvertibleToSingle
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[BooleanIConvertibleToType.cmd_713]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanIConvertibleToType\BooleanIConvertibleToType.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanIConvertibleToType
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[BooleanIConvertibleToUInt16.cmd_714]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanIConvertibleToUInt16\BooleanIConvertibleToUInt16.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanIConvertibleToUInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[BooleanIConvertibleToUInt32.cmd_715]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanIConvertibleToUInt32\BooleanIConvertibleToUInt32.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanIConvertibleToUInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[BooleanIConvertibleToUInt64.cmd_716]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanIConvertibleToUInt64\BooleanIConvertibleToUInt64.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanIConvertibleToUInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[BooleanToString.cmd_718]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanToString\BooleanToString.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanToString
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[BooleanTrueString.cmd_719]
-RelativePath=CoreMangLib\cti\system\boolean\BooleanTrueString\BooleanTrueString.cmd
-WorkingDir=CoreMangLib\cti\system\boolean\BooleanTrueString
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ByteEquals1.cmd_721]
-RelativePath=CoreMangLib\cti\system\byte\ByteEquals1\ByteEquals1.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteEquals1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ByteEquals2.cmd_722]
-RelativePath=CoreMangLib\cti\system\byte\ByteEquals2\ByteEquals2.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteEquals2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ByteGetHashCode.cmd_723]
-RelativePath=CoreMangLib\cti\system\byte\ByteGetHashCode\ByteGetHashCode.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteGetHashCode
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ByteIConvertibleToBoolean.cmd_724]
-RelativePath=CoreMangLib\cti\system\byte\ByteIConvertibleToBoolean\ByteIConvertibleToBoolean.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteIConvertibleToBoolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ByteIConvertibleToByte.cmd_725]
-RelativePath=CoreMangLib\cti\system\byte\ByteIConvertibleToByte\ByteIConvertibleToByte.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteIConvertibleToByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ByteIConvertibleToChar.cmd_726]
-RelativePath=CoreMangLib\cti\system\byte\ByteIConvertibleToChar\ByteIConvertibleToChar.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteIConvertibleToChar
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ByteIConvertibleToDateTime.cmd_727]
-RelativePath=CoreMangLib\cti\system\byte\ByteIConvertibleToDateTime\ByteIConvertibleToDateTime.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteIConvertibleToDateTime
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ByteIConvertibleToDecimal.cmd_728]
-RelativePath=CoreMangLib\cti\system\byte\ByteIConvertibleToDecimal\ByteIConvertibleToDecimal.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteIConvertibleToDecimal
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ByteIConvertibleToDouble.cmd_729]
-RelativePath=CoreMangLib\cti\system\byte\ByteIConvertibleToDouble\ByteIConvertibleToDouble.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteIConvertibleToDouble
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ByteIConvertibleToInt16.cmd_730]
-RelativePath=CoreMangLib\cti\system\byte\ByteIConvertibleToInt16\ByteIConvertibleToInt16.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteIConvertibleToInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ByteIConvertibleToInt32.cmd_731]
-RelativePath=CoreMangLib\cti\system\byte\ByteIConvertibleToInt32\ByteIConvertibleToInt32.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteIConvertibleToInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ByteIConvertibleToInt64.cmd_732]
-RelativePath=CoreMangLib\cti\system\byte\ByteIConvertibleToInt64\ByteIConvertibleToInt64.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteIConvertibleToInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ByteIConvertibleToSByte.cmd_733]
-RelativePath=CoreMangLib\cti\system\byte\ByteIConvertibleToSByte\ByteIConvertibleToSByte.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteIConvertibleToSByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ByteIConvertibleToSingle.cmd_734]
-RelativePath=CoreMangLib\cti\system\byte\ByteIConvertibleToSingle\ByteIConvertibleToSingle.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteIConvertibleToSingle
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ByteIConvertibleToType.cmd_735]
-RelativePath=CoreMangLib\cti\system\byte\ByteIConvertibleToType\ByteIConvertibleToType.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteIConvertibleToType
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ByteIConvertibleToUInt16.cmd_736]
-RelativePath=CoreMangLib\cti\system\byte\ByteIConvertibleToUInt16\ByteIConvertibleToUInt16.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteIConvertibleToUInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ByteIConvertibleToUInt32.cmd_737]
-RelativePath=CoreMangLib\cti\system\byte\ByteIConvertibleToUInt32\ByteIConvertibleToUInt32.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteIConvertibleToUInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ByteIConvertibleToUInt64.cmd_738]
-RelativePath=CoreMangLib\cti\system\byte\ByteIConvertibleToUInt64\ByteIConvertibleToUInt64.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteIConvertibleToUInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ByteMaxValue.cmd_739]
-RelativePath=CoreMangLib\cti\system\byte\ByteMaxValue\ByteMaxValue.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteMaxValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ByteMinValue.cmd_740]
-RelativePath=CoreMangLib\cti\system\byte\ByteMinValue\ByteMinValue.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteMinValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ByteToString2.cmd_743]
-RelativePath=CoreMangLib\cti\system\byte\ByteToString2\ByteToString2.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteToString2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ByteToString3.cmd_744]
-RelativePath=CoreMangLib\cti\system\byte\ByteToString3\ByteToString3.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteToString3
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ByteToString4.cmd_745]
-RelativePath=CoreMangLib\cti\system\byte\ByteToString4\ByteToString4.cmd
-WorkingDir=CoreMangLib\cti\system\byte\ByteToString4
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharCompateTo1.cmd_747]
-RelativePath=CoreMangLib\cti\system\char\CharCompateTo1\CharCompateTo1.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharCompateTo1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharEquals1.cmd_748]
-RelativePath=CoreMangLib\cti\system\char\CharEquals1\CharEquals1.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharEquals1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharEquals2.cmd_749]
-RelativePath=CoreMangLib\cti\system\char\CharEquals2\CharEquals2.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharEquals2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharGetHashCode.cmd_750]
-RelativePath=CoreMangLib\cti\system\char\CharGetHashCode\CharGetHashCode.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharGetHashCode
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIConvertibleToBoolean.cmd_751]
-RelativePath=CoreMangLib\cti\system\char\CharIConvertibleToBoolean\CharIConvertibleToBoolean.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIConvertibleToBoolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIConvertibleToByte.cmd_752]
-RelativePath=CoreMangLib\cti\system\char\CharIConvertibleToByte\CharIConvertibleToByte.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIConvertibleToByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIConvertibleToChar.cmd_753]
-RelativePath=CoreMangLib\cti\system\char\CharIConvertibleToChar\CharIConvertibleToChar.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIConvertibleToChar
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIConvertibleToDateTime.cmd_754]
-RelativePath=CoreMangLib\cti\system\char\CharIConvertibleToDateTime\CharIConvertibleToDateTime.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIConvertibleToDateTime
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIConvertibleToDecimal.cmd_755]
-RelativePath=CoreMangLib\cti\system\char\CharIConvertibleToDecimal\CharIConvertibleToDecimal.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIConvertibleToDecimal
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIConvertibleToDouble.cmd_756]
-RelativePath=CoreMangLib\cti\system\char\CharIConvertibleToDouble\CharIConvertibleToDouble.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIConvertibleToDouble
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIConvertibleToInt16.cmd_757]
-RelativePath=CoreMangLib\cti\system\char\CharIConvertibleToInt16\CharIConvertibleToInt16.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIConvertibleToInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIConvertibleToInt32.cmd_758]
-RelativePath=CoreMangLib\cti\system\char\CharIConvertibleToInt32\CharIConvertibleToInt32.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIConvertibleToInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIConvertibleToInt64.cmd_759]
-RelativePath=CoreMangLib\cti\system\char\CharIConvertibleToInt64\CharIConvertibleToInt64.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIConvertibleToInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIConvertibleToSByte.cmd_760]
-RelativePath=CoreMangLib\cti\system\char\CharIConvertibleToSByte\CharIConvertibleToSByte.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIConvertibleToSByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIConvertibleToSingle.cmd_761]
-RelativePath=CoreMangLib\cti\system\char\CharIConvertibleToSingle\CharIConvertibleToSingle.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIConvertibleToSingle
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIConvertibleToType.cmd_762]
-RelativePath=CoreMangLib\cti\system\char\CharIConvertibleToType\CharIConvertibleToType.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIConvertibleToType
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIConvertibleToUInt16.cmd_763]
-RelativePath=CoreMangLib\cti\system\char\CharIConvertibleToUInt16\CharIConvertibleToUInt16.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIConvertibleToUInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIConvertibleToUInt32.cmd_764]
-RelativePath=CoreMangLib\cti\system\char\CharIConvertibleToUInt32\CharIConvertibleToUInt32.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIConvertibleToUInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIConvertibleToUInt64.cmd_765]
-RelativePath=CoreMangLib\cti\system\char\CharIConvertibleToUInt64\CharIConvertibleToUInt64.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIConvertibleToUInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIsControl1.cmd_766]
-RelativePath=CoreMangLib\cti\system\char\CharIsControl1\CharIsControl1.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsControl1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIsControl2.cmd_767]
-RelativePath=CoreMangLib\cti\system\char\CharIsControl2\CharIsControl2.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsControl2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIsDigit1.cmd_768]
-RelativePath=CoreMangLib\cti\system\char\CharIsDigit1\CharIsDigit1.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsDigit1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIsDigit2.cmd_769]
-RelativePath=CoreMangLib\cti\system\char\CharIsDigit2\CharIsDigit2.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsDigit2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIsLetter1.cmd_770]
-RelativePath=CoreMangLib\cti\system\char\CharIsLetter1\CharIsLetter1.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsLetter1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIsLetter2.cmd_771]
-RelativePath=CoreMangLib\cti\system\char\CharIsLetter2\CharIsLetter2.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsLetter2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIsLetterOrDigit1.cmd_772]
-RelativePath=CoreMangLib\cti\system\char\CharIsLetterOrDigit1\CharIsLetterOrDigit1.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsLetterOrDigit1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIsLetterOrDigit2.cmd_773]
-RelativePath=CoreMangLib\cti\system\char\CharIsLetterOrDigit2\CharIsLetterOrDigit2.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsLetterOrDigit2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIsLower1.cmd_774]
-RelativePath=CoreMangLib\cti\system\char\CharIsLower1\CharIsLower1.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsLower1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIsLower2.cmd_775]
-RelativePath=CoreMangLib\cti\system\char\CharIsLower2\CharIsLower2.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsLower2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIsNumber1.cmd_776]
-RelativePath=CoreMangLib\cti\system\char\CharIsNumber1\CharIsNumber1.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsNumber1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIsNumber2.cmd_777]
-RelativePath=CoreMangLib\cti\system\char\CharIsNumber2\CharIsNumber2.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsNumber2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIsPunctuation2.cmd_778]
-RelativePath=CoreMangLib\cti\system\char\CharIsPunctuation2\CharIsPunctuation2.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsPunctuation2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIsSeparator1.cmd_779]
-RelativePath=CoreMangLib\cti\system\char\CharIsSeparator1\CharIsSeparator1.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsSeparator1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIsSeparator2.cmd_780]
-RelativePath=CoreMangLib\cti\system\char\CharIsSeparator2\CharIsSeparator2.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsSeparator2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIsSurrogate1.cmd_781]
-RelativePath=CoreMangLib\cti\system\char\CharIsSurrogate1\CharIsSurrogate1.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsSurrogate1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIsSurrogate2.cmd_782]
-RelativePath=CoreMangLib\cti\system\char\CharIsSurrogate2\CharIsSurrogate2.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsSurrogate2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIsSurrogatePair1.cmd_783]
-RelativePath=CoreMangLib\cti\system\char\CharIsSurrogatePair1\CharIsSurrogatePair1.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsSurrogatePair1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIsSurrogatePair2.cmd_784]
-RelativePath=CoreMangLib\cti\system\char\CharIsSurrogatePair2\CharIsSurrogatePair2.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsSurrogatePair2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIsSymbol1.cmd_785]
-RelativePath=CoreMangLib\cti\system\char\CharIsSymbol1\CharIsSymbol1.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsSymbol1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIsUpper1.cmd_786]
-RelativePath=CoreMangLib\cti\system\char\CharIsUpper1\CharIsUpper1.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsUpper1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIsUpper2.cmd_787]
-RelativePath=CoreMangLib\cti\system\char\CharIsUpper2\CharIsUpper2.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsUpper2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIsWhiteSpace1.cmd_788]
-RelativePath=CoreMangLib\cti\system\char\CharIsWhiteSpace1\CharIsWhiteSpace1.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsWhiteSpace1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharIsWhiteSpace2.cmd_789]
-RelativePath=CoreMangLib\cti\system\char\CharIsWhiteSpace2\CharIsWhiteSpace2.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharIsWhiteSpace2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharMaxValue.cmd_790]
-RelativePath=CoreMangLib\cti\system\char\CharMaxValue\CharMaxValue.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharMaxValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharMinValue.cmd_791]
-RelativePath=CoreMangLib\cti\system\char\CharMinValue\CharMinValue.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharMinValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharToString1.cmd_792]
-RelativePath=CoreMangLib\cti\system\char\CharToString1\CharToString1.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharToString1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharToString2.cmd_793]
-RelativePath=CoreMangLib\cti\system\char\CharToString2\CharToString2.cmd
-WorkingDir=CoreMangLib\cti\system\char\CharToString2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharEnumeratorCurrent.cmd_795]
-RelativePath=CoreMangLib\cti\system\charenumerator\CharEnumeratorCurrent\CharEnumeratorCurrent.cmd
-WorkingDir=CoreMangLib\cti\system\charenumerator\CharEnumeratorCurrent
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharEnumeratorIEnumeratorCurrent.cmd_796]
-RelativePath=CoreMangLib\cti\system\charenumerator\CharEnumeratorIEnumeratorCurrent\CharEnumeratorIEnumeratorCurrent.cmd
-WorkingDir=CoreMangLib\cti\system\charenumerator\CharEnumeratorIEnumeratorCurrent
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharEnumeratorIEnumgetCurrent.cmd_797]
-RelativePath=CoreMangLib\cti\system\charenumerator\CharEnumeratorIEnumgetCurrent\CharEnumeratorIEnumgetCurrent.cmd
-WorkingDir=CoreMangLib\cti\system\charenumerator\CharEnumeratorIEnumgetCurrent
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharEnumeratorMoveNext.cmd_798]
-RelativePath=CoreMangLib\cti\system\charenumerator\CharEnumeratorMoveNext\CharEnumeratorMoveNext.cmd
-WorkingDir=CoreMangLib\cti\system\charenumerator\CharEnumeratorMoveNext
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CharEnumeratorReset.cmd_799]
-RelativePath=CoreMangLib\cti\system\charenumerator\CharEnumeratorReset\CharEnumeratorReset.cmd
-WorkingDir=CoreMangLib\cti\system\charenumerator\CharEnumeratorReset
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimaFloor.cmd_1293]
-RelativePath=CoreMangLib\cti\system\decimal\DecimaFloor\DecimaFloor.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimaFloor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalAdd.cmd_1294]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalAdd\DecimalAdd.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalAdd
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalCompare.cmd_1295]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalCompare\DecimalCompare.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalCompare
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalCtor1.cmd_1296]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalCtor1\DecimalCtor1.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalCtor1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalCtor2.cmd_1297]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalCtor2\DecimalCtor2.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalCtor2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalCtor3.cmd_1298]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalCtor3\DecimalCtor3.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalCtor3
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalCtor4.cmd_1299]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalCtor4\DecimalCtor4.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalCtor4
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalCtor5.cmd_1300]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalCtor5\DecimalCtor5.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalCtor5
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalCtor6.cmd_1301]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalCtor6\DecimalCtor6.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalCtor6
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalCtor7.cmd_1302]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalCtor7\DecimalCtor7.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalCtor7
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalCtor8.cmd_1303]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalCtor8\DecimalCtor8.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalCtor8
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalDivide.cmd_1304]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalDivide\DecimalDivide.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalDivide
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalEquals1.cmd_1305]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalEquals1\DecimalEquals1.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalEquals1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalEquals2.cmd_1306]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalEquals2\DecimalEquals2.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalEquals2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalEquals3.cmd_1307]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalEquals3\DecimalEquals3.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalEquals3
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalGetBits.cmd_1308]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalGetBits\DecimalGetBits.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalGetBits
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalMaxValue.cmd_1309]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalMaxValue\DecimalMaxValue.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalMaxValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalMinusOne.cmd_1310]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalMinusOne\DecimalMinusOne.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalMinusOne
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalMinValue.cmd_1311]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalMinValue\DecimalMinValue.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalMinValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalMultiply.cmd_1312]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalMultiply\DecimalMultiply.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalMultiply
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalNegate.cmd_1313]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalNegate\DecimalNegate.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalNegate
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalOne.cmd_1314]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalOne\DecimalOne.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalOne
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalSubtract.cmd_1320]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalSubtract\DecimalSubtract.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalSubtract
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalToBoolean.cmd_1321]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToBoolean\DecimalToBoolean.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToBoolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalToByte.cmd_1322]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToByte\DecimalToByte.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalToByte1.cmd_1323]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToByte1\DecimalToByte1.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToByte1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalToChar.cmd_1324]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToChar\DecimalToChar.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToChar
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalToDateTime.cmd_1325]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToDateTime\DecimalToDateTime.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToDateTime
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalToDecimal.cmd_1326]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToDecimal\DecimalToDecimal.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToDecimal
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalToDouble.cmd_1327]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToDouble\DecimalToDouble.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToDouble
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalToInt16.cmd_1328]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToInt16\DecimalToInt16.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalToInt32.cmd_1329]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToInt32\DecimalToInt32.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalToInt64.cmd_1330]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToInt64\DecimalToInt64.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalToSByte.cmd_1331]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToSByte\DecimalToSByte.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToSByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalToSingle.cmd_1332]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToSingle\DecimalToSingle.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToSingle
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalToString1.cmd_1333]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToString1\DecimalToString1.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToString1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalToString2.cmd_1334]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToString2\DecimalToString2.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToString2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalToString3.cmd_1335]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToString3\DecimalToString3.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToString3
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalToString4.cmd_1336]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToString4\DecimalToString4.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToString4
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalToUInt16.cmd_1337]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToUInt16\DecimalToUInt16.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToUInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalToUInt32.cmd_1338]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToUInt32\DecimalToUInt32.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToUInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalToUInt64.cmd_1339]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalToUInt64\DecimalToUInt64.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalToUInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalTruncate.cmd_1340]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalTruncate\DecimalTruncate.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalTruncate
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalZero.cmd_1342]
-RelativePath=CoreMangLib\cti\system\decimal\DecimalZero\DecimalZero.cmd
-WorkingDir=CoreMangLib\cti\system\decimal\DecimalZero
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DelegateABI.cmd_1343]
-RelativePath=CoreMangLib\cti\system\delegate\DelegateABI\DelegateABI.cmd
-WorkingDir=CoreMangLib\cti\system\delegate\DelegateABI
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
-[DelegateCombine1.cmd_1344]
-RelativePath=CoreMangLib\cti\system\delegate\DelegateCombine1\DelegateCombine1.cmd
-WorkingDir=CoreMangLib\cti\system\delegate\DelegateCombine1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DelegateCombineImpl.cmd_1345]
-RelativePath=CoreMangLib\cti\system\delegate\DelegateCombineImpl\DelegateCombineImpl.cmd
-WorkingDir=CoreMangLib\cti\system\delegate\DelegateCombineImpl
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DelegateEquals1.cmd_1346]
-RelativePath=CoreMangLib\cti\system\delegate\DelegateEquals1\DelegateEquals1.cmd
-WorkingDir=CoreMangLib\cti\system\delegate\DelegateEquals1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DelegateGetHashCode1.cmd_1347]
-RelativePath=CoreMangLib\cti\system\delegate\DelegateGetHashCode1\DelegateGetHashCode1.cmd
-WorkingDir=CoreMangLib\cti\system\delegate\DelegateGetHashCode1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DelegateGetInvocationList1.cmd_1348]
-RelativePath=CoreMangLib\cti\system\delegate\DelegateGetInvocationList1\DelegateGetInvocationList1.cmd
-WorkingDir=CoreMangLib\cti\system\delegate\DelegateGetInvocationList1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DelegateRemove.cmd_1349]
-RelativePath=CoreMangLib\cti\system\delegate\DelegateRemove\DelegateRemove.cmd
-WorkingDir=CoreMangLib\cti\system\delegate\DelegateRemove
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[delegateRemoveImpl.cmd_1350]
-RelativePath=CoreMangLib\cti\system\delegate\delegateRemoveImpl\delegateRemoveImpl.cmd
-WorkingDir=CoreMangLib\cti\system\delegate\delegateRemoveImpl
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ConditionalAttributeConditionString.cmd_1351]
-RelativePath=CoreMangLib\cti\system\diagnostics\conditionalattribute\ConditionalAttributeConditionString\ConditionalAttributeConditionString.cmd
-WorkingDir=CoreMangLib\cti\system\diagnostics\conditionalattribute\ConditionalAttributeConditionString
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ConditionalAttributeCtor.cmd_1352]
-RelativePath=CoreMangLib\cti\system\diagnostics\conditionalattribute\ConditionalAttributeCtor\ConditionalAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\diagnostics\conditionalattribute\ConditionalAttributeCtor
-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
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DllNotFoundExceptionCtor2.cmd_1362]
-RelativePath=CoreMangLib\cti\system\dllnotfoundexception\DllNotFoundExceptionCtor2\DllNotFoundExceptionCtor2.cmd
-WorkingDir=CoreMangLib\cti\system\dllnotfoundexception\DllNotFoundExceptionCtor2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DllNotFoundExceptionCtor3.cmd_1363]
-RelativePath=CoreMangLib\cti\system\dllnotfoundexception\DllNotFoundExceptionCtor3\DllNotFoundExceptionCtor3.cmd
-WorkingDir=CoreMangLib\cti\system\dllnotfoundexception\DllNotFoundExceptionCtor3
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DoubleCompareTo1.cmd_1364]
-RelativePath=CoreMangLib\cti\system\double\DoubleCompareTo1\DoubleCompareTo1.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleCompareTo1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DoubleEpsilon.cmd_1365]
-RelativePath=CoreMangLib\cti\system\double\DoubleEpsilon\DoubleEpsilon.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleEpsilon
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DoubleEquals1.cmd_1366]
-RelativePath=CoreMangLib\cti\system\double\DoubleEquals1\DoubleEquals1.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleEquals1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DoubleEquals2.cmd_1367]
-RelativePath=CoreMangLib\cti\system\double\DoubleEquals2\DoubleEquals2.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleEquals2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DoubleIConvertibleToBoolean.cmd_1369]
-RelativePath=CoreMangLib\cti\system\double\DoubleIConvertibleToBoolean\DoubleIConvertibleToBoolean.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleIConvertibleToBoolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DoubleIConvertibleToByte.cmd_1370]
-RelativePath=CoreMangLib\cti\system\double\DoubleIConvertibleToByte\DoubleIConvertibleToByte.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleIConvertibleToByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DoubleIConvertibleToDateTime.cmd_1371]
-RelativePath=CoreMangLib\cti\system\double\DoubleIConvertibleToDateTime\DoubleIConvertibleToDateTime.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleIConvertibleToDateTime
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DoubleIConvertibleToDecimal.cmd_1372]
-RelativePath=CoreMangLib\cti\system\double\DoubleIConvertibleToDecimal\DoubleIConvertibleToDecimal.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleIConvertibleToDecimal
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DoubleIConvertibleToDouble.cmd_1373]
-RelativePath=CoreMangLib\cti\system\double\DoubleIConvertibleToDouble\DoubleIConvertibleToDouble.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleIConvertibleToDouble
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DoubleIConvertibleToInt16.cmd_1374]
-RelativePath=CoreMangLib\cti\system\double\DoubleIConvertibleToInt16\DoubleIConvertibleToInt16.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleIConvertibleToInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DoubleIConvertibleToInt32.cmd_1375]
-RelativePath=CoreMangLib\cti\system\double\DoubleIConvertibleToInt32\DoubleIConvertibleToInt32.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleIConvertibleToInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DoubleIConvertibleToInt64.cmd_1376]
-RelativePath=CoreMangLib\cti\system\double\DoubleIConvertibleToInt64\DoubleIConvertibleToInt64.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleIConvertibleToInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DoubleIConvertibleToSByte.cmd_1377]
-RelativePath=CoreMangLib\cti\system\double\DoubleIConvertibleToSByte\DoubleIConvertibleToSByte.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleIConvertibleToSByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DoubleIConvertibleToSingle.cmd_1378]
-RelativePath=CoreMangLib\cti\system\double\DoubleIConvertibleToSingle\DoubleIConvertibleToSingle.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleIConvertibleToSingle
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DoubleIsInfinity.cmd_1379]
-RelativePath=CoreMangLib\cti\system\double\DoubleIsInfinity\DoubleIsInfinity.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleIsInfinity
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DoubleIsNaN.cmd_1380]
-RelativePath=CoreMangLib\cti\system\double\DoubleIsNaN\DoubleIsNaN.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleIsNaN
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DoubleIsNegativeInfinity.cmd_1381]
-RelativePath=CoreMangLib\cti\system\double\DoubleIsNegativeInfinity\DoubleIsNegativeInfinity.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleIsNegativeInfinity
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DoubleIsPositiveInfinity.cmd_1382]
-RelativePath=CoreMangLib\cti\system\double\DoubleIsPositiveInfinity\DoubleIsPositiveInfinity.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleIsPositiveInfinity
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DoubleMaxValue.cmd_1383]
-RelativePath=CoreMangLib\cti\system\double\DoubleMaxValue\DoubleMaxValue.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleMaxValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DoubleMinValue.cmd_1384]
-RelativePath=CoreMangLib\cti\system\double\DoubleMinValue\DoubleMinValue.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleMinValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DoubleNaN.cmd_1385]
-RelativePath=CoreMangLib\cti\system\double\DoubleNaN\DoubleNaN.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleNaN
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DoubleNegativeInfinity.cmd_1386]
-RelativePath=CoreMangLib\cti\system\double\DoubleNegativeInfinity\DoubleNegativeInfinity.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleNegativeInfinity
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DoublePositiveInfinity.cmd_1388]
-RelativePath=CoreMangLib\cti\system\double\DoublePositiveInfinity\DoublePositiveInfinity.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoublePositiveInfinity
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DoubleToString1.cmd_1389]
-RelativePath=CoreMangLib\cti\system\double\DoubleToString1\DoubleToString1.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleToString1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DoubleToString2.cmd_1390]
-RelativePath=CoreMangLib\cti\system\double\DoubleToString2\DoubleToString2.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleToString2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DoubleToString3.cmd_1391]
-RelativePath=CoreMangLib\cti\system\double\DoubleToString3\DoubleToString3.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleToString3
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DoubleToString4.cmd_1392]
-RelativePath=CoreMangLib\cti\system\double\DoubleToString4\DoubleToString4.cmd
-WorkingDir=CoreMangLib\cti\system\double\DoubleToString4
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[EnumIConvertibleToInt64.cmd_1394]
-RelativePath=CoreMangLib\cti\system\enum\EnumIConvertibleToInt64\EnumIConvertibleToInt64.cmd
-WorkingDir=CoreMangLib\cti\system\enum\EnumIConvertibleToInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[EnumIConvertibleToSingle.cmd_1395]
-RelativePath=CoreMangLib\cti\system\enum\EnumIConvertibleToSingle\EnumIConvertibleToSingle.cmd
-WorkingDir=CoreMangLib\cti\system\enum\EnumIConvertibleToSingle
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[EnumIConvertibleToType.cmd_1396]
-RelativePath=CoreMangLib\cti\system\enum\EnumIConvertibleToType\EnumIConvertibleToType.cmd
-WorkingDir=CoreMangLib\cti\system\enum\EnumIConvertibleToType
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[EnumIConvertibleToUint16.cmd_1397]
-RelativePath=CoreMangLib\cti\system\enum\EnumIConvertibleToUint16\EnumIConvertibleToUint16.cmd
-WorkingDir=CoreMangLib\cti\system\enum\EnumIConvertibleToUint16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[EnumIConvertibleToUint32.cmd_1398]
-RelativePath=CoreMangLib\cti\system\enum\EnumIConvertibleToUint32\EnumIConvertibleToUint32.cmd
-WorkingDir=CoreMangLib\cti\system\enum\EnumIConvertibleToUint32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[EnumIConvertibleToUint64.cmd_1399]
-RelativePath=CoreMangLib\cti\system\enum\EnumIConvertibleToUint64\EnumIConvertibleToUint64.cmd
-WorkingDir=CoreMangLib\cti\system\enum\EnumIConvertibleToUint64
-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
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[GCCollect.cmd_1419]
-RelativePath=CoreMangLib\cti\system\gc\GCCollect\GCCollect.cmd
-WorkingDir=CoreMangLib\cti\system\gc\GCCollect
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS;GCSTRESS_EXCLUDE
-HostStyle=0
-
-[GCGetTotalMemory.cmd_1420]
-RelativePath=CoreMangLib\cti\system\gc\GCGetTotalMemory\GCGetTotalMemory.cmd
-WorkingDir=CoreMangLib\cti\system\gc\GCGetTotalMemory
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[GCKeepAlive.cmd_1421]
-RelativePath=CoreMangLib\cti\system\gc\GCKeepAlive\GCKeepAlive.cmd
-WorkingDir=CoreMangLib\cti\system\gc\GCKeepAlive
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[GCMaxGeneration.cmd_1422]
-RelativePath=CoreMangLib\cti\system\gc\GCMaxGeneration\GCMaxGeneration.cmd
-WorkingDir=CoreMangLib\cti\system\gc\GCMaxGeneration
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[GCReRegisterForFinalize.cmd_1423]
-RelativePath=CoreMangLib\cti\system\gc\GCReRegisterForFinalize\GCReRegisterForFinalize.cmd
-WorkingDir=CoreMangLib\cti\system\gc\GCReRegisterForFinalize
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;3392;LONG_RUNNING;EXPECTED_PASS
-HostStyle=0
-
-[GCSuppressFinalize.cmd_1424]
-RelativePath=CoreMangLib\cti\system\gc\GCSuppressFinalize\GCSuppressFinalize.cmd
-WorkingDir=CoreMangLib\cti\system\gc\GCSuppressFinalize
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[GCWaitForPendingFinalizers.cmd_1425]
-RelativePath=CoreMangLib\cti\system\gc\GCWaitForPendingFinalizers\GCWaitForPendingFinalizers.cmd
-WorkingDir=CoreMangLib\cti\system\gc\GCWaitForPendingFinalizers
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[IConvertibleToBoolean.cmd_1582]
-RelativePath=CoreMangLib\cti\system\iconvertible\IConvertibleToBoolean\IConvertibleToBoolean.cmd
-WorkingDir=CoreMangLib\cti\system\iconvertible\IConvertibleToBoolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[IConvertibleToByte.cmd_1583]
-RelativePath=CoreMangLib\cti\system\iconvertible\IConvertibleToByte\IConvertibleToByte.cmd
-WorkingDir=CoreMangLib\cti\system\iconvertible\IConvertibleToByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[IConvertibleToChar.cmd_1584]
-RelativePath=CoreMangLib\cti\system\iconvertible\IConvertibleToChar\IConvertibleToChar.cmd
-WorkingDir=CoreMangLib\cti\system\iconvertible\IConvertibleToChar
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[IConvertibleToDateTime.cmd_1585]
-RelativePath=CoreMangLib\cti\system\iconvertible\IConvertibleToDateTime\IConvertibleToDateTime.cmd
-WorkingDir=CoreMangLib\cti\system\iconvertible\IConvertibleToDateTime
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[IConvertibleToDecimal.cmd_1586]
-RelativePath=CoreMangLib\cti\system\iconvertible\IConvertibleToDecimal\IConvertibleToDecimal.cmd
-WorkingDir=CoreMangLib\cti\system\iconvertible\IConvertibleToDecimal
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[IConvertibleToDouble.cmd_1587]
-RelativePath=CoreMangLib\cti\system\iconvertible\IConvertibleToDouble\IConvertibleToDouble.cmd
-WorkingDir=CoreMangLib\cti\system\iconvertible\IConvertibleToDouble
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[IConvertibleToInt16.cmd_1588]
-RelativePath=CoreMangLib\cti\system\iconvertible\IConvertibleToInt16\IConvertibleToInt16.cmd
-WorkingDir=CoreMangLib\cti\system\iconvertible\IConvertibleToInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[IConvertibleToInt32.cmd_1589]
-RelativePath=CoreMangLib\cti\system\iconvertible\IConvertibleToInt32\IConvertibleToInt32.cmd
-WorkingDir=CoreMangLib\cti\system\iconvertible\IConvertibleToInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[IConvertibleToInt64.cmd_1590]
-RelativePath=CoreMangLib\cti\system\iconvertible\IConvertibleToInt64\IConvertibleToInt64.cmd
-WorkingDir=CoreMangLib\cti\system\iconvertible\IConvertibleToInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int32CompareTo1.cmd_1596]
-RelativePath=CoreMangLib\cti\system\int\Int32CompareTo1\Int32CompareTo1.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32CompareTo1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int32Equals1.cmd_1597]
-RelativePath=CoreMangLib\cti\system\int\Int32Equals1\Int32Equals1.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32Equals1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int32Equals2.cmd_1598]
-RelativePath=CoreMangLib\cti\system\int\Int32Equals2\Int32Equals2.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32Equals2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int32GetHashCode.cmd_1599]
-RelativePath=CoreMangLib\cti\system\int\Int32GetHashCode\Int32GetHashCode.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32GetHashCode
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int32IConvertibleToBoolean.cmd_1600]
-RelativePath=CoreMangLib\cti\system\int\Int32IConvertibleToBoolean\Int32IConvertibleToBoolean.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32IConvertibleToBoolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int32IConvertibleToByte.cmd_1601]
-RelativePath=CoreMangLib\cti\system\int\Int32IConvertibleToByte\Int32IConvertibleToByte.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32IConvertibleToByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int32IConvertibleToChar.cmd_1602]
-RelativePath=CoreMangLib\cti\system\int\Int32IConvertibleToChar\Int32IConvertibleToChar.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32IConvertibleToChar
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int32IConvertibleToDateTime.cmd_1603]
-RelativePath=CoreMangLib\cti\system\int\Int32IConvertibleToDateTime\Int32IConvertibleToDateTime.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32IConvertibleToDateTime
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int32IConvertibleToDecimal.cmd_1604]
-RelativePath=CoreMangLib\cti\system\int\Int32IConvertibleToDecimal\Int32IConvertibleToDecimal.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32IConvertibleToDecimal
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int32IConvertibleToDouble.cmd_1605]
-RelativePath=CoreMangLib\cti\system\int\Int32IConvertibleToDouble\Int32IConvertibleToDouble.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32IConvertibleToDouble
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int32IConvertibleToInt16.cmd_1606]
-RelativePath=CoreMangLib\cti\system\int\Int32IConvertibleToInt16\Int32IConvertibleToInt16.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32IConvertibleToInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int32IConvertibleToInt32.cmd_1607]
-RelativePath=CoreMangLib\cti\system\int\Int32IConvertibleToInt32\Int32IConvertibleToInt32.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32IConvertibleToInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int32IConvertibleToInt64.cmd_1608]
-RelativePath=CoreMangLib\cti\system\int\Int32IConvertibleToInt64\Int32IConvertibleToInt64.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32IConvertibleToInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int32IConvertibleToSByte.cmd_1609]
-RelativePath=CoreMangLib\cti\system\int\Int32IConvertibleToSByte\Int32IConvertibleToSByte.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32IConvertibleToSByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int32IConvertibleToSingle.cmd_1610]
-RelativePath=CoreMangLib\cti\system\int\Int32IConvertibleToSingle\Int32IConvertibleToSingle.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32IConvertibleToSingle
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int32IConvertibleToType.cmd_1611]
-RelativePath=CoreMangLib\cti\system\int\Int32IConvertibleToType\Int32IConvertibleToType.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32IConvertibleToType
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int32IConvertibleToUInt16.cmd_1612]
-RelativePath=CoreMangLib\cti\system\int\Int32IConvertibleToUInt16\Int32IConvertibleToUInt16.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32IConvertibleToUInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int32IConvertibleToUInt32.cmd_1613]
-RelativePath=CoreMangLib\cti\system\int\Int32IConvertibleToUInt32\Int32IConvertibleToUInt32.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32IConvertibleToUInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int32IConvertibleToUInt64.cmd_1614]
-RelativePath=CoreMangLib\cti\system\int\Int32IConvertibleToUInt64\Int32IConvertibleToUInt64.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32IConvertibleToUInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int32MaxValue.cmd_1615]
-RelativePath=CoreMangLib\cti\system\int\Int32MaxValue\Int32MaxValue.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32MaxValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int32MinValue.cmd_1616]
-RelativePath=CoreMangLib\cti\system\int\Int32MinValue\Int32MinValue.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32MinValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int32ToString3.cmd_1621]
-RelativePath=CoreMangLib\cti\system\int\Int32ToString3\Int32ToString3.cmd
-WorkingDir=CoreMangLib\cti\system\int\Int32ToString3
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int16Equals1.cmd_1623]
-RelativePath=CoreMangLib\cti\system\int16\Int16Equals1\Int16Equals1.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16Equals1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int16Equals2.cmd_1624]
-RelativePath=CoreMangLib\cti\system\int16\Int16Equals2\Int16Equals2.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16Equals2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int16GetHashCode.cmd_1625]
-RelativePath=CoreMangLib\cti\system\int16\Int16GetHashCode\Int16GetHashCode.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16GetHashCode
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int16IConvertibleToBoolean.cmd_1626]
-RelativePath=CoreMangLib\cti\system\int16\Int16IConvertibleToBoolean\Int16IConvertibleToBoolean.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16IConvertibleToBoolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int16IConvertibleToByte.cmd_1627]
-RelativePath=CoreMangLib\cti\system\int16\Int16IConvertibleToByte\Int16IConvertibleToByte.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16IConvertibleToByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int16IConvertibleToChar.cmd_1628]
-RelativePath=CoreMangLib\cti\system\int16\Int16IConvertibleToChar\Int16IConvertibleToChar.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16IConvertibleToChar
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int16IConvertibleToDateTime.cmd_1629]
-RelativePath=CoreMangLib\cti\system\int16\Int16IConvertibleToDateTime\Int16IConvertibleToDateTime.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16IConvertibleToDateTime
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int16IConvertibleToDecimal.cmd_1630]
-RelativePath=CoreMangLib\cti\system\int16\Int16IConvertibleToDecimal\Int16IConvertibleToDecimal.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16IConvertibleToDecimal
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int16IConvertibleToDouble.cmd_1631]
-RelativePath=CoreMangLib\cti\system\int16\Int16IConvertibleToDouble\Int16IConvertibleToDouble.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16IConvertibleToDouble
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int16IConvertibleToInt16.cmd_1632]
-RelativePath=CoreMangLib\cti\system\int16\Int16IConvertibleToInt16\Int16IConvertibleToInt16.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16IConvertibleToInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int16IConvertibleToInt32.cmd_1633]
-RelativePath=CoreMangLib\cti\system\int16\Int16IConvertibleToInt32\Int16IConvertibleToInt32.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16IConvertibleToInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int16IConvertibleToInt64.cmd_1634]
-RelativePath=CoreMangLib\cti\system\int16\Int16IConvertibleToInt64\Int16IConvertibleToInt64.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16IConvertibleToInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int16IConvertibleToSByte.cmd_1635]
-RelativePath=CoreMangLib\cti\system\int16\Int16IConvertibleToSByte\Int16IConvertibleToSByte.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16IConvertibleToSByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int16IConvertibleToSingle.cmd_1636]
-RelativePath=CoreMangLib\cti\system\int16\Int16IConvertibleToSingle\Int16IConvertibleToSingle.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16IConvertibleToSingle
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int16IConvertibleToType.cmd_1637]
-RelativePath=CoreMangLib\cti\system\int16\Int16IConvertibleToType\Int16IConvertibleToType.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16IConvertibleToType
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int16IConvertibleToUInt16.cmd_1638]
-RelativePath=CoreMangLib\cti\system\int16\Int16IConvertibleToUInt16\Int16IConvertibleToUInt16.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16IConvertibleToUInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int16IConvertibleToUInt32.cmd_1639]
-RelativePath=CoreMangLib\cti\system\int16\Int16IConvertibleToUInt32\Int16IConvertibleToUInt32.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16IConvertibleToUInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int16IConvertibleToUInt64.cmd_1640]
-RelativePath=CoreMangLib\cti\system\int16\Int16IConvertibleToUInt64\Int16IConvertibleToUInt64.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16IConvertibleToUInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int16MaxValue.cmd_1641]
-RelativePath=CoreMangLib\cti\system\int16\Int16MaxValue\Int16MaxValue.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16MaxValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int16MinValue.cmd_1642]
-RelativePath=CoreMangLib\cti\system\int16\Int16MinValue\Int16MinValue.cmd
-WorkingDir=CoreMangLib\cti\system\int16\Int16MinValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int64CompareTo1.cmd_1647]
-RelativePath=CoreMangLib\cti\system\int64\Int64CompareTo1\Int64CompareTo1.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64CompareTo1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int64Equals1.cmd_1648]
-RelativePath=CoreMangLib\cti\system\int64\Int64Equals1\Int64Equals1.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64Equals1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int64Equals2.cmd_1649]
-RelativePath=CoreMangLib\cti\system\int64\Int64Equals2\Int64Equals2.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64Equals2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int64GetHashCode.cmd_1650]
-RelativePath=CoreMangLib\cti\system\int64\Int64GetHashCode\Int64GetHashCode.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64GetHashCode
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int64IConvertibleToBoolean.cmd_1651]
-RelativePath=CoreMangLib\cti\system\int64\Int64IConvertibleToBoolean\Int64IConvertibleToBoolean.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64IConvertibleToBoolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int64IConvertibleToByte.cmd_1652]
-RelativePath=CoreMangLib\cti\system\int64\Int64IConvertibleToByte\Int64IConvertibleToByte.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64IConvertibleToByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int64IConvertibleToChar.cmd_1653]
-RelativePath=CoreMangLib\cti\system\int64\Int64IConvertibleToChar\Int64IConvertibleToChar.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64IConvertibleToChar
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int64IConvertibleToDateTime.cmd_1654]
-RelativePath=CoreMangLib\cti\system\int64\Int64IConvertibleToDateTime\Int64IConvertibleToDateTime.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64IConvertibleToDateTime
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int64IConvertibleToDecimal.cmd_1655]
-RelativePath=CoreMangLib\cti\system\int64\Int64IConvertibleToDecimal\Int64IConvertibleToDecimal.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64IConvertibleToDecimal
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int64IConvertibleToDouble.cmd_1656]
-RelativePath=CoreMangLib\cti\system\int64\Int64IConvertibleToDouble\Int64IConvertibleToDouble.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64IConvertibleToDouble
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int64IConvertibleToInt16.cmd_1657]
-RelativePath=CoreMangLib\cti\system\int64\Int64IConvertibleToInt16\Int64IConvertibleToInt16.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64IConvertibleToInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int64IConvertibleToInt32.cmd_1658]
-RelativePath=CoreMangLib\cti\system\int64\Int64IConvertibleToInt32\Int64IConvertibleToInt32.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64IConvertibleToInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int64IConvertibleToInt64.cmd_1659]
-RelativePath=CoreMangLib\cti\system\int64\Int64IConvertibleToInt64\Int64IConvertibleToInt64.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64IConvertibleToInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int64IConvertibleToSByte.cmd_1660]
-RelativePath=CoreMangLib\cti\system\int64\Int64IConvertibleToSByte\Int64IConvertibleToSByte.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64IConvertibleToSByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int64IConvertibleToSingle.cmd_1661]
-RelativePath=CoreMangLib\cti\system\int64\Int64IConvertibleToSingle\Int64IConvertibleToSingle.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64IConvertibleToSingle
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int64IConvertibleToType.cmd_1662]
-RelativePath=CoreMangLib\cti\system\int64\Int64IConvertibleToType\Int64IConvertibleToType.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64IConvertibleToType
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int64IConvertibleToUInt16.cmd_1663]
-RelativePath=CoreMangLib\cti\system\int64\Int64IConvertibleToUInt16\Int64IConvertibleToUInt16.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64IConvertibleToUInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int64IConvertibleToUInt32.cmd_1664]
-RelativePath=CoreMangLib\cti\system\int64\Int64IConvertibleToUInt32\Int64IConvertibleToUInt32.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64IConvertibleToUInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int64IConvertibleToUInt64.cmd_1665]
-RelativePath=CoreMangLib\cti\system\int64\Int64IConvertibleToUInt64\Int64IConvertibleToUInt64.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64IConvertibleToUInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int64MaxValue.cmd_1666]
-RelativePath=CoreMangLib\cti\system\int64\Int64MaxValue\Int64MaxValue.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64MaxValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int64MinValue.cmd_1667]
-RelativePath=CoreMangLib\cti\system\int64\Int64MinValue\Int64MinValue.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64MinValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[Int64ToString3.cmd_1671]
-RelativePath=CoreMangLib\cti\system\int64\Int64ToString3\Int64ToString3.cmd
-WorkingDir=CoreMangLib\cti\system\int64\Int64ToString3
-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
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[MulticastDelegateEquals.cmd_1836]
-RelativePath=CoreMangLib\cti\system\multicastdelegate\MulticastDelegateEquals\MulticastDelegateEquals.cmd
-WorkingDir=CoreMangLib\cti\system\multicastdelegate\MulticastDelegateEquals
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[MulticastDelegateGetHashCode.cmd_1837]
-RelativePath=CoreMangLib\cti\system\multicastdelegate\MulticastDelegateGetHashCode\MulticastDelegateGetHashCode.cmd
-WorkingDir=CoreMangLib\cti\system\multicastdelegate\MulticastDelegateGetHashCode
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[MulticastDelegateGetInvocationList.cmd_1838]
-RelativePath=CoreMangLib\cti\system\multicastdelegate\MulticastDelegateGetInvocationList\MulticastDelegateGetInvocationList.cmd
-WorkingDir=CoreMangLib\cti\system\multicastdelegate\MulticastDelegateGetInvocationList
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ObjectCtor.cmd_1857]
-RelativePath=CoreMangLib\cti\system\object\ObjectCtor\ObjectCtor.cmd
-WorkingDir=CoreMangLib\cti\system\object\ObjectCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ObjectEquals1.cmd_1858]
-RelativePath=CoreMangLib\cti\system\object\ObjectEquals1\ObjectEquals1.cmd
-WorkingDir=CoreMangLib\cti\system\object\ObjectEquals1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ObjectEquals2.cmd_1859]
-RelativePath=CoreMangLib\cti\system\object\ObjectEquals2\ObjectEquals2.cmd
-WorkingDir=CoreMangLib\cti\system\object\ObjectEquals2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ObjectFinalize.cmd_1860]
-RelativePath=CoreMangLib\cti\system\object\ObjectFinalize\ObjectFinalize.cmd
-WorkingDir=CoreMangLib\cti\system\object\ObjectFinalize
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ObjectGetHashCode.cmd_1861]
-RelativePath=CoreMangLib\cti\system\object\ObjectGetHashCode\ObjectGetHashCode.cmd
-WorkingDir=CoreMangLib\cti\system\object\ObjectGetHashCode
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ObjectMemberwiseClone.cmd_1862]
-RelativePath=CoreMangLib\cti\system\object\ObjectMemberwiseClone\ObjectMemberwiseClone.cmd
-WorkingDir=CoreMangLib\cti\system\object\ObjectMemberwiseClone
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ObjectReferenceEquals.cmd_1863]
-RelativePath=CoreMangLib\cti\system\object\ObjectReferenceEquals\ObjectReferenceEquals.cmd
-WorkingDir=CoreMangLib\cti\system\object\ObjectReferenceEquals
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ObjectToString.cmd_1864]
-RelativePath=CoreMangLib\cti\system\object\ObjectToString\ObjectToString.cmd
-WorkingDir=CoreMangLib\cti\system\object\ObjectToString
-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
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[AmbiguousMatchExceptionCtor2.cmd_1897]
-RelativePath=CoreMangLib\cti\system\reflection\ambiguousmatchexception\AmbiguousMatchExceptionCtor2\AmbiguousMatchExceptionCtor2.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\ambiguousmatchexception\AmbiguousMatchExceptionCtor2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[AmbiguousMatchExceptionCtor3.cmd_1898]
-RelativePath=CoreMangLib\cti\system\reflection\ambiguousmatchexception\AmbiguousMatchExceptionCtor3\AmbiguousMatchExceptionCtor3.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\ambiguousmatchexception\AmbiguousMatchExceptionCtor3
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[AssemblyConfigurationAttribute.cmd_1899]
-RelativePath=CoreMangLib\cti\system\reflection\assemblyconfigurationattribute\AssemblyConfigurationAttribute\AssemblyConfigurationAttribute.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblyconfigurationattribute\AssemblyConfigurationAttribute
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
-[AssemblyConfigurationAttributeCtor.cmd_1900]
-RelativePath=CoreMangLib\cti\system\reflection\assemblyconfigurationattribute\AssemblyConfigurationAttributeCtor\AssemblyConfigurationAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblyconfigurationattribute\AssemblyConfigurationAttributeCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[AssemblyDefaultAliasAttribute.cmd_1901]
-RelativePath=CoreMangLib\cti\system\reflection\assemblydefaultaliasattribute\AssemblyDefaultAliasAttribute\AssemblyDefaultAliasAttribute.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblydefaultaliasattribute\AssemblyDefaultAliasAttribute
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
-[AssemblyDefaultAliasAttributeCtor.cmd_1902]
-RelativePath=CoreMangLib\cti\system\reflection\assemblydefaultaliasattribute\AssemblyDefaultAliasAttributeCtor\AssemblyDefaultAliasAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblydefaultaliasattribute\AssemblyDefaultAliasAttributeCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[AssemblyDelaySignAttributeCtor.cmd_1903]
-RelativePath=CoreMangLib\cti\system\reflection\assemblydelaysignattribute\AssemblyDelaySignAttributeCtor\AssemblyDelaySignAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblydelaysignattribute\AssemblyDelaySignAttributeCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[AssemblyDelaySignAttributeDelaySign.cmd_1904]
-RelativePath=CoreMangLib\cti\system\reflection\assemblydelaysignattribute\AssemblyDelaySignAttributeDelaySign\AssemblyDelaySignAttributeDelaySign.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblydelaysignattribute\AssemblyDelaySignAttributeDelaySign
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[AssemblyDescriptionAttributeCtor.cmd_1905]
-RelativePath=CoreMangLib\cti\system\reflection\assemblydescriptionattribute\AssemblyDescriptionAttributeCtor\AssemblyDescriptionAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblydescriptionattribute\AssemblyDescriptionAttributeCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[AssemblyDescriptionAttributeDescription.cmd_1906]
-RelativePath=CoreMangLib\cti\system\reflection\assemblydescriptionattribute\AssemblyDescriptionAttributeDescription\AssemblyDescriptionAttributeDescription.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblydescriptionattribute\AssemblyDescriptionAttributeDescription
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[AssemblyKeyFileAttributeCtor.cmd_1907]
-RelativePath=CoreMangLib\cti\system\reflection\assemblykeyfileattribute\AssemblyKeyFileAttributeCtor\AssemblyKeyFileAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblykeyfileattribute\AssemblyKeyFileAttributeCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[AssemblyKeyFileAttributeKeyFile.cmd_1908]
-RelativePath=CoreMangLib\cti\system\reflection\assemblykeyfileattribute\AssemblyKeyFileAttributeKeyFile\AssemblyKeyFileAttributeKeyFile.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblykeyfileattribute\AssemblyKeyFileAttributeKeyFile
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[AssemblyKeyNameAttributeCtor.cmd_1909]
-RelativePath=CoreMangLib\cti\system\reflection\assemblykeynameattribute\AssemblyKeyNameAttributeCtor\AssemblyKeyNameAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblykeynameattribute\AssemblyKeyNameAttributeCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[AssemblyKeyNameAttributeKeyName.cmd_1910]
-RelativePath=CoreMangLib\cti\system\reflection\assemblykeynameattribute\AssemblyKeyNameAttributeKeyName\AssemblyKeyNameAttributeKeyName.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblykeynameattribute\AssemblyKeyNameAttributeKeyName
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[AssemblyNameGetPublicKey.cmd_1911]
-RelativePath=CoreMangLib\cti\system\reflection\assemblyname\AssemblyNameGetPublicKey\AssemblyNameGetPublicKey.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblyname\AssemblyNameGetPublicKey
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[AssemblyNameGetPublicKeyToken.cmd_1912]
-RelativePath=CoreMangLib\cti\system\reflection\assemblyname\AssemblyNameGetPublicKeyToken\AssemblyNameGetPublicKeyToken.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblyname\AssemblyNameGetPublicKeyToken
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[AssemblyNameSetPublicKey.cmd_1913]
-RelativePath=CoreMangLib\cti\system\reflection\assemblyname\AssemblyNameSetPublicKey\AssemblyNameSetPublicKey.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblyname\AssemblyNameSetPublicKey
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[AssemblyNameSetPublicKeyToken.cmd_1914]
-RelativePath=CoreMangLib\cti\system\reflection\assemblyname\AssemblyNameSetPublicKeyToken\AssemblyNameSetPublicKeyToken.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblyname\AssemblyNameSetPublicKeyToken
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[AssemblyNameVersion.cmd_1915]
-RelativePath=CoreMangLib\cti\system\reflection\assemblyname\AssemblyNameVersion\AssemblyNameVersion.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblyname\AssemblyNameVersion
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[AssemblyTitleAttributeCtor.cmd_1919]
-RelativePath=CoreMangLib\cti\system\reflection\assemblytitleattribute\AssemblyTitleAttributeCtor\AssemblyTitleAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblytitleattribute\AssemblyTitleAttributeCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[AssemblyTitleAttributeTitle.cmd_1920]
-RelativePath=CoreMangLib\cti\system\reflection\assemblytitleattribute\AssemblyTitleAttributeTitle\AssemblyTitleAttributeTitle.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\assemblytitleattribute\AssemblyTitleAttributeTitle
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ConstructorInfoConstructorName.cmd_1926]
-RelativePath=CoreMangLib\cti\system\reflection\constructorinfo\ConstructorInfoConstructorName\ConstructorInfoConstructorName.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\constructorinfo\ConstructorInfoConstructorName
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ConstructorInfoTypeConstructorName.cmd_1927]
-RelativePath=CoreMangLib\cti\system\reflection\constructorinfo\ConstructorInfoTypeConstructorName\ConstructorInfoTypeConstructorName.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\constructorinfo\ConstructorInfoTypeConstructorName
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DefaultMemberAttributeCtor.cmd_1928]
-RelativePath=CoreMangLib\cti\system\reflection\defaultmemberattribute\DefaultMemberAttributeCtor\DefaultMemberAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\defaultmemberattribute\DefaultMemberAttributeCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DefaultMemberAttributeMemberName.cmd_1929]
-RelativePath=CoreMangLib\cti\system\reflection\defaultmemberattribute\DefaultMemberAttributeMemberName\DefaultMemberAttributeMemberName.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\defaultmemberattribute\DefaultMemberAttributeMemberName
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[TargetInvocationExceptionCtor1.cmd_2299]
-RelativePath=CoreMangLib\cti\system\reflection\targetinvocationexception\TargetInvocationExceptionCtor1\TargetInvocationExceptionCtor1.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\targetinvocationexception\TargetInvocationExceptionCtor1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[TargetInvocationExceptionCtor2.cmd_2300]
-RelativePath=CoreMangLib\cti\system\reflection\targetinvocationexception\TargetInvocationExceptionCtor2\TargetInvocationExceptionCtor2.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\targetinvocationexception\TargetInvocationExceptionCtor2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[TargetParameterCountExceptionCtor1.cmd_2301]
-RelativePath=CoreMangLib\cti\system\reflection\targetparametercountexception\TargetParameterCountExceptionCtor1\TargetParameterCountExceptionCtor1.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\targetparametercountexception\TargetParameterCountExceptionCtor1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[TargetParameterCountExceptionCtor2.cmd_2302]
-RelativePath=CoreMangLib\cti\system\reflection\targetparametercountexception\TargetParameterCountExceptionCtor2\TargetParameterCountExceptionCtor2.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\targetparametercountexception\TargetParameterCountExceptionCtor2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[TargetParameterCountExceptionCtor3.cmd_2303]
-RelativePath=CoreMangLib\cti\system\reflection\targetparametercountexception\TargetParameterCountExceptionCtor3\TargetParameterCountExceptionCtor3.cmd
-WorkingDir=CoreMangLib\cti\system\reflection\targetparametercountexception\TargetParameterCountExceptionCtor3
-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
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[ATPAPropertyName.cmd_2340]
-RelativePath=CoreMangLib\cti\system\runtime\compilerservices\accessedthroughpropertyattribute\ATPAPropertyName\ATPAPropertyName.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\compilerservices\accessedthroughpropertyattribute\ATPAPropertyName
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[AttributeCtor1.cmd_2341]
-RelativePath=CoreMangLib\cti\system\runtime\compilerservices\compilationrelaxations\AttributeCtor1\AttributeCtor1.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\compilerservices\compilationrelaxations\AttributeCtor1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CompilerGeneratedAttributeCtor.cmd_2342]
-RelativePath=CoreMangLib\cti\system\runtime\compilerservices\compilergeneratedattribute\CompilerGeneratedAttributeCtor\CompilerGeneratedAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\compilerservices\compilergeneratedattribute\CompilerGeneratedAttributeCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[CustomConstantAttributector.cmd_2343]
-RelativePath=CoreMangLib\cti\system\runtime\compilerservices\customconstantattribute\CustomConstantAttributector\CustomConstantAttributector.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\compilerservices\customconstantattribute\CustomConstantAttributector
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[IndexerNameAttributeCtor.cmd_2344]
-RelativePath=CoreMangLib\cti\system\runtime\compilerservices\indexernameattribute\IndexerNameAttributeCtor\IndexerNameAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\compilerservices\indexernameattribute\IndexerNameAttributeCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[IVTAAssemblyName.cmd_2345]
-RelativePath=CoreMangLib\cti\system\runtime\compilerservices\internalsvisibletoattribute\IVTAAssemblyName\IVTAAssemblyName.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\compilerservices\internalsvisibletoattribute\IVTAAssemblyName
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[IVTACtor.cmd_2346]
-RelativePath=CoreMangLib\cti\system\runtime\compilerservices\internalsvisibletoattribute\IVTACtor\IVTACtor.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\compilerservices\internalsvisibletoattribute\IVTACtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[MethodImplOptionsNoInlining.cmd_2347]
-RelativePath=CoreMangLib\cti\system\runtime\compilerservices\methodimploptions\MethodImplOptionsNoInlining\MethodImplOptionsNoInlining.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\compilerservices\methodimploptions\MethodImplOptionsNoInlining
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[MethodImplOptionsPreserveSig.cmd_2348]
-RelativePath=CoreMangLib\cti\system\runtime\compilerservices\methodimploptions\MethodImplOptionsPreserveSig\MethodImplOptionsPreserveSig.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\compilerservices\methodimploptions\MethodImplOptionsPreserveSig
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[RCAttrWrapNEThrows.cmd_2349]
-RelativePath=CoreMangLib\cti\system\runtime\compilerservices\runtimecompatibilityattribute\RCAttrWrapNEThrows\RCAttrWrapNEThrows.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\compilerservices\runtimecompatibilityattribute\RCAttrWrapNEThrows
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[RuntimeCompatAttrCtor.cmd_2350]
-RelativePath=CoreMangLib\cti\system\runtime\compilerservices\runtimecompatibilityattribute\RuntimeCompatAttrCtor\RuntimeCompatAttrCtor.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\compilerservices\runtimecompatibilityattribute\RuntimeCompatAttrCtor
-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
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[DecimalConstantAttributeValue.cmd_2353]
-RelativePath=CoreMangLib\cti\system\runtime\decimalconstantattribute\DecimalConstantAttributeValue\DecimalConstantAttributeValue.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\decimalconstantattribute\DecimalConstantAttributeValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[FixedBufferAttributeCtor.cmd_2354]
-RelativePath=CoreMangLib\cti\system\runtime\fixedbufferattribute\FixedBufferAttributeCtor\FixedBufferAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\fixedbufferattribute\FixedBufferAttributeCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[FixedBufferAttributeElementType.cmd_2355]
-RelativePath=CoreMangLib\cti\system\runtime\fixedbufferattribute\FixedBufferAttributeElementType\FixedBufferAttributeElementType.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\fixedbufferattribute\FixedBufferAttributeElementType
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[FixedBufferAttributeLength.cmd_2356]
-RelativePath=CoreMangLib\cti\system\runtime\fixedbufferattribute\FixedBufferAttributeLength\FixedBufferAttributeLength.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\fixedbufferattribute\FixedBufferAttributeLength
-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
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[FieldOffsetAttributeValue.cmd_2360]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\fieldoffsetattribute\FieldOffsetAttributeValue\FieldOffsetAttributeValue.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\fieldoffsetattribute\FieldOffsetAttributeValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[GCHandleAddrOfPinnedObject_PSC.cmd_2361]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\gchandle\GCHandleAddrOfPinnedObject_PSC\GCHandleAddrOfPinnedObject_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\gchandle\GCHandleAddrOfPinnedObject_PSC
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[GCHandleAlloc1_PSC.cmd_2362]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\gchandle\GCHandleAlloc1_PSC\GCHandleAlloc1_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\gchandle\GCHandleAlloc1_PSC
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[GCHandleFree_PSC.cmd_2363]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\gchandle\GCHandleFree_PSC\GCHandleFree_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\gchandle\GCHandleFree_PSC
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[GCHandleTarget_PSC.cmd_2364]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\gchandle\GCHandleTarget_PSC\GCHandleTarget_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\gchandle\GCHandleTarget_PSC
-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
-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
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[MarshalSizeOf2_PSC.cmd_2373]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\marshal\MarshalSizeOf2_PSC\MarshalSizeOf2_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\marshal\MarshalSizeOf2_PSC
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[MarshalAsAttributeArraySubType.cmd_2374]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeArraySubType\MarshalAsAttributeArraySubType.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeArraySubType
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[MarshalAsAttributeCtor1.cmd_2375]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeCtor1\MarshalAsAttributeCtor1.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeCtor1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[MarshalAsAttributeCtor2.cmd_2376]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeCtor2\MarshalAsAttributeCtor2.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeCtor2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[MarshalAsAttributeMarshalCookie.cmd_2377]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeMarshalCookie\MarshalAsAttributeMarshalCookie.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeMarshalCookie
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[MarshalAsAttributeMarshalType.cmd_2378]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeMarshalType\MarshalAsAttributeMarshalType.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeMarshalType
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[MarshalAsAttributeMarshalTypeRef.cmd_2379]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeMarshalTypeRef\MarshalAsAttributeMarshalTypeRef.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeMarshalTypeRef
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[MarshalAsAttributeSizeConst.cmd_2380]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeSizeConst\MarshalAsAttributeSizeConst.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeSizeConst
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[MarshalAsAttributeSizeParamIndex.cmd_2381]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeSizeParamIndex\MarshalAsAttributeSizeParamIndex.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeSizeParamIndex
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[MarshalAsAttributeValue.cmd_2382]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeValue\MarshalAsAttributeValue.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\marshalasattribute\MarshalAsAttributeValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[OutAttributeCtor.cmd_2383]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\outattribute\OutAttributeCtor\OutAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\outattribute\OutAttributeCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[PreserveSigAttributeCtor.cmd_2384]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\preservesigattribute\PreserveSigAttributeCtor\PreserveSigAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\preservesigattribute\PreserveSigAttributeCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SafeHandleCtor_cti_PSC.cmd_2385]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleCtor_cti_PSC\SafeHandleCtor_cti_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleCtor_cti_PSC
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SafeHandleDangerousAddRef_PSC.cmd_2386]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleDangerousAddRef_PSC\SafeHandleDangerousAddRef_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleDangerousAddRef_PSC
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SafeHandleDangerousGetHandle_PSC.cmd_2387]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleDangerousGetHandle_PSC\SafeHandleDangerousGetHandle_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleDangerousGetHandle_PSC
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SafeHandleDangerousRelease_PSC.cmd_2388]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleDangerousRelease_PSC\SafeHandleDangerousRelease_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleDangerousRelease_PSC
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SafeHandleDispose1_PSC.cmd_2389]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleDispose1_PSC\SafeHandleDispose1_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleDispose1_PSC
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SafeHandleDispose2_PSC.cmd_2390]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleDispose2_PSC\SafeHandleDispose2_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleDispose2_PSC
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SafeHandleHandle_PSC.cmd_2391]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleHandle_PSC\SafeHandleHandle_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleHandle_PSC
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SafeHandleIsClosed_PSC.cmd_2392]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleIsClosed_PSC\SafeHandleIsClosed_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleIsClosed_PSC
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SafeHandleIsInvalid_PSC.cmd_2393]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleIsInvalid_PSC\SafeHandleIsInvalid_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleIsInvalid_PSC
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SafeHandleSetHandleAsInvalid_PSC.cmd_2394]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleSetHandleAsInvalid_PSC\SafeHandleSetHandleAsInvalid_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleSetHandleAsInvalid_PSC
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SafeHandleSetHandle_PSC.cmd_2395]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleSetHandle_PSC\SafeHandleSetHandle_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleSetHandle_PSC
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StructLayoutAttributeCharSet.cmd_2396]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\structlayoutattribute\StructLayoutAttributeCharSet\StructLayoutAttributeCharSet.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\structlayoutattribute\StructLayoutAttributeCharSet
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StructLayoutAttributeCtor.cmd_2397]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\structlayoutattribute\StructLayoutAttributeCtor\StructLayoutAttributeCtor.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\structlayoutattribute\StructLayoutAttributeCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StructLayoutAttributePack.cmd_2398]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\structlayoutattribute\StructLayoutAttributePack\StructLayoutAttributePack.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\structlayoutattribute\StructLayoutAttributePack
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StructLayoutAttributeSize.cmd_2399]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\structlayoutattribute\StructLayoutAttributeSize\StructLayoutAttributeSize.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\structlayoutattribute\StructLayoutAttributeSize
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StructLayoutAttributeValue.cmd_2400]
-RelativePath=CoreMangLib\cti\system\runtime\interopservices\structlayoutattribute\StructLayoutAttributeValue\StructLayoutAttributeValue.cmd
-WorkingDir=CoreMangLib\cti\system\runtime\interopservices\structlayoutattribute\StructLayoutAttributeValue
-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
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SByteEquals1.cmd_2409]
-RelativePath=CoreMangLib\cti\system\sbyte\SByteEquals1\SByteEquals1.cmd
-WorkingDir=CoreMangLib\cti\system\sbyte\SByteEquals1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SByteEquals2.cmd_2410]
-RelativePath=CoreMangLib\cti\system\sbyte\SByteEquals2\SByteEquals2.cmd
-WorkingDir=CoreMangLib\cti\system\sbyte\SByteEquals2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SByteGetHashCode.cmd_2411]
-RelativePath=CoreMangLib\cti\system\sbyte\SByteGetHashCode\SByteGetHashCode.cmd
-WorkingDir=CoreMangLib\cti\system\sbyte\SByteGetHashCode
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SByteIConvertibleToBoolean.cmd_2412]
-RelativePath=CoreMangLib\cti\system\sbyte\SByteIConvertibleToBoolean\SByteIConvertibleToBoolean.cmd
-WorkingDir=CoreMangLib\cti\system\sbyte\SByteIConvertibleToBoolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SByteIConvertibleToByte.cmd_2413]
-RelativePath=CoreMangLib\cti\system\sbyte\SByteIConvertibleToByte\SByteIConvertibleToByte.cmd
-WorkingDir=CoreMangLib\cti\system\sbyte\SByteIConvertibleToByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SByteIConvertibleToChar.cmd_2414]
-RelativePath=CoreMangLib\cti\system\sbyte\SByteIConvertibleToChar\SByteIConvertibleToChar.cmd
-WorkingDir=CoreMangLib\cti\system\sbyte\SByteIConvertibleToChar
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SByteIConvertibleToDecimal.cmd_2415]
-RelativePath=CoreMangLib\cti\system\sbyte\SByteIConvertibleToDecimal\SByteIConvertibleToDecimal.cmd
-WorkingDir=CoreMangLib\cti\system\sbyte\SByteIConvertibleToDecimal
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SByteIConvertibleToDouble.cmd_2416]
-RelativePath=CoreMangLib\cti\system\sbyte\SByteIConvertibleToDouble\SByteIConvertibleToDouble.cmd
-WorkingDir=CoreMangLib\cti\system\sbyte\SByteIConvertibleToDouble
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SByteIConvertibleToInt16.cmd_2417]
-RelativePath=CoreMangLib\cti\system\sbyte\SByteIConvertibleToInt16\SByteIConvertibleToInt16.cmd
-WorkingDir=CoreMangLib\cti\system\sbyte\SByteIConvertibleToInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SByteIConvertibleToInt32.cmd_2418]
-RelativePath=CoreMangLib\cti\system\sbyte\SByteIConvertibleToInt32\SByteIConvertibleToInt32.cmd
-WorkingDir=CoreMangLib\cti\system\sbyte\SByteIConvertibleToInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SByteIConvertibleToInt64.cmd_2419]
-RelativePath=CoreMangLib\cti\system\sbyte\SByteIConvertibleToInt64\SByteIConvertibleToInt64.cmd
-WorkingDir=CoreMangLib\cti\system\sbyte\SByteIConvertibleToInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SByteIConvertibleToUInt16.cmd_2420]
-RelativePath=CoreMangLib\cti\system\sbyte\SByteIConvertibleToUInt16\SByteIConvertibleToUInt16.cmd
-WorkingDir=CoreMangLib\cti\system\sbyte\SByteIConvertibleToUInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SByteIConvertibleToUInt32.cmd_2421]
-RelativePath=CoreMangLib\cti\system\sbyte\SByteIConvertibleToUInt32\SByteIConvertibleToUInt32.cmd
-WorkingDir=CoreMangLib\cti\system\sbyte\SByteIConvertibleToUInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SByteIConvertibleToUInt64.cmd_2422]
-RelativePath=CoreMangLib\cti\system\sbyte\SByteIConvertibleToUInt64\SByteIConvertibleToUInt64.cmd
-WorkingDir=CoreMangLib\cti\system\sbyte\SByteIConvertibleToUInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SByteMaxValue.cmd_2423]
-RelativePath=CoreMangLib\cti\system\sbyte\SByteMaxValue\SByteMaxValue.cmd
-WorkingDir=CoreMangLib\cti\system\sbyte\SByteMaxValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SByteMinValue.cmd_2424]
-RelativePath=CoreMangLib\cti\system\sbyte\SByteMinValue\SByteMinValue.cmd
-WorkingDir=CoreMangLib\cti\system\sbyte\SByteMinValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SingleEpsilon.cmd_2433]
-RelativePath=CoreMangLib\cti\system\single\SingleEpsilon\SingleEpsilon.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleEpsilon
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SingleIsInfinity.cmd_2435]
-RelativePath=CoreMangLib\cti\system\single\SingleIsInfinity\SingleIsInfinity.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleIsInfinity
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SingleIsNaN.cmd_2436]
-RelativePath=CoreMangLib\cti\system\single\SingleIsNaN\SingleIsNaN.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleIsNaN
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SingleIsNegativeInfinity.cmd_2437]
-RelativePath=CoreMangLib\cti\system\single\SingleIsNegativeInfinity\SingleIsNegativeInfinity.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleIsNegativeInfinity
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SingleIsPositiveInfinity.cmd_2438]
-RelativePath=CoreMangLib\cti\system\single\SingleIsPositiveInfinity\SingleIsPositiveInfinity.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleIsPositiveInfinity
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SingleMaxValue.cmd_2439]
-RelativePath=CoreMangLib\cti\system\single\SingleMaxValue\SingleMaxValue.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleMaxValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SingleMinValue.cmd_2440]
-RelativePath=CoreMangLib\cti\system\single\SingleMinValue\SingleMinValue.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleMinValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SingleNaN.cmd_2441]
-RelativePath=CoreMangLib\cti\system\single\SingleNaN\SingleNaN.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleNaN
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SingleToBoolean.cmd_2444]
-RelativePath=CoreMangLib\cti\system\single\SingleToBoolean\SingleToBoolean.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleToBoolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SingleToByte.cmd_2445]
-RelativePath=CoreMangLib\cti\system\single\SingleToByte\SingleToByte.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleToByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SingleToChar.cmd_2446]
-RelativePath=CoreMangLib\cti\system\single\SingleToChar\SingleToChar.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleToChar
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SingleToDateTime.cmd_2447]
-RelativePath=CoreMangLib\cti\system\single\SingleToDateTime\SingleToDateTime.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleToDateTime
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SingleToDecimal.cmd_2448]
-RelativePath=CoreMangLib\cti\system\single\SingleToDecimal\SingleToDecimal.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleToDecimal
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SingleToDouble.cmd_2449]
-RelativePath=CoreMangLib\cti\system\single\SingleToDouble\SingleToDouble.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleToDouble
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SingleToInt16.cmd_2450]
-RelativePath=CoreMangLib\cti\system\single\SingleToInt16\SingleToInt16.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleToInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SingleToInt32.cmd_2451]
-RelativePath=CoreMangLib\cti\system\single\SingleToInt32\SingleToInt32.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleToInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SingleToInt64.cmd_2452]
-RelativePath=CoreMangLib\cti\system\single\SingleToInt64\SingleToInt64.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleToInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SingleToSByte.cmd_2453]
-RelativePath=CoreMangLib\cti\system\single\SingleToSByte\SingleToSByte.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleToSByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SingleToSingle.cmd_2454]
-RelativePath=CoreMangLib\cti\system\single\SingleToSingle\SingleToSingle.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleToSingle
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SingleToUInt16.cmd_2455]
-RelativePath=CoreMangLib\cti\system\single\SingleToUInt16\SingleToUInt16.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleToUInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SingleToUInt32.cmd_2456]
-RelativePath=CoreMangLib\cti\system\single\SingleToUInt32\SingleToUInt32.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleToUInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[SingleToUInt64.cmd_2457]
-RelativePath=CoreMangLib\cti\system\single\SingleToUInt64\SingleToUInt64.cmd
-WorkingDir=CoreMangLib\cti\system\single\SingleToUInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StringChars.cmd_2459]
-RelativePath=CoreMangLib\cti\system\string\StringChars\StringChars.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringChars
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StringCompare9.cmd_2463]
-RelativePath=CoreMangLib\cti\system\string\StringCompare9\StringCompare9.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringCompare9
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS;15381;GCSTRESS_EXCLUDE
-HostStyle=0
-
-[StringCompareOrdinal1.cmd_2464]
-RelativePath=CoreMangLib\cti\system\string\StringCompareOrdinal1\StringCompareOrdinal1.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringCompareOrdinal1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StringCompareOrdinal2.cmd_2465]
-RelativePath=CoreMangLib\cti\system\string\StringCompareOrdinal2\StringCompareOrdinal2.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringCompareOrdinal2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StringConcat1.cmd_2466]
-RelativePath=CoreMangLib\cti\system\string\StringConcat1\StringConcat1.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringConcat1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StringConcat2.cmd_2467]
-RelativePath=CoreMangLib\cti\system\string\StringConcat2\StringConcat2.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringConcat2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StringConcat3.cmd_2468]
-RelativePath=CoreMangLib\cti\system\string\StringConcat3\StringConcat3.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringConcat3
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StringConcat4.cmd_2469]
-RelativePath=CoreMangLib\cti\system\string\StringConcat4\StringConcat4.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringConcat4
-Expected=0
-MaxAllowedDurationSeconds=1000
-Categories=Pri1;RT;LONG_RUNNING;EXPECTED_PASS
-HostStyle=0
-
-[StringConcat5.cmd_2470]
-RelativePath=CoreMangLib\cti\system\string\StringConcat5\StringConcat5.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringConcat5
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StringConcat6.cmd_2471]
-RelativePath=CoreMangLib\cti\system\string\StringConcat6\StringConcat6.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringConcat6
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StringConcat7.cmd_2472]
-RelativePath=CoreMangLib\cti\system\string\StringConcat7\StringConcat7.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringConcat7
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StringConcat8.cmd_2473]
-RelativePath=CoreMangLib\cti\system\string\StringConcat8\StringConcat8.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringConcat8
-Expected=0
-MaxAllowedDurationSeconds=1000
-Categories=Pri1;RT;LONG_RUNNING;EXPECTED_PASS
-HostStyle=0
-
-[StringCopyTo.cmd_2474]
-RelativePath=CoreMangLib\cti\system\string\StringCopyTo\StringCopyTo.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringCopyTo
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StringCtor5.cmd_2475]
-RelativePath=CoreMangLib\cti\system\string\StringCtor5\StringCtor5.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringCtor5
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StringCtorChar.cmd_2476]
-RelativePath=CoreMangLib\cti\system\string\StringCtorChar\StringCtorChar.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringCtorChar
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StringEmpty.cmd_2477]
-RelativePath=CoreMangLib\cti\system\string\StringEmpty\StringEmpty.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringEmpty
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StringEquals1.cmd_2478]
-RelativePath=CoreMangLib\cti\system\string\StringEquals1\StringEquals1.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringEquals1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StringEquals2.cmd_2479]
-RelativePath=CoreMangLib\cti\system\string\StringEquals2\StringEquals2.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringEquals2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StringEquals3.cmd_2480]
-RelativePath=CoreMangLib\cti\system\string\StringEquals3\StringEquals3.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringEquals3
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StringEquals6.cmd_2481]
-RelativePath=CoreMangLib\cti\system\string\StringEquals6\StringEquals6.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringEquals6
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS;15381;GCSTRESS_EXCLUDE
-HostStyle=0
-
-[StringFormat1.cmd_2482]
-RelativePath=CoreMangLib\cti\system\string\StringFormat1\StringFormat1.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringFormat1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StringFormat2.cmd_2483]
-RelativePath=CoreMangLib\cti\system\string\StringFormat2\StringFormat2.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringFormat2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StringGetEnumerator.cmd_2484]
-RelativePath=CoreMangLib\cti\system\string\StringGetEnumerator\StringGetEnumerator.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringGetEnumerator
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StringGetHashCode.cmd_2485]
-RelativePath=CoreMangLib\cti\system\string\StringGetHashCode\StringGetHashCode.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringGetHashCode
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StringIConvertibleToBoolean.cmd_2486]
-RelativePath=CoreMangLib\cti\system\string\StringIConvertibleToBoolean\StringIConvertibleToBoolean.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringIConvertibleToBoolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StringIConvertibleToByte.cmd_2487]
-RelativePath=CoreMangLib\cti\system\string\StringIConvertibleToByte\StringIConvertibleToByte.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringIConvertibleToByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StringIConvertibleToChar.cmd_2488]
-RelativePath=CoreMangLib\cti\system\string\StringIConvertibleToChar\StringIConvertibleToChar.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringIConvertibleToChar
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StringIConvertibleToInt16.cmd_2489]
-RelativePath=CoreMangLib\cti\system\string\StringIConvertibleToInt16\StringIConvertibleToInt16.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringIConvertibleToInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StringIConvertibleToInt32.cmd_2490]
-RelativePath=CoreMangLib\cti\system\string\StringIConvertibleToInt32\StringIConvertibleToInt32.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringIConvertibleToInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StringIConvertibleToInt64.cmd_2491]
-RelativePath=CoreMangLib\cti\system\string\StringIConvertibleToInt64\StringIConvertibleToInt64.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringIConvertibleToInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StringIConvertibleToSByte.cmd_2492]
-RelativePath=CoreMangLib\cti\system\string\StringIConvertibleToSByte\StringIConvertibleToSByte.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringIConvertibleToSByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StringIConvertibleToUInt16.cmd_2493]
-RelativePath=CoreMangLib\cti\system\string\StringIConvertibleToUInt16\StringIConvertibleToUInt16.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringIConvertibleToUInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StringIConvertibleToUInt32.cmd_2494]
-RelativePath=CoreMangLib\cti\system\string\StringIConvertibleToUInt32\StringIConvertibleToUInt32.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringIConvertibleToUInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StringIConvertibleToUInt64.cmd_2495]
-RelativePath=CoreMangLib\cti\system\string\StringIConvertibleToUInt64\StringIConvertibleToUInt64.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringIConvertibleToUInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StringIEnumerableGetEnumerator.cmd_2496]
-RelativePath=CoreMangLib\cti\system\string\StringIEnumerableGetEnumerator\StringIEnumerableGetEnumerator.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringIEnumerableGetEnumerator
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StringIndexOf10.cmd_2497]
-RelativePath=CoreMangLib\cti\system\string\StringIndexOf10\StringIndexOf10.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringIndexOf10
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[StringInsert.cmd_2498]
-RelativePath=CoreMangLib\cti\system\string\StringInsert\StringInsert.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringInsert
+[DelegateCombine1.cmd_1344]
+RelativePath=CoreMangLib\cti\system\delegate\DelegateCombine1\DelegateCombine1.cmd
+WorkingDir=CoreMangLib\cti\system\delegate\DelegateCombine1
Expected=0
MaxAllowedDurationSeconds=600
Categories=Pri1;RT;EXPECTED_PASS
HostStyle=0
-[StringIsNullOrEmpty.cmd_2499]
-RelativePath=CoreMangLib\cti\system\string\StringIsNullOrEmpty\StringIsNullOrEmpty.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringIsNullOrEmpty
+[DelegateCombineImpl.cmd_1345]
+RelativePath=CoreMangLib\cti\system\delegate\DelegateCombineImpl\DelegateCombineImpl.cmd
+WorkingDir=CoreMangLib\cti\system\delegate\DelegateCombineImpl
Expected=0
MaxAllowedDurationSeconds=600
Categories=Pri1;RT;EXPECTED_PASS
HostStyle=0
-[StringJoin.cmd_2500]
-RelativePath=CoreMangLib\cti\system\string\StringJoin\StringJoin.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringJoin
+[DelegateEquals1.cmd_1346]
+RelativePath=CoreMangLib\cti\system\delegate\DelegateEquals1\DelegateEquals1.cmd
+WorkingDir=CoreMangLib\cti\system\delegate\DelegateEquals1
Expected=0
MaxAllowedDurationSeconds=600
Categories=Pri1;RT;EXPECTED_PASS
HostStyle=0
-[StringJoin1.cmd_2501]
-RelativePath=CoreMangLib\cti\system\string\StringJoin1\StringJoin1.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringJoin1
+[DelegateGetHashCode1.cmd_1347]
+RelativePath=CoreMangLib\cti\system\delegate\DelegateGetHashCode1\DelegateGetHashCode1.cmd
+WorkingDir=CoreMangLib\cti\system\delegate\DelegateGetHashCode1
Expected=0
MaxAllowedDurationSeconds=600
Categories=Pri1;RT;EXPECTED_PASS
HostStyle=0
-[StringJoin2.cmd_2502]
-RelativePath=CoreMangLib\cti\system\string\StringJoin2\StringJoin2.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringJoin2
+[DelegateGetInvocationList1.cmd_1348]
+RelativePath=CoreMangLib\cti\system\delegate\DelegateGetInvocationList1\DelegateGetInvocationList1.cmd
+WorkingDir=CoreMangLib\cti\system\delegate\DelegateGetInvocationList1
Expected=0
MaxAllowedDurationSeconds=600
Categories=Pri1;RT;EXPECTED_PASS
HostStyle=0
-[StringLength.cmd_2503]
-RelativePath=CoreMangLib\cti\system\string\StringLength\StringLength.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringLength
+[DelegateRemove.cmd_1349]
+RelativePath=CoreMangLib\cti\system\delegate\DelegateRemove\DelegateRemove.cmd
+WorkingDir=CoreMangLib\cti\system\delegate\DelegateRemove
Expected=0
MaxAllowedDurationSeconds=600
Categories=Pri1;RT;EXPECTED_PASS
HostStyle=0
-[StringPadLeft.cmd_2504]
-RelativePath=CoreMangLib\cti\system\string\StringPadLeft\StringPadLeft.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringPadLeft
+[delegateRemoveImpl.cmd_1350]
+RelativePath=CoreMangLib\cti\system\delegate\delegateRemoveImpl\delegateRemoveImpl.cmd
+WorkingDir=CoreMangLib\cti\system\delegate\delegateRemoveImpl
Expected=0
MaxAllowedDurationSeconds=600
Categories=Pri1;RT;EXPECTED_PASS
HostStyle=0
-[StringPadLeft1.cmd_2505]
-RelativePath=CoreMangLib\cti\system\string\StringPadLeft1\StringPadLeft1.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringPadLeft1
+[EnumIConvertibleToInt64.cmd_1394]
+RelativePath=CoreMangLib\cti\system\enum\EnumIConvertibleToInt64\EnumIConvertibleToInt64.cmd
+WorkingDir=CoreMangLib\cti\system\enum\EnumIConvertibleToInt64
Expected=0
MaxAllowedDurationSeconds=600
Categories=Pri1;RT;EXPECTED_PASS
HostStyle=0
-[StringPadLeft2.cmd_2506]
-RelativePath=CoreMangLib\cti\system\string\StringPadLeft2\StringPadLeft2.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringPadLeft2
+[EnumIConvertibleToSingle.cmd_1395]
+RelativePath=CoreMangLib\cti\system\enum\EnumIConvertibleToSingle\EnumIConvertibleToSingle.cmd
+WorkingDir=CoreMangLib\cti\system\enum\EnumIConvertibleToSingle
Expected=0
MaxAllowedDurationSeconds=600
Categories=Pri1;RT;EXPECTED_PASS
HostStyle=0
-[StringPadRight.cmd_2507]
-RelativePath=CoreMangLib\cti\system\string\StringPadRight\StringPadRight.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringPadRight
+[EnumIConvertibleToType.cmd_1396]
+RelativePath=CoreMangLib\cti\system\enum\EnumIConvertibleToType\EnumIConvertibleToType.cmd
+WorkingDir=CoreMangLib\cti\system\enum\EnumIConvertibleToType
Expected=0
MaxAllowedDurationSeconds=600
Categories=Pri1;RT;EXPECTED_PASS
HostStyle=0
-[StringPadRight1.cmd_2508]
-RelativePath=CoreMangLib\cti\system\string\StringPadRight1\StringPadRight1.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringPadRight1
+[EnumIConvertibleToUint16.cmd_1397]
+RelativePath=CoreMangLib\cti\system\enum\EnumIConvertibleToUint16\EnumIConvertibleToUint16.cmd
+WorkingDir=CoreMangLib\cti\system\enum\EnumIConvertibleToUint16
Expected=0
MaxAllowedDurationSeconds=600
Categories=Pri1;RT;EXPECTED_PASS
HostStyle=0
-[StringPadRight2.cmd_2509]
-RelativePath=CoreMangLib\cti\system\string\StringPadRight2\StringPadRight2.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringPadRight2
+[EnumIConvertibleToUint32.cmd_1398]
+RelativePath=CoreMangLib\cti\system\enum\EnumIConvertibleToUint32\EnumIConvertibleToUint32.cmd
+WorkingDir=CoreMangLib\cti\system\enum\EnumIConvertibleToUint32
Expected=0
MaxAllowedDurationSeconds=600
Categories=Pri1;RT;EXPECTED_PASS
HostStyle=0
-[StringRemove1.cmd_2510]
-RelativePath=CoreMangLib\cti\system\string\StringRemove1\StringRemove1.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringRemove1
+[EnumIConvertibleToUint64.cmd_1399]
+RelativePath=CoreMangLib\cti\system\enum\EnumIConvertibleToUint64\EnumIConvertibleToUint64.cmd
+WorkingDir=CoreMangLib\cti\system\enum\EnumIConvertibleToUint64
Expected=0
MaxAllowedDurationSeconds=600
Categories=Pri1;RT;EXPECTED_PASS
HostStyle=0
-[StringRemove2.cmd_2511]
-RelativePath=CoreMangLib\cti\system\string\StringRemove2\StringRemove2.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringRemove2
+[MulticastDelegateCombineImpl.cmd_1835]
+RelativePath=CoreMangLib\cti\system\multicastdelegate\MulticastDelegateCombineImpl\MulticastDelegateCombineImpl.cmd
+WorkingDir=CoreMangLib\cti\system\multicastdelegate\MulticastDelegateCombineImpl
Expected=0
MaxAllowedDurationSeconds=600
Categories=Pri1;RT;EXPECTED_PASS
HostStyle=0
-[StringReplace1.cmd_2512]
-RelativePath=CoreMangLib\cti\system\string\StringReplace1\StringReplace1.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringReplace1
+[MulticastDelegateEquals.cmd_1836]
+RelativePath=CoreMangLib\cti\system\multicastdelegate\MulticastDelegateEquals\MulticastDelegateEquals.cmd
+WorkingDir=CoreMangLib\cti\system\multicastdelegate\MulticastDelegateEquals
Expected=0
MaxAllowedDurationSeconds=600
Categories=Pri1;RT;EXPECTED_PASS
HostStyle=0
-[StringReplace2.cmd_2513]
-RelativePath=CoreMangLib\cti\system\string\StringReplace2\StringReplace2.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringReplace2
+[MulticastDelegateGetHashCode.cmd_1837]
+RelativePath=CoreMangLib\cti\system\multicastdelegate\MulticastDelegateGetHashCode\MulticastDelegateGetHashCode.cmd
+WorkingDir=CoreMangLib\cti\system\multicastdelegate\MulticastDelegateGetHashCode
Expected=0
MaxAllowedDurationSeconds=600
Categories=Pri1;RT;EXPECTED_PASS
HostStyle=0
-[StringSplit1.cmd_2514]
-RelativePath=CoreMangLib\cti\system\string\StringSplit1\StringSplit1.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringSplit1
+[MulticastDelegateGetInvocationList.cmd_1838]
+RelativePath=CoreMangLib\cti\system\multicastdelegate\MulticastDelegateGetInvocationList\MulticastDelegateGetInvocationList.cmd
+WorkingDir=CoreMangLib\cti\system\multicastdelegate\MulticastDelegateGetInvocationList
Expected=0
MaxAllowedDurationSeconds=600
Categories=Pri1;RT;EXPECTED_PASS
HostStyle=0
-[StringSubString1.cmd_2515]
-RelativePath=CoreMangLib\cti\system\string\StringSubString1\StringSubString1.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringSubString1
+[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
Expected=0
MaxAllowedDurationSeconds=600
Categories=Pri1;RT;EXPECTED_PASS
HostStyle=0
-[StringSubString2.cmd_2516]
-RelativePath=CoreMangLib\cti\system\string\StringSubString2\StringSubString2.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringSubString2
+[MarshalSizeOf2_PSC.cmd_2373]
+RelativePath=CoreMangLib\cti\system\runtime\interopservices\marshal\MarshalSizeOf2_PSC\MarshalSizeOf2_PSC.cmd
+WorkingDir=CoreMangLib\cti\system\runtime\interopservices\marshal\MarshalSizeOf2_PSC
Expected=0
MaxAllowedDurationSeconds=600
Categories=Pri1;RT;EXPECTED_PASS
HostStyle=0
-[StringToCharArray.cmd_2517]
-RelativePath=CoreMangLib\cti\system\string\StringToCharArray\StringToCharArray.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringToCharArray
+[SafeHandleCtor_cti_PSC.cmd_2385]
+RelativePath=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleCtor_cti_PSC\SafeHandleCtor_cti_PSC.cmd
+WorkingDir=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleCtor_cti_PSC
Expected=0
MaxAllowedDurationSeconds=600
Categories=Pri1;RT;EXPECTED_PASS
HostStyle=0
-[StringToString1.cmd_2518]
-RelativePath=CoreMangLib\cti\system\string\StringToString1\StringToString1.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringToString1
+[SafeHandleDangerousAddRef_PSC.cmd_2386]
+RelativePath=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleDangerousAddRef_PSC\SafeHandleDangerousAddRef_PSC.cmd
+WorkingDir=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleDangerousAddRef_PSC
Expected=0
MaxAllowedDurationSeconds=600
Categories=Pri1;RT;EXPECTED_PASS
HostStyle=0
-[StringTrim1.cmd_2519]
-RelativePath=CoreMangLib\cti\system\string\StringTrim1\StringTrim1.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringTrim1
+[SafeHandleDangerousGetHandle_PSC.cmd_2387]
+RelativePath=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleDangerousGetHandle_PSC\SafeHandleDangerousGetHandle_PSC.cmd
+WorkingDir=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleDangerousGetHandle_PSC
Expected=0
MaxAllowedDurationSeconds=600
Categories=Pri1;RT;EXPECTED_PASS
HostStyle=0
-[StringTrim1b.cmd_2520]
-RelativePath=CoreMangLib\cti\system\string\StringTrim1b\StringTrim1b.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringTrim1b
+[SafeHandleDangerousRelease_PSC.cmd_2388]
+RelativePath=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleDangerousRelease_PSC\SafeHandleDangerousRelease_PSC.cmd
+WorkingDir=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleDangerousRelease_PSC
Expected=0
MaxAllowedDurationSeconds=600
Categories=Pri1;RT;EXPECTED_PASS
HostStyle=0
-[StringTrim2.cmd_2521]
-RelativePath=CoreMangLib\cti\system\string\StringTrim2\StringTrim2.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringTrim2
+[SafeHandleDispose1_PSC.cmd_2389]
+RelativePath=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleDispose1_PSC\SafeHandleDispose1_PSC.cmd
+WorkingDir=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleDispose1_PSC
Expected=0
MaxAllowedDurationSeconds=600
Categories=Pri1;RT;EXPECTED_PASS
HostStyle=0
-[StringTrim3.cmd_2522]
-RelativePath=CoreMangLib\cti\system\string\StringTrim3\StringTrim3.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringTrim3
+[SafeHandleDispose2_PSC.cmd_2390]
+RelativePath=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleDispose2_PSC\SafeHandleDispose2_PSC.cmd
+WorkingDir=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleDispose2_PSC
Expected=0
MaxAllowedDurationSeconds=600
Categories=Pri1;RT;EXPECTED_PASS
HostStyle=0
-[StringTrim4.cmd_2523]
-RelativePath=CoreMangLib\cti\system\string\StringTrim4\StringTrim4.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringTrim4
+[SafeHandleHandle_PSC.cmd_2391]
+RelativePath=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleHandle_PSC\SafeHandleHandle_PSC.cmd
+WorkingDir=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleHandle_PSC
Expected=0
MaxAllowedDurationSeconds=600
Categories=Pri1;RT;EXPECTED_PASS
HostStyle=0
-[StringComparerCtor.cmd_2524]
-RelativePath=CoreMangLib\cti\system\stringcompare\StringComparerCtor\StringComparerCtor.cmd
-WorkingDir=CoreMangLib\cti\system\stringcompare\StringComparerCtor
+[SafeHandleIsClosed_PSC.cmd_2392]
+RelativePath=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleIsClosed_PSC\SafeHandleIsClosed_PSC.cmd
+WorkingDir=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleIsClosed_PSC
Expected=0
MaxAllowedDurationSeconds=600
Categories=Pri1;RT;EXPECTED_PASS
HostStyle=0
-[AutoResetEventCtor.cmd_2640]
-RelativePath=CoreMangLib\cti\system\threading\autoresetevent\AutoResetEventCtor\AutoResetEventCtor.cmd
-WorkingDir=CoreMangLib\cti\system\threading\autoresetevent\AutoResetEventCtor
+[SafeHandleIsInvalid_PSC.cmd_2393]
+RelativePath=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleIsInvalid_PSC\SafeHandleIsInvalid_PSC.cmd
+WorkingDir=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleIsInvalid_PSC
Expected=0
MaxAllowedDurationSeconds=600
Categories=Pri1;RT;EXPECTED_PASS
HostStyle=0
-[AutoResetEventReSet.cmd_2641]
-RelativePath=CoreMangLib\cti\system\threading\autoresetevent\AutoResetEventReSet\AutoResetEventReSet.cmd
-WorkingDir=CoreMangLib\cti\system\threading\autoresetevent\AutoResetEventReSet
+[SafeHandleSetHandleAsInvalid_PSC.cmd_2394]
+RelativePath=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleSetHandleAsInvalid_PSC\SafeHandleSetHandleAsInvalid_PSC.cmd
+WorkingDir=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleSetHandleAsInvalid_PSC
Expected=0
MaxAllowedDurationSeconds=600
Categories=Pri1;RT;EXPECTED_PASS
HostStyle=0
-[AutoResetEventSet.cmd_2642]
-RelativePath=CoreMangLib\cti\system\threading\autoresetevent\AutoResetEventSet\AutoResetEventSet.cmd
-WorkingDir=CoreMangLib\cti\system\threading\autoresetevent\AutoResetEventSet
+[SafeHandleSetHandle_PSC.cmd_2395]
+RelativePath=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleSetHandle_PSC\SafeHandleSetHandle_PSC.cmd
+WorkingDir=CoreMangLib\cti\system\runtime\interopservices\safehandle\SafeHandleSetHandle_PSC
Expected=0
MaxAllowedDurationSeconds=600
Categories=Pri1;RT;EXPECTED_PASS
Categories=Pri1;RT;EXPECTED_PASS
HostStyle=0
-[ManualResetEventCtor.cmd_2657]
-RelativePath=CoreMangLib\cti\system\threading\manualresetevent\ManualResetEventCtor\ManualResetEventCtor.cmd
-WorkingDir=CoreMangLib\cti\system\threading\manualresetevent\ManualResetEventCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[TimeOutInfinite.cmd_2658]
-RelativePath=CoreMangLib\cti\system\threading\timeout\TimeOutInfinite\TimeOutInfinite.cmd
-WorkingDir=CoreMangLib\cti\system\threading\timeout\TimeOutInfinite
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[WaitHandleCtor.cmd_2659]
-RelativePath=CoreMangLib\cti\system\threading\waithandle\WaitHandleCtor\WaitHandleCtor.cmd
-WorkingDir=CoreMangLib\cti\system\threading\waithandle\WaitHandleCtor
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[WaitHandleDispose1.cmd_2660]
-RelativePath=CoreMangLib\cti\system\threading\waithandle\WaitHandleDispose1\WaitHandleDispose1.cmd
-WorkingDir=CoreMangLib\cti\system\threading\waithandle\WaitHandleDispose1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[WaitHandleDispose3.cmd_2661]
-RelativePath=CoreMangLib\cti\system\threading\waithandle\WaitHandleDispose3\WaitHandleDispose3.cmd
-WorkingDir=CoreMangLib\cti\system\threading\waithandle\WaitHandleDispose3
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
[TypeEquals1.cmd_2693]
RelativePath=CoreMangLib\cti\system\type\TypeEquals1\TypeEquals1.cmd
WorkingDir=CoreMangLib\cti\system\type\TypeEquals1
Categories=Pri1;RT;EXPECTED_PASS
HostStyle=0
-[UInt16CompareTo1.cmd_2731]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16CompareTo1\UInt16CompareTo1.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16CompareTo1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt16Equals1.cmd_2732]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16Equals1\UInt16Equals1.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16Equals1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt16Equals2.cmd_2733]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16Equals2\UInt16Equals2.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16Equals2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt16IConvertibleToBoolean.cmd_2734]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16IConvertibleToBoolean\UInt16IConvertibleToBoolean.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16IConvertibleToBoolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt16IConvertibleToByte.cmd_2735]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16IConvertibleToByte\UInt16IConvertibleToByte.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16IConvertibleToByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt16IConvertibleToChar.cmd_2736]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16IConvertibleToChar\UInt16IConvertibleToChar.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16IConvertibleToChar
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt16IConvertibleToDateTime.cmd_2737]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16IConvertibleToDateTime\UInt16IConvertibleToDateTime.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16IConvertibleToDateTime
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt16IConvertibleToDecimal.cmd_2738]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16IConvertibleToDecimal\UInt16IConvertibleToDecimal.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16IConvertibleToDecimal
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt16IConvertibleToDouble.cmd_2739]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16IConvertibleToDouble\UInt16IConvertibleToDouble.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16IConvertibleToDouble
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt16IConvertibleToInt16.cmd_2740]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16IConvertibleToInt16\UInt16IConvertibleToInt16.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16IConvertibleToInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt16IConvertibleToInt32.cmd_2741]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16IConvertibleToInt32\UInt16IConvertibleToInt32.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16IConvertibleToInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt16IConvertibleToInt64.cmd_2742]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16IConvertibleToInt64\UInt16IConvertibleToInt64.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16IConvertibleToInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt16IConvertibleToSByte.cmd_2743]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16IConvertibleToSByte\UInt16IConvertibleToSByte.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16IConvertibleToSByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt16IConvertibleToSingle.cmd_2744]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16IConvertibleToSingle\UInt16IConvertibleToSingle.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16IConvertibleToSingle
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt16IConvertibleToType.cmd_2745]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16IConvertibleToType\UInt16IConvertibleToType.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16IConvertibleToType
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt16IConvertibleToUInt16.cmd_2746]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16IConvertibleToUInt16\UInt16IConvertibleToUInt16.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16IConvertibleToUInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt16IConvertibleToUInt32.cmd_2747]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16IConvertibleToUInt32\UInt16IConvertibleToUInt32.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16IConvertibleToUInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt16IConvertibleToUInt64.cmd_2748]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16IConvertibleToUInt64\UInt16IConvertibleToUInt64.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16IConvertibleToUInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt16ToString3.cmd_2752]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16ToString3\UInt16ToString3.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16ToString3
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt16ToString4.cmd_2753]
-RelativePath=CoreMangLib\cti\system\uint16\UInt16ToString4\UInt16ToString4.cmd
-WorkingDir=CoreMangLib\cti\system\uint16\UInt16ToString4
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt32CompareTo2.cmd_2755]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32CompareTo2\UInt32CompareTo2.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32CompareTo2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt32Equals1.cmd_2756]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32Equals1\UInt32Equals1.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32Equals1
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt32Equals2.cmd_2757]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32Equals2\UInt32Equals2.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32Equals2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt32GetHashCode.cmd_2758]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32GetHashCode\UInt32GetHashCode.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32GetHashCode
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt32IConvertibleToBoolean.cmd_2759]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32IConvertibleToBoolean\UInt32IConvertibleToBoolean.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32IConvertibleToBoolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt32IConvertibleToByte.cmd_2760]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32IConvertibleToByte\UInt32IConvertibleToByte.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32IConvertibleToByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt32IConvertibleToChar.cmd_2761]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32IConvertibleToChar\UInt32IConvertibleToChar.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32IConvertibleToChar
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt32IConvertibleToDecimal.cmd_2762]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32IConvertibleToDecimal\UInt32IConvertibleToDecimal.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32IConvertibleToDecimal
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt32IConvertibleToDouble.cmd_2763]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32IConvertibleToDouble\UInt32IConvertibleToDouble.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32IConvertibleToDouble
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt32IConvertibleToInt16.cmd_2764]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32IConvertibleToInt16\UInt32IConvertibleToInt16.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32IConvertibleToInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt32IConvertibleToInt32.cmd_2765]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32IConvertibleToInt32\UInt32IConvertibleToInt32.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32IConvertibleToInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt32IConvertibleToInt64.cmd_2766]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32IConvertibleToInt64\UInt32IConvertibleToInt64.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32IConvertibleToInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt32IConvertibleToSByte.cmd_2767]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32IConvertibleToSByte\UInt32IConvertibleToSByte.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32IConvertibleToSByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt32IConvertibleToSingle.cmd_2768]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32IConvertibleToSingle\UInt32IConvertibleToSingle.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32IConvertibleToSingle
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt32IConvertibleToType.cmd_2769]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32IConvertibleToType\UInt32IConvertibleToType.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32IConvertibleToType
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt32IConvertibleToUInt16.cmd_2770]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32IConvertibleToUInt16\UInt32IConvertibleToUInt16.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32IConvertibleToUInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt32IConvertibleToUInt32.cmd_2771]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32IConvertibleToUInt32\UInt32IConvertibleToUInt32.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32IConvertibleToUInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt32IConvertibleToUInt64.cmd_2772]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32IConvertibleToUInt64\UInt32IConvertibleToUInt64.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32IConvertibleToUInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt32MaxValue.cmd_2773]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32MaxValue\UInt32MaxValue.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32MaxValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt32MinValue.cmd_2774]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32MinValue\UInt32MinValue.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32MinValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt32ToString2.cmd_2778]
-RelativePath=CoreMangLib\cti\system\uint32\UInt32ToString2\UInt32ToString2.cmd
-WorkingDir=CoreMangLib\cti\system\uint32\UInt32ToString2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt64GetHashCode.cmd_2780]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64GetHashCode\UInt64GetHashCode.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64GetHashCode
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt64IConvertibleToBoolean.cmd_2781]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64IConvertibleToBoolean\UInt64IConvertibleToBoolean.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64IConvertibleToBoolean
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt64IConvertibleToByte.cmd_2782]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64IConvertibleToByte\UInt64IConvertibleToByte.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64IConvertibleToByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt64IConvertibleToChar.cmd_2783]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64IConvertibleToChar\UInt64IConvertibleToChar.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64IConvertibleToChar
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt64IConvertibleToDateTime.cmd_2784]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64IConvertibleToDateTime\UInt64IConvertibleToDateTime.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64IConvertibleToDateTime
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt64IConvertibleToDecimal.cmd_2785]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64IConvertibleToDecimal\UInt64IConvertibleToDecimal.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64IConvertibleToDecimal
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt64IConvertibleToDouble.cmd_2786]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64IConvertibleToDouble\UInt64IConvertibleToDouble.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64IConvertibleToDouble
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt64IConvertibleToInt16.cmd_2787]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64IConvertibleToInt16\UInt64IConvertibleToInt16.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64IConvertibleToInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt64IConvertibleToInt32.cmd_2788]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64IConvertibleToInt32\UInt64IConvertibleToInt32.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64IConvertibleToInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt64IConvertibleToInt64.cmd_2789]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64IConvertibleToInt64\UInt64IConvertibleToInt64.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64IConvertibleToInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt64IConvertibleToSByte.cmd_2790]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64IConvertibleToSByte\UInt64IConvertibleToSByte.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64IConvertibleToSByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt64IConvertibleToSingle.cmd_2791]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64IConvertibleToSingle\UInt64IConvertibleToSingle.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64IConvertibleToSingle
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt64IConvertibleToType.cmd_2792]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64IConvertibleToType\UInt64IConvertibleToType.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64IConvertibleToType
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt64IConvertibleToUInt16.cmd_2793]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64IConvertibleToUInt16\UInt64IConvertibleToUInt16.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64IConvertibleToUInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt64IConvertibleToUInt32.cmd_2794]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64IConvertibleToUInt32\UInt64IConvertibleToUInt32.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64IConvertibleToUInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt64IConvertibleToUInt64.cmd_2795]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64IConvertibleToUInt64\UInt64IConvertibleToUInt64.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64IConvertibleToUInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt64MaxValue.cmd_2796]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64MaxValue\UInt64MaxValue.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64MaxValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt64MinValue.cmd_2797]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64MinValue\UInt64MinValue.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64MinValue
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[UInt64ToString2.cmd_2801]
-RelativePath=CoreMangLib\cti\system\uint64\UInt64ToString2\UInt64ToString2.cmd
-WorkingDir=CoreMangLib\cti\system\uint64\UInt64ToString2
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[WeakReferenceCtor1_PSC.cmd_2826]
-RelativePath=CoreMangLib\cti\system\weakreference\WeakReferenceCtor1_PSC\WeakReferenceCtor1_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\weakreference\WeakReferenceCtor1_PSC
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[WeakReferenceCtor2b_PSC.cmd_2827]
-RelativePath=CoreMangLib\cti\system\weakreference\WeakReferenceCtor2b_PSC\WeakReferenceCtor2b_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\weakreference\WeakReferenceCtor2b_PSC
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[WeakReferenceCtor2_PSC.cmd_2828]
-RelativePath=CoreMangLib\cti\system\weakreference\WeakReferenceCtor2_PSC\WeakReferenceCtor2_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\weakreference\WeakReferenceCtor2_PSC
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[WeakReferenceIsAliveb_PSC.cmd_2829]
-RelativePath=CoreMangLib\cti\system\weakreference\WeakReferenceIsAliveb_PSC\WeakReferenceIsAliveb_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\weakreference\WeakReferenceIsAliveb_PSC
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[WeakReferenceIsAlive_PSC.cmd_2830]
-RelativePath=CoreMangLib\cti\system\weakreference\WeakReferenceIsAlive_PSC\WeakReferenceIsAlive_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\weakreference\WeakReferenceIsAlive_PSC
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[WeakReferenceTargetb_PSC.cmd_2831]
-RelativePath=CoreMangLib\cti\system\weakreference\WeakReferenceTargetb_PSC\WeakReferenceTargetb_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\weakreference\WeakReferenceTargetb_PSC
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
-[WeakReferenceTrackResurrection_cti_PSC.cmd_2832]
-RelativePath=CoreMangLib\cti\system\weakreference\WeakReferenceTrackResurrection_cti_PSC\WeakReferenceTrackResurrection_cti_PSC.cmd
-WorkingDir=CoreMangLib\cti\system\weakreference\WeakReferenceTrackResurrection_cti_PSC
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
[ASURT_99893.cmd_2833]
RelativePath=CoreMangLib\system\buffer\ASURT_99893\ASURT_99893.cmd
WorkingDir=CoreMangLib\system\buffer\ASURT_99893
Categories=EXPECTED_PASS;NEW;Pri1
HostStyle=0
-[StringReplace3.cmd_11567]
-RelativePath=CoreMangLib\cti\system\string\StringReplace3\StringReplace3.cmd
-WorkingDir=CoreMangLib\cti\system\string\StringReplace3
-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
+++ /dev/null
-<?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="booleancompareto_boolean.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>
-
+++ /dev/null
-<?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="booleanequals_boolean.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>
-
+++ /dev/null
-<?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="booleanequals_object.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>
-
+++ /dev/null
-<?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="booleanfalsestring.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>
-
+++ /dev/null
-<?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="booleangethashcode.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>
-
+++ /dev/null
-<?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="booleaniconvertibletoboolean.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>
-
+++ /dev/null
-<?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="booleaniconvertibletobyte.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>
-
+++ /dev/null
-<?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="booleaniconvertibletochar.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>
-
+++ /dev/null
-<?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="booleaniconvertibletodatetime.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>
-
+++ /dev/null
-<?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="booleaniconvertibletodecimal.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>
-
+++ /dev/null
-<?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="booleaniconvertibletodouble.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>
-
+++ /dev/null
-<?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="booleaniconvertibletoint16.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>
-
+++ /dev/null
-<?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="booleaniconvertibletoint32.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>
-
+++ /dev/null
-<?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="booleaniconvertibletoint64.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>
-
+++ /dev/null
-<?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="booleaniconvertibletosbyte.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>
-
+++ /dev/null
-<?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="booleaniconvertibletosingle.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>
-
+++ /dev/null
-<?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="booleaniconvertibletotype.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>
-
+++ /dev/null
-<?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="booleaniconvertibletouint16.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>
-
+++ /dev/null
-<?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="booleaniconvertibletouint32.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>
-
+++ /dev/null
-<?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="booleaniconvertibletouint64.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>
-
+++ /dev/null
-<?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="booleantostring.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>
-
+++ /dev/null
-<?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="booleantruestring.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>
-
+++ /dev/null
-// 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 BooleanCompareTo_Boolean
-{
-
- public static int Main()
- {
- BooleanCompareTo_Boolean testCase = new BooleanCompareTo_Boolean();
-
- TestLibrary.TestFramework.BeginTestCase("Boolean.CompareTo(Boolean)");
- if (testCase.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;
- try
- {
- Boolean b0 = false;
- Boolean b1 = false;
- if (b0.CompareTo(b1) != 0)
- {
- TestLibrary.TestFramework.LogError("001", "expect false.CompareTo(false) == 0");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- try
- {
- Boolean b0 = false;
- Boolean b1 = true;
- if (b0.CompareTo(b1) >= 0)
- {
- TestLibrary.TestFramework.LogError("002", "expect false.CompareTo(true) < 0");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- try
- {
- Boolean b0 = true;
- Boolean b1 = false;
- if (b0.CompareTo(b1) <= 0)
- {
- TestLibrary.TestFramework.LogError("003", "expect true.CompareTo(false) > 0");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
- try
- {
- Boolean b0 = true;
- Boolean b1 = true;
- if (b0.CompareTo(b1) != 0)
- {
- TestLibrary.TestFramework.LogError("004", "expect true.CompareTo(true) == 0");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-}
+++ /dev/null
-// 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 BooleanEquals_Boolean
-{
-
- public static int Main()
- {
- BooleanEquals_Boolean testCase = new BooleanEquals_Boolean();
-
- TestLibrary.TestFramework.BeginTestCase("Boolean.Equals(Boolean)");
- if (testCase.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;
- try
- {
- Boolean b0 = false;
- Boolean b1 = false;
- if (!b0.Equals(b1))
- {
- TestLibrary.TestFramework.LogError("001", "expect false.Equals(false) == true");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- try
- {
- Boolean b0 = false;
- Boolean b1 = true;
- if (b0.Equals(b1))
- {
- TestLibrary.TestFramework.LogError("002", "expect false.Equals(true) == false");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- try
- {
- Boolean b0 = true;
- Boolean b1 = false;
- if (b0.Equals(b1))
- {
- TestLibrary.TestFramework.LogError("003", "expect true.Equals(false) == false");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
- try
- {
- Boolean b0 = true;
- Boolean b1 = true;
- if (!b0.Equals(b1))
- {
- TestLibrary.TestFramework.LogError("004", "expect true.CompareTo(true) == true");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-}
+++ /dev/null
-// 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 BooleanEquals_Object
-{
-
- public static int Main()
- {
- BooleanEquals_Object testCase = new BooleanEquals_Object();
-
- TestLibrary.TestFramework.BeginTestCase("Boolean.Equals(Object)");
- if (testCase.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;
-
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- try
- {
- Boolean b0 = false;
- Boolean b1 = false;
- if (!b0.Equals(b1 as Object))
- {
- TestLibrary.TestFramework.LogError("001", "expect false.Equals(false as object) == true");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- try
- {
- Boolean b0 = false;
- Boolean b1 = true;
- if (b0.Equals(b1 as Object))
- {
- TestLibrary.TestFramework.LogError("002", "expect false.Equals(true as object) == false");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- try
- {
- Boolean b0 = true;
- Boolean b1 = false;
- if (b0.Equals(b1 as Object))
- {
- TestLibrary.TestFramework.LogError("003", "expect true.Equals(false as object) == false");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
- try
- {
- Boolean b0 = true;
- Boolean b1 = true;
- if (!b0.Equals(b1 as Object))
- {
- TestLibrary.TestFramework.LogError("004", "expect true.Equals(true as object) == true");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
- try
- {
- Boolean b0 = false;
- if (b0.Equals(null))
- {
- TestLibrary.TestFramework.LogError("005", "expect false.Equals(null) == false");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("005", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest6()
- {
- bool retVal = true;
- try
- {
- Boolean b0 = true;
- if (b0.Equals(null))
- {
- TestLibrary.TestFramework.LogError("006", "expect true.Equals(null) == false");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest7()
- {
- bool retVal = true;
- try
- {
- Boolean b0 = true;
- if (b0.Equals(1))
- {
- TestLibrary.TestFramework.LogError("007", "expect true.Equals(1) == false");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("007", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest8()
- {
- bool retVal = true;
- try
- {
- if (false.Equals(0))
- {
- TestLibrary.TestFramework.LogError("008", "expect false.Equals(0) == false");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest9()
- {
- bool retVal = true;
- try
- {
- if (false.Equals(Single.NaN))
- {
- TestLibrary.TestFramework.LogError("009", "expect false.Equals(Single.NaN) == false");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("009", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-}
+++ /dev/null
-// 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 BooleanFalseString
-{
- const string FALSE_STRING = "False";
-
- public static int Main()
- {
- BooleanFalseString testCase = new BooleanFalseString();
-
- TestLibrary.TestFramework.BeginTestCase("Boolean.FalseString");
- if (testCase.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;
- try
- {
- if (Boolean.FalseString != FALSE_STRING)
- {
- TestLibrary.TestFramework.LogError("001", "expect Boolean.FalseString == \"False\" ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-}
+++ /dev/null
-// 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 BooleanGetHashCode
-{
-
- public static int Main()
- {
- BooleanGetHashCode testCase = new BooleanGetHashCode();
-
- TestLibrary.TestFramework.BeginTestCase("Boolean.GetHashCode");
- if (testCase.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;
- try
- {
- if (true.GetHashCode() != 1)
- {
- TestLibrary.TestFramework.LogError("001", "expect true.GetHashCode() == 1");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- try
- {
- if (false.GetHashCode() != 0)
- {
- TestLibrary.TestFramework.LogError("002", "expect false.GetHashCode() == 0");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-}
+++ /dev/null
-// 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 BooleanIConvertableToBoolean
-{
- #region MainEntry
- public static int Main()
- {
- BooleanIConvertableToBoolean testCase = new BooleanIConvertableToBoolean();
-
- TestLibrary.TestFramework.BeginTestCase("Boolean.IConvertible.ToBoolean");
- if (testCase.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
- #endregion
-
- #region Run Cases
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
-
-
- return retVal;
- }
- #endregion
-
- public bool PosTest1()
- {
- bool retVal = true;
- try
- {
- if ( (true as IConvertible).ToBoolean(null) != true)
- {
- TestLibrary.TestFramework.LogError("001", "expect (true as IConvertible).ToBoolean(null) == true");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- try
- {
- if ( (false as IConvertible).ToBoolean(null) != false)
- {
- TestLibrary.TestFramework.LogError("002", "(false as IConvertible).ToBoolean(null) == false");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
-}
+++ /dev/null
-// 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 BooleanIConvertibleToByte
-{
-
- public static int Main()
- {
- BooleanIConvertibleToByte testCase = new BooleanIConvertibleToByte();
-
- TestLibrary.TestFramework.BeginTestCase("Boolean.IConvertible.ToByte");
- if (testCase.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;
- try
- {
- if( (true as IConvertible).ToByte(null) != (byte)1)
- {
- TestLibrary.TestFramework.LogError("001", "expect (true as IConvertible).ToByte(null) == (byte)1");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- try
- {
- if ( (false as IConvertible).ToByte(null) != (byte)0)
- {
- TestLibrary.TestFramework.LogError("002", "expect (false as IConvertible).ToByte(null) == 0");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
-}
+++ /dev/null
-// 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 BooleanIConvertibleToChar
-{
-
- public static int Main()
- {
- BooleanIConvertibleToChar testCase = new BooleanIConvertibleToChar();
-
- TestLibrary.TestFramework.BeginTestCase("Boolean.IConvertible.ToChar");
- if (testCase.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("[Negative]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
-
-
- return retVal;
- }
-
- public bool NegTest1()
- {
- bool retVal = true;
- try
- {
- char v = (true as IConvertible).ToChar(null);
- TestLibrary.TestFramework.LogError("001",
- String.Format("expected a InvalidCastException on (true as IConvertible).ToChar(null)) but got {0}", v));
- retVal = false;
- }
- catch(InvalidCastException)
- {
- retVal = true;
- return retVal;
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
- try
- {
- char v = (false as IConvertible).ToChar(null);
- TestLibrary.TestFramework.LogError("002",
- String.Format("expected a InvalidCastException on (false as IConvertible).ToChar(null)) but got {0}", v));
- retVal = false;
- }
- catch (InvalidCastException)
- {
- retVal = true;
- return retVal;
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-}
+++ /dev/null
-// 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 BooleanIConvertibleToDateTime
-{
-
- public static int Main()
- {
- BooleanIConvertibleToDateTime testCase = new BooleanIConvertibleToDateTime();
-
- TestLibrary.TestFramework.BeginTestCase("Boolean.IConvertible.ToDateTime");
- if (testCase.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("[Negative]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
-
-
- return retVal;
- }
-
- public bool NegTest1()
- {
- bool retVal = true;
- try
- {
- DateTime v = (true as IConvertible).ToDateTime(null);
- TestLibrary.TestFramework.LogError("001",
- String.Format("expected a InvalidCastException on (true as IConvertible).ToDateTime(null)) but got {0}", v));
- retVal = false;
- }
- catch (InvalidCastException)
- {
- retVal = true;
- return retVal;
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
- try
- {
- DateTime v = (false as IConvertible).ToDateTime(null);
- TestLibrary.TestFramework.LogError("002",
- String.Format("expected a InvalidCastException on (false as IConvertible).ToDateTime(null)) but got {0}", v));
- retVal = false;
- }
- catch (InvalidCastException)
- {
- retVal = true;
- return retVal;
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-}
+++ /dev/null
-// 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.Boolean.IConvertible.ToDecimal
-/// </summary>
-public class BooleanIConvertibleToDecimal
-{
-
- public static int Main()
- {
- BooleanIConvertibleToDecimal testCase = new BooleanIConvertibleToDecimal();
-
- TestLibrary.TestFramework.BeginTestCase("Boolean.IConvertible.ToDecimal");
- if (testCase.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;
- try
- {
- if ((true as IConvertible).ToDecimal(null) != 1)
- {
- TestLibrary.TestFramework.LogError("001", "expect (true as IConvertible).ToDecimal(null) == 1");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- try
- {
- if ((false as IConvertible).ToDecimal(null) != 0)
- {
- TestLibrary.TestFramework.LogError("002", "expect (false as IConvertible).ToDecimal(null) == 0");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-}
+++ /dev/null
-// 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.Boolean.IConvertible.ToDouble
-/// </summary>
-public class BooleanIConvertibleToDouble
-{
-
- public static int Main()
- {
- BooleanIConvertibleToDouble testCase = new BooleanIConvertibleToDouble();
-
- TestLibrary.TestFramework.BeginTestCase("Boolean.IConvertible.ToDouble");
- if (testCase.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;
- try
- {
- if ((true as IConvertible).ToDouble(null) != 1.0)
- {
- TestLibrary.TestFramework.LogError("001", "expect (true as IConvertible).ToDouble(null) == 1.0");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- try
- {
- if ((false as IConvertible).ToDouble(null) != 0.0)
- {
- TestLibrary.TestFramework.LogError("002", "expect (false as IConvertible).ToDouble(null) == 0.0");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-}
+++ /dev/null
-// 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 BooleanIConvertibleToInt16
-{
-
- public static int Main()
- {
- BooleanIConvertibleToInt16 testCase = new BooleanIConvertibleToInt16();
-
- TestLibrary.TestFramework.BeginTestCase("Boolean.IConvertible.ToInt16");
- if (testCase.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;
- try
- {
- if ( (true as IConvertible).ToInt16(null) != (short)1 )
- {
- TestLibrary.TestFramework.LogError("001", "expect (true as IConvertible).ToInt16(null) == (short)1");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- try
- {
- if ( (false as IConvertible).ToInt16(null) != 0)
- {
- TestLibrary.TestFramework.LogError("002", "expect (false as IConvertible).ToInt16(null) == 0");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
-}
+++ /dev/null
-// 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 BooleanIConvertibleToInt32
-{
-
- public static int Main()
- {
- BooleanIConvertibleToInt32 testCase = new BooleanIConvertibleToInt32();
-
- TestLibrary.TestFramework.BeginTestCase("Boolean.IConvertible.ToInt32");
- if (testCase.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;
- try
- {
- if ( (true as IConvertible).ToInt32(null) != 1 )
- {
- TestLibrary.TestFramework.LogError("001", "expect (true as IConvertible).ToInt32(null) == 1");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- try
- {
- if ( (false as IConvertible).ToInt32(null) != 0)
- {
- TestLibrary.TestFramework.LogError("002", "expect (false as IConvertible).ToInt32(null) == 0");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
-}
+++ /dev/null
-// 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 BooleanIConvertibleToInt64
-{
-
- public static int Main()
- {
- BooleanIConvertibleToInt64 testCase = new BooleanIConvertibleToInt64();
-
- TestLibrary.TestFramework.BeginTestCase("Boolean.IConvertible.ToInt64");
- if (testCase.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;
- try
- {
- if ( (true as IConvertible).ToInt64(null) != 1L)
- {
- TestLibrary.TestFramework.LogError("001", "expect (true as IConvertible).ToInt64(null) == 1L");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- try
- {
- if ( (false as IConvertible).ToInt64(null) != 0L )
- {
- TestLibrary.TestFramework.LogError("002", "expect (false as IConvertible).ToInt64(null) == 0L");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
-}
+++ /dev/null
-// 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 BooleanIConvertibleToSByte
-{
-
- public static int Main()
- {
- BooleanIConvertibleToSByte testCase = new BooleanIConvertibleToSByte();
-
- TestLibrary.TestFramework.BeginTestCase("Boolean.IConvertible.ToSByte");
- if (testCase.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;
- try
- {
- if ((true as IConvertible).ToSByte(null) != (sbyte)1)
- {
- TestLibrary.TestFramework.LogError("001", "expect (true as IConvertible).ToSByte(null) == (sbyte)1");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- try
- {
- if ((false as IConvertible).ToSByte(null) != (sbyte)0)
- {
- TestLibrary.TestFramework.LogError("002", "expect (false as IConvertible).ToSByte(null) == (sbyte)0");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
-}
+++ /dev/null
-// 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.Boolean.IConvertible.ToSingle
-/// </summary>
-public class BooleanIConvertibleToSingle
-{
-
- public static int Main()
- {
- BooleanIConvertibleToSingle testCase = new BooleanIConvertibleToSingle();
-
- TestLibrary.TestFramework.BeginTestCase("Boolean.IConvertible.ToSingle");
- if (testCase.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;
- try
- {
- if ((true as IConvertible).ToSingle(null) != 1.0f)
- {
- TestLibrary.TestFramework.LogError("001", "expect (true as IConvertible).ToSingle(null) == 1.0f");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- try
- {
- if ((false as IConvertible).ToSingle(null) != 0.0f)
- {
- TestLibrary.TestFramework.LogError("002", "expect (false as IConvertible).ToSingle(null) == 0.0f");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-}
+++ /dev/null
-// 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;
-
-class MyTestClass
-{
- public MyTestClass()
- {
- this.m_value = false;
- }
-
- public MyTestClass(bool value)
- {
- this.m_value = value;
- }
-
- bool m_value;
-};
-
-public class BooleanIConvertibleToType
-{
-
- public static int Main()
- {
- BooleanIConvertibleToType testCase = new BooleanIConvertibleToType();
-
- TestLibrary.TestFramework.BeginTestCase("Boolean.IConvertible.ToType");
- if (testCase.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;
- retVal = PosTest12() && retVal;
- retVal = PosTest13() && retVal;
-
- TestLibrary.TestFramework.LogInformation("[Negative]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
-
-
- return retVal;
- }
-
- #region Positive test cases
- /// <summary>
- /// convert to int
- /// </summary>
- /// <returns></returns>
- public bool PosTest1()
- {
- bool retVal = true;
- try
- {
- if ( (int)(true as IConvertible).ToType(typeof(int), null) != 1 )
- {
- TestLibrary.TestFramework.LogError("001", "expect (int)(true as IConvertible).ToType(typeof(int), null) == 1");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- /// <summary>
- /// convert to uint
- /// </summary>
- /// <returns></returns>
- public bool PosTest2()
- {
- bool retVal = true;
- try
- {
- if ((uint)(true as IConvertible).ToType(typeof(uint), null) != 1)
- {
- TestLibrary.TestFramework.LogError("002", "expect (uint)(true as IConvertible).ToType(typeof(uint), null) == 1");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- /// <summary>
- /// convert to long
- /// </summary>
- /// <returns></returns>
- public bool PosTest3()
- {
- bool retVal = true;
- try
- {
- if ((long)(false as IConvertible).ToType(typeof(long), null) != (long)0)
- {
- TestLibrary.TestFramework.LogError("003", "expect (long)(false as IConvertible).ToType(typeof(long), null) == (long)0");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- /// <summary>
- /// convert to ulong
- /// </summary>
- /// <returns></returns>
- public bool PosTest4()
- {
- bool retVal = true;
- try
- {
- if ((ulong)(false as IConvertible).ToType(typeof(ulong), null) != (ulong)0)
- {
- TestLibrary.TestFramework.LogError("004", "expect (ulong)(false as IConvertible).ToType(typeof(ulong), null) == (ulong)0");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- /// <summary>
- /// convert to short
- /// </summary>
- /// <returns></returns>
- public bool PosTest5()
- {
- bool retVal = true;
- try
- {
- if ((short)(true as IConvertible).ToType(typeof(short), null) != (short)1)
- {
- TestLibrary.TestFramework.LogError("005", "expect (short)(true as IConvertible).ToType(typeof(short), null) == (short)1");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("005", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- /// <summary>
- /// convert to ushort
- /// </summary>
- /// <returns></returns>
- public bool PosTest6()
- {
- bool retVal = true;
- try
- {
- if ((ushort)(false as IConvertible).ToType(typeof(ushort), null) != (ushort)0)
- {
- TestLibrary.TestFramework.LogError("006", "expect (ushort)(false as IConvertible).ToType(typeof(ushort), null) == (ushort)0");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- /// <summary>
- /// convert to byte
- /// </summary>
- /// <returns></returns>
- public bool PosTest7()
- {
- bool retVal = true;
- try
- {
- if ((byte)(true as IConvertible).ToType(typeof(byte), null) != (byte)1)
- {
- TestLibrary.TestFramework.LogError("007", "expect (byte)(true as IConvertible).ToType(typeof(byte), null) == (byte)1");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("007", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- /// <summary>
- /// convert to sbyte
- /// </summary>
- /// <returns></returns>
- public bool PosTest8()
- {
- bool retVal = true;
- try
- {
- if ((sbyte)(true as IConvertible).ToType(typeof(sbyte), null) != (sbyte)1)
- {
- TestLibrary.TestFramework.LogError("008", "expect (sbyte)(true as IConvertible).ToType(typeof(sbyte), null) == (sbyte)1");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- /// <summary>
- /// convert to bool
- /// </summary>
- /// <returns></returns>
- public bool PosTest9()
- {
- bool retVal = true;
- try
- {
- if ((bool)(true as IConvertible).ToType(typeof(Boolean), null) != true)
- {
- TestLibrary.TestFramework.LogError("009", "expect (bool)(true as IConvertible).ToType(typeof(Boolean), null) == true");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("009", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
-
- /// <summary>
- /// convert to Object
- /// </summary>
- /// <returns></returns>
- public bool PosTest10()
- {
- bool retVal = true;
- try
- {
- object v = (true as IConvertible).ToType(typeof(Object), null);
- if ( v.GetType() != typeof(Boolean) )
- {
- TestLibrary.TestFramework.LogError("010.1", "expect (true as IConvertible).ToType(typeof(Object), null).GetType() == typeof(Boolean)");
- retVal = false;
- }
-
- if ((bool)v != true)
- {
- TestLibrary.TestFramework.LogError("0010.2", "expect (bool)(true as IConvertible).ToType(typeof(Object), null) == true");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- /// <summary>
- /// convert to float
- /// </summary>
- /// <returns></returns>
- public bool PosTest11()
- {
- bool retVal = true;
- try
- {
- if ((float)(true as IConvertible).ToType(typeof(float), null) != 1.0f)
- {
- TestLibrary.TestFramework.LogError("011.1", "expect (float)(true as IConvertible).ToType(typeof(float), null) == 1.0f");
- retVal = false;
- }
- if ((float)(false as IConvertible).ToType(typeof(float), null) != 0.0f)
- {
- TestLibrary.TestFramework.LogError("011.1", "expect (float)(false as IConvertible).ToType(typeof(float), null) == 0.0f");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("011", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- /// <summary>
- /// convert to double
- /// </summary>
- /// <returns></returns>
- public bool PosTest12()
- {
- bool retVal = true;
- try
- {
- if ((double)(true as IConvertible).ToType(typeof(double), null) != 1.0)
- {
- TestLibrary.TestFramework.LogError("012.1", "expect (double)(true as IConvertible).ToType(typeof(double), null) == 1.0");
- retVal = false;
- }
- if ((double)(false as IConvertible).ToType(typeof(double), null) != 0.0)
- {
- TestLibrary.TestFramework.LogError("012.1", "expect (double)(false as IConvertible).ToType(typeof(double), null) == 0.0");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- /// <summary>
- /// convert to decimal
- /// </summary>
- /// <returns></returns>
- public bool PosTest13()
- {
- bool retVal = true;
- try
- {
- if ((decimal)(true as IConvertible).ToType(typeof(decimal), null) != (decimal)1.0)
- {
- TestLibrary.TestFramework.LogError("013.1", "expect (decimal)(true as IConvertible).ToType(typeof(decimal), null) == (decimal)1.0");
- retVal = false;
- }
- if ((decimal)(false as IConvertible).ToType(typeof(decimal), null) != (decimal)0.0)
- {
- TestLibrary.TestFramework.LogError("013.1", "expect (decimal)(false as IConvertible).ToType(typeof(decimal), null) == (decimal)0.0");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("013", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-
-
- #region Negative test cases
-
- /// <summary>
- /// convert to char and expcet InvalidCastException
- /// </summary>
- /// <returns></returns>
- public bool NegTest1()
- {
- bool retVal = true;
- try
- {
- char v = (char)(true as IConvertible).ToType(typeof(Char), null);
- TestLibrary.TestFramework.LogError("001",
- String.Format("expected a InvalidCastException on (true as IConvertible).ToType(typeof(Char), null) but got {0}", v));
- retVal = false;
- }
- catch (InvalidCastException)
- {
- retVal = true;
- return retVal;
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- /// <summary>
- /// convert to DateTime and expcet InvalidCastException
- /// </summary>
- /// <returns></returns>
- public bool NegTest2()
- {
- bool retVal = true;
- try
- {
- DateTime v = (DateTime)(true as IConvertible).ToType(typeof(DateTime), null);
- TestLibrary.TestFramework.LogError("002",
- String.Format("expected a InvalidCastException on (true as IConvertible).ToType(typeof(DateTime), null) but got {0}", v));
- retVal = false;
- }
- catch (InvalidCastException)
- {
- retVal = true;
- return retVal;
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- /// <summary>
- /// convert to MyTestClass and expcet InvalidCastException
- /// </summary>
- /// <returns></returns>
- public bool NegTest3()
- {
- bool retVal = true;
- try
- {
- MyTestClass v = (MyTestClass)(true as IConvertible).ToType(typeof(MyTestClass), null);
- TestLibrary.TestFramework.LogError("003",
- String.Format("expected a InvalidCastException on (true as IConvertible).ToType(typeof(MyTestClass), null) but got {0}", v));
- retVal = false;
- }
- catch (InvalidCastException)
- {
- retVal = true;
- return retVal;
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-// 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 BooleanIConvertibleToUInt16
-{
-
- public static int Main()
- {
- BooleanIConvertibleToUInt16 testCase = new BooleanIConvertibleToUInt16();
-
- TestLibrary.TestFramework.BeginTestCase("Boolean.IConvertible.ToUInt16");
- if (testCase.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;
- try
- {
- if ( (true as IConvertible).ToUInt16(null) != (ushort)1 )
- {
- TestLibrary.TestFramework.LogError("001", "expect (true as IConvertible).ToUInt16(null) == (ushort)1");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- try
- {
- if ((false as IConvertible).ToUInt16(null) != (ushort)0)
- {
- TestLibrary.TestFramework.LogError("002", "expect (false as IConvertible).ToUInt16(null) == (ushort)0");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
-}
+++ /dev/null
-// 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 BooleanIConvertibleToUInt32
-{
-
- public static int Main()
- {
- BooleanIConvertibleToUInt32 testCase = new BooleanIConvertibleToUInt32();
-
- TestLibrary.TestFramework.BeginTestCase("Boolean.IConvertible.ToUInt32");
- if (testCase.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;
- try
- {
- if ( (true as IConvertible).ToUInt32(null) != 1 )
- {
- TestLibrary.TestFramework.LogError("001", "expect (true as IConvertible).ToUInt32(null) == 1");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- try
- {
- if ((false as IConvertible).ToUInt32(null) != 0)
- {
- TestLibrary.TestFramework.LogError("002", "expect (false as IConvertible).ToUInt32(null) == 0");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
-}
+++ /dev/null
-// 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 BooleanIConvertibleToInt64
-{
-
- public static int Main()
- {
- BooleanIConvertibleToInt64 testCase = new BooleanIConvertibleToInt64();
-
- TestLibrary.TestFramework.BeginTestCase("Boolean.IConvertible.ToInt64");
- if (testCase.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;
- try
- {
- if ( (true as IConvertible).ToUInt64(null) != 1 )
- {
- TestLibrary.TestFramework.LogError("001", "expect (true as IConvertible).ToUInt64(null) == 1");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- try
- {
- if ((false as IConvertible).ToUInt64(null) != 0)
- {
- TestLibrary.TestFramework.LogError("002", "expect (false as IConvertible).ToUInt64(null) == 0");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
-}
+++ /dev/null
-// 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.Boolean.ToString()
-/// </summary>
-public class BooleanToString
-{
- const string cTRUE = "True";
- const string cFALSE = "False";
-
- #region Main Entry
- public static int Main()
- {
- BooleanToString testCase = new BooleanToString();
-
- TestLibrary.TestFramework.BeginTestCase("Boolean.ToString");
- if (testCase.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
- #endregion
-
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- try
- {
- if (true.ToString() != cTRUE)
- {
- TestLibrary.TestFramework.LogError("001", "expect true.ToString() != \"True\"");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- try
- {
- if (false.ToString() != cFALSE)
- {
- TestLibrary.TestFramework.LogError("002", "expect false.ToString() != \"False\"");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-}
+++ /dev/null
-// 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 BooleanTrueString
-{
- const string TRUE_STRING = "True";
- public static int Main()
- {
- BooleanTrueString testCase = new BooleanTrueString();
-
- TestLibrary.TestFramework.BeginTestCase("Boolean.TrueString");
- if (testCase.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;
- try
- {
- if (Boolean.TrueString != TRUE_STRING)
- {
- TestLibrary.TestFramework.LogError("001", "expect Boolean.TrueString == \"True\" ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-}
+++ /dev/null
-<?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="byteequals1.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>
-
+++ /dev/null
-<?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="byteequals2.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>
-
+++ /dev/null
-<?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="bytegethashcode.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>
-
+++ /dev/null
-<?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="byteiconvertibletoboolean.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>
-
+++ /dev/null
-<?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="byteiconvertibletobyte.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>
-
+++ /dev/null
-<?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="byteiconvertibletochar.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>
-
+++ /dev/null
-<?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="byteiconvertibletodatetime.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>
-
+++ /dev/null
-<?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="byteiconvertibletodecimal.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>
-
+++ /dev/null
-<?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="byteiconvertibletodouble.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>
-
+++ /dev/null
-<?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="byteiconvertibletoint16.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>
-
+++ /dev/null
-<?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="byteiconvertibletoint32.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>
-
+++ /dev/null
-<?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="byteiconvertibletoint64.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>
-
+++ /dev/null
-<?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="byteiconvertibletosbyte.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>
-
+++ /dev/null
-<?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="byteiconvertibletosingle.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>
-
+++ /dev/null
-<?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="byteiconvertibletotype.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>
-
+++ /dev/null
-<?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="byteiconvertibletouint16.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>
-
+++ /dev/null
-<?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="byteiconvertibletouint32.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>
-
+++ /dev/null
-<?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="byteiconvertibletouint64.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>
-
+++ /dev/null
-<?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="bytemaxvalue.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>
-
+++ /dev/null
-<?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="byteminvalue.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>
-
+++ /dev/null
-<?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="bytetostring2.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>
-
+++ /dev/null
-<?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="bytetostring3.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>
-
+++ /dev/null
-<?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="bytetostring4.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>
-
+++ /dev/null
-// 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.Byte.Equals(System.Byte)
-/// </summary>
-public class ByteEquals1
-{
- public static int Main(string[] args)
- {
- ByteEquals1 equal1 = new ByteEquals1();
- TestLibrary.TestFramework.BeginTestCase("Testing System.Byte.Equals(System.Byte)...");
-
- if (equal1.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("[Negtive]");
- retVal = NegTest1() && retVal;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Verify byte1 is less than byte2...");
-
- try
- {
- Byte byte1 = 20;
- Byte byte2 = 30;
-
- if (byte1.Equals(byte2))
- {
- TestLibrary.TestFramework.LogError("001", "The compare result is wrong!");
- 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 byte1 is larger than byte2...");
-
- try
- {
- Byte byte1 = 30;
- Byte byte2 = 20;
-
- if (byte1.Equals(byte2))
- {
- TestLibrary.TestFramework.LogError("003", "The compare result is wrong!");
- 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 byte1 is equal to byte2...");
-
- try
- {
- Byte byte1 = 20;
- Byte byte2 = 20;
-
- if (!byte1.Equals(byte2))
- {
- TestLibrary.TestFramework.LogError("005", "The compare result is wrong!");
- 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("Verify Byte instance compare to itself...");
-
- try
- {
- Byte byte1 = 20;
-
- if (!byte1.Equals(byte1))
- {
- TestLibrary.TestFramework.LogError("007", "The result of compare is wrong!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Verify Byte instance compare to Int32 instance when they have the same values...");
-
- try
- {
- Byte byte1 = 20;
- Int32 int1 = 20;
-
- if (byte1.Equals(int1))
- {
- TestLibrary.TestFramework.LogError("009","The compare result is wrong!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-// 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.Byte,Equals(System.Object)
-/// </summary>
-public class ByteEquals2
-{
- public static int Main(string[] args)
- {
- ByteEquals2 equal2 = new ByteEquals2();
- TestLibrary.TestFramework.BeginTestCase("Testing System.Byte.Equals(System.Object)...");
-
- if (equal2.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("[Negtive]");
- retVal = NegTest1() && retVal;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Verify byte1 is less than byte2...");
-
- try
- {
- Byte byte1 = 20;
- object byte2 = (Byte)30;
-
- if (byte1.Equals(byte2))
- {
- TestLibrary.TestFramework.LogError("001", "The compare result is wrong!");
- 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 byte1 is larger than byte2...");
-
- try
- {
- Byte byte1 = 30;
- object byte2 = (Byte)20;
-
- if (byte1.Equals(byte2))
- {
- TestLibrary.TestFramework.LogError("003", "The compare result is wrong!");
- 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 byte1 is equal to byte2...");
-
- try
- {
- Byte byte1 = 20;
- object byte2 = (Byte)20;
-
- if (!byte1.Equals(byte2))
- {
- TestLibrary.TestFramework.LogError("005", "The compare result is wrong!");
- 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("Verify Byte instance compare to itself...");
-
- try
- {
- Byte byte1 = 20;
-
- if (!byte1.Equals((object)byte1))
- {
- TestLibrary.TestFramework.LogError("007", "The result of compare is wrong!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Verify Byte instance compare to Int32 instance when they have the same values...");
-
- try
- {
- Byte byte1 = 20;
- Int32 int1 = 20;
-
- if (byte1.Equals((object)int1))
- {
- TestLibrary.TestFramework.LogError("009", "The compare result is wrong!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-// 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.Byte.GetHashCode
-/// </summary>
-public class ByteGetHashCode
-{
- public static int Main(string[] args)
- {
- ByteGetHashCode hashCode = new ByteGetHashCode();
- TestLibrary.TestFramework.BeginTestCase("Testing System.Byte.GetHashCode()...");
-
- if (hashCode.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("[Negtive]");
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Verify hashCode of two Byte instance should be different...");
-
- try
- {
- Byte byte1;
- Byte byte2;
- do
- {
- byte1 = TestLibrary.Generator.GetByte(-55);
- byte2 = TestLibrary.Generator.GetByte(-55);
- }while(byte1 == byte2);
-
- if (byte1.GetHashCode() == byte2.GetHashCode())
- {
- TestLibrary.TestFramework.LogError("001","The hashcode should be different!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002","Unexcepted exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Verify hashCode should be changed when value is modified...");
-
- try
- {
- Byte byte1 = TestLibrary.Generator.GetByte(-55);
- int hashcode1 = byte1.GetHashCode();
- //Don't generate a second random number, since the new one could have the same hashcode.
- byte1 = (byte)(byte1 + 1);
- int hashcode2 = byte1.GetHashCode();
-
- if (hashcode1 == hashcode2)
- {
- TestLibrary.TestFramework.LogError("003","The hashcode should not be equal!");
- 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 hashcode when two instance have the same reference...");
-
- try
- {
- Byte byte1 = TestLibrary.Generator.GetByte(-55);
- Byte byte2 = byte1;
- int hashcode1 = byte1.GetHashCode();
- int hashcode2 = byte2.GetHashCode();
-
- if (hashcode1 != hashcode2)
- {
- TestLibrary.TestFramework.LogError("005","The hashcode should be equal!");
- 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.BeginTestCase("Verify hashcode when create Byte instance assigned to null...");
-
- try
- {
- Byte? byte1 = null;
- int hashcode = byte1.GetHashCode();
-
- if (hashcode != 0)
- {
- TestLibrary.TestFramework.LogError("007","The hashcode is not zero!");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008","Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-// 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.Globalization;
-
-
-public class ByteIConvertibleToBoolean
-{
- public static int Main(string[] args)
- {
- ByteIConvertibleToBoolean toBoolean = new ByteIConvertibleToBoolean();
- TestLibrary.TestFramework.BeginTestCase("Testing System.Byte.IConvertible.ToBoolean(System.IFormatProvider)...");
-
- if (toBoolean.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("[Negtive]");
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the bool instance is false when the value of byte is zero...");
-
- try
- {
- string byteString = "@0";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- bool toBool = ((IConvertible)myByte).ToBoolean(numberFormat);
-
- if (toBool)
- {
- TestLibrary.TestFramework.LogError("001", "the value of bool should be false!");
- 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 bool instance is true when the value of byte is non-zero...");
-
- try
- {
- string byteString = "@10";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- bool toBool = ((IConvertible)myByte).ToBoolean(numberFormat);
-
- if (!toBool)
- {
- TestLibrary.TestFramework.LogError("003", "the value of bool should be true!");
- 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 bool instance is true when the value of byte is maxValue...");
-
- try
- {
- string byteString = "@255";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- bool toBool = ((IConvertible)myByte).ToBoolean(numberFormat);
-
- if (!toBool)
- {
- TestLibrary.TestFramework.LogError("005", "the value of bool should be true!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
-}
+++ /dev/null
-// 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.Globalization;
-
-
-/// <summary>
-/// System.Byte.Iconvertible.ToByte(System.IFormatProvider)
-/// </summary>
-public class ByteIConvertibleToByte
-{
- public static int Main(string[] args)
- {
- ByteIConvertibleToByte toByte = new ByteIConvertibleToByte();
- TestLibrary.TestFramework.BeginTestCase("Testing System.Byte.IConvertible.ToByte(System.IFormatProvider)...");
-
- if (toByte.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 convert byte value when positiveSign is set...");
-
- try
- {
- string byteString = "plus128";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.PositiveSign = "plus";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Number, numberFormat);
- Byte conVertByte = ((IConvertible)myByte).ToByte(numberFormat);
- if (conVertByte != myByte)
- {
- TestLibrary.TestFramework.LogError("001", "The convert byte is not equal to original!");
- 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 convert byte value when CurrencySymbol is set...");
-
- try
- {
- string byteString = "@10";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- Byte conVertByte = ((IConvertible)myByte).ToByte(numberFormat);
-
- if (conVertByte != myByte)
- {
- TestLibrary.TestFramework.LogError("003", "The convert byte is not equal to original!");
- 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 NumberGroupSeparator of format provider is set...");
-
- try
- {
- string byteString = "1_2_3";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.NumberGroupSeparator = "_";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Number, numberFormat);
- Byte conVertByte = ((IConvertible)myByte).ToByte(numberFormat);
-
- if (myByte != conVertByte)
- {
- TestLibrary.TestFramework.LogError("005", "The convert byte is not equal to original!");
- 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 byteString is maxValue...");
-
- try
- {
- string byteString = "@255";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- Byte conVertByte = ((IConvertible)myByte).ToByte(numberFormat);
-
- if (myByte != conVertByte)
- {
- TestLibrary.TestFramework.LogError("007", "The convert byte is not equal to original!");
- 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 byteString is minValue...");
-
- try
- {
- string byteString = "@0";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- Byte conVertByte = ((IConvertible)myByte).ToByte(numberFormat);
-
- if (myByte != conVertByte)
- {
- TestLibrary.TestFramework.LogError("009", "The convert byte is not equal to original!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-// 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.Globalization;
-
-
-/// <summary>
-/// System.Byte.IConvertible.ToChar(System.IFormatProvider)
-/// </summary>
-public class ByteIConvertibleToChar
-{
- public static int Main(string[] args)
- {
- ByteIConvertibleToChar toChar = new ByteIConvertibleToChar();
- TestLibrary.TestFramework.BeginScenario("Testing System.Byte.Iconvertible.ToChar(System.IFormatProvider)...");
-
- if (toChar.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 convert byte value when positiveSign is set...");
-
- try
- {
- string byteString = "plus128";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.PositiveSign = "plus";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Number, numberFormat);
- Char conVertChar = ((IConvertible)myByte).ToChar(numberFormat);
-
- if (Convert.ToInt32(conVertChar) != 128)
- {
- TestLibrary.TestFramework.LogError("001", "Convert to char is not correct!");
- 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 convert byte value when CurrencySymbol is set...");
-
- try
- {
- string byteString = "@10";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- Char conVertChar = ((IConvertible)myByte).ToChar(numberFormat);
-
- if (Convert.ToInt32(conVertChar) != 10)
- {
- TestLibrary.TestFramework.LogError("003", "Convert to char is not correct!");
- 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 NumberGroupSeparator of format provider is set...");
-
- try
- {
- string byteString = "1_2_3";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.NumberGroupSeparator = "_";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Number, numberFormat);
- Char conVertChar = ((IConvertible)myByte).ToChar(numberFormat);
-
- if (Convert.ToInt32(conVertChar) != 123)
- {
- TestLibrary.TestFramework.LogError("005", "Convert to char is not correct!");
- 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 byteString is maxValue...");
-
- try
- {
- string byteString = "@255";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- Char conVertChar = ((IConvertible)myByte).ToChar(numberFormat);
-
- if (Convert.ToInt32(conVertChar) != 255)
- {
- TestLibrary.TestFramework.LogError("007", "Convert to char is not correct!");
- 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 byteString is minValue...");
-
- try
- {
- string byteString = "@0";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- Char conVertChar = ((IConvertible)myByte).ToChar(numberFormat);
-
- if (Convert.ToInt32(conVertChar) != 0)
- {
- TestLibrary.TestFramework.LogError("009", "Convert to char is not correct!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-// 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.Globalization;
-
-/// <summary>
-/// System.Byte.IConvertible.ToDateTime(System.IFormatProvider)
-/// </summary>
-public class ByteIConvertibleToDateTime
-{
- public static int Main(string[] args)
- {
- ByteIConvertibleToDateTime toDateTime = new ByteIConvertibleToDateTime();
- TestLibrary.TestFramework.BeginTestCase("Testing System.Byte.IConvertible.ToDateTime(System.IFormatProvider)...");
-
- if (toDateTime.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 convert Byte value when positiveSign is set...");
-
- try
- {
- string byteString = "plus128";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.PositiveSign = "plus";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Number, numberFormat);
- DateTime conVertDateTime = ((IConvertible)myByte).ToDateTime(numberFormat);
-
- TestLibrary.TestFramework.LogError("001", "No exception occurs!");
- retVal = false;
-
- }
- catch (InvalidCastException)
- {
- }
- 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 convert byte value when CurrencySymbol is set...");
-
- try
- {
- string byteString = "@10";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- DateTime conVertDateTime = ((IConvertible)myByte).ToDateTime(numberFormat);
-
- TestLibrary.TestFramework.LogError("003", "No exception occurs!");
- retVal = false;
- }
- catch (InvalidCastException)
- {
- }
- 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 NumberGroupSeparator of format provider is set...");
-
- try
- {
- string byteString = "1_2_3";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.NumberGroupSeparator = "_";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Number, numberFormat);
- DateTime conVertDateTime = ((IConvertible)myByte).ToDateTime(numberFormat);
-
- TestLibrary.TestFramework.LogError("005", "No exception occurs!");
- retVal = false;
- }
- catch (InvalidCastException)
- {
- }
- 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 byteString is maxValue...");
-
- try
- {
- string byteString = "@255";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- DateTime conVertDateTime = ((IConvertible)myByte).ToDateTime(numberFormat);
-
- TestLibrary.TestFramework.LogError("007", "No exception occurs!");
- retVal = false;
-
- }
- catch (InvalidCastException)
- {
- }
- 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 byteString is minValue...");
-
- try
- {
- string byteString = "@0";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- DateTime conVertDateTime = ((IConvertible)myByte).ToDateTime(numberFormat);
-
- TestLibrary.TestFramework.LogError("009", "No exception occurs!");
- retVal = false;
- }
- catch (InvalidCastException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-// 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.Globalization;
-
-
-/// <summary>
-/// System.Byte.IConvertible.ToDecimal(System.IFormatProvider)
-/// </summary>
-public class ByteIConvertibleToDecimal
-{
- public static int Main(string[] args)
- {
- ByteIConvertibleToDecimal toDecimal = new ByteIConvertibleToDecimal();
- TestLibrary.TestFramework.BeginTestCase("Testing System.Byte.IConvertible.ToDecimal(System.IFormatProvider)...");
-
- if (toDecimal.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 convert byte value when positiveSign is set...");
-
- try
- {
- string byteString = "plus128";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.PositiveSign = "plus";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Number, numberFormat);
- Decimal toDecimal = ((IConvertible)myByte).ToDecimal(numberFormat);
-
- if (toDecimal != 128)
- {
- TestLibrary.TestFramework.LogError("001", "The convert byte is not equal to original!");
- 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 convert byte value when CurrencySymbol is set...");
-
- try
- {
- string byteString = "@10";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- Decimal conVertDecimal = ((IConvertible)myByte).ToDecimal(numberFormat);
-
- if (conVertDecimal != 10)
- {
- TestLibrary.TestFramework.LogError("003", "The convert byte is not equal to original!");
- 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 NumberGroupSeparator of format provider is set...");
-
- try
- {
- string byteString = "1_2_3";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.NumberGroupSeparator = "_";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Number, numberFormat);
- Decimal conVertDecimal = ((IConvertible)myByte).ToDecimal(numberFormat);
-
- if (conVertDecimal != 123)
- {
- TestLibrary.TestFramework.LogError("005", "The convert byte is not equal to original!");
- 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 byteString is maxValue...");
-
- try
- {
- string byteString = "@255";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- Decimal conVertDecimal = ((IConvertible)myByte).ToDecimal(numberFormat);
-
- if (conVertDecimal != 255)
- {
- TestLibrary.TestFramework.LogError("007", "The convert byte is not equal to original!");
- 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 byteString is minValue...");
-
- try
- {
- string byteString = "@0";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- Decimal conVertDecimal = ((IConvertible)myByte).ToDecimal(numberFormat);
-
- if (conVertDecimal != 0)
- {
- TestLibrary.TestFramework.LogError("009", "The convert byte is not equal to original!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-// 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.Globalization;
-
-
-/// <summary>
-/// System.Byte.IConvertible.ToDecimal(System.IFormatProvide)
-/// </summary>
-public class ByteIConvertibleToDouble
-{
- public static int Main(string[] args)
- {
- ByteIConvertibleToDouble toDouble = new ByteIConvertibleToDouble();
- TestLibrary.TestFramework.BeginTestCase("Testing System.Byte.IConvertible.ToDouble(System.IFormatProvide)...");
-
- if (toDouble.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 convert byte value when positiveSign is set...");
-
- try
- {
- string byteString = "plus128";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.PositiveSign = "plus";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Number, numberFormat);
- Double conVertDouble = ((IConvertible)myByte).ToDouble(numberFormat);
-
- if (conVertDouble != 128.0)
- {
- TestLibrary.TestFramework.LogError("001", "The convert byte is not equal to original!");
- 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 convert byte value when CurrencySymbol is set...");
-
- try
- {
- string byteString = "@10";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- Double conVertDouble = ((IConvertible)myByte).ToDouble(numberFormat);
-
- if (conVertDouble != 10.0)
- {
- TestLibrary.TestFramework.LogError("003", "The convert byte is not equal to original!");
- 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 NumberGroupSeparator of format provider is set...");
-
- try
- {
- string byteString = "1_2_3";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.NumberGroupSeparator = "_";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Number, numberFormat);
- Double conVertDouble = ((IConvertible)myByte).ToDouble(numberFormat);
-
- if (conVertDouble != 123.0)
- {
- TestLibrary.TestFramework.LogError("005", "The convert byte is not equal to original!");
- 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 byteString is maxValue...");
-
- try
- {
- string byteString = "@255";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- Double conVertDouble = ((IConvertible)myByte).ToDouble(numberFormat);
-
- if (conVertDouble != 255.0)
- {
- TestLibrary.TestFramework.LogError("007", "The convert byte is not equal to original!");
- 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 byteString is minValue...");
-
- try
- {
- string byteString = "@0";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- Double conVertDouble = ((IConvertible)myByte).ToDouble(numberFormat);
-
- if (conVertDouble != 0.0)
- {
- TestLibrary.TestFramework.LogError("009", "The convert byte is not equal to original!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
-}
-
+++ /dev/null
-// 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.Globalization;
-
-
-/// <summary>
-/// System.Byte.IConvertible.ToInt16(System.IFormatProvider)
-/// </summary>
-public class ByteIConvertibleToInt16
-{
- public static int Main(string[] args)
- {
- ByteIConvertibleToInt16 toInt16 = new ByteIConvertibleToInt16();
- TestLibrary.TestFramework.BeginTestCase("Testing System.Byte.IConvertible.ToInt16(System.IFormatProvider)...");
-
- if (toInt16.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 convert byte value when positiveSign is set...");
-
- try
- {
- string byteString = "plus128";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.PositiveSign = "plus";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Number, numberFormat);
- Int16 conVertInt16 = ((IConvertible)myByte).ToInt16(numberFormat);
-
- if (conVertInt16 != 128)
- {
- TestLibrary.TestFramework.LogError("001", "The convert byte is not equal to original!");
- 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 convert byte value when CurrencySymbol is set...");
-
- try
- {
- string byteString = "@10";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- Int16 conVertInt16 = ((IConvertible)myByte).ToInt16(numberFormat);
-
- if (conVertInt16 != 10)
- {
- TestLibrary.TestFramework.LogError("003", "The convert byte is not equal to original!");
- 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 NumberGroupSeparator of format provider is set...");
-
- try
- {
- string byteString = "1_2_3";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.NumberGroupSeparator = "_";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Number, numberFormat);
- Int16 conVertInt16 = ((IConvertible)myByte).ToInt16(numberFormat);
-
- if (conVertInt16 != 123)
- {
- TestLibrary.TestFramework.LogError("005", "The convert byte is not equal to original!");
- 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 byteString is maxValue...");
-
- try
- {
- string byteString = "@255";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- Int16 conVertInt16 = ((IConvertible)myByte).ToInt16(numberFormat);
-
- if (conVertInt16 != 255)
- {
- TestLibrary.TestFramework.LogError("007", "The convert byte is not equal to original!");
- 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 byteString is minValue...");
-
- try
- {
- string byteString = "@0";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- Int16 conVertInt16 = ((IConvertible)myByte).ToInt16(numberFormat);
-
- if (conVertInt16 != 0)
- {
- TestLibrary.TestFramework.LogError("009", "The convert byte is not equal to original!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-// 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.Globalization;
-
-
-/// <summary>
-/// System.Byte.IConvertible.ToInt32(System.IFormatProvider)
-/// </summary>
-public class ByteIConvertibleToInt32
-{
- public static int Main(string[] args)
- {
- ByteIConvertibleToInt32 toInt32 = new ByteIConvertibleToInt32();
- TestLibrary.TestFramework.BeginTestCase("Testing System.Byte.IConvertible.ToInt32(System.IFormatProvider)...");
-
- if (toInt32.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 convert byte value when positiveSign is set...");
-
- try
- {
- string byteString = "plus128";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.PositiveSign = "plus";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Number, numberFormat);
- Int32 conVertInt32 = ((IConvertible)myByte).ToInt32(numberFormat);
-
- if (conVertInt32 != 128)
- {
- TestLibrary.TestFramework.LogError("001", "The convert byte is not equal to original!");
- 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 convert byte value when CurrencySymbol is set...");
-
- try
- {
- string byteString = "@10";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- Int32 conVertInt32 = ((IConvertible)myByte).ToInt32(numberFormat);
-
- if (conVertInt32 != 10)
- {
- TestLibrary.TestFramework.LogError("003", "The convert byte is not equal to original!");
- 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 NumberGroupSeparator of format provider is set...");
-
- try
- {
- string byteString = "1_2_3";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.NumberGroupSeparator = "_";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Number, numberFormat);
- Int32 conVertInt32 = ((IConvertible)myByte).ToInt32(numberFormat);
-
- if (conVertInt32 != 123)
- {
- TestLibrary.TestFramework.LogError("005", "The convert byte is not equal to original!");
- 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 byteString is maxValue...");
-
- try
- {
- string byteString = "@255";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- Int32 conVertInt32 = ((IConvertible)myByte).ToInt32(numberFormat);
-
- if (conVertInt32 != 255)
- {
- TestLibrary.TestFramework.LogError("007", "The convert byte is not equal to original!");
- 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 byteString is minValue...");
-
- try
- {
- string byteString = "@0";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- Int32 conVertInt32 = ((IConvertible)myByte).ToInt32(numberFormat);
-
- if (conVertInt32 != 0)
- {
- TestLibrary.TestFramework.LogError("009", "The convert byte is not equal to original!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-// 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.Globalization;
-
-
-/// <summary>
-/// System.Byte.IConvertible.ToInt64(System.IFormatProvider)
-/// </summary>
-public class ByteIConvertibleToInt64
-{
- public static int Main(string[] args)
- {
- ByteIConvertibleToInt64 toInt64 = new ByteIConvertibleToInt64();
- TestLibrary.TestFramework.BeginTestCase("Testing System.Byte.IConvertible.ToInt64(System.IFormatProvider)...");
-
- if (toInt64.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 convert byte value when positiveSign is set...");
-
- try
- {
- string byteString = "plus128";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.PositiveSign = "plus";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Number, numberFormat);
- Int64 conVertInt64 = ((IConvertible)myByte).ToInt64(numberFormat);
-
- if (conVertInt64 != 128L)
- {
- TestLibrary.TestFramework.LogError("001", "The convert byte is not equal to original!");
- 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 convert byte value when CurrencySymbol is set...");
-
- try
- {
- string byteString = "@10";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- Int64 conVertInt64 = ((IConvertible)myByte).ToInt64(numberFormat);
-
- if (conVertInt64 != 10L)
- {
- TestLibrary.TestFramework.LogError("003", "The convert byte is not equal to original!");
- 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 NumberGroupSeparator of format provider is set...");
-
- try
- {
- string byteString = "1_2_3";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.NumberGroupSeparator = "_";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Number, numberFormat);
- Int64 conVertInt64 = ((IConvertible)myByte).ToInt64(numberFormat);
-
- if (conVertInt64 != 123L)
- {
- TestLibrary.TestFramework.LogError("005", "The convert byte is not equal to original!");
- 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 byteString is maxValue...");
-
- try
- {
- string byteString = "@255";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- Int64 conVertInt64 = ((IConvertible)myByte).ToInt64(numberFormat);
-
- if (conVertInt64 != 255L)
- {
- TestLibrary.TestFramework.LogError("007", "The convert byte is not equal to original!");
- 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 byteString is minValue...");
-
- try
- {
- string byteString = "@0";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- Int64 conVertInt64 = ((IConvertible)myByte).ToInt64(numberFormat);
-
- if (conVertInt64 != 0L)
- {
- TestLibrary.TestFramework.LogError("009", "The convert byte is not equal to original!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-// 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.Globalization;
-
-
-/// <summary>
-/// System.Byte.IConvertible.ToSByte(System.IFormatProvider)
-/// </summary>
-public class ByteIConvertibleToSByte
-{
- public static int Main(string[] args)
- {
- ByteIConvertibleToSByte toSByte = new ByteIConvertibleToSByte();
- TestLibrary.TestFramework.BeginTestCase("Testing System.Byte.IConvertible.ToSByte(System.IFormatProvider)");
-
- if (toSByte.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 convert byte value when positiveSign is set...");
-
- try
- {
- string byteString = "plus64";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.PositiveSign = "plus";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Number, numberFormat);
- SByte sByte = ((IConvertible)myByte).ToSByte(numberFormat);
-
- if (sByte != 64)
- {
- TestLibrary.TestFramework.LogError("001", "The convert byte is not equal to original!");
- 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 convert byte value when CurrencySymbol is set...");
-
- try
- {
- string byteString = "@64";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- SByte sByte = ((IConvertible)myByte).ToSByte(numberFormat);
-
- if (sByte != 64)
- {
- TestLibrary.TestFramework.LogError("003", "The convert byte is not equal to original!");
- 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 NumberGroupSeparator of format provider is set...");
-
- try
- {
- string byteString = "1_2_3";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.NumberGroupSeparator = "_";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Number, numberFormat);
- SByte sByte = ((IConvertible)myByte).ToSByte(numberFormat);
-
- if (sByte != 123)
- {
- TestLibrary.TestFramework.LogError("005", "The convert byte is not equal to original!");
- 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 byteString is maxValue...");
-
- try
- {
- string byteString = "@127";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- SByte sByte = ((IConvertible)myByte).ToSByte(numberFormat);
-
- if (sByte != 127)
- {
- TestLibrary.TestFramework.LogError("007", "The convert byte is not equal to original!");
- 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 byteString is minValue...");
-
- try
- {
- string byteString = "@0";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- SByte sByte = ((IConvertible)myByte).ToSByte(numberFormat);
-
- if (sByte != 0)
- {
- TestLibrary.TestFramework.LogError("009", "The convert byte is not equal to original!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-// 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.Globalization;
-
-
-/// <summary>
-/// System.Byte.IConvertible.Tosingle(System.IFormatProvider)
-/// </summary>
-public class ByteIConvertibleToSingle
-{
- public static int Main(string[] args)
- {
- ByteIConvertibleToSingle toSingle = new ByteIConvertibleToSingle();
- TestLibrary.TestFramework.BeginTestCase("Testing System.Byte.IConvertible.ToSingle(System.IFormatProvider)...");
-
- if (toSingle.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 convert byte value when positiveSign is set...");
-
- try
- {
- string byteString = "plus128";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.PositiveSign = "plus";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Number, numberFormat);
- Single conVertSingle = ((IConvertible)myByte).ToSingle(numberFormat);
-
- if (conVertSingle != 128.0)
- {
- TestLibrary.TestFramework.LogError("001", "The convert byte is not equal to original!");
- 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 convert byte value when CurrencySymbol is set...");
-
- try
- {
- string byteString = "@10";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- Single conVertSingle = ((IConvertible)myByte).ToSingle(numberFormat);
-
- if (conVertSingle != 10.0)
- {
- TestLibrary.TestFramework.LogError("003", "The convert byte is not equal to original!");
- 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 NumberGroupSeparator of format provider is set...");
-
- try
- {
- string byteString = "1_2_3";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.NumberGroupSeparator = "_";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Number, numberFormat);
- Single conVertSingle = ((IConvertible)myByte).ToSingle(numberFormat);
-
- if (conVertSingle != 123.0)
- {
- TestLibrary.TestFramework.LogError("005", "The convert byte is not equal to original!");
- 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 byteString is maxValue...");
-
- try
- {
- string byteString = "@255";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- Single conVertSingle = ((IConvertible)myByte).ToSingle(numberFormat);
-
- if (conVertSingle != 255.0)
- {
- TestLibrary.TestFramework.LogError("007", "The convert byte is not equal to original!");
- 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 byteString is minValue...");
-
- try
- {
- string byteString = "@0";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- Single conVertSingle = ((IConvertible)myByte).ToSingle(numberFormat);
-
- if (conVertSingle != 0.0)
- {
- TestLibrary.TestFramework.LogError("009", "The convert byte is not equal to original!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-// 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.Globalization;
-
-public class MyClass
-{
- private int m_value = 0;
-
- public MyClass()
- {
- this.m_value = 0;
- }
-
- public MyClass(int value)
- {
- this.m_value = value;
- }
-}
-
-/// <summary>
-/// System.Byte.IConvertible.ToType(System.Type,System.IFormatProvider)
-/// </summary>
-public class ByteIConvertibleToType
-{
- public static int Main(string[] args)
- {
- ByteIConvertibleToType toType = new ByteIConvertibleToType();
- TestLibrary.TestFramework.BeginTestCase("Testing System.Byte.IConvertible.ToType(System.Type,System.IFormatProvider)...");
-
- if (toType.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;
- retVal = PosTest12() && retVal;
- retVal = PosTest13() && retVal;
- retVal = PosTest14() && retVal;
-
- TestLibrary.TestFramework.LogInformation("[Negative]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- //retVal = NegTest3() && retVal;
-
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: Verify convert byte value when positiveSign is set and type is Boolean...");
-
- try
- {
- string byteString = "plus128";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.PositiveSign = "plus";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Number, numberFormat);
- object conVertObj = ((IConvertible)myByte).ToType(typeof(Boolean),numberFormat);
-
- if (conVertObj.ToString() != "True")
- {
- TestLibrary.TestFramework.LogError("001", "The convert byte is not equal to original!");
- 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 convert byte value when CurrencySymbol is set and type is Byte...");
-
- try
- {
- string byteString = "@10";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- object conVertObj = ((IConvertible)myByte).ToType(typeof(Byte),numberFormat);
-
- if (conVertObj.ToString() != "10")
- {
- TestLibrary.TestFramework.LogError("003", "The convert byte is not equal to original!");
- 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 NumberGroupSeparator of format provider is set and type is decimal...");
-
- try
- {
- string byteString = "1_2_3";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.NumberGroupSeparator = "_";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Number, numberFormat);
- object conVertObj = ((IConvertible)myByte).ToType(typeof(Decimal),numberFormat);
-
- if (conVertObj.ToString() != "123")
- {
- TestLibrary.TestFramework.LogError("005", "The convert byte is not equal to original!");
- 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 byteString is maxValue and type is double...");
-
- try
- {
- string byteString = "@255";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- object conVertObj = ((IConvertible)myByte).ToType(typeof(Double),numberFormat);
-
- if (conVertObj.ToString() != "255")
- {
- TestLibrary.TestFramework.LogError("007", "The convert byte is not equal to original!");
- 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 byteString is minValue and type is single...");
-
- try
- {
- string byteString = "@0";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- object conVertSingle = ((IConvertible)myByte).ToType(typeof(Single),numberFormat);
-
- if (conVertSingle.ToString() != "0")
- {
- TestLibrary.TestFramework.LogError("009", "The convert byte is not equal to original!");
- 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 byteString is the middle value and type is Int16...");
-
- try
- {
- string byteString = "@128";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- object conVertInt16 = ((IConvertible)myByte).ToType(typeof(Int16), numberFormat);
-
- if (conVertInt16.ToString() != "128")
- {
- TestLibrary.TestFramework.LogError("011", "The convert byte is not equal to original!");
- 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 byteString is the middle value and type is Int32...");
-
- try
- {
- string byteString = "@128";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- object conVertInt32 = ((IConvertible)myByte).ToType(typeof(Int32), numberFormat);
-
- if (conVertInt32.ToString() != "128")
- {
- TestLibrary.TestFramework.LogError("013", "The convert byte is not equal to original!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("014", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest8()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest8: Verify byteString is the middle value and type is Int64...");
-
- try
- {
- string byteString = "@128";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- object conVertInt64 = ((IConvertible)myByte).ToType(typeof(Int64), numberFormat);
-
- if (conVertInt64.ToString() != "128")
- {
- TestLibrary.TestFramework.LogError("015", "The convert byte is not equal to original!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("016", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest9()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest9: Verify byteString is the valid value for SByte and type is SByte...");
-
- try
- {
- string byteString = "@127";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- object conVertSByte = ((IConvertible)myByte).ToType(typeof(SByte), numberFormat);
-
- if (conVertSByte.ToString() != "127")
- {
- TestLibrary.TestFramework.LogError("017", "The convert byte is not equal to original!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("018", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest10()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest10: Verify byteString is the valid value for UInt16 and type is UInt16...");
-
- try
- {
- string byteString = "@127";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- object conVertUInt16 = ((IConvertible)myByte).ToType(typeof(UInt16), numberFormat);
-
- if (conVertUInt16.ToString() != "127")
- {
- TestLibrary.TestFramework.LogError("019", "The convert byte is not equal to original!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("020", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest11()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest11: Verify byteString is the valid value for UInt32 and type is UInt32...");
-
- try
- {
- string byteString = "@127";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- object conVertUInt32 = ((IConvertible)myByte).ToType(typeof(UInt32), numberFormat);
-
- if (conVertUInt32.ToString() != "127")
- {
- TestLibrary.TestFramework.LogError("021", "The convert byte is not equal to original!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("022", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest12()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest12: Verify byteString is the valid value for UInt32 and type is UInt64...");
-
- try
- {
- string byteString = "@127";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- object conVertUInt64 = ((IConvertible)myByte).ToType(typeof(UInt64), numberFormat);
-
- if (conVertUInt64.ToString() != "127")
- {
- TestLibrary.TestFramework.LogError("023", "The convert byte is not equal to original!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("024", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest13()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest13: Verify byteString is the valid value and type is object...");
-
- try
- {
- string byteString = "@127";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- object conVertOBj = ((IConvertible)myByte).ToType(typeof(Object), numberFormat);
-
- if (conVertOBj.ToString() != "127")
- {
- TestLibrary.TestFramework.LogError("025", "The convert byte is not equal to original!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("026", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest14()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest14: Verify the type is char...");
-
- try
- {
- string byteString = "@127";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- object conVertChar = ((IConvertible)myByte).ToType(typeof(Char), numberFormat);
-
- if (conVertChar.ToString() != "\7f")
- {
- TestLibrary.TestFramework.LogError("027", "The convert byte is not equal to original!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("028", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest1: Verify InvalidCastException is thrown when type is DateTime...");
-
- try
- {
- string byteString = "@127";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- object conVertDateTime = ((IConvertible)myByte).ToType(typeof(DateTime), numberFormat);
-
- if (conVertDateTime.ToString() != "127")
- {
- TestLibrary.TestFramework.LogError("101", "The convert byte is not equal to original!");
- retVal = false;
- }
- }
- catch (InvalidCastException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest2: Verify InvalidCastException is thrown when type is customer defined...");
-
- try
- {
- string byteString = "@127";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- object conVertMyClass = ((IConvertible)myByte).ToType(typeof(MyClass), numberFormat);
-
- if (conVertMyClass.ToString() != "127")
- {
- TestLibrary.TestFramework.LogError("101", "The convert byte is not equal to original!");
- retVal = false;
- }
- }
- catch (InvalidCastException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-// 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.Globalization;
-
-
-/// <summary>
-/// System.Byte.IConvertible.ToUInt16
-/// </summary>
-public class ByteIConvertibleToUInt16
-{
- public static int Main(string[] args)
- {
- ByteIConvertibleToUInt16 toUInt16 = new ByteIConvertibleToUInt16();
- TestLibrary.TestFramework.BeginTestCase("Testing System.Byte.IConvertible.ToUInt16(System.IFormatProvider)...");
-
- if (toUInt16.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 convert byte value when positiveSign is set...");
-
- try
- {
- string byteString = "plus128";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.PositiveSign = "plus";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Number, numberFormat);
- UInt16 conVertUInt16 = ((IConvertible)myByte).ToUInt16(numberFormat);
-
- if (conVertUInt16 != 128)
- {
- TestLibrary.TestFramework.LogError("001", "The convert byte is not equal to original!");
- 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 convert byte value when CurrencySymbol is set...");
-
- try
- {
- string byteString = "@10";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- UInt16 conVertUInt16 = ((IConvertible)myByte).ToUInt16(numberFormat);
-
- if (conVertUInt16 != 10)
- {
- TestLibrary.TestFramework.LogError("003", "The convert byte is not equal to original!");
- 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 NumberGroupSeparator of format provider is set...");
-
- try
- {
- string byteString = "1_2_3";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.NumberGroupSeparator = "_";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Number, numberFormat);
- UInt16 conVertUInt16 = ((IConvertible)myByte).ToUInt16(numberFormat);
-
- if (conVertUInt16 != 123)
- {
- TestLibrary.TestFramework.LogError("005", "The convert byte is not equal to original!");
- 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 byteString is maxValue...");
-
- try
- {
- string byteString = "@255";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- UInt16 conVertUInt16 = ((IConvertible)myByte).ToUInt16(numberFormat);
-
- if (conVertUInt16 != 255)
- {
- TestLibrary.TestFramework.LogError("007", "The convert byte is not equal to original!");
- 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 byteString is minValue...");
-
- try
- {
- string byteString = "@0";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- UInt16 conVertUInt16 = ((IConvertible)myByte).ToUInt16(numberFormat);
-
- if (conVertUInt16 != 0)
- {
- TestLibrary.TestFramework.LogError("009", "The convert byte is not equal to original!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-// 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.Globalization;
-
-
-/// <summary>
-/// System.Byte.IConvertible.ToUInt32(System.IFormatProvider)
-/// </summary>
-public class ByteIConvertibleToUInt32
-{
- public static int Main(string[] args)
- {
- ByteIConvertibleToUInt32 toUInt32 = new ByteIConvertibleToUInt32();
- TestLibrary.TestFramework.BeginTestCase("Testing System.Byte.IConvertible.ToUInt32(System.IFormatProvider)");
-
- if (toUInt32.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 convert byte value when positiveSign is set...");
-
- try
- {
- string byteString = "plus128";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.PositiveSign = "plus";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Number, numberFormat);
- UInt32 conVertUInt32 = ((IConvertible)myByte).ToUInt32(numberFormat);
-
- if (conVertUInt32 != 128)
- {
- TestLibrary.TestFramework.LogError("001", "The convert byte is not equal to original!");
- 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 convert byte value when CurrencySymbol is set...");
-
- try
- {
- string byteString = "@10";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- UInt32 conVertUInt32 = ((IConvertible)myByte).ToUInt32(numberFormat);
-
- if (conVertUInt32 != 10)
- {
- TestLibrary.TestFramework.LogError("003", "The convert byte is not equal to original!");
- 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 NumberGroupSeparator of format provider is set...");
-
- try
- {
- string byteString = "1_2_3";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.NumberGroupSeparator = "_";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Number, numberFormat);
- UInt32 conVertUInt32 = ((IConvertible)myByte).ToUInt32(numberFormat);
-
- if (conVertUInt32 != 123)
- {
- TestLibrary.TestFramework.LogError("005", "The convert byte is not equal to original!");
- 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 byteString is maxValue...");
-
- try
- {
- string byteString = "@255";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- UInt32 conVertUInt32 = ((IConvertible)myByte).ToUInt32(numberFormat);
-
- if (conVertUInt32 != 255)
- {
- TestLibrary.TestFramework.LogError("007", "The convert byte is not equal to original!");
- 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 byteString is minValue...");
-
- try
- {
- string byteString = "@0";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- UInt32 conVertUInt32 = ((IConvertible)myByte).ToUInt32(numberFormat);
-
- if (conVertUInt32 != 0)
- {
- TestLibrary.TestFramework.LogError("009", "The convert byte is not equal to original!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-}
-
+++ /dev/null
-// 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.Globalization;
-
-
-/// <summary>
-/// System.Byte.IConvertible.ToUInt64(System.IFormatProvider)
-/// </summary>
-public class ByteIConvertibleToUInt64
-{
- public static int Main(string[] args)
- {
- ByteIConvertibleToUInt64 toUInt64 = new ByteIConvertibleToUInt64();
- TestLibrary.TestFramework.BeginTestCase("Testing System.Byte.IConvertible.ToUInt64(System.IFormatProvider)...");
-
- if (toUInt64.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 convert byte value when positiveSign is set...");
-
- try
- {
- string byteString = "plus128";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.PositiveSign = "plus";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Number, numberFormat);
- UInt32 conVertUInt32 = ((IConvertible)myByte).ToUInt32(numberFormat);
-
- if (conVertUInt32 != 128)
- {
- TestLibrary.TestFramework.LogError("001", "The convert byte is not equal to original!");
- 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 convert byte value when CurrencySymbol is set...");
-
- try
- {
- string byteString = "@10";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- UInt32 conVertUInt32 = ((IConvertible)myByte).ToUInt32(numberFormat);
-
- if (conVertUInt32 != 10)
- {
- TestLibrary.TestFramework.LogError("003", "The convert byte is not equal to original!");
- 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 NumberGroupSeparator of format provider is set...");
-
- try
- {
- string byteString = "1_2_3";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.NumberGroupSeparator = "_";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Number, numberFormat);
- UInt32 conVertUInt32 = ((IConvertible)myByte).ToUInt32(numberFormat);
-
- if (conVertUInt32 != 123)
- {
- TestLibrary.TestFramework.LogError("005", "The convert byte is not equal to original!");
- 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 byteString is maxValue...");
-
- try
- {
- string byteString = "@255";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- UInt32 conVertUInt32 = ((IConvertible)myByte).ToUInt32(numberFormat);
-
- if (conVertUInt32 != 255)
- {
- TestLibrary.TestFramework.LogError("007", "The convert byte is not equal to original!");
- 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 byteString is minValue...");
-
- try
- {
- string byteString = "@0";
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numberFormat = culture.NumberFormat;
- numberFormat.CurrencySymbol = "@";
-
- Byte myByte = Byte.Parse(byteString, NumberStyles.Currency | NumberStyles.Number, numberFormat);
- UInt32 conVertUInt32 = ((IConvertible)myByte).ToUInt32(numberFormat);
-
- if (conVertUInt32 != 0)
- {
- TestLibrary.TestFramework.LogError("009", "The convert byte is not equal to original!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-// 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.Byte.MaxValue
-/// </summary>
-public class ByteMaxValue
-{
- public static int Main(string[] args)
- {
- ByteMaxValue maxValue = new ByteMaxValue();
- TestLibrary.TestFramework.BeginTestCase("Testing System.Byte.MaxValue property...");
-
- if (maxValue.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("[Negtive]");
- retVal = NegTest1() && retVal;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Verify the MaxValue of Byte is 255...");
-
- try
- {
- Byte max = Byte.MaxValue;
-
- if (max != 255)
- {
- TestLibrary.TestFramework.LogError("001","The MaxValue of Byte is not 255!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002","Unexpected exception occurs: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Verify using number larger than MaxValue to create Byte instance...");
-
- try
- {
- int beyondMax = 256;
- Byte beyondByte = (Byte)beyondMax;
-
- if (beyondByte != beyondMax % 256)
- {
- TestLibrary.TestFramework.LogError("003","The converting is wrong!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004","Unexpected exception occurs: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- return retVal;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-// 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.Byte.MinValue
-/// </summary>
-public class ByteMinValue
-{
- public static int Main(string[] args)
- {
- ByteMinValue minValue = new ByteMinValue();
- TestLibrary.TestFramework.BeginTestCase("Testing System.Byte,MinValue property...");
-
- if (minValue.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("[Negtive]");
- retVal = NegTest1() && retVal;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Verify the MinValue of Byte is zero...");
-
- try
- {
- Byte min = Byte.MinValue;
-
- if (min != 0)
- {
- TestLibrary.TestFramework.LogError("001","The MinValue of Byte is wrong!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002","Unexpected exception occurs: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Verify using negtive number to create Byte instance...");
-
- try
- {
- int beyondMax = -1;
- Byte beyondByte = (Byte)beyondMax;
-
- if (beyondByte != (beyondMax+256) % 256)
- {
- TestLibrary.TestFramework.LogError("003", "The converting is wrong!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- return retVal;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-// 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.Globalization;
-
-
-/// <summary>
-/// System.Byte.ToString(System.IFormatProvider)
-/// </summary>
-public class ByteToString2
-{
- public static int Main(string[] args)
- {
- ByteToString2 toString2 = new ByteToString2();
- TestLibrary.TestFramework.BeginTestCase("Testing System.Byte.ToString(System.IFormatProvider)...");
-
- if (toString2.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("PosTest1: Verify NumberGroupSeparator of provider is _");
-
- try
- {
- Byte myByte = 128;
-
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numInfo = culture.NumberFormat;
- numInfo.NumberGroupSizes = new int[] { 1 };
- numInfo.NumberGroupSeparator = "_";
- numInfo.NumberDecimalDigits = 0;
-
- string myByteString = myByte.ToString(numInfo);
- if (myByteString != "128")
- {
- TestLibrary.TestFramework.LogError("001","The byte string is wrong!");
- 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 NumberGroupSeparator of provider is _");
-
- try
- {
- Byte myByte = 128;
-
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numInfo = culture.NumberFormat;
- numInfo.CurrencySymbol = "$";
- numInfo.CurrencyDecimalDigits = 0;
-
- string myByteString = myByte.ToString(numInfo);
- if (myByteString != "128")
- {
- TestLibrary.TestFramework.LogError("003", "The byte string is wrong!");
- 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 PositiveSign of provider is plus...");
-
- try
- {
- Byte myByte = 128;
-
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numInfo = culture.NumberFormat;
- numInfo.PositiveSign = "plus";
- numInfo.NumberDecimalDigits = 0;
-
- string myByteString = myByte.ToString("N",numInfo);
- if (myByteString != "128")
- {
- TestLibrary.TestFramework.LogError("005", "The byte string is wrong!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-// 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.Globalization;
-using TestLibrary;
-
-/// <summary>
-/// System.Byte.ToString3(System.String)
-/// </summary>
-public class ByteToString3
-{
- public static int Main(string[] args)
- {
- ByteToString3 toString3 = new ByteToString3();
- TestLibrary.TestFramework.BeginTestCase("Testing System.Byte.ToString(System.String)...");
-
- if (toString3.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
- private CultureInfo CurrentCulture = TestLibrary.Utilities.CurrentCulture;
- private CultureInfo customCulture = null;
-
- private CultureInfo CustomCulture
- {
- get
- {
- if (null == customCulture)
- {
- customCulture = new CultureInfo(CultureInfo.CurrentCulture.Name);
- NumberFormatInfo nfi = customCulture.NumberFormat;
- //For "X", The result string isn't affected by the formatting information of the current NumberFormatInfo
-
- //For "C"
- // CurrencyPositivePattern, CurrencySymbol, CurrencyDecimalDigits, CurrencyDecimalSeparator, CurrencyGroupSeparator, CurrencyGroupSizes.
- // Not consider NegativeSign and CurrencyNegativePattern for Byte
- nfi.CurrencyDecimalDigits = 3; //Default: 2
- nfi.CurrencyDecimalSeparator = ","; //Default: ","
- nfi.CurrencyGroupSeparator = "."; //Default: "."
- nfi.CurrencyGroupSizes = new int[] { 2 }; //Default: new int[]{3}
- //nfi.NegativeSign = "-";
- //nfi.CurrencyNegativePattern = 0;
- nfi.CurrencyPositivePattern = 1; //Default: 0
- nfi.CurrencySymbol = "USD"; //Default: "$"
-
- //For "D"
- // NegativeSign isn't taken care of consideration for Byte
-
- //For "E"
- // PositiveSign, and NumberDecimalSeparator. Not consider NegativeSign for Byte.
- // If precision specifier is omitted, a default of six digits after the decimal point is used.
- nfi.PositiveSign = "++"; //Default: "+"
- nfi.NumberDecimalSeparator = ","; //Default: "."
-
- //For "F"
- // NumberDecimalDigits, and NumberDecimalSeparator. Not consider NegativeSign for Byte.
- nfi.NumberDecimalDigits = 3; //Default: 2
-
- //For "N"
- // NumberGroupSizes, NumberGroupSeparator, NumberDecimalSeparator and NumberDecimalDigits. Not considfer NumberNegativePattern and NegativeSign for Byte
- nfi.NumberGroupSizes = new int[] { 2 }; //Default: 3
- nfi.NumberGroupSeparator = "#"; //Default: ","
-
- customCulture.NumberFormat = nfi;
- }
- return customCulture;
- }
- }
-
- public bool RunTests()
- {
- bool retVal = true;
-
- retVal &= VerifyToString("PostTest1", 128, "X", "80");
- retVal &= VerifyToString("PostTest2", 128, "D", "128");
-
- TestLibrary.Utilities.CurrentCulture = CustomCulture;
-
- retVal &= VerifyToString("PostTest3", 128, "C", "1.28,000USD");
- retVal &= VerifyToString("PostTest4, default", 128, "E", "1,280000E++002");
- retVal &= VerifyToString("PostTest4, 4digits", 128, "E4", "1,2800E++002");
- retVal &= VerifyToString("PostTest5", 128, "F", "128,000");
- retVal &= VerifyToString("PostTest6", 128, "N", "1#28,000");
-
- TestLibrary.Utilities.CurrentCulture = CurrentCulture;
-
- return retVal;
- }
-
- private bool VerifyToString(String id, Byte myByte, String format, String expected)
- {
- try
- {
- String actual = myByte.ToString(format);
- if (actual != expected)
- {
- TestLibrary.TestFramework.LogError(id + "_001", "Expected: " + expected + " Actual: " + actual);
- return false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError(id + "_002", "Unexpected exception occurs: " + e);
- return false;
- }
- return true;
- }
-}
+++ /dev/null
-// 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.Globalization;
-
-
-/// <summary>
-/// System.Byte.ToString(System.String,System.IFormatProvider)
-/// </summary>
-public class ByteToString4
-{
- public static int Main(string[] args)
- {
- ByteToString4 toString4 = new ByteToString4();
- TestLibrary.TestFramework.BeginTestCase("Testing System.Byte.ToString(System.String,System.IFormatProvider)...");
-
- if (toString4.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 NumberGroupSeparator of provider is _ and format string is N");
-
- try
- {
- Byte myByte = 128;
-
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numInfo = culture.NumberFormat;
- numInfo.NumberGroupSizes = new int[] { 1 };
- numInfo.NumberGroupSeparator = "_";
- numInfo.NumberDecimalDigits = 0;
-
- string myByteString = myByte.ToString("N",numInfo);
- if (myByteString != "1_2_8")
- {
- TestLibrary.TestFramework.LogError("001", "The byte string is wrong!");
- 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 CurrencySymbol of provider is $ and format string is C...");
-
- try
- {
- Byte myByte = 128;
-
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numInfo = culture.NumberFormat;
- numInfo.CurrencySymbol = "$";
- numInfo.CurrencyDecimalDigits = 0;
-
- string myByteString = myByte.ToString("C",numInfo);
- if (myByteString != "$128")
- {
- TestLibrary.TestFramework.LogError("003", "The currency string is wrong!");
- 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 X format convert hex string...");
-
- try
- {
- Byte myByte = 128;
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numInfo = culture.NumberFormat;
- numInfo.PositiveSign = "plus";
- string myByteString = myByte.ToString("X",numInfo);
-
- if (myByteString != "80")
- {
- TestLibrary.TestFramework.LogError("005", "The hex string is wrong!");
- 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 D format convert decimal string...");
-
- try
- {
- Byte myByte = 128;
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numInfo = culture.NumberFormat;
- numInfo.PositiveSign = "plus";
- string myByteString = myByte.ToString("D", numInfo);
-
- if (myByteString != "128")
- {
- TestLibrary.TestFramework.LogError("007", "The decimal string is wrong!");
- 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 E format convert exponential format string...");
-
- try
- {
- Byte myByte = 128;
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numInfo = culture.NumberFormat;
- numInfo.PositiveSign = "plus";
- string myByteString = myByte.ToString("E", numInfo);
-
- if (myByteString != "1.280000Eplus002")
- {
- TestLibrary.TestFramework.LogError("009", "The exponential string is wrong!");
- 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 F format convert Fixed-point string...");
-
- try
- {
- Byte myByte = 128;
- CultureInfo culture = new CultureInfo("");
- NumberFormatInfo numInfo = culture.NumberFormat;
- numInfo.PositiveSign = "plus";
- string myByteString = myByte.ToString("F", numInfo);
-
- if (myByteString != "128.00")
- {
- TestLibrary.TestFramework.LogError("011", "The Fixed-point string is wrong!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
-}
+++ /dev/null
-<?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="charcompateto1.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>
-
+++ /dev/null
-<?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="charequals1.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>
-
+++ /dev/null
-<?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="charequals2.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>
-
+++ /dev/null
-<?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="chargethashcode.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>
-
+++ /dev/null
-<?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="chariconvertibletoboolean.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>
-
+++ /dev/null
-<?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="chariconvertibletobyte.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>
-
+++ /dev/null
-<?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="chariconvertibletochar.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>
-
+++ /dev/null
-<?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="chariconvertibletodatetime.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>
-
+++ /dev/null
-<?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="chariconvertibletodecimal.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>
-
+++ /dev/null
-<?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="chariconvertibletodouble.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>
-
+++ /dev/null
-<?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="chariconvertibletoint16.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>
-
+++ /dev/null
-<?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="chariconvertibletoint32.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>
-
+++ /dev/null
-<?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="chariconvertibletoint64.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>
-
+++ /dev/null
-<?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="chariconvertibletosbyte.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>
-
+++ /dev/null
-<?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="chariconvertibletosingle.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>
-
+++ /dev/null
-<?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="chariconvertibletotype.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>
-
+++ /dev/null
-<?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="chariconvertibletouint16.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>
-
+++ /dev/null
-<?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="chariconvertibletouint32.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>
-
+++ /dev/null
-<?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="chariconvertibletouint64.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>
-
+++ /dev/null
-<?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="chariscontrol1.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>
-
+++ /dev/null
-<?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="chariscontrol2.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>
-
+++ /dev/null
-<?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="charisdigit1.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>
-
+++ /dev/null
-<?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="charisdigit2.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>
-
+++ /dev/null
-<?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="charisletter1.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>
-
+++ /dev/null
-<?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="charisletter2.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>
-
+++ /dev/null
-<?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="charisletterordigit1.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>
-
+++ /dev/null
-<?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="charisletterordigit2.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>
-
+++ /dev/null
-<?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="charislower1.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>
-
+++ /dev/null
-<?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="charislower2.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>
-
+++ /dev/null
-<?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="charisnumber1.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>
-
+++ /dev/null
-<?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="charisnumber2.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>
-
+++ /dev/null
-<?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="charispunctuation2.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>
-
+++ /dev/null
-<?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="charisseparator1.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>
-
+++ /dev/null
-<?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="charisseparator2.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>
-
+++ /dev/null
-<?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="charissurrogate1.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>
-
+++ /dev/null
-<?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="charissurrogate2.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>
-
+++ /dev/null
-<?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="charissurrogatepair1.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>
-
+++ /dev/null
-<?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="charissurrogatepair2.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>
-
+++ /dev/null
-<?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="charissymbol1.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>
-
+++ /dev/null
-<?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="charisupper1.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>
-
+++ /dev/null
-<?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="charisupper2.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>
-
+++ /dev/null
-<?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="chariswhitespace1.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>
-
+++ /dev/null
-<?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="chariswhitespace2.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>
-
+++ /dev/null
-<?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="charmaxvalue.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>
-
+++ /dev/null
-<?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="charminvalue.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>
-
+++ /dev/null
-<?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="chartostring1.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>
-
+++ /dev/null
-<?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="chartostring2.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>
-
+++ /dev/null
-// 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>
-/// Char.CompareTo(Char)
-/// Note: This method is new in the .NET Framework version 2.0.
-/// Compares this instance to a specified Char object and returns an indication of their relative values.
-/// </summary>
-public class CharCompareTo
-{
- public static int Main()
- {
- CharCompareTo testObj = new CharCompareTo();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.CompareTo(Char)");
- 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;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P001";
- const string c_TEST_DESC = @"PosTest1: char.MaxValue vs '\uFFFF'";
- string errorDesc;
-
- const char c_MAX_CHAR = '\uFFFF';
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- char actualChar = char.MaxValue;
- bool result = 0 == actualChar.CompareTo(c_MAX_CHAR);
- if (!result)
- {
- errorDesc = "Char.MaxValue is not " + c_MAX_CHAR + " as expected: Actual(" + actualChar + ")";
- 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;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P002";
- const string c_TEST_DESC = @"PosTest2: char.MinValue vs '\u0000'";
- string errorDesc;
-
- const char c_MIN_CHAR = '\u0000';
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- char actualChar = char.MinValue;
- bool result = 0 == actualChar.CompareTo(c_MIN_CHAR);
- if (!result)
- {
- errorDesc = "char.MinValue is not " + c_MIN_CHAR + " as expected: Actual(" + actualChar + ")";
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P003";
- const string c_TEST_DESC = "PosTest3: char.MaxValue vs char.MinValue";
- string errorDesc;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- int expectedValue = (int) char.MaxValue - (int)char.MinValue;
- int actualValue = char.MaxValue.CompareTo(char.MinValue);
- if (actualValue != expectedValue)
- {
- errorDesc = @"char.MaxValue('\uFFFF') should be greater than char.MinValue('\u0000'), but not be less";
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P004";
- const string c_TEST_DESC = "PosTest4: comparison of two random charaters";
- string errorDesc;
-
- char chA, chB;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- chA = TestLibrary.Generator.GetChar(-55);
- chB = TestLibrary.Generator.GetChar(-55);
- int expectedValue = (int)chA - (int)chB;
- int actualValue = chA.CompareTo(chB);
- if (actualValue != expectedValue)
- {
- errorDesc = string.Format("The comparison result of character \'\\u{0:x}\' against character \'\\u{1:x}\' is not 0x{2:x} as expected: Actual(0x{3:x})",
- (int)chA, (int)chB, (Int16)expectedValue, (Int16)actualValue);
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-}
-
+++ /dev/null
-// 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>
-/// Char.Equals(Char)
-/// Note: This method is new in the .NET Framework version 2.0.
-/// Returns a value indicating whether this instance is equal to the specified Char object.
-/// </summary>
-public class CharEquals
-{
- public static int Main()
- {
- CharEquals testObj = new CharEquals();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.Equals(Char)");
- 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;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P001";
- const string c_TEST_DESC = @"PosTest1: char.MaxValue vs '\uFFFF'";
- string errorDesc;
-
- const char c_MAX_CHAR = '\uFFFF';
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- char actualChar = char.MaxValue;
- bool result = actualChar.Equals(c_MAX_CHAR);
- if (!result)
- {
- errorDesc = "Char.MaxValue is not " + c_MAX_CHAR + " as expected: Actual(" + actualChar + ")";
- 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;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P002";
- const string c_TEST_DESC = @"PosTest2: char.MinValue vs '\u0000'";
- string errorDesc;
-
- const char c_MIN_CHAR = '\u0000';
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- char actualChar = char.MinValue;
- bool result = actualChar.Equals(c_MIN_CHAR);
- if (!result)
- {
- errorDesc = "char.MinValue is not " + c_MIN_CHAR + " as expected: Actual(" + actualChar + ")";
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P003";
- const string c_TEST_DESC = "PosTest3: char.MaxValue vs char.MinValue";
- string errorDesc;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- bool expectedValue = false;
- bool actualValue = char.MaxValue.Equals(char.MinValue);
- if (actualValue != expectedValue)
- {
- errorDesc = @"char.MaxValue('\uFFFF') does not equal char.MinValue('\u0000')";
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P004";
- const string c_TEST_DESC = "PosTest4: equality of two random charaters";
- string errorDesc;
-
- char chA, chB;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- chA = TestLibrary.Generator.GetChar(-55);
- chB = TestLibrary.Generator.GetChar(-55);
- bool expectedValue = (int)chA == (int)chB;
- bool actualValue = chA.Equals(chB);
- if (actualValue != expectedValue)
- {
- errorDesc = string.Format("The equality of character \'\\u{0:x}\' against character \'\\u{1:x}\' is not {2} as expected: Actual({3})",
- (int)chA, (int)chB, expectedValue, actualValue);
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-}
-
+++ /dev/null
-// 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>
-/// Char.Equals(Object)
-/// Note: This method is new in the .NET Framework version 2.0.
-/// Returns a value indicating whether this instance is equal to the specified Char object.
-/// </summary>
-public class CharEquals
-{
- public static int Main()
- {
- CharEquals testObj = new CharEquals();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.Equals(Object)");
- 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;
- retVal = PosTest5() && retVal;
-
- return retVal;
- }
-
- #region Positive tests
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P001";
- const string c_TEST_DESC = @"PosTest1: char.MaxValue vs '\uFFFF'";
- string errorDesc;
-
- const char c_MAX_CHAR = '\uFFFF';
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- char actualChar = char.MaxValue;
- object obj = c_MAX_CHAR;
- bool result = actualChar.Equals(obj);
- if (!result)
- {
- errorDesc = "Char.MaxValue is not " + c_MAX_CHAR + " as expected: Actual(" + actualChar + ")";
- 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;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P002";
- const string c_TEST_DESC = @"PosTest2: char.MinValue vs '\u0000'";
- string errorDesc;
-
- const char c_MIN_CHAR = '\u0000';
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- char actualChar = char.MinValue;
- object obj = c_MIN_CHAR;
- bool result = actualChar.Equals(obj);
- if (!result)
- {
- errorDesc = "char.MinValue is not " + c_MIN_CHAR + " as expected: Actual(" + actualChar + ")";
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P003";
- const string c_TEST_DESC = "PosTest3: char.MaxValue vs char.MinValue";
- string errorDesc;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- bool expectedValue = false;
- object obj = char.MinValue;
- bool actualValue = char.MaxValue.Equals(obj);
- if (actualValue != expectedValue)
- {
- errorDesc = @"char.MaxValue('\uFFFF') does not equal char.MinValue('\u0000')";
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P004";
- const string c_TEST_DESC = "PosTest4: equality of two random charaters";
- string errorDesc;
-
- char chA, chB;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- chA = TestLibrary.Generator.GetChar(-55);
- chB = TestLibrary.Generator.GetChar(-55);
- object obj = chB;
- bool expectedValue = (int)chA == (int)chB;
- bool actualValue = chA.Equals(obj);
- if (actualValue != expectedValue)
- {
- errorDesc = string.Format("The equality of character \'\\u{0:x}\' against character \'\\u{1:x}\' is not {2} as expected: Actual({3})",
- (int)chA, (int)chB, expectedValue, actualValue);
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P004";
- const string c_TEST_DESC = "PosTest4: char vs 32-bit integer value";
- string errorDesc;
-
- char chA;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- chA = TestLibrary.Generator.GetChar(-55);
- object obj = (int)chA;
- bool expectedValue = false;
- bool actualValue = chA.Equals(obj);
- if (actualValue != expectedValue)
- {
- errorDesc = string.Format("The equality of character \'\\u{0:x}\' against 32-bit integer {1:x} is not {2} as expected: Actual({3})",
- (int)chA, (int)obj, expectedValue, actualValue);
- TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("010" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// Char.GetHashCode()
-/// Returns the hash code for this instance.
-/// </summary>
-public class CharGetHashCode
-{
- public static int Main()
- {
- CharGetHashCode testObj = new CharGetHashCode();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.GetHashCode()");
- 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;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P001";
- const string c_TEST_DESC = "PosTest1: char.MaxValue";
- string errorDesc;
-
- int expectedValue;
- int actualValue;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- expectedValue = (int)char.MaxValue | ((int)char.MaxValue << 16);
- actualValue = char.MaxValue.GetHashCode();
- if (actualValue != expectedValue)
- {
- errorDesc = "Hash code of char.MaxValue is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- 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;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P002";
- const string c_TEST_DESC = "PosTest2: char.MinValue";
- string errorDesc;
-
- int expectedValue;
- int actualValue;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- expectedValue = (int)char.MinValue | ((int)char.MinValue << 16);
- actualValue = char.MinValue.GetHashCode();
- if (actualValue != expectedValue)
- {
- errorDesc = "Hash code of char.MinValue is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P003";
- const string c_TEST_DESC = "PosTest3: random character value";
- string errorDesc;
-
- int expectedValue;
- int actualValue;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- char ch = TestLibrary.Generator.GetChar(-55);
- expectedValue = (int)ch | ((int)ch << 16);
- actualValue = ch.GetHashCode();
- if (actualValue != expectedValue)
- {
- errorDesc = string.Format("Hash code of \'\\u{0:x}\' is not {1} as expected: Actual({2})", (int)ch, expectedValue, actualValue);
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-}
-
+++ /dev/null
-// 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>
-/// Char.System.IConvertible.ToBoolean(IFormatProvider)
-/// This method supports the .NET Framework infrastructure and is not intended to be used
-/// directly from your code.
-/// Note: This conversion is not supported. Attempting to do so throws an InvalidCastException.
-/// </summary>
-public class CharIConvertibleToBoolean
-{
- public static int Main()
- {
- CharIConvertibleToBoolean testObj = new CharIConvertibleToBoolean();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.System.IConvertible.ToBoolean(IFormatProvider)");
- 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("[Negative]");
- retVal = NegTest1() && retVal;
-
- return retVal;
- }
- #region Negative tests
- //InvalidCastException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N001";
- const string c_TEST_DESC = "NegTest1: Random character";
- string errorDesc;
-
- char ch = TestLibrary.Generator.GetChar(-55);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- IConvertible converter = ch;
- converter.ToBoolean(null);
-
- errorDesc = "InvalidCastException is not thrown as expected.";
- errorDesc += string.Format("\nThe character is \\u{0:x}", (int)ch);
- TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
-
- }
- catch (InvalidCastException)
- { }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe character is \\u{0:x}", (int)ch);
- TestLibrary.TestFramework.LogError("002" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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;
-
-/// <summary>
-/// Char.System.IConvertible.ToByte(IFormatProvider)
-/// Converts the value of the current Char object to an 8-bit unsigned integer.
-/// </summary>
-public class CharIConvertibleToByte
-{
- public static int Main()
- {
- CharIConvertibleToByte testObj = new CharIConvertibleToByte();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.System.IConvertible.ToByte(IFormatProvider)");
- 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;
-
- TestLibrary.TestFramework.LogInformation("[Negative]");
- retVal = NegTest1() && retVal;
-
- return retVal;
- }
-
- #region Positive tests
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P001";
- const string c_TEST_DESC = "PosTest1: Random valid character from 0 to Byte.MaxValue";
- string errorDesc;
-
- Byte expectedValue;
- Byte actualValue;
- char ch;
- expectedValue = TestLibrary.Generator.GetByte(-55);
- ch = (char)expectedValue;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- NumberFormatInfo numberFormat = new NumberFormatInfo();
- IFormatProvider provider = numberFormat;
- IConvertible converter = ch;
-
- actualValue = converter.ToByte(numberFormat);
-
- if (actualValue != expectedValue)
- {
- errorDesc = string.Format("Byte value of character \\u{0:x} is not ", (int)ch);
- errorDesc += expectedValue + " as expected: Actual(" + actualValue + ")";
- 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
-
- #region Negative tests
- //bug
- //OverflowException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N001";
- const string c_TEST_DESC = "NegTest1: Character with integer value greater than Byte.MaxValue";
- string errorDesc;
-
- UInt16 iValue;
- char ch;
- iValue = (UInt16)(Byte.MaxValue + 1 +
- TestLibrary.Generator.GetInt32(-55) & (UInt16.MaxValue - byte.MaxValue));
- ch = (char)iValue;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- IConvertible converter = ch;
- converter.ToByte(null);
-
- errorDesc = "OverflowException is not thrown as expected.";
- errorDesc += string.Format("\nThe character is \\u{0:x}", (int)ch);
- TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
-
- }
- catch (OverflowException)
- { }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe character is \\u{0:x}", (int)ch);
- TestLibrary.TestFramework.LogError("002" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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;
-
-/// <summary>
-/// Char.System.IConvertible.ToChar(IFormatProvider)
-/// Return the current char object.
-/// </summary>
-public class CharIConvertibleToChar
-{
- public static int Main()
- {
- CharIConvertibleToChar testObj = new CharIConvertibleToChar();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.System.IConvertible.Tochar(IFormatProvider)");
- 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;
-
- return retVal;
- }
-
- #region Positive tests
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P001";
- const string c_TEST_DESC = "PosTest1: Random character between 0 and \\uFFFF";
- string errorDesc;
-
- char expectedChar = TestLibrary.Generator.GetChar(-55);
- char actualChar;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- IConvertible converter = expectedChar;
- actualChar = converter.ToChar(null);
-
- if (actualChar != expectedChar)
- {
- errorDesc = string.Format("Character is not \\u{0:x} as expected: Actual(\\u{1:x}",
- (int)expectedChar, (int)actualChar);
- 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;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P002";
- const string c_TEST_DESC = "PosTest2: Char.MaxValue";
- string errorDesc;
-
- char expectedChar = char.MaxValue;
- char actualChar;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- IConvertible converter = expectedChar;
- actualChar = converter.ToChar(null);
-
- if (actualChar != expectedChar)
- {
- errorDesc = string.Format("Character is not \\u{0:x} as expected: Actual(\\u{1:x}",
- (int)expectedChar, (int)actualChar);
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P003";
- const string c_TEST_DESC = "PosTest3: Char.MinValue";
- string errorDesc;
-
- char expectedChar = char.MinValue;
- char actualChar;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- IConvertible converter = expectedChar;
- actualChar = converter.ToChar(null);
-
- if (actualChar != expectedChar)
- {
- errorDesc = string.Format("Character is not \\u{0:x} as expected: Actual(\\u{1:x}",
- (int)expectedChar, (int)actualChar);
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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;
-
-/// <summary>
-/// Char.System.IConvertible.ToDateTime(IFormatProvider)
-/// This method supports the .NET Framework infrastructure and is not intended to be
-/// used directly from your code.
-/// Note This conversion is not supported. Attempting to do so throws an InvalidCastException.
-/// </summary>
-public class CharIConvertibleToDateTime
-{
- public static int Main()
- {
- CharIConvertibleToDateTime testObj = new CharIConvertibleToDateTime();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.System.IConvertible.ToDateTime(IFormatProvider)");
- 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("[Negative]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
-
- return retVal;
- }
-
- #region Negative tests
- //InvalidCastException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N001";
- const string c_TEST_DESC = "NegTest1: Random character";
- string errorDesc;
-
- char ch = TestLibrary.Generator.GetChar(-55);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- IConvertible converter = ch;
- converter.ToDateTime(null);
-
- errorDesc = "InvalidCastException is not thrown as expected.";
- errorDesc += string.Format("\nThe character is \\u{0:x}", (int)ch);
- TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
-
- }
- catch (InvalidCastException)
- { }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe character is \\u{0:x}", (int)ch);
- TestLibrary.TestFramework.LogError("002" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N002";
- const string c_TEST_DESC = "NegTest2: Random character to datetime in culture-independent format";
- string errorDesc;
-
- char ch = TestLibrary.Generator.GetChar(-55);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- IConvertible converter = ch;
- DateTimeFormatInfo dtf = new DateTimeFormatInfo();
- converter.ToDateTime(dtf);
-
- errorDesc = "InvalidCastException is not thrown as expected.";
- errorDesc += string.Format("\nThe character is \\u{0:x}", (int)ch);
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
-
- }
- catch (InvalidCastException)
- { }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe character is \\u{0:x}", (int)ch);
- TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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;
-
-/// <summary>
-/// Char.System.IConvertible.ToDecimal(IFormatProvider)
-/// Note This conversion is not supported. Attempting to do so throws an InvalidCastException.
-/// </summary>
-public class CharIConvertibleToDecimal
-{
- public static int Main()
- {
- CharIConvertibleToDecimal testObj = new CharIConvertibleToDecimal();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.System.IConvertible.ToDecimal(IFormatProvider)");
- 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("[Negative]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
-
- return retVal;
- }
-
- #region Negative tests
- //InvalidCastException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N001";
- const string c_TEST_DESC = "NegTest1: Random character";
- string errorDesc;
-
- char ch = TestLibrary.Generator.GetChar(-55);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- IConvertible converter = ch;
- converter.ToDecimal(null);
-
- errorDesc = "InvalidCastException is not thrown as expected.";
- errorDesc += string.Format("\nThe character is \\u{0:x}", (int)ch);
- TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
-
- }
- catch (InvalidCastException)
- { }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe character is \\u{0:x}", (int)ch);
- TestLibrary.TestFramework.LogError("002" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N002";
- const string c_TEST_DESC = "NegTest2: Random character to datetime in culture-independent format";
- string errorDesc;
-
- char ch = TestLibrary.Generator.GetChar(-55);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- IConvertible converter = ch;
- DateTimeFormatInfo dtf = new DateTimeFormatInfo();
- converter.ToDecimal(dtf);
-
- errorDesc = "InvalidCastException is not thrown as expected.";
- errorDesc += string.Format("\nThe character is \\u{0:x}", (int)ch);
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
-
- }
- catch (InvalidCastException)
- { }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe character is \\u{0:x}", (int)ch);
- TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-// 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>
-/// Char.System.IConvertible.ToDouble(IFormatProvider)
-/// Note This conversion is not supported. Attempting to do so throws an InvalidCastException.
-/// </summary>
-public class CharIConvertibleToDouble
-{
- public static int Main()
- {
- CharIConvertibleToDouble testObj = new CharIConvertibleToDouble();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.System.IConvertible.ToDouble(IFormatProvider)");
- 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("[Negative]");
- retVal = NegTest1() && retVal;
-
- return retVal;
- }
-
- #region Negative tests
- //InvalidCastException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N001";
- const string c_TEST_DESC = "NegTest1: Random character";
- string errorDesc;
-
- char ch = TestLibrary.Generator.GetChar(-55);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- IConvertible converter = ch;
- converter.ToDouble(null);
-
- errorDesc = "InvalidCastException is not thrown as expected.";
- errorDesc += string.Format("\nThe character is \\u{0:x}", (int)ch);
- TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
-
- }
- catch (InvalidCastException)
- { }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe character is \\u{0:x}", (int)ch);
- TestLibrary.TestFramework.LogError("002" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-// 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; //for number format info
-
-/// <summary>
-/// Char.System.IConvertible.ToInt16(IFormatProvider)
-/// Converts the value of the current Char object to an 16-bit signed integer.
-/// </summary>
-public class CharIConvertibleToInt16
-{
- public static int Main()
- {
- CharIConvertibleToInt16 testObj = new CharIConvertibleToInt16();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.System.IConvertible.ToInt16(IFormatProvider)");
- 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;
-
- TestLibrary.TestFramework.LogInformation("");
- TestLibrary.TestFramework.LogInformation("[Negative]");
- retVal = NegTest1() && retVal;
-
- return retVal;
- }
-
- #region Positive tests
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P001";
- const string c_TEST_DESC = "PosTest1: Random valid character from 0 to Int16.MaxValue";
- string errorDesc;
-
- Int16 expectedValue;
- Int16 actualValue;
- char ch;
- expectedValue = TestLibrary.Generator.GetInt16(-55);
- ch = (char)expectedValue;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- NumberFormatInfo numberFormat = new NumberFormatInfo();
- IFormatProvider provider = numberFormat;
- IConvertible converter = ch;
-
- actualValue = converter.ToInt16(numberFormat);
-
- if (actualValue != expectedValue)
- {
- errorDesc = string.Format("Int16 value of character \\u{0:x} is not ", (int)ch);
- errorDesc += expectedValue + " as expected: Actual(" + actualValue + ")";
- 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;
- }
-
- //bug
- //overflow exception
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P002";
- const string c_TEST_DESC = "NegTest1: Random valid character from Int16.MaxValue + 1 to UInt16.MaxValue";
-
- UInt16 ui;
- Int16 expectedValue;
- Int16 actualValue;
- char ch;
- ui = (UInt16)(Int16.MaxValue + 1 +
- TestLibrary.Generator.GetInt32(-55) % (UInt16.MaxValue - Int16.MaxValue));
- ch = (char)ui;
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- NumberFormatInfo numberFormat = new NumberFormatInfo();
- IFormatProvider provider = numberFormat;
- IConvertible converter = ch;
-
- expectedValue = (Int16)ui;
- actualValue = converter.ToInt16(numberFormat);
-
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, c_TEST_DESC);
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, "Exception expected");
- retVal = false;
- }
- catch (OverflowException)
- {
- // expected
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID, c_TEST_DESC);
- TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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;
-
-/// <summary>
-/// Char.System.IConvertible.ToInt32(IFormatProvider)
-/// Converts the value of the current Char object to an 32-bit signed integer.
-/// </summary>
-public class CharIConvertibleToInt32
-{
- public static int Main()
- {
- CharIConvertibleToInt32 testObj = new CharIConvertibleToInt32();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.System.IConvertible.ToInt32(IFormatProvider)");
- 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";
- const string c_TEST_DESC = "PosTest1: Random valid character from 0 to UInt16.MaxValue";
- string errorDesc;
-
- int expectedValue;
- int actualValue;
- char ch;
- expectedValue = TestLibrary.Generator.GetInt32(-55) % (UInt16.MaxValue + 1);
- ch = (char)expectedValue;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- NumberFormatInfo numberFormat = new NumberFormatInfo();
- IFormatProvider provider = numberFormat;
- IConvertible converter = ch;
-
- actualValue = converter.ToInt32(numberFormat);
-
- if (actualValue != expectedValue)
- {
- errorDesc = string.Format("Int32 value of character \\u{0:x} is not ", (int)ch);
- errorDesc += expectedValue + " as expected: Actual(" + actualValue + ")";
- 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
-}
-
+++ /dev/null
-// 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;
-
-/// <summary>
-/// Char.System.IConvertible.ToInt64(IFormatProvider)
-/// Converts the value of the current Char object to an 64-bit signed integer.
-/// </summary>
-public class CharIConvertibleToInt64
-{
- public static int Main()
- {
- CharIConvertibleToInt64 testObj = new CharIConvertibleToInt64();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.System.IConvertible.ToInt64(IFormatProvider)");
- 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";
- const string c_TEST_DESC = "PosTest1: Random valid character from 0 to UInt16.MaxValue";
- string errorDesc;
-
- Int64 expectedValue;
- Int64 actualValue;
- char ch;
- expectedValue = TestLibrary.Generator.GetInt32(-55) % (UInt16.MaxValue + 1);
- ch = (char)expectedValue;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- NumberFormatInfo numberFormat = new NumberFormatInfo();
- IFormatProvider provider = numberFormat;
- IConvertible converter = ch;
-
- actualValue = converter.ToInt64(numberFormat);
-
- if (actualValue != expectedValue)
- {
- errorDesc = string.Format("Int64 value of character \\u{0:x} is not ", (int)ch);
- errorDesc += expectedValue + " as expected: Actual(" + actualValue + ")";
- 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
-}
-
+++ /dev/null
-// 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;
-
-/// <summary>
-/// Char.System.IConvertible.ToSByte(IFormatProvider)
-/// Converts the value of the current Char object to an 8-bit signed integer.
-/// </summary>
-public class CharIConvertibleToSByte
-{
- public static int Main()
- {
- CharIConvertibleToSByte testObj = new CharIConvertibleToSByte();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.System.IConvertible.ToSByte(IFormatProvider)");
- 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;
-
- TestLibrary.TestFramework.LogInformation("[Negative]");
- retVal = NegTest1() && retVal;
-
- return retVal;
- }
-
- #region Positive tests
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P001";
- const string c_TEST_DESC = "PosTest1: Random valid character from 0 to SByte.MaxValue";
- string errorDesc;
-
- SByte expectedValue;
- SByte actualValue;
- char ch;
- expectedValue = (sbyte)(TestLibrary.Generator.GetByte(-55) % (sbyte.MaxValue + 1));
- ch = (char)expectedValue;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- NumberFormatInfo numberFormat = new NumberFormatInfo();
- IFormatProvider provider = numberFormat;
- IConvertible converter = ch;
-
- actualValue = converter.ToSByte(numberFormat);
-
- if (actualValue != expectedValue)
- {
- errorDesc = string.Format("SByte value of character \\u{0:x} is not ", (int)ch);
- errorDesc += expectedValue + " as expected: Actual(" + actualValue + ")";
- 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
-
- #region Negative tests
- //bug
- //OverflowException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N001";
- const string c_TEST_DESC = "NegTest1: Character with integer value greater than SByte.MaxValue";
- string errorDesc;
-
- UInt16 iValue;
- char ch;
- // we need a UInt16 between (SByte.MaxValue + 1) and (UInt16.MaxValue)
- int rangeSize = UInt16.MaxValue - (SByte.MaxValue + 1);
- int rawRandom = TestLibrary.Generator.GetInt32(-55);
- iValue = (UInt16)((rawRandom % rangeSize) +
- (SByte.MaxValue + 1));
-
- ch = (char)iValue;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- IConvertible converter = ch;
- converter.ToSByte(null);
-
- errorDesc = "OverflowException is not thrown as expected.";
- errorDesc += string.Format("\nThe character is \\u{0:x}", (int)ch);
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
-
- }
- catch (OverflowException)
- { }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe character is \\u{0:x}", (int)ch);
- TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// Char.System.IConvertible.ToSingle(IFormatProvider)
-/// Note This conversion is not supported. Attempting to do so throws an InvalidCastException.
-/// </summary>
-public class CharIConvertibleToDouble
-{
- public static int Main()
- {
- CharIConvertibleToDouble testObj = new CharIConvertibleToDouble();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.System.IConvertible.ToSingle(IFormatProvider)");
- 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("[Negative]");
- retVal = NegTest1() && retVal;
-
- return retVal;
- }
-
- #region Negative tests
- //InvalidCastException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N001";
- const string c_TEST_DESC = "NegTest1: Random character";
- string errorDesc;
-
- char ch = TestLibrary.Generator.GetChar(-55);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- IConvertible converter = ch;
- converter.ToSingle(null);
-
- errorDesc = "InvalidCastException is not thrown as expected.";
- errorDesc += string.Format("\nThe character is \\u{0:x}", (int)ch);
- TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
-
- }
- catch (InvalidCastException)
- { }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe character is \\u{0:x}", (int)ch);
- TestLibrary.TestFramework.LogError("002" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// Char.System.IConvertible.ToType(Type, IFormatProvider)
-/// Converts the value of the current Char object to an object of the specified type using
-/// the specified IFormatProvider object.
-/// </summary>
-public class CharIConvertibleToType
-{
- public static int Main()
- {
- CharIConvertibleToType testObj = new CharIConvertibleToType();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.System.IConvertible.ToType(Type, IFormatProvider)");
- 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;
- retVal = PosTest5() && retVal;
- retVal = PosTest6() && retVal;
- retVal = PosTest7() && retVal;
- retVal = PosTest8() && retVal;
- retVal = PosTest9() && retVal;
- retVal = PosTest10() && 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;
- }
-
- #region Positive tests
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P001";
- const string c_TEST_DESC = "PosTest1: Conversion to byte";
- string errorDesc;
-
- byte b;
- object expectedObj;
- object actualObj;
- char ch;
- b = TestLibrary.Generator.GetByte(-55);
- ch = (char)b;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- NumberFormatInfo numberFormat = new NumberFormatInfo();
- IFormatProvider provider = numberFormat;
- IConvertible converter = ch;
-
- expectedObj = b;
- actualObj = converter.ToType(typeof(byte), numberFormat);
-
- if (((byte)expectedObj != (byte)actualObj) || !(actualObj is byte))
- {
- errorDesc = string.Format("Byte value of character \\u{0:x} is not ", (int)ch);
- errorDesc += expectedObj + " as expected: Actual(" + actualObj + ")";
- 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;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P002";
- const string c_TEST_DESC = "PosTest2: Conversion to sbyte";
- string errorDesc;
-
- sbyte sb;
- object expectedObj;
- object actualObj;
- char ch;
- sb = (sbyte)(TestLibrary.Generator.GetByte(-55) % (sbyte.MaxValue + 1));
- ch = (char)sb;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- NumberFormatInfo numberFormat = new NumberFormatInfo();
- IFormatProvider provider = numberFormat;
- IConvertible converter = ch;
-
- expectedObj = sb;
- actualObj = converter.ToType(typeof(sbyte), numberFormat);
-
- if (((sbyte)expectedObj != (sbyte)actualObj) || !(actualObj is sbyte))
- {
- errorDesc = string.Format("SByte value of character \\u{0:x} is not ", (int)ch);
- errorDesc += expectedObj + " as expected: Actual(" + actualObj + ")";
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P003";
- const string c_TEST_DESC = "PosTest3: Conversion to Int16";
- string errorDesc;
-
- Int16 i;
- object expectedObj;
- object actualObj;
- char ch;
- i = (Int16)(TestLibrary.Generator.GetInt32(-55) % (Int16.MaxValue + 1));
- ch = (char)i;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- NumberFormatInfo numberFormat = new NumberFormatInfo();
- IFormatProvider provider = numberFormat;
- IConvertible converter = ch;
-
- expectedObj = i;
- actualObj = converter.ToType(typeof(Int16), numberFormat);
-
- if (((Int16)expectedObj != (Int16)actualObj) || !(actualObj is Int16))
- {
- errorDesc = string.Format("Int16 value of character \\u{0:x} is not ", (int)ch);
- errorDesc += expectedObj + " as expected: Actual(" + actualObj + ")";
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P004";
- const string c_TEST_DESC = "PosTest4: Conversion to UInt16";
- string errorDesc;
-
- UInt16 i;
- object expectedObj;
- object actualObj;
- char ch;
- i = (UInt16)(TestLibrary.Generator.GetInt32(-55) % (UInt16.MaxValue + 1));
- ch = (char)i;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- NumberFormatInfo numberFormat = new NumberFormatInfo();
- IFormatProvider provider = numberFormat;
- IConvertible converter = ch;
-
- expectedObj = i;
- actualObj = converter.ToType(typeof(UInt16), numberFormat);
-
- if (((UInt16)expectedObj != (UInt16)actualObj) || !(actualObj is UInt16))
- {
- errorDesc = string.Format("UInt16 value of character \\u{0:x} is not ", (int)ch);
- errorDesc += expectedObj + " as expected: Actual(" + actualObj + ")";
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P005";
- const string c_TEST_DESC = "PosTest5: Conversion to Int32";
- string errorDesc;
-
- int i;
- object expectedObj;
- object actualObj;
- char ch;
- i = TestLibrary.Generator.GetInt32(-55) % (UInt16.MaxValue + 1);
- ch = (char)i;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- NumberFormatInfo numberFormat = new NumberFormatInfo();
- IFormatProvider provider = numberFormat;
- IConvertible converter = ch;
-
- expectedObj = i;
- actualObj = converter.ToType(typeof(int), numberFormat);
-
- if (((int)expectedObj != (int)actualObj) || !(actualObj is int))
- {
- errorDesc = string.Format("Int32 value of character \\u{0:x} is not ", (int)ch);
- errorDesc += expectedObj + " as expected: Actual(" + actualObj + ")";
- TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("010" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest6()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P006";
- const string c_TEST_DESC = "PosTest6: Conversion to UInt32";
- string errorDesc;
-
- UInt32 i;
- object expectedObj;
- object actualObj;
- char ch;
- i = (UInt32)(TestLibrary.Generator.GetInt32(-55) % (UInt16.MaxValue + 1));
- ch = (char)i;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- NumberFormatInfo numberFormat = new NumberFormatInfo();
- IFormatProvider provider = numberFormat;
- IConvertible converter = ch;
-
- expectedObj = i;
- actualObj = converter.ToType(typeof(UInt32), numberFormat);
-
- if (((UInt32)expectedObj != (UInt32)actualObj) || !(actualObj is UInt32))
- {
- errorDesc = string.Format("UInt32 value of character \\u{0:x} is not ", (int)ch);
- errorDesc += expectedObj + " as expected: Actual(" + actualObj + ")";
- TestLibrary.TestFramework.LogError("011" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("012" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest7()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P007";
- const string c_TEST_DESC = "PosTest7: Conversion to Int64";
- string errorDesc;
-
- Int64 i;
- object expectedObj;
- object actualObj;
- char ch;
- i = TestLibrary.Generator.GetInt32(-55) % (UInt16.MaxValue + 1);
- ch = (char)i;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- NumberFormatInfo numberFormat = new NumberFormatInfo();
- IFormatProvider provider = numberFormat;
- IConvertible converter = ch;
-
- expectedObj = i;
- actualObj = converter.ToType(typeof(Int64), numberFormat);
-
- if (((Int64)expectedObj != (Int64)actualObj) || !(actualObj is Int64))
- {
- errorDesc = string.Format("Int64 value of character \\u{0:x} is not ", (int)ch);
- errorDesc += expectedObj + " as expected: Actual(" + actualObj + ")";
- TestLibrary.TestFramework.LogError("013" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("014" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest8()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P008";
- const string c_TEST_DESC = "PosTest8: Conversion to UInt64";
- string errorDesc;
-
- UInt64 i;
- object expectedObj;
- object actualObj;
- char ch;
- i = (UInt64)(TestLibrary.Generator.GetInt32(-55) % (UInt16.MaxValue + 1));
- ch = (char)i;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- NumberFormatInfo numberFormat = new NumberFormatInfo();
- IFormatProvider provider = numberFormat;
- IConvertible converter = ch;
-
- expectedObj = i;
- actualObj = converter.ToType(typeof(UInt64), numberFormat);
-
- if (((UInt64)expectedObj != (UInt64)actualObj) || !(actualObj is UInt64))
- {
- errorDesc = string.Format("UInt64 value of character \\u{0:x} is not ", (int)ch);
- errorDesc += expectedObj + " as expected: Actual(" + actualObj + ")";
- TestLibrary.TestFramework.LogError("015" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("016" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest9()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P009";
- const string c_TEST_DESC = "PosTest9: Conversion to char";
- string errorDesc;
-
- object expectedObj;
- object actualObj;
- char ch;
- ch = TestLibrary.Generator.GetChar(-55);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- IConvertible converter = ch;
-
- expectedObj = ch;
- actualObj = converter.ToType(typeof(char), null);
-
- if (((char)expectedObj != (char)actualObj) || !(actualObj is char))
- {
- errorDesc = string.Format("char value of character \\u{0:x} is not ", (int)ch);
- errorDesc += expectedObj + " as expected: Actual(" + actualObj + ")";
- TestLibrary.TestFramework.LogError("017" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("018" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest10()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P010";
- const string c_TEST_DESC = "PosTest10: Conversion to string";
- string errorDesc;
-
- object expectedObj;
- object actualObj;
- char ch;
- ch = TestLibrary.Generator.GetChar(-55);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- IConvertible converter = ch;
-
- expectedObj = new string(ch, 1);
- actualObj = converter.ToType(typeof(string), null);
-
- if (((string)expectedObj != (string)actualObj) || !(actualObj is string))
- {
- errorDesc = string.Format("string value of character \\u{0:x} is not ", (int)ch);
- errorDesc += expectedObj + " as expected: Actual(" + actualObj + ")";
- TestLibrary.TestFramework.LogError("019" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("020" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #region Negative tests
- //ArgumentNullException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N001";
- const string c_TEST_DESC = "NegTest1: type is a null reference (Nothing in Visual Basic).";
- string errorDesc;
-
- char ch = TestLibrary.Generator.GetChar(-55);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- IConvertible converter = ch;
- converter.ToType(null, null);
-
- errorDesc = "ArgumentNullException is not thrown as expected.";
- errorDesc += string.Format("\nThe character is \\u{0:x}", (int)ch);
- TestLibrary.TestFramework.LogError("021" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
-
- }
- catch (ArgumentNullException)
- { }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe character is \\u{0:x}", (int)ch);
- TestLibrary.TestFramework.LogError("022" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- //InvalidCastException
- public bool NegTest2()
- {
- const string c_TEST_ID = "N002";
- const string c_TEST_DESC = "NegTest2: type is boolean";
-
- return this.DoInvalidCastTest(c_TEST_ID, c_TEST_DESC, "023", "024", typeof(bool));
- }
-
- public bool NegTest3()
- {
- const string c_TEST_ID = "N003";
- const string c_TEST_DESC = "NegTest3: type is double";
-
- return this.DoInvalidCastTest(c_TEST_ID, c_TEST_DESC, "025", "026", typeof(double));
- }
-
- public bool NegTest4()
- {
- const string c_TEST_ID = "N004";
- const string c_TEST_DESC = "NegTest4: type is single";
-
- return this.DoInvalidCastTest(c_TEST_ID, c_TEST_DESC, "027", "028", typeof(Single));
- }
-
- public bool NegTest5()
- {
- const string c_TEST_ID = "N005";
- const string c_TEST_DESC = "NegTest5: type is DateTime";
-
- return this.DoInvalidCastTest(c_TEST_ID, c_TEST_DESC, "029", "030", typeof(DateTime));
- }
-
- public bool NegTest6()
- {
- const string c_TEST_ID = "N006";
- const string c_TEST_DESC = "NegTest6: type is Decimal";
-
- return this.DoInvalidCastTest(c_TEST_ID, c_TEST_DESC, "031", "032", typeof(Decimal));
- }
-
- public bool NegTest7()
- {
- const string c_TEST_ID = "N007";
- const string c_TEST_DESC = "NegTest7: type is Decimal";
-
- return this.DoInvalidCastTest(c_TEST_ID, c_TEST_DESC, "033", "034", typeof(Decimal));
- }
-
- //bug
- //OverflowException
- public bool NegTest8()
- {
- const string c_TEST_ID = "N008";
- const string c_TEST_DESC = "NegTest8: Value is too large for destination type";
- return this.DoOverflowTest(c_TEST_ID, c_TEST_DESC, "035", typeof(Int16), Int16.MaxValue);
- }
-
- public bool NegTest9()
- {
- const string c_TEST_ID = "N009";
- const string c_TEST_DESC = "NegTest9: Value is too large for destination type";
-
- return this.DoOverflowTest(c_TEST_ID, c_TEST_DESC, "036", typeof(byte), byte.MaxValue);
- }
-
- public bool NegTest10()
- {
- const string c_TEST_ID = "N010";
- const string c_TEST_DESC = "NegTest10: Value is too large for destination type";
-
- return this.DoOverflowTest(c_TEST_ID, c_TEST_DESC, "037", typeof(sbyte), sbyte.MaxValue);
- }
- #endregion
-
- #region Helper methods for negative tests
- private bool DoInvalidCastTest(string testId,
- string testDesc,
- string errorNum1,
- string errorNum2,
- Type destType)
- {
- bool retVal = true;
- string errorDesc;
-
- char ch = TestLibrary.Generator.GetChar(-55);
-
- TestLibrary.TestFramework.BeginScenario(testDesc);
- try
- {
- IConvertible converter = ch;
- converter.ToType(destType, null);
-
- errorDesc = "InvalidCastException is not thrown as expected.";
- errorDesc += string.Format("\nThe character is \\u{0:x}", (int)ch);
- TestLibrary.TestFramework.LogError(errorNum1 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
- catch (InvalidCastException)
- { }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe character is \\u{0:x}", (int)ch);
- TestLibrary.TestFramework.LogError(errorNum2 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- private bool DoOverflowTest(string testId,
- string testDesc,
- string errorNum,
- Type destType,
- int destTypeMaxValue)
- {
- bool retVal = true;
- string errorDesc;
-
- int i;
- char ch;
- i = destTypeMaxValue + 1 +
- TestLibrary.Generator.GetInt32(-55) % (UInt16.MaxValue - destTypeMaxValue);
- ch = (char)i;
-
- TestLibrary.TestFramework.BeginScenario(testDesc);
- try
- {
- IConvertible converter = ch;
- converter.ToType(destType, null);
- TestLibrary.TestFramework.LogError(errorNum + "TestId-" +testId,
- "No OverflowException thrown when expected");
- retVal = false;
- }
- catch (OverflowException)
- {
- TestLibrary.TestFramework.LogInformation("Caught expected overflow.");
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe character is \\u{0:x}", (int)ch);
- TestLibrary.TestFramework.LogError(errorNum + " TestId-" + testId, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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;
-
-/// <summary>
-/// Char.System.IConvertible.ToUInt16(IFormatProvider)
-/// Converts the value of the current Char object to an 16-bit unsigned integer.
-/// </summary>
-public class CharIConvertibleToUInt16
-{
- public static int Main()
- {
- CharIConvertibleToUInt16 testObj = new CharIConvertibleToUInt16();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.System.IConvertible.ToUInt16(IFormatProvider)");
- 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";
- const string c_TEST_DESC = "PosTest1: Random character";
- string errorDesc;
-
- UInt16 expectedValue;
- UInt16 actualValue;
- char ch;
- expectedValue = (UInt16)(TestLibrary.Generator.GetInt32(-55) % (UInt16.MaxValue + 1));
- ch = (char)expectedValue;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- NumberFormatInfo numberFormat = new NumberFormatInfo();
- IFormatProvider provider = numberFormat;
- IConvertible converter = ch;
-
- actualValue = converter.ToUInt16(numberFormat);
-
- if (actualValue != expectedValue)
- {
- errorDesc = string.Format("UInt16 value of character \\u{0:x} is not ", (int)ch);
- errorDesc += expectedValue + " as expected: Actual(" + actualValue + ")";
- 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
-}
-
+++ /dev/null
-// 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;
-
-/// <summary>
-/// Char.System.IConvertible.ToUInt32(IFormatProvider)
-/// Converts the value of the current Char object to an 32-bit unsigned integer.
-/// </summary>
-public class CharIConvertibleToUInt32
-{
- public static int Main()
- {
- CharIConvertibleToUInt32 testObj = new CharIConvertibleToUInt32();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.System.IConvertible.ToUInt32(IFormatProvider)");
- 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";
- const string c_TEST_DESC = "PosTest1: Random character.";
- string errorDesc;
-
- UInt32 expectedValue;
- UInt32 actualValue;
- char ch;
- expectedValue = (UInt32)(TestLibrary.Generator.GetInt32(-55) % (UInt16.MaxValue + 1));
- ch = (char)expectedValue;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- NumberFormatInfo numberFormat = new NumberFormatInfo();
- IFormatProvider provider = numberFormat;
- IConvertible converter = ch;
-
- actualValue = converter.ToUInt32(numberFormat);
-
- if (actualValue != expectedValue)
- {
- errorDesc = string.Format("UInt32 value of character \\u{0:x} is not ", (int)ch);
- errorDesc += expectedValue + " as expected: Actual(" + actualValue + ")";
- 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
-}
-
+++ /dev/null
-// 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;
-
-/// <summary>
-/// Char.System.IConvertible.ToUInt64(IFormatProvider)
-/// Converts the value of the current Char object to an 64-bit unsigned integer.
-/// </summary>
-public class CharIConvertibleToUInt64
-{
- public static int Main()
- {
- CharIConvertibleToUInt64 testObj = new CharIConvertibleToUInt64();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.System.IConvertible.ToUInt32(IFormatProvider)");
- 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";
- const string c_TEST_DESC = "PosTest1: Random character.";
- string errorDesc;
-
- UInt64 expectedValue;
- UInt64 actualValue;
- char ch;
- expectedValue = (UInt64)(TestLibrary.Generator.GetInt32(-55) % (UInt16.MaxValue + 1));
- ch = (char)expectedValue;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- NumberFormatInfo numberFormat = new NumberFormatInfo();
- IFormatProvider provider = numberFormat;
- IConvertible converter = ch;
-
- actualValue = converter.ToUInt64(numberFormat);
-
- if (actualValue != expectedValue)
- {
- errorDesc = string.Format("UInt64 value of character \\u{0:x} is not ", (int)ch);
- errorDesc += expectedValue + " as expected: Actual(" + actualValue + ")";
- 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
-}
-
+++ /dev/null
-// 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>
-/// Char.IsControl(Char)
-/// Indicates whether the specified Unicode character is categorized as a control character.
-/// </summary>
-public class CharIsControl
-{
- public static int Main()
- {
- CharIsControl testObj = new CharIsControl();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.GetUnicodeCategory(Char)");
- 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 Positve tests
- public bool PosTest1()
- {
- //Generate the character for validate
- char ch = TestLibrary.Generator.GetCharLetter(-55);
-
- return this.DoTest("PosTest1: Non control character.",
- "P001", "001", "002", ch,
- false);
- }
-
- public bool PosTest2()
- {
- //Generate the character for validate
- char ch = '\n';
-
- return this.DoTest("PosTest2: Control character.",
- "P002", "003", "004", ch,
- true);
- }
- #endregion
-
- #region Helper method for positive tests
- private bool DoTest(string testDesc,
- string testId,
- string errorNum1,
- string errorNum2,
- char ch,
- bool expectedResult)
- {
- bool retVal = true;
- string errorDesc;
-
- TestLibrary.TestFramework.BeginScenario(testDesc);
- try
- {
- bool actualResult = char.IsControl(ch);
- if (expectedResult != actualResult)
- {
- if (expectedResult)
- {
- errorDesc = string.Format("Character \\u{0:x} should belong to control characters.", (int)ch);
- }
- else
- {
- errorDesc = string.Format("Character \\u{0:x} does not belong to control characters.", (int)ch);
- }
-
- TestLibrary.TestFramework.LogError(errorNum1+ " TestId-" + testId, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe character is \\u{0:x}", (int)ch);
- TestLibrary.TestFramework.LogError(errorNum2 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// char.IsControl(string, int)
-/// Indicates whether the character at the specified position in a specified string is categorized
-/// as a control character.
-/// </summary>
-public class CharIsControl
-{
- private const int c_MIN_STR_LEN = 2;
- private const int c_MAX_STR_LEN = 256;
-
- public static int Main()
- {
- CharIsControl testObj = new CharIsControl();
-
- TestLibrary.TestFramework.BeginTestCase("for method: char.IsControl(string, int)");
- 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("[Negaitive]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
-
- return retVal;
- }
-
- #region Positve tests
- public bool PosTest1()
- {
- //Generate the character for validate
- char ch = TestLibrary.Generator.GetCharLetter(-55);
-
- return this.DoTest("PosTest1: Non control character.",
- "P001", "001", "002", ch,
- false);
- }
-
- public bool PosTest2()
- {
- //Generate the character for validate
- char ch = '\n';
-
- return this.DoTest("PosTest2: Control character.",
- "P002", "003", "004", ch,
- true);
- }
- #endregion
-
- #region Helper method for positive tests
- private bool DoTest(string testDesc,
- string testId,
- string errorNum1,
- string errorNum2,
- char ch,
- bool expectedResult)
- {
- bool retVal = true;
- string errorDesc;
-
- TestLibrary.TestFramework.BeginScenario(testDesc);
- try
- {
- string str = new string(ch, 1);
- bool actualResult = char.IsControl(str, 0);
- if (expectedResult != actualResult)
- {
- if (expectedResult)
- {
- errorDesc = string.Format("Character \\u{0:x} should belong to control characters.", (int)ch);
- }
- else
- {
- errorDesc = string.Format("Character \\u{0:x} does not belong to control characters.", (int)ch);
- }
-
- TestLibrary.TestFramework.LogError(errorNum1+ " TestId-" + testId, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe character is \\u{0:x}", (int)ch);
- TestLibrary.TestFramework.LogError(errorNum2 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #region Negative tests
- //ArgumentNullException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N001";
- const string c_TEST_DESC = "NegTest1: String is a null reference (Nothing in Visual Basic).";
- string errorDesc;
-
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- index = TestLibrary.Generator.GetInt32(-55);
- char.IsControl(null, index);
- errorDesc = "ArgumentNullException is not thrown as expected, index is " + index;
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentNullException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e + "\n Index is " + index;
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- //ArgumentOutOfRangeException
- public bool NegTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N002";
- const string c_TEST_DESC = "NegTest2: Index is too great.";
- string errorDesc;
-
- string str = string.Empty;
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LEN, c_MAX_STR_LEN);
- index = str.Length + TestLibrary.Generator.GetInt16(-55);
- index = str.Length;
- char.IsControl(str, index);
- errorDesc = "ArgumentOutOfRangeException is not thrown as expected";
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe character is \\u{0:x}", str[index]);
- TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N003";
- const string c_TEST_DESC = "NegTest3: Index is a negative value";
- string errorDesc;
-
- string str = string.Empty;
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LEN, c_MAX_STR_LEN);
- index = -1 * (TestLibrary.Generator.GetInt16(-55));
- char.IsControl(str, index);
- errorDesc = "ArgumentOutOfRangeException is not thrown as expected";
- TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe character is \\u{0:x}", str[index]);
- TestLibrary.TestFramework.LogError("010" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// Char.IsDigit(Char)
-/// Indicates whether the specified Unicode character is categorized as a decimal digit.
-/// </summary>
-public class CharIsDigit
-{
- private static readonly char[] r_decimalDigits =
- {
- '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'
- };
-
- public static int Main()
- {
- CharIsDigit testObj = new CharIsDigit();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.IsDigit(Char)");
- 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 Positive tests
- public bool PosTest1()
- {
- //Generate the character for validate
- int index = TestLibrary.Generator.GetInt32(-55) % r_decimalDigits.Length;
- char ch = r_decimalDigits[index];
-
- return this.DoTest("PosTest1: Random decimal digit character (0-9).",
- "P001", "001", "002", ch,
- true);
- }
-
- public bool PosTest2()
- {
- //Generate a non character for validate
- char ch = TestLibrary.Generator.GetCharLetter(-55);
- return this.DoTest("PosTest2: Non decimal digit character.",
- "P002", "003", "004", ch,
- false);
- }
- #endregion
-
- #region Helper method for positive tests
- private bool DoTest(string testDesc,
- string testId,
- string errorNum1,
- string errorNum2,
- char ch,
- bool expectedResult)
- {
- bool retVal = true;
- string errorDesc;
-
- TestLibrary.TestFramework.BeginScenario(testDesc);
- try
- {
- bool actualResult = char.IsDigit(ch);
- if (expectedResult != actualResult)
- {
- if (expectedResult)
- {
- errorDesc = string.Format("Character \\u{0:x} should belong to decimal digit characters.", (int)ch);
- }
- else
- {
- errorDesc = string.Format("Character \\u{0:x} does not belong to decimal digit characters.", (int)ch);
- }
-
- TestLibrary.TestFramework.LogError(errorNum1+ " TestId-" + testId, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nCharacter is \\u{0:x}", (int)ch);
- TestLibrary.TestFramework.LogError(errorNum2 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// char.IsDigit(string, int)
-/// Indicates whether the character at the specified position in a specified string is categorized
-/// as a decimal digit character.
-/// </summary>
-public class CharIsDigit
-{
- private const int c_MIN_STR_LEN = 2;
- private const int c_MAX_STR_LEN = 256;
-
- private static readonly char[] r_decimalDigits =
- {
- '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'
- };
-
- public static int Main()
- {
- CharIsDigit testObj = new CharIsDigit();
-
- TestLibrary.TestFramework.BeginTestCase("for method: char.IsDigit(string, int)");
- 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("[Negaitive]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
-
- return retVal;
- }
-
- #region Positive tests
- public bool PosTest1()
- {
- //Generate the character for validate
- int index = TestLibrary.Generator.GetInt32(-55) % r_decimalDigits.Length;
- char ch = r_decimalDigits[index];
-
- return this.DoTest("PosTest1: Random decimal digit character (0-9).",
- "P001", "001", "002", ch,
- true);
- }
-
- public bool PosTest2()
- {
- //Generate a non character for validate
- char ch = TestLibrary.Generator.GetCharLetter(-55);
- return this.DoTest("PosTest2: Non decimal digit character.",
- "P002", "003", "004", ch,
- false);
- }
- #endregion
-
- #region Helper method for positive tests
- private bool DoTest(string testDesc,
- string testId,
- string errorNum1,
- string errorNum2,
- char ch,
- bool expectedResult)
- {
- bool retVal = true;
- string errorDesc;
-
- TestLibrary.TestFramework.BeginScenario(testDesc);
- try
- {
- string str = new string(ch, 1);
- bool actualResult = char.IsDigit(str, 0);
- if (expectedResult != actualResult)
- {
- if (expectedResult)
- {
- errorDesc = string.Format("Character \\u{0:x} should belong to decimal digit characters.", (int)ch);
- }
- else
- {
- errorDesc = string.Format("Character \\u{0:x} does not belong to decimal digit characters.", (int)ch);
- }
-
- TestLibrary.TestFramework.LogError(errorNum1+ " TestId-" + testId, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nCharacter is \\u{0:x}", (int)ch);
- TestLibrary.TestFramework.LogError(errorNum2 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #region Negative tests
- //ArgumentNullException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N001";
- const string c_TEST_DESC = "NegTest1: String is a null reference (Nothing in Visual Basic).";
- string errorDesc;
-
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- index = TestLibrary.Generator.GetInt32(-55);
- char.IsDigit(null, index);
- errorDesc = "ArgumentNullException is not thrown as expected, index is " + index;
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentNullException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e + "\n Index is " + index;
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- //ArgumentOutOfRangeException
- public bool NegTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N002";
- const string c_TEST_DESC = "NegTest2: Index is too great.";
- string errorDesc;
-
- string str = string.Empty;
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LEN, c_MAX_STR_LEN);
- index = str.Length + TestLibrary.Generator.GetInt16(-55);
- index = str.Length;
- char.IsDigit(str, index);
- errorDesc = "ArgumentOutOfRangeException is not thrown as expected";
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe character is \\u{0:x}", str[index]);
- TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N003";
- const string c_TEST_DESC = "NegTest3: Index is a negative value";
- string errorDesc;
-
- string str = string.Empty;
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LEN, c_MAX_STR_LEN);
- index = -1 * (TestLibrary.Generator.GetInt16(-55));
- char.IsDigit(str, index);
- errorDesc = "ArgumentOutOfRangeException is not thrown as expected";
- TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe character is \\u{0:x}", str[index]);
- TestLibrary.TestFramework.LogError("010" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// Char.IsLetter(Char)
-/// Indicates whether the specified Unicode character is categorized as a letter.
-/// </summary>
-public class CharIsLetter
-{
- public static int Main()
- {
- CharIsLetter testObj = new CharIsLetter();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.IsLetter(Char)");
- 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 Positive tests
- public bool PosTest1()
- {
- //Generate the character for validate
- char ch = 'a';
-
- return this.DoTest("PosTest1: Letter character",
- "P001", "001", "002", ch, true);
- }
-
- public bool PosTest2()
- {
- //Generate a non character for validate
- char ch = TestLibrary.Generator.GetCharNumber(-55);
- return this.DoTest("PosTest2: Non letter character.",
- "P002", "003", "004", ch, false);
- }
- #endregion
-
- #region Helper method for positive tests
- private bool DoTest(string testDesc,
- string testId,
- string errorNum1,
- string errorNum2,
- char ch,
- bool expectedResult)
- {
- bool retVal = true;
- string errorDesc;
-
- TestLibrary.TestFramework.BeginScenario(testDesc);
- try
- {
- bool actualResult = char.IsLetter(ch);
- if (expectedResult != actualResult)
- {
- if (expectedResult)
- {
- errorDesc = string.Format("Character \\u{0:x} should belong to letter characters.", (int)ch);
- }
- else
- {
- errorDesc = string.Format("Character \\u{0:x} does not belong to letter characters.", (int)ch);
- }
-
- TestLibrary.TestFramework.LogError(errorNum1+ " TestId-" + testId, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nCharacter is \\u{0:x}", ch);
- TestLibrary.TestFramework.LogError(errorNum2 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// char.IsLetter(string, int)
-/// Indicates whether the character at the specified position in a specified string is categorized
-/// as a letter character.
-/// </summary>
-public class CharIsLetter
-{
- private const int c_MIN_STR_LEN = 2;
- private const int c_MAX_STR_LEN = 256;
-
- public static int Main()
- {
- CharIsLetter testObj = new CharIsLetter();
-
- TestLibrary.TestFramework.BeginTestCase("for method: char.IsLetter(string, int)");
- 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("[Negaitive]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
-
- return retVal;
- }
-
- #region Positive tests
- public bool PosTest1()
- {
- //Generate the character for validate
- char ch = 'a';
-
- return this.DoTest("PosTest1: Letter character",
- "P001", "001", "002", ch, true);
- }
-
- public bool PosTest2()
- {
- //Generate a non character for validate
- char ch = TestLibrary.Generator.GetCharNumber(-55);
- return this.DoTest("PosTest2: Non letter character.",
- "P002", "003", "004", ch, false);
- }
- #endregion
-
- #region Helper method for positive tests
- private bool DoTest(string testDesc,
- string testId,
- string errorNum1,
- string errorNum2,
- char ch,
- bool expectedResult)
- {
- bool retVal = true;
- string errorDesc;
-
- TestLibrary.TestFramework.BeginScenario(testDesc);
- try
- {
- bool actualResult = char.IsLetter(ch);
- if (expectedResult != actualResult)
- {
- if (expectedResult)
- {
- errorDesc = string.Format("Character \\u{0:x} should belong to letter characters.", (int)ch);
- }
- else
- {
- errorDesc = string.Format("Character \\u{0:x} does not belong to letter characters.", (int)ch);
- }
-
- TestLibrary.TestFramework.LogError(errorNum1 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nCharacter is \\u{0:x}", ch);
- TestLibrary.TestFramework.LogError(errorNum2 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #region Negative tests
- //ArgumentNullException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N001";
- const string c_TEST_DESC = "NegTest1: String is a null reference (Nothing in Visual Basic).";
- string errorDesc;
-
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- index = TestLibrary.Generator.GetInt32(-55);
- char.IsLetter(null, index);
- errorDesc = "ArgumentNullException is not thrown as expected, index is " + index;
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentNullException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e + "\n Index is " + index;
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- //ArgumentOutOfRangeException
- public bool NegTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N002";
- const string c_TEST_DESC = "NegTest2: Index is too great.";
- string errorDesc;
-
- string str = string.Empty;
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LEN, c_MAX_STR_LEN);
- index = str.Length + TestLibrary.Generator.GetInt16(-55);
- index = str.Length;
- char.IsLetter(str, index);
- errorDesc = "ArgumentOutOfRangeException is not thrown as expected";
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe character is \\u{0:x}", str[index]);
- TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N003";
- const string c_TEST_DESC = "NegTest3: Index is a negative value";
- string errorDesc;
-
- string str = string.Empty;
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LEN, c_MAX_STR_LEN);
- index = -1 * (TestLibrary.Generator.GetInt16(-55));
- char.IsLetter(str, index);
- errorDesc = "ArgumentOutOfRangeException is not thrown as expected";
- TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe character is \\u{0:x}", str[index]);
- TestLibrary.TestFramework.LogError("010" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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; //for UnicodeCategory enumeration
-
-/// <summary>
-/// Char.IsLetterOrDigit(Char)
-/// Indicates whether the specified Unicode character is categorized as a letter or decimal digit.
-/// </summary>
-public class CharIsLetterOrDigit
-{
- private static readonly char[] r_decimalDigits =
- {
- '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'
- };
-
- public static int Main()
- {
- CharIsLetterOrDigit testObj = new CharIsLetterOrDigit();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.IsLetterOrDigit(Char)");
- 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;
-
- return retVal;
- }
- #region Positive tests
- public bool PosTest1()
- {
- //Generate the character for validate
- char ch = 'a';
-
- return this.DoTest("PosTest1: Letter character",
- "P001", "001", "002", ch, true);
- }
-
- public bool PosTest2()
- {
- //Generate a non character for validate
- int index = TestLibrary.Generator.GetInt32(-55) % r_decimalDigits.Length;
- char ch = r_decimalDigits[index];
-
- return this.DoTest("PosTest2: Decimal digit character.",
- "P002", "003", "004", ch, true);
- }
-
- public bool PosTest3()
- {
- //Generate a non character for validate
- char ch = '\n';
-
- return this.DoTest("PosTest3: Not decimal digit nor letter character.",
- "P003", "005", "006", ch, false);
- }
- #endregion
-
- #region Helper method for positive tests
- private bool DoTest(string testDesc,
- string testId,
- string errorNum1,
- string errorNum2,
- char ch,
- bool expectedResult)
- {
- bool retVal = true;
- string errorDesc;
-
- TestLibrary.TestFramework.BeginScenario(testDesc);
- try
- {
- bool actualResult = char.IsLetterOrDigit(ch);
- if (expectedResult != actualResult)
- {
- if (expectedResult)
- {
- errorDesc = string.Format("Character \\u{0:x} should belong to letter or decimal digit characters.", (int)ch);
- }
- else
- {
- errorDesc = string.Format("Character \\u{0:x} does not belong to letter or decimal digit characters.", (int)ch);
- }
-
- TestLibrary.TestFramework.LogError(errorNum1+ " TestId-" + testId, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nCharacter is \\u{0:x}", ch);
- TestLibrary.TestFramework.LogError(errorNum2 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// char.IsLetterOrDigit(string, int)
-/// Indicates whether the character at the specified position in a specified string is categorized
-/// as a letter or decimal digit character.
-/// </summary>
-public class CharIsLetterOrDigit
-{
- private const int c_MIN_STR_LEN = 2;
- private const int c_MAX_STR_LEN = 256;
-
- private static readonly char[] r_decimalDigits =
- {
- '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'
- };
-
- public static int Main()
- {
- CharIsLetterOrDigit testObj = new CharIsLetterOrDigit();
-
- TestLibrary.TestFramework.BeginTestCase("for method: char.IsLetterOrDigit(string, int)");
- 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;
-
- TestLibrary.TestFramework.LogInformation("[Negaitive]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
-
- return retVal;
- }
-
- #region Positive tests
- public bool PosTest1()
- {
- //Generate the character for validate
- char ch = 'a';
-
- return this.DoTest("PosTest1: Letter character",
- "P001", "001", "002", ch, true);
- }
-
- public bool PosTest2()
- {
- //Generate a non character for validate
- int index = TestLibrary.Generator.GetInt32(-55) % r_decimalDigits.Length;
- char ch = r_decimalDigits[index];
-
- return this.DoTest("PosTest2: Decimal digit character.",
- "P002", "003", "004", ch, true);
- }
-
- public bool PosTest3()
- {
- //Generate a non character for validate
- char ch = '\n';
-
- return this.DoTest("PosTest3: Not decimal digit nor letter character.",
- "P003", "005", "006", ch, false);
- }
- #endregion
-
- #region Helper method for positive tests
- private bool DoTest(string testDesc,
- string testId,
- string errorNum1,
- string errorNum2,
- char ch,
- bool expectedResult)
- {
- bool retVal = true;
- string errorDesc;
-
- TestLibrary.TestFramework.BeginScenario(testDesc);
- try
- {
- bool actualResult = char.IsLetterOrDigit(ch);
- if (expectedResult != actualResult)
- {
- if (expectedResult)
- {
- errorDesc = string.Format("Character \\u{0:x} should belong to letter or decimal digit characters.", (int)ch);
- }
- else
- {
- errorDesc = string.Format("Character \\u{0:x} does not belong to letter or decimal digit characters.", (int)ch);
- }
-
- TestLibrary.TestFramework.LogError(errorNum1 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nCharacter is \\u{0:x}", ch);
- TestLibrary.TestFramework.LogError(errorNum2 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #region Negative tests
- //ArgumentNullException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N001";
- const string c_TEST_DESC = "NegTest1: String is a null reference (Nothing in Visual Basic).";
- string errorDesc;
-
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- index = TestLibrary.Generator.GetInt32(-55);
- char.IsLetterOrDigit(null, index);
- errorDesc = "ArgumentNullException is not thrown as expected, index is " + index;
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentNullException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e + "\n Index is " + index;
- TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- //ArgumentOutOfRangeException
- public bool NegTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N002";
- const string c_TEST_DESC = "NegTest2: Index is too great.";
- string errorDesc;
-
- string str = string.Empty;
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LEN, c_MAX_STR_LEN);
- index = str.Length + TestLibrary.Generator.GetInt16(-55);
- index = str.Length;
- char.IsLetterOrDigit(str, index);
- errorDesc = "ArgumentOutOfRangeException is not thrown as expected";
- TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe character is \\u{0:x}", str[index]);
- TestLibrary.TestFramework.LogError("010" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N003";
- const string c_TEST_DESC = "NegTest3: Index is a negative value";
- string errorDesc;
-
- string str = string.Empty;
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LEN, c_MAX_STR_LEN);
- index = -1 * (TestLibrary.Generator.GetInt16(-55));
- char.IsLetterOrDigit(str, index);
- errorDesc = "ArgumentOutOfRangeException is not thrown as expected";
- TestLibrary.TestFramework.LogError("011" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe character is \\u{0:x}", str[index]);
- TestLibrary.TestFramework.LogError("012" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// Char.IsLower(Char)
-/// Indicates whether the specified Unicode character is categorized as a lowercase letter.
-/// </summary>
-public class CharIsLower
-{
- public static int Main()
- {
- CharIsLower testObj = new CharIsLower();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.IsLower(Char)");
- 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;
-
- return retVal;
- }
- #region Positive tests
- public bool PosTest1()
- {
- //Generate the character for validate
- char ch = 'a';
-
- return this.DoTest("PosTest1: Lowercase letter character",
- "P001", "001", "002", ch, true);
- }
-
- public bool PosTest2()
- {
- //Generate a non character for validate
- char ch = 'A';
- return this.DoTest("PosTest2: Uppercase letter character.",
- "P002", "003", "004", ch, false);
- }
-
- public bool PosTest3()
- {
- //Generate a non character for validate
- char ch = TestLibrary.Generator.GetCharNumber(-55);
- return this.DoTest("PosTest3: Non letter character.",
- "P003", "005", "006", ch, false);
- }
- #endregion
-
- #region Helper method for positive tests
- private bool DoTest(string testDesc,
- string testId,
- string errorNum1,
- string errorNum2,
- char ch,
- bool expectedResult)
- {
- bool retVal = true;
- string errorDesc;
-
- TestLibrary.TestFramework.BeginScenario(testDesc);
- try
- {
- bool actualResult = char.IsLower(ch);
- if (expectedResult != actualResult)
- {
- if (expectedResult)
- {
- errorDesc = string.Format("Character \\u{0:x} should belong to lowercase letter characters.", (int)ch);
- }
- else
- {
- errorDesc = string.Format("Character \\u{0:x} does not belong to lowercase letter characters.", (int)ch);
- }
-
- TestLibrary.TestFramework.LogError(errorNum1+ " TestId-" + testId, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nCharacter is \\u{0:x}", ch);
- TestLibrary.TestFramework.LogError(errorNum2 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// char.IsLower(string, int)
-/// Indicates whether the character at the specified position in a specified string is categorized
-/// as a lowercase letter character.
-/// </summary>
-public class CharIsLower
-{
- private const int c_MIN_STR_LEN = 2;
- private const int c_MAX_STR_LEN = 256;
-
- public static int Main()
- {
- CharIsLower testObj = new CharIsLower();
-
- TestLibrary.TestFramework.BeginTestCase("for method: char.IsLower(string, int)");
- 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;
-
- TestLibrary.TestFramework.LogInformation("[Negaitive]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
-
- return retVal;
- }
-
- #region Positive tests
- public bool PosTest1()
- {
- //Generate the character for validate
- char ch = 'a';
-
- return this.DoTest("PosTest1: Lowercase letter character",
- "P001", "001", "002", ch, true);
- }
-
- public bool PosTest2()
- {
- //Generate a non character for validate
- char ch = 'A';
- return this.DoTest("PosTest2: Uppercase letter character.",
- "P002", "003", "004", ch, false);
- }
-
- public bool PosTest3()
- {
- //Generate a non character for validate
- char ch = TestLibrary.Generator.GetCharNumber(-55);
- return this.DoTest("PosTest3: Non letter character.",
- "P003", "005", "006", ch, false);
- }
- #endregion
-
- #region Helper method for positive tests
- private bool DoTest(string testDesc,
- string testId,
- string errorNum1,
- string errorNum2,
- char ch,
- bool expectedResult)
- {
- bool retVal = true;
- string errorDesc;
-
- TestLibrary.TestFramework.BeginScenario(testDesc);
- try
- {
- bool actualResult = char.IsLower(ch);
- if (expectedResult != actualResult)
- {
- if (expectedResult)
- {
- errorDesc = string.Format("Character \\u{0:x} should belong to lowercase letter characters.", (int)ch);
- }
- else
- {
- errorDesc = string.Format("Character \\u{0:x} does not belong to lowercase letter characters.", (int)ch);
- }
-
- TestLibrary.TestFramework.LogError(errorNum1 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nCharacter is \\u{0:x}", ch);
- TestLibrary.TestFramework.LogError(errorNum2 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #region Negative tests
- //ArgumentNullException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N001";
- const string c_TEST_DESC = "NegTest1: String is a null reference (Nothing in Visual Basic).";
- string errorDesc;
-
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- index = TestLibrary.Generator.GetInt32(-55);
- char.IsLower(null, index);
- errorDesc = "ArgumentNullException is not thrown as expected, index is " + index;
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentNullException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e + "\n Index is " + index;
- TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- //ArgumentOutOfRangeException
- public bool NegTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N002";
- const string c_TEST_DESC = "NegTest2: Index is too great.";
- string errorDesc;
-
- string str = string.Empty;
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LEN, c_MAX_STR_LEN);
- index = str.Length + TestLibrary.Generator.GetInt16(-55);
- index = str.Length;
- char.IsLower(str, index);
- errorDesc = "ArgumentOutOfRangeException is not thrown as expected";
- TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe character is \\u{0:x}", str[index]);
- TestLibrary.TestFramework.LogError("010" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N003";
- const string c_TEST_DESC = "NegTest3: Index is a negative value";
- string errorDesc;
-
- string str = string.Empty;
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LEN, c_MAX_STR_LEN);
- index = -1 * (TestLibrary.Generator.GetInt16(-55));
- char.IsLower(str, index);
- errorDesc = "ArgumentOutOfRangeException is not thrown as expected";
- TestLibrary.TestFramework.LogError("011" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe character is \\u{0:x}", str[index]);
- TestLibrary.TestFramework.LogError("012" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// Char.IsNumber(Char)
-/// Indicates whether the specified Unicode character is categorized as a number.
-/// </summary>
-public class CharIsNumber
-{
- private static readonly char[] r_decimalDigits =
- {
- '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'
- };
-
- public static int Main()
- {
- CharIsNumber testObj = new CharIsNumber();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.IsNumber(Char)");
- 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 Positive tests
- public bool PosTest1()
- {
- //Generate the character for validate
- int index = TestLibrary.Generator.GetInt32(-55) % r_decimalDigits.Length;
- char ch = r_decimalDigits[index];
-
- return this.DoTest("PosTest1: Number character",
- "P001", "001", "002", ch, true);
- }
-
- public bool PosTest2()
- {
- //Generate a non character for validate
- char ch = 'A';
- return this.DoTest("PosTest2: Non-number character.",
- "P002", "003", "004", ch, false);
- }
-
- #endregion
-
- #region Helper method for positive tests
- private bool DoTest(string testDesc,
- string testId,
- string errorNum1,
- string errorNum2,
- char ch,
- bool expectedResult)
- {
- bool retVal = true;
- string errorDesc;
-
- TestLibrary.TestFramework.BeginScenario(testDesc);
- try
- {
- bool actualResult = char.IsNumber(ch);
- if (expectedResult != actualResult)
- {
- if (expectedResult)
- {
- errorDesc = string.Format("Character \\u{0:x} should belong to number.", (int)ch);
- }
- else
- {
- errorDesc = string.Format("Character \\u{0:x} does not belong to number.", (int)ch);
- }
-
- TestLibrary.TestFramework.LogError(errorNum1 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nCharacter is \\u{0:x}", ch);
- TestLibrary.TestFramework.LogError(errorNum2 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// char.IsNumber(string, int)
-/// Indicates whether the character at the specified position in a specified string is categorized
-/// as a number.
-/// </summary>
-public class CharIsNumber
-{
- private const int c_MIN_STR_LEN = 2;
- private const int c_MAX_STR_LEN = 256;
-
- private static readonly char[] r_decimalDigits =
- {
- '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'
- };
-
- public static int Main()
- {
- CharIsNumber testObj = new CharIsNumber();
-
- TestLibrary.TestFramework.BeginTestCase("for method: char.IsNumber(string, int)");
- 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("[Negaitive]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
-
- return retVal;
- }
-
- #region Positive tests
- public bool PosTest1()
- {
- //Generate the character for validate
- int index = TestLibrary.Generator.GetInt32(-55) % r_decimalDigits.Length;
- char ch = r_decimalDigits[index];
-
- return this.DoTest("PosTest1: Number character",
- "P001", "001", "002", ch, true);
- }
-
- public bool PosTest2()
- {
- //Generate a non character for validate
- char ch = 'A';
- return this.DoTest("PosTest2: Non-number character.",
- "P002", "003", "004", ch, false);
- }
-
- #endregion
-
- #region Helper method for positive tests
- private bool DoTest(string testDesc,
- string testId,
- string errorNum1,
- string errorNum2,
- char ch,
- bool expectedResult)
- {
- bool retVal = true;
- string errorDesc;
-
- TestLibrary.TestFramework.BeginScenario(testDesc);
- try
- {
- string str = new string(ch, 1);
- bool actualResult = char.IsNumber(str, 0);
- if (expectedResult != actualResult)
- {
- if (expectedResult)
- {
- errorDesc = string.Format("Character \\u{0:x} should belong to number.", (int)ch);
- }
- else
- {
- errorDesc = string.Format("Character \\u{0:x} does not belong to number.", (int)ch);
- }
-
- TestLibrary.TestFramework.LogError(errorNum1 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nCharacter is \\u{0:x}", ch);
- TestLibrary.TestFramework.LogError(errorNum2 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #region Negative tests
- //ArgumentNullException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N001";
- const string c_TEST_DESC = "NegTest1: String is a null reference (Nothing in Visual Basic).";
- string errorDesc;
-
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- index = TestLibrary.Generator.GetInt32(-55);
- char.IsNumber(null, index);
- errorDesc = "ArgumentNullException is not thrown as expected, index is " + index;
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentNullException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e + "\n Index is " + index;
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- //ArgumentOutOfRangeException
- public bool NegTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N002";
- const string c_TEST_DESC = "NegTest2: Index is too great.";
- string errorDesc;
-
- string str = string.Empty;
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LEN, c_MAX_STR_LEN);
- index = str.Length + TestLibrary.Generator.GetInt16(-55);
- index = str.Length;
- char.IsNumber(str, index);
- errorDesc = "ArgumentOutOfRangeException is not thrown as expected";
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe string is {0}, and the index is {1}", str, index);
- TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N003";
- const string c_TEST_DESC = "NegTest3: Index is a negative value";
- string errorDesc;
-
- string str = string.Empty;
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LEN, c_MAX_STR_LEN);
- index = -1 * (TestLibrary.Generator.GetInt16(-55));
- char.IsNumber(str, index);
- errorDesc = "ArgumentOutOfRangeException is not thrown as expected";
- TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe string is {0}, and the index is {1}", str, index);
- TestLibrary.TestFramework.LogError("010" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// char.IsPunctuation(string, int)
-/// Indicates whether the character at the specified position in a specified string is categorized
-/// as a punctuation.
-/// </summary>
-public class CharIsPunctuation
-{
- private const int c_MIN_STR_LEN = 2;
- private const int c_MAX_STR_LEN = 256;
-
- public static int Main()
- {
- CharIsPunctuation testObj = new CharIsPunctuation();
-
- TestLibrary.TestFramework.BeginTestCase("for method: char.IsPunctuation(string, int)");
- 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("[Negaitive]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
-
- return retVal;
- }
-
- #region Positive tests
- public bool PosTest1()
- {
- //Generate a character for validate
- char ch = '"';
-
- return this.DoTest("PosTest1: Punctuation character",
- "P001", "001", "002", ch, true);
- }
-
- public bool PosTest2()
- {
- //Generate a non punctuation character for validate
- char ch = 'A';
- return this.DoTest("PosTest2: Non-punctuation character.",
- "P002", "003", "004", ch, false);
- }
-
- #endregion
-
- #region Helper method for positive tests
- private bool DoTest(string testDesc,
- string testId,
- string errorNum1,
- string errorNum2,
- char ch,
- bool expectedResult)
- {
- bool retVal = true;
- string errorDesc;
-
- TestLibrary.TestFramework.BeginScenario(testDesc);
- try
- {
- string str = new string(ch ,1);
- bool actualResult = char.IsPunctuation(str, 0);
- if (expectedResult != actualResult)
- {
- if (expectedResult)
- {
- errorDesc = string.Format("Character \\u{0:x} should belong to punctuation.", (int)ch);
- }
- else
- {
- errorDesc = string.Format("Character \\u{0:x} does not belong to punctuation.", (int)ch);
- }
-
- TestLibrary.TestFramework.LogError(errorNum1 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nCharacter is \\u{0:x}", ch);
- TestLibrary.TestFramework.LogError(errorNum2 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #region Negative tests
- //ArgumentNullException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N001";
- const string c_TEST_DESC = "NegTest1: String is a null reference (Nothing in Visual Basic).";
- string errorDesc;
-
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- index = TestLibrary.Generator.GetInt32(-55);
- char.IsPunctuation(null, index);
- errorDesc = "ArgumentNullException is not thrown as expected, index is " + index;
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentNullException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e + "\n Index is " + index;
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- //ArgumentOutOfRangeException
- public bool NegTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N002";
- const string c_TEST_DESC = "NegTest2: Index is too great.";
- string errorDesc;
-
- string str = string.Empty;
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LEN, c_MAX_STR_LEN);
- index = str.Length + TestLibrary.Generator.GetInt16(-55);
- index = str.Length;
- char.IsPunctuation(str, index);
- errorDesc = "ArgumentOutOfRangeException is not thrown as expected";
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe string is {0}, and the index is {1}", str, index);
- TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N003";
- const string c_TEST_DESC = "NegTest3: Index is a negative value";
- string errorDesc;
-
- string str = string.Empty;
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LEN, c_MAX_STR_LEN);
- index = -1 * (TestLibrary.Generator.GetInt16(-55));
- char.IsPunctuation(str, index);
- errorDesc = "ArgumentOutOfRangeException is not thrown as expected";
- TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe string is {0}, and the index is {1}", str, index);
- TestLibrary.TestFramework.LogError("010" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// Char.IsSeparator(Char)
-/// Indicates whether the specified Unicode character is categorized as a separator.
-/// </summary>
-public class CharIsSeparator
-{
- public static int Main()
- {
- CharIsSeparator testObj = new CharIsSeparator();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.IsSeparator(Char)");
- 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 Positive tests
- public bool PosTest1()
- {
- //Generate the character for validate
- char ch = ' '; //space character
-
- return this.DoTest("PosTest1: Separator character",
- "P001", "001", "002", ch, true);
- }
-
- public bool PosTest2()
- {
- //Generate a non separator character for validate
- char ch = TestLibrary.Generator.GetCharLetter(-55);
- return this.DoTest("PosTest2: Non-separator character.",
- "P002", "003", "004", ch, false);
- }
-
- #endregion
-
- #region Helper method for positive tests
- private bool DoTest(string testDesc,
- string testId,
- string errorNum1,
- string errorNum2,
- char ch,
- bool expectedResult)
- {
- bool retVal = true;
- string errorDesc;
-
- TestLibrary.TestFramework.BeginScenario(testDesc);
- try
- {
- bool actualResult = char.IsSeparator(ch);
- if (expectedResult != actualResult)
- {
- if (expectedResult)
- {
- errorDesc = string.Format("Character \\u{0:x} should belong to separator.", (int)ch);
- }
- else
- {
- errorDesc = string.Format("Character \\u{0:x} does not belong to separator.", (int)ch);
- }
-
- TestLibrary.TestFramework.LogError(errorNum1 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nCharacter is \\u{0:x}", ch);
- TestLibrary.TestFramework.LogError(errorNum2 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// char.IsSeparator(string, int)
-/// Indicates whether the character at the specified position in a specified string is categorized
-/// as a separator.
-/// </summary>
-public class CharIsSeparator
-{
- private const int c_MIN_STR_LEN = 2;
- private const int c_MAX_STR_LEN = 256;
-
- public static int Main()
- {
- CharIsSeparator testObj = new CharIsSeparator();
-
- TestLibrary.TestFramework.BeginTestCase("for method: char.IsSeparator(string, int)");
- 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("[Negaitive]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
-
- return retVal;
- }
-
- #region Positive tests
- public bool PosTest1()
- {
- //Generate the character for validate
- char ch = ' '; //space character
-
- return this.DoTest("PosTest1: Separator character",
- "P001", "001", "002", ch, true);
- }
-
- public bool PosTest2()
- {
- //Generate a non separator character for validate
- char ch = TestLibrary.Generator.GetCharLetter(-55);
- return this.DoTest("PosTest2: Non-separator character.",
- "P002", "003", "004", ch, false);
- }
-
- #endregion
-
- #region Helper method for positive tests
- private bool DoTest(string testDesc,
- string testId,
- string errorNum1,
- string errorNum2,
- char ch,
- bool expectedResult)
- {
- bool retVal = true;
- string errorDesc;
-
- TestLibrary.TestFramework.BeginScenario(testDesc);
- try
- {
- string str = new string(ch, 1);
- bool actualResult = char.IsSeparator(str, 0);
- if (expectedResult != actualResult)
- {
- if (expectedResult)
- {
- errorDesc = string.Format("Character \\u{0:x} should belong to separator.", (int)ch);
- }
- else
- {
- errorDesc = string.Format("Character \\u{0:x} does not belong to separator.", (int)ch);
- }
-
- TestLibrary.TestFramework.LogError(errorNum1 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nCharacter is \\u{0:x}", ch);
- TestLibrary.TestFramework.LogError(errorNum2 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #region Negative tests
- //ArgumentNullException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N001";
- const string c_TEST_DESC = "NegTest1: String is a null reference (Nothing in Visual Basic).";
- string errorDesc;
-
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- index = TestLibrary.Generator.GetInt32(-55);
- char.IsSeparator(null, index);
- errorDesc = "ArgumentNullException is not thrown as expected, index is " + index;
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentNullException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e + "\n Index is " + index;
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- //ArgumentOutOfRangeException
- public bool NegTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N002";
- const string c_TEST_DESC = "NegTest2: Index is too great.";
- string errorDesc;
-
- string str = string.Empty;
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LEN, c_MAX_STR_LEN);
- index = str.Length + TestLibrary.Generator.GetInt16(-55);
- index = str.Length;
- char.IsSeparator(str, index);
- errorDesc = "ArgumentOutOfRangeException is not thrown as expected";
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe string is {0}, and the index is {1}", str, index);
- TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N003";
- const string c_TEST_DESC = "NegTest3: Index is a negative value";
- string errorDesc;
-
- string str = string.Empty;
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LEN, c_MAX_STR_LEN);
- index = -1 * (TestLibrary.Generator.GetInt16(-55));
- char.IsSeparator(str, index);
- errorDesc = "ArgumentOutOfRangeException is not thrown as expected";
- TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe string is {0}, and the index is {1}", str, index);
- TestLibrary.TestFramework.LogError("010" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// Char.IsSurrogate(Char)
-/// Indicates whether the specified Unicode character is categorized as a surrogate.
-/// </summary>
-public class CharIsSurrogate
-{
- private const char c_HIGH_SURROGATE_START = '\ud800';
- private const char c_HIGH_SURROGATE_END = '\udbff';
- private const char c_LOW_SURROGATE_START = '\udc00';
- private const char c_LOW_SURROGATE_END = '\udfff';
-
- public static int Main()
- {
- CharIsSurrogate testObj = new CharIsSurrogate();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.IsSurrogate(Char)");
- 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;
-
- return retVal;
- }
- #region Positive tests
- public bool PosTest1()
- {
- char ch;
- //Generate a low surrogate character for validate
- int count = (int)c_LOW_SURROGATE_END - (int)c_LOW_SURROGATE_START + 1;
- int offset = TestLibrary.Generator.GetInt32(-55) % count;
- ch = (char)((int)c_LOW_SURROGATE_START + offset);
-
- return this.DoTest("PosTest1: Low surrogate character",
- "P001", "001", "002", ch, true);
- }
-
- public bool PosTest2()
- {
- char ch;
- //Generate a hign surrogate character for validate
- int count = (int)c_HIGH_SURROGATE_END - (int)c_HIGH_SURROGATE_START + 1;
- int offset = TestLibrary.Generator.GetInt32(-55) % count;
- ch = (char)((int)c_HIGH_SURROGATE_START + offset);
-
- return this.DoTest("PosTest2: Hign surrogate character.",
- "P002", "003", "004", ch, true);
- }
-
- public bool PosTest3()
- {
- //Generate a non surrogate character for validate
- char ch = TestLibrary.Generator.GetCharLetter(-55);
- return this.DoTest("PosTest3: Non-surrogate character.",
- "P003", "005", "006", ch, false);
- }
-
- #endregion
-
- #region Helper method for positive tests
- private bool DoTest(string testDesc,
- string testId,
- string errorNum1,
- string errorNum2,
- char ch,
- bool expectedResult)
- {
- bool retVal = true;
- string errorDesc;
-
- TestLibrary.TestFramework.BeginScenario(testDesc);
- try
- {
- bool actualResult = char.IsSurrogate(ch);
- if (expectedResult != actualResult)
- {
- if (expectedResult)
- {
- errorDesc = string.Format("Character \\u{0:x} should belong to surrogate.", (int)ch);
- }
- else
- {
- errorDesc = string.Format("Character \\u{0:x} does not belong to surrogate.", (int)ch);
- }
-
- TestLibrary.TestFramework.LogError(errorNum1 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nCharacter is \\u{0:x}", ch);
- TestLibrary.TestFramework.LogError(errorNum2 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// Char.IsSurrogate(Char)
-/// Indicates whether the character at the specified position in a specified string is categorized
-/// as a surrogate.
-/// </summary>
-public class CharIsSurrogate
-{
- private const int c_MIN_STR_LEN = 2;
- private const int c_MAX_STR_LEN = 256;
-
- private const char c_HIGH_SURROGATE_START = '\ud800';
- private const char c_HIGH_SURROGATE_END = '\udbff';
- private const char c_LOW_SURROGATE_START = '\udc00';
- private const char c_LOW_SURROGATE_END = '\udfff';
-
- public static int Main()
- {
- CharIsSurrogate testObj = new CharIsSurrogate();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.IsSurrogate(Char)");
- 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;
-
- TestLibrary.TestFramework.LogInformation("[Negaitive]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
-
- return retVal;
- }
- #region Positive tests
- public bool PosTest1()
- {
-
- char ch;
- //Generate a low surrogate character for validate
- int count = (int)c_LOW_SURROGATE_END - (int)c_LOW_SURROGATE_START + 1;
- int offset = TestLibrary.Generator.GetInt32(-55) % count;
- ch = (char)((int)c_LOW_SURROGATE_START + offset);
-
- return this.DoTest("PosTest1: Low surrogate character",
- "P001", "001", "002", ch, true);
- }
-
- public bool PosTest2()
- {
- char ch;
- //Generate a hign surrogate character for validate
- int count = (int)c_HIGH_SURROGATE_END - (int)c_HIGH_SURROGATE_START + 1;
- int offset = TestLibrary.Generator.GetInt32(-55) % count;
- ch = (char)((int)c_HIGH_SURROGATE_START + offset);
-
- return this.DoTest("PosTest2: Hign surrogate character.",
- "P002", "003", "004", ch, true);
- }
-
- public bool PosTest3()
- {
- //Generate a non surrogate character for validate
- char ch = TestLibrary.Generator.GetCharLetter(-55);
- return this.DoTest("PosTest3: Non-surrogate character.",
- "P003", "005", "006", ch, false);
- }
-
- #endregion
-
- #region Helper method for positive tests
- private bool DoTest(string testDesc,
- string testId,
- string errorNum1,
- string errorNum2,
- char ch,
- bool expectedResult)
- {
- bool retVal = true;
- string errorDesc;
-
- TestLibrary.TestFramework.BeginScenario(testDesc);
- try
- {
- string str = new string(ch, 1);
- bool actualResult = char.IsSurrogate(str, 0);
- if (expectedResult != actualResult)
- {
- if (expectedResult)
- {
- errorDesc = string.Format("Character \\u{0:x} should belong to surrogate.", (int)ch);
- }
- else
- {
- errorDesc = string.Format("Character \\u{0:x} does not belong to surrogate.", (int)ch);
- }
-
- TestLibrary.TestFramework.LogError(errorNum1 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nCharacter is \\u{0:x}", ch);
- TestLibrary.TestFramework.LogError(errorNum2 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #region Negative tests
- //ArgumentNullException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N001";
- const string c_TEST_DESC = "NegTest1: String is a null reference (Nothing in Visual Basic).";
- string errorDesc;
-
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- index = TestLibrary.Generator.GetInt32(-55);
- char.IsSurrogate(null, index);
- errorDesc = "ArgumentNullException is not thrown as expected, index is " + index;
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentNullException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e + "\n Index is " + index;
- TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- //ArgumentOutOfRangeException
- public bool NegTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N002";
- const string c_TEST_DESC = "NegTest2: Index is too great.";
- string errorDesc;
-
- string str = string.Empty;
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LEN, c_MAX_STR_LEN);
- index = str.Length + TestLibrary.Generator.GetInt16(-55);
- index = str.Length;
- char.IsSurrogate(str, index);
- errorDesc = "ArgumentOutOfRangeException is not thrown as expected";
- TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe string is {0}, and the index is {1}", str, index);
- TestLibrary.TestFramework.LogError("010" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N003";
- const string c_TEST_DESC = "NegTest3: Index is a negative value";
- string errorDesc;
-
- string str = string.Empty;
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LEN, c_MAX_STR_LEN);
- index = -1 * (TestLibrary.Generator.GetInt16(-55));
- char.IsSurrogate(str, index);
- errorDesc = "ArgumentOutOfRangeException is not thrown as expected";
- TestLibrary.TestFramework.LogError("011" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe string is {0}, and the index is {1}", str, index);
- TestLibrary.TestFramework.LogError("012" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// Char.IsSurrogatePair(char, char)
-/// Note: This method is new in the .NET Framework version 2.0.
-/// Indicates whether the two specified Char objects form a surrogate pair.
-/// </summary>
-public class CharIsSurrogatePair
-{
- private const char c_HIGH_SURROGATE_START = '\ud800';
- private const char c_HIGH_SURROGATE_END = '\udbff';
- private const char c_LOW_SURROGATE_START = '\udc00';
- private const char c_LOW_SURROGATE_END = '\udfff';
-
- public static int Main()
- {
- CharIsSurrogatePair testObj = new CharIsSurrogatePair();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.IsSurrogatePair(Char, char)");
- 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 tests
- public bool PosTest1()
- {
- char chA;
- char chB;
- //Generate a high surrogate character for validate
- int count = (int)c_HIGH_SURROGATE_END - (int)c_HIGH_SURROGATE_START + 1;
- int offset = TestLibrary.Generator.GetInt32(-55) % count;
- chA = (char)((int)c_HIGH_SURROGATE_START + offset);
-
- //Generate a character not low surrogate for validate
- count = (int)c_LOW_SURROGATE_END - (int)c_LOW_SURROGATE_START + 1;
- offset = TestLibrary.Generator.GetInt32(-55) % count;
- chB = (char)((int)c_LOW_SURROGATE_START + offset);
-
- return this.DoTest("PosTest1: First character is high surrogate, and the second is low surrogate",
- "P001", "001", "002", chA, chB, true);
- }
-
- public bool PosTest2()
- {
- char chA;
- char chB;
- //Generate a high surrogate character for validate
- int count = (int)c_HIGH_SURROGATE_END - (int)c_HIGH_SURROGATE_START + 1;
- int offset = TestLibrary.Generator.GetInt32(-55) % count;
- chA = (char)((int)c_HIGH_SURROGATE_START + offset);
-
- //Generate a character not low surrogate for validate
- int i = TestLibrary.Generator.GetInt32(-55) & 0x00000001;
- if (0 == i)
- {
- chB = (char)(TestLibrary.Generator.GetInt32(-55) % ((int)c_LOW_SURROGATE_START));
- }
- else
- {
- chB = (char)((int)c_LOW_SURROGATE_END + 1 +
- TestLibrary.Generator.GetInt32(-55) % ((int)char.MaxValue - (int)c_LOW_SURROGATE_END));
- }
-
- return this.DoTest("PosTest2: First character is high surrogate, but the second is not low surrogate",
- "P002", "003", "004", chA, chB, false);
- }
-
- public bool PosTest3()
- {
- char chA;
- char chB;
- //Generate a character not high surrogate for validate
- int i = TestLibrary.Generator.GetInt32(-55) & 0x00000001;
- if (0 == i)
- {
- chA = (char)(TestLibrary.Generator.GetInt32(-55) % ((int)c_HIGH_SURROGATE_START));
- }
- else
- {
- chA = (char)((int)c_HIGH_SURROGATE_END + 1 +
- TestLibrary.Generator.GetInt32(-55) % ((int)char.MaxValue - (int)c_HIGH_SURROGATE_END));
- }
-
- //Generate a low surrogate character for validate
- int count = (int)c_LOW_SURROGATE_END - (int)c_LOW_SURROGATE_START + 1;
- int offset = TestLibrary.Generator.GetInt32(-55) % count;
- chB = (char)((int)c_LOW_SURROGATE_START + offset);
-
- return this.DoTest("PosTest2: Second character is low surrogate, but the first is not high surrogate",
- "P003", "005", "006", chA, chB, false);
- }
-
- public bool PosTest4()
- {
- char chA;
- char chB;
- //Generate a character not high surrogate for validate
- int i = TestLibrary.Generator.GetInt32(-55) & 0x00000001;
- if (0 == i)
- {
- chA = (char)(TestLibrary.Generator.GetInt32(-55) % ((int)c_HIGH_SURROGATE_START));
- }
- else
- {
- chA = (char)((int)c_HIGH_SURROGATE_END + 1 +
- TestLibrary.Generator.GetInt32(-55) % ((int)char.MaxValue - (int)c_HIGH_SURROGATE_END));
- }
-
- //Generate a character not low surrogate for validate
- i = TestLibrary.Generator.GetInt32(-55) & 0x00000001;
- if (0 == i)
- {
- chB = (char)(TestLibrary.Generator.GetInt32(-55) % ((int)c_LOW_SURROGATE_START));
- }
- else
- {
- chB = (char)((int)c_LOW_SURROGATE_END + 1 +
- TestLibrary.Generator.GetInt32(-55) % ((int)char.MaxValue - (int)c_LOW_SURROGATE_END));
- }
-
- return this.DoTest("PosTest2: Both the first character and the second are invalid",
- "P004", "007", "008", chA, chB, false);
- }
- #endregion
-
- #region Helper method for positive tests
- private bool DoTest(string testDesc,
- string testId,
- string errorNum1,
- string errorNum2,
- char chA,
- char chB,
- bool expectedResult)
- {
- bool retVal = true;
- string errorDesc;
-
- TestLibrary.TestFramework.BeginScenario(testDesc);
- try
- {
- bool actualResult = char.IsSurrogatePair(chA, chB);
- if (expectedResult != actualResult)
- {
- if (expectedResult)
- {
- errorDesc = string.Format("Character \\u{0:x} and \\u{1:x} should belong to surrogate pair.", (int)chA, (int)chB);
- }
- else
- {
- errorDesc = string.Format("Character \\u{0:x} and \\u{1:x} does not belong to surrogate pair.", (int)chA, (int)chB);
- }
-
- TestLibrary.TestFramework.LogError(errorNum1 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nCharacter is \\u{0:x} and \\u{1:x}", chA, chB);
- TestLibrary.TestFramework.LogError(errorNum2 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// Char.IsSurrogatePair(string, index)
-/// Note: This method is new in the .NET Framework version 2.0.
-/// Indicates whether two adjacent Char objects at a specified position in a string form a surrogate pair.
-/// </summary>
-public class CharIsSurrogatePair
-{
- private const int c_MIN_STR_LEN = 2;
- private const int c_MAX_STR_LEN = 256;
-
- private const char c_HIGH_SURROGATE_START = '\ud800';
- private const char c_HIGH_SURROGATE_END = '\udbff';
- private const char c_LOW_SURROGATE_START = '\udc00';
- private const char c_LOW_SURROGATE_END = '\udfff';
-
- public static int Main()
- {
- CharIsSurrogatePair testObj = new CharIsSurrogatePair();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.IsSurrogatePair(string, index)");
- 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;
-
- TestLibrary.TestFramework.LogInformation("[Negaitive]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
-
- return retVal;
- }
- #region Positive tests
- public bool PosTest1()
- {
- char chA;
- char chB;
- //Generate a high surrogate character for validate
- int count = (int)c_HIGH_SURROGATE_END - (int)c_HIGH_SURROGATE_START + 1;
- int offset = TestLibrary.Generator.GetInt32(-55) % count;
- chA = (char)((int)c_HIGH_SURROGATE_START + offset);
-
- //Generate a character not low surrogate for validate
- count = (int)c_LOW_SURROGATE_END - (int)c_LOW_SURROGATE_START + 1;
- offset = TestLibrary.Generator.GetInt32(-55) % count;
- chB = (char)((int)c_LOW_SURROGATE_START + offset);
-
- return this.DoTest("PosTest1: First character is high surrogate, and the second is low surrogate",
- "P001", "001", "002", chA, chB, true);
- }
-
- public bool PosTest2()
- {
- char chA;
- char chB;
- //Generate a high surrogate character for validate
- int count = (int)c_HIGH_SURROGATE_END - (int)c_HIGH_SURROGATE_START + 1;
- int offset = TestLibrary.Generator.GetInt32(-55) % count;
- chA = (char)((int)c_HIGH_SURROGATE_START + offset);
-
- //Generate a character not low surrogate for validate
- int i = TestLibrary.Generator.GetInt32(-55) & 0x00000001;
- if (0 == i)
- {
- chB = (char)(TestLibrary.Generator.GetInt32(-55) % ((int)c_LOW_SURROGATE_START));
- }
- else
- {
- chB = (char)((int)c_LOW_SURROGATE_END + 1 +
- TestLibrary.Generator.GetInt32(-55) % ((int)char.MaxValue - (int)c_LOW_SURROGATE_END));
- }
-
- return this.DoTest("PosTest2: First character is high surrogate, but the second is not low surrogate",
- "P002", "003", "004", chA, chB, false);
- }
-
- public bool PosTest3()
- {
- char chA;
- char chB;
- //Generate a character not high surrogate for validate
- int i = TestLibrary.Generator.GetInt32(-55) & 0x00000001;
- if (0 == i)
- {
- chA = (char)(TestLibrary.Generator.GetInt32(-55) % ((int)c_HIGH_SURROGATE_START));
- }
- else
- {
- chA = (char)((int)c_HIGH_SURROGATE_END + 1 +
- TestLibrary.Generator.GetInt32(-55) % ((int)char.MaxValue - (int)c_HIGH_SURROGATE_END));
- }
-
- //Generate a low surrogate character for validate
- int count = (int)c_LOW_SURROGATE_END - (int)c_LOW_SURROGATE_START + 1;
- int offset = TestLibrary.Generator.GetInt32(-55) % count;
- chB = (char)((int)c_LOW_SURROGATE_START + offset);
-
- return this.DoTest("PosTest2: Second character is low surrogate, but the first is not high surrogate",
- "P003", "005", "006", chA, chB, false);
- }
-
- public bool PosTest4()
- {
- char chA;
- char chB;
- //Generate a character not high surrogate for validate
- int i = TestLibrary.Generator.GetInt32(-55) & 0x00000001;
- if (0 == i)
- {
- chA = (char)(TestLibrary.Generator.GetInt32(-55) % ((int)c_HIGH_SURROGATE_START));
- }
- else
- {
- chA = (char)((int)c_HIGH_SURROGATE_END + 1 +
- TestLibrary.Generator.GetInt32(-55) % ((int)char.MaxValue - (int)c_HIGH_SURROGATE_END));
- }
-
- //Generate a character not low surrogate for validate
- i = TestLibrary.Generator.GetInt32(-55) & 0x00000001;
- if (0 == i)
- {
- chB = (char)(TestLibrary.Generator.GetInt32(-55) % ((int)c_LOW_SURROGATE_START));
- }
- else
- {
- chB = (char)((int)c_LOW_SURROGATE_END + 1 +
- TestLibrary.Generator.GetInt32(-55) % ((int)char.MaxValue - (int)c_LOW_SURROGATE_END));
- }
-
- return this.DoTest("PosTest2: Both the first character and the second are invalid",
- "P004", "007", "008", chA, chB, false);
- }
- #endregion
-
- #region Helper method for positive tests
- private bool DoTest(string testDesc,
- string testId,
- string errorNum1,
- string errorNum2,
- char chA,
- char chB,
- bool expectedResult)
- {
- bool retVal = true;
- string errorDesc;
-
- TestLibrary.TestFramework.BeginScenario(testDesc);
- try
- {
- string str = string.Empty + chA + chB;
- bool actualResult = char.IsSurrogatePair(str, 0);
- if (expectedResult != actualResult)
- {
- if (expectedResult)
- {
- errorDesc = string.Format("Character \\u{0:x} and \\u{1:x} should belong to surrogate pair.", (int)chA, (int)chB);
- }
- else
- {
- errorDesc = string.Format("Character \\u{0:x} and \\u{1:x} does not belong to surrogate pair.", (int)chA, (int)chB);
- }
-
- TestLibrary.TestFramework.LogError(errorNum1 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nCharacter is \\u{0:x} and \\u{1:x}", chA, chB);
- TestLibrary.TestFramework.LogError(errorNum2 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #region Negative tests
- //ArgumentNullException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N001";
- const string c_TEST_DESC = "NegTest1: String is a null reference (Nothing in Visual Basic).";
- string errorDesc;
-
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- index = TestLibrary.Generator.GetInt32(-55);
- char.IsPunctuation(null, index);
- errorDesc = "ArgumentNullException is not thrown as expected, index is " + index;
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentNullException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e + "\n Index is " + index;
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- //ArgumentOutOfRangeException
- public bool NegTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N002";
- const string c_TEST_DESC = "NegTest2: Index is too great.";
- string errorDesc;
-
- string str = string.Empty;
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LEN, c_MAX_STR_LEN);
- index = str.Length + TestLibrary.Generator.GetInt16(-55);
- index = str.Length;
- char.IsPunctuation(str, index);
- errorDesc = "ArgumentOutOfRangeException is not thrown as expected";
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe string is {0}, and the index is {1}", str, index);
- TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N003";
- const string c_TEST_DESC = "NegTest3: Index is a negative value";
- string errorDesc;
-
- string str = string.Empty;
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LEN, c_MAX_STR_LEN);
- index = -1 * (TestLibrary.Generator.GetInt16(-55));
- char.IsPunctuation(str, index);
- errorDesc = "ArgumentOutOfRangeException is not thrown as expected";
- TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe string is {0}, and the index is {1}", str, index);
- TestLibrary.TestFramework.LogError("010" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// Char.IsSymbol(Char)
-/// Indicates whether the specified Unicode character is categorized as a symbol.
-/// </summary>
-public class CharIsSymbol
-{
- public static int Main()
- {
- CharIsSymbol testObj = new CharIsSymbol();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.IsSymbol(Char)");
- 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 Positive tests
- public bool PosTest1()
- {
- //Generate the character for validate
- char ch = '+';
-
- return this.DoTest("PosTest1: Symbol character",
- "P001", "001", "002", ch, true);
- }
-
- public bool PosTest2()
- {
- //Generate a non separator character for validate
- char ch = TestLibrary.Generator.GetCharLetter(-55);
- return this.DoTest("PosTest2: Non-symbol character.",
- "P002", "003", "004", ch, false);
- }
-
- #endregion
-
- #region Helper method for positive tests
- private bool DoTest(string testDesc,
- string testId,
- string errorNum1,
- string errorNum2,
- char ch,
- bool expectedResult)
- {
- bool retVal = true;
- string errorDesc;
-
- TestLibrary.TestFramework.BeginScenario(testDesc);
- try
- {
- bool actualResult = char.IsSymbol(ch);
- if (expectedResult != actualResult)
- {
- if (expectedResult)
- {
- errorDesc = string.Format("Character \\u{0:x} should belong to symbol.", (int)ch);
- }
- else
- {
- errorDesc = string.Format("Character \\u{0:x} does not belong to symbol.", (int)ch);
- }
-
- TestLibrary.TestFramework.LogError(errorNum1 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nCharacter is \\u{0:x}", ch);
- TestLibrary.TestFramework.LogError(errorNum2 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// Char.IsUpper(Char)
-/// Indicates whether the specified Unicode character is categorized as a uppercase letter.
-/// </summary>
-public class CharIsUpper
-{
- public static int Main()
- {
- CharIsUpper testObj = new CharIsUpper();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.IsUpper(Char)");
- 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;
-
- return retVal;
- }
- #region Positive tests
- public bool PosTest1()
- {
- //Generate the character for validate
- char ch = 'a';
-
- return this.DoTest("PosTest1: Lowercase letter character",
- "P001", "001", "002", ch, false);
- }
-
- public bool PosTest2()
- {
- //Generate a non character for validate
- char ch = 'A';
- return this.DoTest("PosTest2: Uppercase letter character.",
- "P002", "003", "004", ch, true);
- }
-
- public bool PosTest3()
- {
- //Generate a non character for validate
- char ch = TestLibrary.Generator.GetCharNumber(-55);
- return this.DoTest("PosTest3: Non letter character.",
- "P003", "005", "006", ch, false);
- }
- #endregion
-
- #region Helper method for positive tests
- private bool DoTest(string testDesc,
- string testId,
- string errorNum1,
- string errorNum2,
- char ch,
- bool expectedResult)
- {
- bool retVal = true;
- string errorDesc;
-
- TestLibrary.TestFramework.BeginScenario(testDesc);
- try
- {
- bool actualResult = char.IsUpper(ch);
- if (expectedResult != actualResult)
- {
- if (expectedResult)
- {
- errorDesc = string.Format("Character \\u{0:x} should belong to uppercase letter characters.", (int)ch);
- }
- else
- {
- errorDesc = string.Format("Character \\u{0:x} does not belong to uppercase letter characters.", (int)ch);
- }
-
- TestLibrary.TestFramework.LogError(errorNum1+ " TestId-" + testId, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nCharacter is \\u{0:x}", ch);
- TestLibrary.TestFramework.LogError(errorNum2 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// char.IsUpper(string, int)
-/// Indicates whether the character at the specified position in a specified string is categorized
-/// as a uppercase letter character.
-/// </summary>
-public class CharIsUpper
-{
- private const int c_MIN_STR_LEN = 2;
- private const int c_MAX_STR_LEN = 256;
-
- public static int Main()
- {
- CharIsUpper testObj = new CharIsUpper();
-
- TestLibrary.TestFramework.BeginTestCase("for method: char.IsUpper(string, int)");
- 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;
-
- TestLibrary.TestFramework.LogInformation("[Negaitive]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
-
- return retVal;
- }
-
- #region Positive tests
- public bool PosTest1()
- {
- //Generate the character for validate
- char ch = 'a';
-
- return this.DoTest("PosTest1: Lowercase letter character",
- "P001", "001", "002", ch, false);
- }
-
- public bool PosTest2()
- {
- //Generate a non character for validate
- char ch = 'A';
- return this.DoTest("PosTest2: Uppercase letter character.",
- "P002", "003", "004", ch, true);
- }
-
- public bool PosTest3()
- {
- //Generate a non character for validate
- char ch = TestLibrary.Generator.GetCharNumber(-55);
- return this.DoTest("PosTest3: Non letter character.",
- "P003", "005", "006", ch, false);
- }
- #endregion
-
- #region Helper method for positive tests
- private bool DoTest(string testDesc,
- string testId,
- string errorNum1,
- string errorNum2,
- char ch,
- bool expectedResult)
- {
- bool retVal = true;
- string errorDesc;
-
- TestLibrary.TestFramework.BeginScenario(testDesc);
- try
- {
- bool actualResult = char.IsUpper(ch);
- if (expectedResult != actualResult)
- {
- if (expectedResult)
- {
- errorDesc = string.Format("Character \\u{0:x} should belong to uppercase letter characters.", (int)ch);
- }
- else
- {
- errorDesc = string.Format("Character \\u{0:x} does not belong to uppercase letter characters.", (int)ch);
- }
-
- TestLibrary.TestFramework.LogError(errorNum1 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nCharacter is \\u{0:x}", ch);
- TestLibrary.TestFramework.LogError(errorNum2 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #region Negative tests
- //ArgumentNullException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N001";
- const string c_TEST_DESC = "NegTest1: String is a null reference (Nothing in Visual Basic).";
- string errorDesc;
-
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- index = TestLibrary.Generator.GetInt32(-55);
- char.IsUpper(null, index);
- errorDesc = "ArgumentNullException is not thrown as expected, index is " + index;
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentNullException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e + "\n Index is " + index;
- TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- //ArgumentOutOfRangeException
- public bool NegTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N002";
- const string c_TEST_DESC = "NegTest2: Index is too great.";
- string errorDesc;
-
- string str = string.Empty;
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LEN, c_MAX_STR_LEN);
- index = str.Length + TestLibrary.Generator.GetInt16(-55);
- index = str.Length;
- char.IsUpper(str, index);
- errorDesc = "ArgumentOutOfRangeException is not thrown as expected";
- TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe string is {0}, and the index is {1}", str, index);
- TestLibrary.TestFramework.LogError("010" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N003";
- const string c_TEST_DESC = "NegTest3: Index is a negative value";
- string errorDesc;
-
- string str = string.Empty;
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LEN, c_MAX_STR_LEN);
- index = -1 * (TestLibrary.Generator.GetInt16(-55));
- char.IsUpper(str, index);
- errorDesc = "ArgumentOutOfRangeException is not thrown as expected";
- TestLibrary.TestFramework.LogError("011" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe string is {0}, and the index is {1}", str, index);
- TestLibrary.TestFramework.LogError("012" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// Char.IsWhiteSpace(Char)
-/// Indicates whether the specified Unicode character is categorized as a whitespace.
-/// </summary>
-public class CharIsWhiteSpace
-{
- private static readonly char[] r_whiteSpaceChars =
- {
- (char)0x0009, (char)0x000A, (char)0x000B, (char)0x000C, (char)0x000D,
- (char)0x0020,
- (char)0x0085, (char)0x00A0,
- (char)0x1680, (char)0x180E, //compatibility with desktop
- (char)0x2000, (char)0x2001, (char)0x2002, (char)0x2003, (char)0x2004, (char)0x2005,
- (char)0x2006, (char)0x2007, (char)0x2008, (char)0x2009, (char)0x200A, //(char)0x200B,
- (char)0x2028, (char)0x2029,
- (char)0x202F, (char)0x205F, //compatibility with desktop
- (char)0x3000, //(char)0xFEFF
- };
-
- public static int Main()
- {
- CharIsWhiteSpace testObj = new CharIsWhiteSpace();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.IsWhiteSpace(Char)");
- 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 Positive tests
- public bool PosTest1()
- {
- //Generate the character for validate
- int index = TestLibrary.Generator.GetInt32(-55) % r_whiteSpaceChars.Length;
- char ch = r_whiteSpaceChars[index];
-
- return this.DoTest("PosTest1: Whitespace character",
- "P001", "001", "002", ch, true);
- }
-
- public bool PosTest2()
- {
- //Generate a non separator character for validate
- char ch = TestLibrary.Generator.GetCharLetter(-55);
- return this.DoTest("PosTest2: Non-whitespace character.",
- "P002", "003", "004", ch, false);
- }
-
- #endregion
-
- #region Helper method for positive tests
- private bool DoTest(string testDesc,
- string testId,
- string errorNum1,
- string errorNum2,
- char ch,
- bool expectedResult)
- {
- bool retVal = true;
- string errorDesc;
-
- TestLibrary.TestFramework.BeginScenario(testDesc);
- try
- {
- bool actualResult = char.IsWhiteSpace(ch);
- if (expectedResult != actualResult)
- {
- if (expectedResult)
- {
- errorDesc = string.Format("Character \\u{0:x} should belong to whitespace.", (int)ch);
- }
- else
- {
- errorDesc = string.Format("Character \\u{0:x} does not belong to whitespace.", (int)ch);
- }
-
- TestLibrary.TestFramework.LogError(errorNum1 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nCharacter is \\u{0:x}", ch);
- TestLibrary.TestFramework.LogError(errorNum2 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// Char.IsWhiteSpace(string, int)
-/// Indicates whether the character at specifed position in a specified string is categorized
-/// as a whitespace.
-/// </summary>
-public class CharIsWhiteSpace
-{
- private const int c_MIN_STR_LEN = 2;
- private const int c_MAX_STR_LEN = 256;
-
- private static readonly char[] r_whiteSpaceChars =
- {
- (char)0x0009, (char)0x000A, (char)0x000B, (char)0x000C, (char)0x000D,
- (char)0x0020,
- (char)0x0085, (char)0x00A0,
- (char)0x1680, (char)0x180E, //compatibility with desktop
- (char)0x2000, (char)0x2001, (char)0x2002, (char)0x2003, (char)0x2004, (char)0x2005,
- (char)0x2006, (char)0x2007, (char)0x2008, (char)0x2009, (char)0x200A, //(char)0x200B,
- (char)0x2028, (char)0x2029,
- (char)0x202F, (char)0x205F, //compatibility with desktop
- (char)0x3000, //(char)0xFEFF
- };
-
- public static int Main()
- {
- CharIsWhiteSpace testObj = new CharIsWhiteSpace();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.IsWhiteSpace(string ,int)");
- 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;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
-
- return retVal;
- }
- #region Positive tests
- public bool PosTest1()
- {
- //Generate the character for validate
- int index = TestLibrary.Generator.GetInt32(-55) % r_whiteSpaceChars.Length;
- char ch = r_whiteSpaceChars[index];
-
- return this.DoTest("PosTest1: Whitespace character",
- "P001", "001", "002", ch, true);
- }
-
- public bool PosTest2()
- {
- //Generate a non separator character for validate
- char ch = TestLibrary.Generator.GetCharLetter(-55);
- return this.DoTest("PosTest2: Non-whitespace character.",
- "P002", "003", "004", ch, false);
- }
-
- #endregion
-
- #region Helper method for positive tests
- private bool DoTest(string testDesc,
- string testId,
- string errorNum1,
- string errorNum2,
- char ch,
- bool expectedResult)
- {
- bool retVal = true;
- string errorDesc;
-
- TestLibrary.TestFramework.BeginScenario(testDesc);
- try
- {
- string str = new string(ch, 1);
- bool actualResult = char.IsWhiteSpace(str, 0);
- if (expectedResult != actualResult)
- {
- if (expectedResult)
- {
- errorDesc = string.Format("Character \\u{0:x} should belong to whitespace.", (int)ch);
- }
- else
- {
- errorDesc = string.Format("Character \\u{0:x} does not belong to whitespace.", (int)ch);
- }
-
- TestLibrary.TestFramework.LogError(errorNum1 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nCharacter is \\u{0:x}", ch);
- TestLibrary.TestFramework.LogError(errorNum2 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #region Negative tests
- //ArgumentNullException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N001";
- const string c_TEST_DESC = "NegTest1: String is a null reference (Nothing in Visual Basic).";
- string errorDesc;
-
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- index = TestLibrary.Generator.GetInt32(-55);
- char.IsWhiteSpace(null, index);
- errorDesc = "ArgumentNullException is not thrown as expected, index is " + index;
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentNullException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e + "\n Index is " + index;
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- //ArgumentOutOfRangeException
- public bool NegTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N002";
- const string c_TEST_DESC = "NegTest2: Index is too great.";
- string errorDesc;
-
- string str = string.Empty;
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LEN, c_MAX_STR_LEN);
- index = str.Length + TestLibrary.Generator.GetInt16(-55);
- index = str.Length;
- char.IsWhiteSpace(str, index);
- errorDesc = "ArgumentOutOfRangeException is not thrown as expected";
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe string is {0}, and the index is {1}", str, index);
- TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N003";
- const string c_TEST_DESC = "NegTest3: Index is a negative value";
- string errorDesc;
-
- string str = string.Empty;
- int index = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LEN, c_MAX_STR_LEN);
- index = -1 * (TestLibrary.Generator.GetInt16(-55));
- char.IsWhiteSpace(str, index);
- errorDesc = "ArgumentOutOfRangeException is not thrown as expected";
- TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe string is {0}, and the index is {1}", str, index);
- TestLibrary.TestFramework.LogError("010" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// Char.MaxValue Field
-/// Represents the largest possible value of a Char. This field is constant.
-/// </summary>
-public class CharMaxValue
-{
- public static int Main()
- {
- CharMaxValue testObj = new CharMaxValue();
-
- TestLibrary.TestFramework.BeginTestCase("for field: Char.MaxValue");
- 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;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P001";
- const string c_TEST_DESC = "PosTest1: ";
- string errorDesc;
-
- const char c_MAX_CHAR = '\uFFFF';
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- char actualChar = char.MaxValue;
- if (actualChar != c_MAX_CHAR)
- {
- errorDesc = "Field char.MaxValue is not " + c_MAX_CHAR + " as expected: Actual(" + actualChar + ")";
- 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;
- }
-}
-
+++ /dev/null
-// 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>
-/// Char.MinValue Field
-/// Represents the largest possible value of a Char. This field is constant.
-/// </summary>
-public class CharMinValue
-{
- public static int Main()
- {
- CharMinValue testObj = new CharMinValue();
-
- TestLibrary.TestFramework.BeginTestCase("for field: Char.MinValue");
- 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;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P001";
- const string c_TEST_DESC = "PosTest1: ";
- string errorDesc;
-
- const char c_MIN_CHAR = '\u0000';
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- char actualChar = char.MinValue;
- if (actualChar != c_MIN_CHAR)
- {
- errorDesc = "Field char.MinValue is not " + c_MIN_CHAR + " as expected: Actual(" + actualChar + ")";
- 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;
- }
-}
-
+++ /dev/null
-// 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>
-/// Char.ToString()
-/// Converts the value of this instance to its equivalent string representation.
-/// </summary>
-public class CharToString
-{
- public static int Main()
- {
- CharToString testObj = new CharToString();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.ToString()");
- 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;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P001";
- const string c_TEST_DESC = "PosTest1: Random character";
- string errorDesc;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- char ch = TestLibrary.Generator.GetChar(-55);
- string expectedStr = new string(ch, 1);
- string actualStr = ch.ToString();
- if (actualStr != expectedStr)
- {
- errorDesc = string.Format("String representation of character \\u{0:x} is not the value ", (int)ch);
- errorDesc += string.Format("{0} as expected: actual({1})", expectedStr, actualStr);
- 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;
- }
-}
-
+++ /dev/null
-// 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>
-/// Char.ToString(char)
-/// Converts the value of this instance to its equivalent string representation.
-/// </summary>
-public class CharToString
-{
- public static int Main()
- {
- CharToString testObj = new CharToString();
-
- TestLibrary.TestFramework.BeginTestCase("for method: Char.ToString(char)");
- 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;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P001";
- const string c_TEST_DESC = "PosTest1: Random character";
- string errorDesc;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- char ch = TestLibrary.Generator.GetChar(-55);
- string expectedStr = new string(ch, 1);
- string actualStr = char.ToString(ch);
- if (actualStr != expectedStr)
- {
- errorDesc = string.Format("String representation of character \\u{0:x} is not the value ", (int)ch);
- errorDesc += string.Format("{0} as expected: actual({1})", expectedStr, actualStr);
- 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;
- }
-}
-
+++ /dev/null
-<?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="charenumeratorcurrent.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>
-
+++ /dev/null
-<?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="charenumeratorienumeratorcurrent.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>
-
+++ /dev/null
-<?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="charenumeratorienumgetcurrent.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>
-
+++ /dev/null
-<?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="charenumeratormovenext.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>
-
+++ /dev/null
-<?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="charenumeratorreset.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>
-
+++ /dev/null
-// 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 CharEnumeratorCurrent
-{
- const int minLength = 1;
- const int maxLength = 10;
-
- public static int Main(string[] args)
- {
- CharEnumeratorCurrent ceCurrent = new CharEnumeratorCurrent();
- TestLibrary.TestFramework.BeginScenario("Testing System.CharEnumerator.Current property...");
-
- if (ceCurrent.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;
- String str = TestLibrary.Generator.GetString(-55, true, minLength, maxLength);
- TestLibrary.TestFramework.BeginScenario("Check the current show the correct element when index is valid...");
- char[] strCopy = new char[str.Length];
- str.CopyTo(0, strCopy, 0, str.Length);
-
- try
- {
- IEnumerator<Char> charEnu = ((IEnumerable<Char>)str).GetEnumerator();
- charEnu.Reset();
- for (int i = 0; i < str.Length; i++)
- {
- charEnu.MoveNext();
- if (charEnu.Current != strCopy[i])
- {
- TestLibrary.TestFramework.LogError("001", "Current show the wrong element when index is valid!!");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unecpected exception occurs :" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- /// <summary>
- /// Check Current element when index is -1
- /// </summary>
- /// <returns></returns>
- public bool NegTest1()
- {
- bool retVal = true;
- String str = TestLibrary.Generator.GetString(-55, true, minLength, maxLength);
- TestLibrary.TestFramework.BeginScenario("Check Current element when index is -1...");
- char[] strCopy = new char[str.Length];
- str.CopyTo(0, strCopy, 0, str.Length);
-
- try
- {
- IEnumerator<Char> charEnu = ((IEnumerable<Char>)str).GetEnumerator();
- charEnu.Reset();
- char charTest = charEnu.Current;
-
- TestLibrary.TestFramework.LogError("003", "No exception occurs!");
- retVal = false;
- }
- catch (InvalidOperationException)
- {
- TestLibrary.TestFramework.LogInformation("InvalidOperationException is throw after fetch current with -1 index!");
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- /// <summary>
- /// Check Current element when index is length+1
- /// </summary>
- /// <returns></returns>
- public bool NegTest2()
- {
- bool retVal = true;
- String str = TestLibrary.Generator.GetString(-55, true, minLength, maxLength);
- TestLibrary.TestFramework.BeginScenario("Check Current element when index is length+1...");
- char[] strCopy = new char[str.Length];
- str.CopyTo(0, strCopy, 0, str.Length);
-
- try
- {
- IEnumerator<Char> charEnu = ((IEnumerable<Char>)str).GetEnumerator();
- charEnu.Reset();
- for (int i = 0; i < str.Length; i++)
- {
- charEnu.MoveNext();
- if (charEnu.Current != strCopy[i])
- {
- TestLibrary.TestFramework.LogError("005", "Current show the wrong element!");
- retVal = false;
- }
- }
- charEnu.MoveNext();
- char charTest = charEnu.Current;
-
- TestLibrary.TestFramework.LogError("006", "No exception occurs when fetch current out of range!");
- retVal = false;
- }
- catch (InvalidOperationException)
- {
- TestLibrary.TestFramework.LogInformation("InvalidOperationException is thrown after fetch current out of range");
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("007", "Unexpected exception occurs: " + e);
- return retVal;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-// 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 CharEnumeratorIEnumeratorCurrent
-{
- const int minLength = 1;
- const int maxLength = 10;
-
- public static int Main(string[] args)
- {
- CharEnumeratorIEnumeratorCurrent ceIEnumCurrent =
- new CharEnumeratorIEnumeratorCurrent();
-
- TestLibrary.TestFramework.BeginScenario("System.CharEnumerator.IEnumerator.Current...");
-
- if (ceIEnumCurrent.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;
- String str = TestLibrary.Generator.GetString(-55, true, minLength, maxLength);
- TestLibrary.TestFramework.BeginScenario("Check IENumerator.Current show the correct element when index is valid...");
- char[] strCopy = new char[str.Length];
- str.CopyTo(0, strCopy, 0, str.Length);
-
- try
- {
- System.Collections.IEnumerator charIEnum = (System.Collections.IEnumerator)((System.Collections.IEnumerable)str).GetEnumerator();
- charIEnum.Reset();
- for (int i = 0; i < str.Length; i++)
- {
- charIEnum.MoveNext();
- if (!charIEnum.Current.Equals(strCopy[i]))
- {
- TestLibrary.TestFramework.LogError("001","IENumerator.Current show the wrong element when index is valid!");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unecpected exception occurs :" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest1()
- {
- bool retVal = true;
- String str = TestLibrary.Generator.GetString(-55, true, minLength, maxLength);
- TestLibrary.TestFramework.BeginScenario("Check the first index...");
- char[] strCopy = new char[str.Length];
- str.CopyTo(0, strCopy, 0, str.Length);
-
- try
- {
- System.Collections.IEnumerator charIEnum = (System.Collections.IEnumerator)((System.Collections.IEnumerable)str).GetEnumerator();
- charIEnum.Reset();
- char charTest = (char)charIEnum.Current;
-
- TestLibrary.TestFramework.LogError("003", "No exception occurs!");
- retVal = false;
- }
- catch (InvalidOperationException)
- {
- TestLibrary.TestFramework.LogInformation("InvalidOperationException is throw after fetch IEnumerator.Current with -1 index!");
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
- String str = TestLibrary.Generator.GetString(-55, true, minLength, maxLength);
- TestLibrary.TestFramework.BeginScenario("Check the last index...");
- char[] strCopy = new char[str.Length];
- str.CopyTo(0, strCopy, 0, str.Length);
-
- try
- {
- System.Collections.IEnumerator charIEnum = (System.Collections.IEnumerator)((System.Collections.IEnumerable)str).GetEnumerator();
- charIEnum.Reset();
- for (int i = 0; i < str.Length; i++)
- {
- charIEnum.MoveNext();
- if (!charIEnum.Current.Equals(strCopy[i]))
- {
- TestLibrary.TestFramework.LogError("005", "IEnumerator.Current show the wrong element!");
- retVal = false;
- }
- }
- charIEnum.MoveNext();
- char charTest = (char)charIEnum.Current;
-
- TestLibrary.TestFramework.LogError("006", "No exception occurs when fetch IEnumerator.Current out of range!");
- retVal = false;
- }
- catch (InvalidOperationException)
- {
- TestLibrary.TestFramework.LogInformation("InvalidOperationException is thrown after fetch IEnumerator.Current out of range");
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("007", "Unexpected exception occurs: " + e);
- return retVal;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-// 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>
-/// I have no ideas about the different between IEnumerator.Current and IEnumerator.get_Current
-/// </summary>
-public class CharEnumeratorIEnumgetCurrent
-{
- const int minLength = 1;
- const int maxLength = 10;
-
- public static int Main(string[] args)
- {
- CharEnumeratorIEnumgetCurrent ceIEumget_Current =
- new CharEnumeratorIEnumgetCurrent();
-
- TestLibrary.TestFramework.BeginScenario("System.CharEnumerator.IEnumerator.get_Current method...");
-
- if (ceIEumget_Current.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;
- String str = TestLibrary.Generator.GetString(-55, true, minLength, maxLength);
- TestLibrary.TestFramework.BeginScenario("Check IENumerator.get_Current show the correct element when index is valid...");
- char[] strCopy = new char[str.Length];
- str.CopyTo(0, strCopy, 0, str.Length);
-
- try
- {
- System.Collections.Generic.IEnumerator<Char> charIEnum = (System.Collections.Generic.IEnumerator<Char>)((System.Collections.Generic.IEnumerable<Char>)str).GetEnumerator();
- charIEnum.Reset();
-
- for (int i = 0; i < str.Length; i++)
- {
- charIEnum.MoveNext();
- if (!charIEnum.Current.Equals(strCopy[i]))
- {
- TestLibrary.TestFramework.LogError("001", "IENumerator.get_Current show the wrong element when index is valid!");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unecpected exception occurs :" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest1()
- {
- bool retVal = true;
- String str = TestLibrary.Generator.GetString(-55, true, minLength, maxLength);
- TestLibrary.TestFramework.BeginScenario("Check the first index...");
- char[] strCopy = new char[str.Length];
- str.CopyTo(0, strCopy, 0, str.Length);
-
- try
- {
- System.Collections.Generic.IEnumerator<Char> charIEnum = (System.Collections.Generic.IEnumerator<Char>)((System.Collections.Generic.IEnumerable<Char>)str).GetEnumerator();
- charIEnum.Reset();
- char charTest = (char)charIEnum.Current;
-
- TestLibrary.TestFramework.LogError("003", "No exception occurs!");
- retVal = false;
- }
- catch (InvalidOperationException)
- {
- TestLibrary.TestFramework.LogInformation("InvalidOperationException is throw after fetch IEnumerator.get_Current with -1 index!");
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
- String str = TestLibrary.Generator.GetString(-55, true, minLength, maxLength);
- TestLibrary.TestFramework.BeginScenario("Check the last index...");
- char[] strCopy = new char[str.Length];
- str.CopyTo(0, strCopy, 0, str.Length);
-
- try
- {
- System.Collections.Generic.IEnumerator<Char> charIEnum = (System.Collections.Generic.IEnumerator<Char>)((System.Collections.Generic.IEnumerable<Char>)str).GetEnumerator();
- charIEnum.Reset();
- for (int i = 0; i < str.Length; i++)
- {
- charIEnum.MoveNext();
- if (!charIEnum.Current.Equals(strCopy[i]))
- {
- TestLibrary.TestFramework.LogError("005", "IEnumerator.get_Current show the wrong element!");
- retVal = false;
- }
- }
- charIEnum.MoveNext();
- char charTest = (char)charIEnum.Current;
-
- TestLibrary.TestFramework.LogError("006", "No exception occurs when fetch IEnumerator.Current out of range!");
- retVal = false;
- }
- catch (InvalidOperationException)
- {
- TestLibrary.TestFramework.LogInformation("InvalidOperationException is thrown after fetch IEnumerator.Current out of range");
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("007", "Unexpected exception occurs: " + e);
- return retVal;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-// 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 CharEnumeratorMoveNext
-{
- const int minLength = 1;
- const int maxLength = 10;
-
- public static int Main(string[] args)
- {
- CharEnumeratorMoveNext ceMove = new CharEnumeratorMoveNext();
- TestLibrary.TestFramework.BeginScenario("Testing CharEnumerator.MoveNext method...");
-
- if (ceMove.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;
- String str = TestLibrary.Generator.GetString(-55, true, minLength, maxLength);
- TestLibrary.TestFramework.BeginScenario("Check MoveNext method return valid value...");
-
- try
- {
- IEnumerator<Char> charEnu = ((IEnumerable<Char>)str).GetEnumerator();
- for (int i = 0; i < str.Length; i++)
- {
- if (!charEnu.MoveNext())
- {
- TestLibrary.TestFramework.LogError("001", "MoveNext method does not return a valid value when index within range!");
- retVal = false;
- }
- }
-
- if (charEnu.MoveNext())
- {
- TestLibrary.TestFramework.LogError("002", "MoveNext should return false when index is out of range!");
- 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("Check MoveNext method could pass the correct index...");
- String str = TestLibrary.Generator.GetString(-55, true, minLength, maxLength);
- char[] strCopy = new char[str.Length];
- str.CopyTo(0, strCopy, 0, str.Length);
-
- try
- {
- IEnumerator<Char> charEnu = ((IEnumerable<Char>)str).GetEnumerator();
- for (int i = 0; i < str.Length; i++)
- {
- charEnu.MoveNext();
- if (charEnu.Current != strCopy[i])
- {
- TestLibrary.TestFramework.LogError("004", "MoveNext method does not navigate to correct index!");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("005", "Unexpected exception occurs :" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- /// <summary>
- /// New added scenario: Execute MoveNext method for several times after index to to max+1,verify it always return false
- /// </summary>
- /// <returns></returns>
- public bool PosTest3()
- {
- bool retVal = true;
- String str = TestLibrary.Generator.GetString(-55, true, minLength, maxLength);
- TestLibrary.TestFramework.BeginScenario("Check MoveNext method return valid value...");
-
- try
- {
- IEnumerator<Char> charEnu = ((IEnumerable<Char>)str).GetEnumerator();
- for (int i = 0; i < str.Length; i++)
- {
- if (!charEnu.MoveNext())
- {
- TestLibrary.TestFramework.LogError("001", "MoveNext method does not return a valid value when index within range!");
- retVal = false;
- }
- }
-
- //Execute MoveNext method for several times after index to to max+1,verify it always return false
- for (int j = 0; j < str.Length; j++)
- {
- if (charEnu.MoveNext())
- {
- TestLibrary.TestFramework.LogError("001", "MoveNext method does not return a valid value when index within range!");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-// 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 CharEnumeratorReset
-{
- const int minLength = 1;
- const int maxLength = 10;
-
- public static int Main(string[] args)
- {
- CharEnumeratorReset ceReset = new CharEnumeratorReset();
- TestLibrary.TestFramework.BeginScenario("Testing System.CharEnumerator.Reset method...");
-
- if (ceReset.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;
- String str = TestLibrary.Generator.GetString(-55, true, minLength, maxLength);
- TestLibrary.TestFramework.BeginScenario("Check the index point to the right position after execute reset method...");
- char[] strCopy = new char[str.Length];
- str.CopyTo(0, strCopy, 0, str.Length);
-
- try
- {
- IEnumerator<Char> charEnu = ((IEnumerable<Char>)str).GetEnumerator();
- charEnu.Reset();
- for (int i = 0; i < str.Length; i++)
- {
- charEnu.MoveNext();
- if (charEnu.Current != strCopy[i])
- {
- TestLibrary.TestFramework.LogError("001", "Reset method can't nevigate to the correct position!");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unecpected exception occurs :" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- /// <summary>
- /// new added scenario: Check the index point to the right position when index is not at beginning and then execute reset method...
- /// </summary>
- /// <returns></returns>
- public bool PosTest2()
- {
- bool retVal = true;
- String str = TestLibrary.Generator.GetString(-55, true, minLength, maxLength);
- TestLibrary.TestFramework.BeginScenario("Check the index point to the right position when index is not at beginning and then execute reset method...");
- char[] strCopy = new char[str.Length];
- str.CopyTo(0, strCopy, 0, str.Length);
-
- try
- {
- IEnumerator<Char> charEnu = ((IEnumerable<Char>)str).GetEnumerator();
- for (int i = 0; i < str.Length; i++)
- {
- charEnu.MoveNext();
- if (charEnu.Current != strCopy[i])
- {
- TestLibrary.TestFramework.LogError("008", "Reset method can't nevigate to the correct position!");
- retVal = false;
- }
- }
- charEnu.Reset();
- for (int i = 0; i < str.Length; i++)
- {
- charEnu.MoveNext();
- if (charEnu.Current != strCopy[i])
- {
- TestLibrary.TestFramework.LogError("009", "Reset method can't nevigate to the correct position!");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unecpected exception occurs :" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest1()
- {
- bool retVal = true;
- String str = TestLibrary.Generator.GetString(-55, true, minLength, maxLength);
- TestLibrary.TestFramework.BeginScenario("Check the first index after execute reset method...");
- char[] strCopy = new char[str.Length];
- str.CopyTo(0, strCopy, 0, str.Length);
-
- try
- {
- IEnumerator<Char> charEnu = ((IEnumerable<Char>)str).GetEnumerator();
- charEnu.Reset();
- char charTest = charEnu.Current;
-
- TestLibrary.TestFramework.LogError("003", "No exception occurs!");
- retVal = false;
- }
- catch (InvalidOperationException)
- {
- TestLibrary.TestFramework.LogInformation("InvalidOperationException is throw after fetch current with -1 index!");
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
- String str = TestLibrary.Generator.GetString(-55, true, minLength, maxLength);
- TestLibrary.TestFramework.BeginScenario("Check the last index after traverse the whole enumerator...");
- char[] strCopy = new char[str.Length];
- str.CopyTo(0, strCopy, 0, str.Length);
-
- try
- {
- IEnumerator<Char> charEnu = ((IEnumerable<Char>)str).GetEnumerator();
- charEnu.Reset();
- for (int i = 0; i < str.Length; i++)
- {
- charEnu.MoveNext();
- if (charEnu.Current != strCopy[i])
- {
- TestLibrary.TestFramework.LogError("005", "Reset method can't nevigate to the correct position!");
- retVal = false;
- }
- }
- charEnu.MoveNext();
- char charTest = charEnu.Current;
-
- TestLibrary.TestFramework.LogError("006", "No exception occurs when fetch current out of range!");
- retVal = false;
- }
- catch (InvalidOperationException)
- {
- TestLibrary.TestFramework.LogInformation("InvalidOperationException is thrown after fetch current out of range");
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("007", "Unexpected exception occurs: " + e);
- return retVal;
- }
-
- return retVal;
- }
-}
-
+++ /dev/null
-<?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="decimafloor.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>
-
+++ /dev/null
-<?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="decimaladd.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>
-
+++ /dev/null
-<?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="decimalcompare.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>
-
+++ /dev/null
-<?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="decimalctor1.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>
-
+++ /dev/null
-<?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="decimalctor2.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>
-
+++ /dev/null
-<?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="decimalctor3.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>
-
+++ /dev/null
-<?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="decimalctor4.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>
-
+++ /dev/null
-<?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="decimalctor5.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>
-
+++ /dev/null
-<?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="decimalctor6.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>
-
+++ /dev/null
-<?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="decimalctor7.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>
-
+++ /dev/null
-<?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="decimalctor8.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>
-
+++ /dev/null
-<?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="decimaldivide.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>
-
+++ /dev/null
-<?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="decimalequals1.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>
-
+++ /dev/null
-<?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="decimalequals2.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>
-
+++ /dev/null
-<?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="decimalequals3.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>
-
+++ /dev/null
-<?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="decimalgetbits.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>
-
+++ /dev/null
-<?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="decimalmaxvalue.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>
-
+++ /dev/null
-<?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="decimalminvalue.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>
-
+++ /dev/null
-<?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="decimalminusone.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>
-
+++ /dev/null
-<?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="decimalmultiply.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>
-
+++ /dev/null
-<?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="decimalnegate.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>
-
+++ /dev/null
-<?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="decimalone.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>
-
+++ /dev/null
-<?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="decimalsubtract.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>
-
+++ /dev/null
-<?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="decimaltoboolean.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>
-
+++ /dev/null
-<?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="decimaltobyte.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>
-
+++ /dev/null
-<?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="decimaltobyte1.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>
-
+++ /dev/null
-<?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="decimaltochar.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>
-
+++ /dev/null
-<?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="decimaltodatetime.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>
-
+++ /dev/null
-<?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="decimaltodecimal.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>
-
+++ /dev/null
-<?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="decimaltodouble.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>
-
+++ /dev/null
-<?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="decimaltoint16.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>
-
+++ /dev/null
-<?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>
-
- <!-- Test unsupported outside of windows -->
- <TestUnsupportedOutsideWindows>true</TestUnsupportedOutsideWindows>
- <DisableProjectBuild Condition="'$(TargetsUnix)' == 'true'">true</DisableProjectBuild>
- </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="decimaltoint32.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>
-
+++ /dev/null
-<?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="decimaltoint64.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>
-
+++ /dev/null
-<?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="decimaltosbyte.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>
-
+++ /dev/null
-<?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="decimaltosingle.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>
-
+++ /dev/null
-<?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="decimaltostring1.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>
-
+++ /dev/null
-<?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="decimaltostring2.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>
-
+++ /dev/null
-<?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="decimaltostring3.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>
-
+++ /dev/null
-<?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="decimaltostring4.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>
-
+++ /dev/null
-<?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="decimaltouint16.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>
-
+++ /dev/null
-<?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="decimaltouint32.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>
-
+++ /dev/null
-<?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="decimaltouint64.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>
-
+++ /dev/null
-<?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="decimaltruncate.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>
-
+++ /dev/null
-<?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="decimalzero.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>
-
+++ /dev/null
-// 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;
-/// <summary>
-///Floor(System.Decimal)
-/// </summary>
-public class DecimaFloor
-{
- #region const
- private const int SEEDVALUE = 2;
- private const int EQUALVALUE = 1;
- private const int ZEROVALUE = 0;
- private const Double RAND_DOUBLE_POSITIVE = 101.111;
- private const Double RAND_DOUBLE_NEGTIVE = -101.111;
- private const int RAND_DOUBLE_INT = 101;
- #endregion
- #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: If d doesn't have a fractional part, d is returned unchanged.");
-
- try
- {
- int myInt = TestLibrary.Generator.GetInt32(-55);
- Decimal myDecimal1 = new decimal(myInt);
- Decimal returnValue = Decimal.Floor(myDecimal1);
- if (returnValue != myDecimal1)
- {
- TestLibrary.TestFramework.LogError("001.1", "Calling Floor method should return " + myDecimal1);
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: If d has a fractional part, the next whole Decimal number toward negative infinity that is less than d.and the decimal comes from single.");
-
- try
- {
- Single mySingle = TestLibrary.Generator.GetSingle(-55);
- Decimal myDecimal1 = new decimal(mySingle);
- Decimal returnValue = Decimal.Floor(myDecimal1);
- if (returnValue != ZEROVALUE)
- {
- TestLibrary.TestFramework.LogError("002.1", "Calling Floor method should return " + ZEROVALUE);
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: If d has a fractional part, the next whole Decimal number toward negative infinity that is less than d.and the decimal comes from double.");
-
- try
- {
- Double myDouble = TestLibrary.Generator.GetDouble(-55);
- Decimal myDecimal1 = new decimal(myDouble);
- Decimal returnValue = Decimal.Floor(myDecimal1);
- if (returnValue != ZEROVALUE)
- {
- TestLibrary.TestFramework.LogError("003.1", "Calling Floor method should return " + ZEROVALUE);
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: If d has a fractional part, the next whole Decimal number toward negative infinity that is less than d.Positive Value.");
-
- try
- {
-
- Decimal myDecimal1 = new decimal(RAND_DOUBLE_POSITIVE);
- Decimal returnValue = Decimal.Floor(myDecimal1);
- if (returnValue != RAND_DOUBLE_INT)
- {
- TestLibrary.TestFramework.LogError("004.1", "Calling Floor method should return " + RAND_DOUBLE_INT);
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest5: If d has a fractional part, the next whole Decimal number toward negative infinity that is less than d. Negitive value ");
-
- try
- {
-
- Decimal myDecimal1 = new decimal(RAND_DOUBLE_NEGTIVE);
- Decimal returnValue = Decimal.Floor(myDecimal1);
- if (returnValue != -RAND_DOUBLE_INT-1)
- {
- TestLibrary.TestFramework.LogError("005.1", "Calling Floor method should return " + (-RAND_DOUBLE_INT - 1));
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("005.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
-
-
- #endregion
-
- #endregion
-
- public static int Main()
- {
- DecimaFloor test = new DecimaFloor();
-
- TestLibrary.TestFramework.BeginTestCase("DecimaFloor");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-
-
-}
+++ /dev/null
-// 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.Decimal.Add(Decimal,Decimal)
-/// </summary>
-public class DecimalAdd
-{
-
- public static int Main()
- {
- DecimalAdd dAdd = new DecimalAdd();
- TestLibrary.TestFramework.BeginTestCase("for Method:System.Decimal.Add(Decimal,Decimal)");
-
- if (dAdd.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("[Negative]");
- retVal = NegTest1() && retVal;
- return retVal;
- }
-
- #region PositiveTesting
- public bool PosTest1()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest1:Verify two params both are plus...";
- const string c_TEST_ID = "P001";
-
- Decimal dec1 = 12345.678m;
- Decimal dec2 = 87654.321m;
- Decimal resDec = 99999.999m;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
- Decimal decimalValue = Decimal.Add(dec1, dec2); ;
- if (decimalValue != resDec)
- {
- string errorDesc = "Value is not " + resDec.ToString() + " as expected: param is " + decimalValue.ToString();
- TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002" + " TestId-" + c_TEST_ID + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest2:Verify a param is zero...";
- const string c_TEST_ID = "P003";
-
- Decimal dec1 = 623512345.678m;
- Decimal dec2 = 0m;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
- Decimal decimalValue = Decimal.Add(dec1, dec2); ;
- if (decimalValue != dec1)
- {
- string errorDesc = "Value is not " + dec1.ToString() + " as expected: param is " + decimalValue.ToString();
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest3:Verify a param is negative ";
- const string c_TEST_ID = "P003";
-
- Decimal dec1 = 87654.321234m;
- Decimal dec2 = -12345.678321m;
- Decimal resDec = 75308.642913m;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
- Decimal decimalValue = Decimal.Add(dec1, dec2); ;
- if (decimalValue != resDec)
- {
- string errorDesc = "Value is not " + resDec.ToString() + " as expected: param is " + decimalValue.ToString();
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest4:Verify two params both are negative...";
- const string c_TEST_ID = "P004";
-
- Decimal dec1 = -87654.321234m;
- Decimal dec2 = -12345.678321m;
- Decimal resDec = -99999.999555m;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
- Decimal decimalValue = Decimal.Add(dec1, dec2); ;
- if (decimalValue != resDec)
- {
- string errorDesc = "Value is not " + resDec.ToString() + " as expected: param is " + decimalValue.ToString();
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
-
- return retVal;
- }
- #endregion
-
- #region NegativeTesting
- public bool NegTest1()
- {
- bool retVal = true;
- const string c_TEST_DESC = "NegTest1:Verify the sum of two larger than Decimal.MaxValue";
- const string c_TEST_ID = "N001";
-
- Decimal dec1 = Decimal.MaxValue;
- Decimal dec2 = 12345.678321m;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
-
- try
- {
- Decimal decimalValue = Decimal.Add(dec1,dec2);
- TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, "OverflowException is not thrown as expected ." + "\n parame value is " + dec1.ToString() + " and " + dec2.ToString());
- retVal = false;
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-}
\ No newline at end of file
+++ /dev/null
-// 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.Decimal.Compare(Decimal,Decimal)
-/// </summary>
-public class DecimalCompare
-{
-
- public static int Main()
- {
- DecimalCompare dCompare = new DecimalCompare();
- TestLibrary.TestFramework.BeginTestCase("for Method:System.Decimal.DecimalCompare(Decimal,Decimal)");
-
- if (dCompare.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 PositiveTesting
- public bool PosTest1()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest1:Verify two decimal both are plus...";
- const string c_TEST_ID = "P001";
-
- Decimal dec1 = 12345.678m;
- Decimal dec2 = 87654.321m;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
- int result = Decimal.Compare(dec1, dec2);
- if (result>0)
- {
- string errorDesc = "Value is not less than zero as expected: Actual (" + result.ToString()+")";
- errorDesc += GetDataString(dec1, dec2);
- TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002" + " TestId-" + c_TEST_ID + " TestId-" + c_TEST_ID, "Unexpected exception: " + e + GetDataString(dec1, dec2));
- retVal = false;
- }
-
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest2:Verify two decimal are equal...";
- const string c_TEST_ID = "P002";
-
- Decimal dec1 = 623512345.678m;
- Decimal dec2 = 623512345.678m;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
- int result = Decimal.Compare(dec1, dec2); ;
- if (result != 0)
- {
- string errorDesc = "Value is not zero as expected: Actual (" + result.ToString()+")";
- errorDesc += GetDataString(dec1, dec2);
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID + " TestId-" + c_TEST_ID, "Unexpected exception: " + e + GetDataString(dec1, dec2));
- retVal = false;
- }
-
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest3:Verify a decimal is negative...";
- const string c_TEST_ID = "P003";
-
- Decimal dec1 = 87654.321234m;
- Decimal dec2 = -12345.678321m;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
- int result = Decimal.Compare(dec1, dec2); ;
- if (result < 0)
- {
- string errorDesc = "Value is not greater than zero as expected: Actual (" + result.ToString() + ")";
- errorDesc += GetDataString(dec1, dec2);
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID + " TestId-" + c_TEST_ID, "Unexpected exception: " + e + GetDataString(dec1, dec2));
- retVal = false;
- }
-
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest4:Verify two decimal both are negative...";
- const string c_TEST_ID = "P004";
-
- Decimal dec1 = -87654.321234m;
- Decimal dec2 = -12345.678321m;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
- int result = Decimal.Compare(dec1, dec2); ;
- if (result >0)
- {
- string errorDesc = "Value is not less than zero as expected: Actual (" + result.ToString() + ")";
- errorDesc += GetDataString(dec1, dec2);
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID + " TestId-" + c_TEST_ID, "Unexpected exception: " + e + GetDataString(dec1, dec2));
- retVal = false;
- }
-
-
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest5:Verify a decimal is zero...";
- const string c_TEST_ID = "P005";
-
- Decimal dec1 = -87654.321234m;
- Decimal dec2 = 0m;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
- int result = Decimal.Compare(dec1, dec2);
- if (result > 0)
- {
- string errorDesc = "Value is not less than zero as expected: Actual (" + result.ToString() + ")";
- errorDesc += GetDataString(dec1, dec2);
- TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010" + " TestId-" + c_TEST_ID + " TestId-" + c_TEST_ID, "Unexpected exception: " + e + GetDataString(dec1, dec2));
- retVal = false;
- }
-
-
- return retVal;
- }
-
- public bool PosTest6()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest6:Verify a decimal is Decimal.MinValue...";
- const string c_TEST_ID = "P006";
-
- Decimal dec1 = -87654.321234m;
- Decimal dec2 = Decimal.MinValue;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
- int result = Decimal.Compare(dec1, dec2);
- if (result < 0)
- {
- string errorDesc = "Value is not greater than zero as expected: Actual (" + result.ToString() + ")";
- errorDesc += GetDataString(dec1, dec2);
- TestLibrary.TestFramework.LogError("011" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012" + " TestId-" + c_TEST_ID + " TestId-" + c_TEST_ID, "Unexpected exception: " + e + GetDataString(dec1, dec2));
- retVal = false;
- }
-
-
- return retVal;
- }
-
- public bool PosTest7()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest7:Verify a decimal is Decimal.MaxValue...";
- const string c_TEST_ID = "P007";
-
- Decimal dec1 = 87654.321234m;
- Decimal dec2 = Decimal.MaxValue;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
- int result = Decimal.Compare(dec1, dec2);
- if (result > 0)
- {
- string errorDesc = "Value is not less than zero as expected: Actual (" + result.ToString() + ")";
- errorDesc += GetDataString(dec1, dec2);
- TestLibrary.TestFramework.LogError("013" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("014" + " TestId-" + c_TEST_ID + " TestId-" + c_TEST_ID, "Unexpected exception: " + e + GetDataString(dec1, dec2));
- retVal = false;
- }
-
-
- return retVal;
- }
- #endregion
-
- #region Helper methords for testing
- private string GetDataString(Decimal dec1, Decimal dec2)
- {
- string str;
- str = string.Format("\n[decimal1 value]\n {0}", dec1.ToString());
- str += string.Format("\n[decimal2 value]\n {0}", dec2.ToString());
-
- return str;
- }
- #endregion
-}
\ No newline at end of file
+++ /dev/null
-// 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.Decimal.ctor(Double)
-/// </summary>
-public class DecimalCtor1
-{
-
- public static int Main()
- {
- DecimalCtor1 dCtor1 = new DecimalCtor1();
- TestLibrary.TestFramework.BeginTestCase("for Constructor:System.Decimal.Ctor(Double)");
-
- if (dCtor1.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;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
- retVal = NegTest4() && retVal;
- retVal = NegTest5() && retVal;
-
- return retVal;
- }
-
- #region PositiveTesting
- public bool PosTest1()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest1:Verify the param is a random double ";
- const string c_TEST_ID = "P001";
-
- Double dValue = TestLibrary.Generator.GetDouble(-55);
- while (dValue > Convert.ToDouble(Decimal.MaxValue) || dValue < Convert.ToDouble(Decimal.MinValue))
- {
- dValue = TestLibrary.Generator.GetDouble(-55);
- }
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
- Decimal decimalValue = new Decimal(dValue);
- if (decimalValue != Convert.ToDecimal(dValue))
- {
- string errorDesc = "Value is not " + decimalValue.ToString() + " as expected: param is "+ dValue.ToString() ;
- TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002" + " TestId-" + c_TEST_ID + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
-
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest2:Verify the param is 0 ";
- const string c_TEST_ID = "P002";
-
- Double dValue = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
- Decimal decimalValue = new Decimal(dValue);
- if (decimalValue != 0m)
- {
- string errorDesc = "Value is not " + decimalValue.ToString() + " as expected: param is " + dValue.ToString();
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
-
- return retVal;
- }
- #endregion
-
- #region Nagetive Testing
- public bool NegTest1()
- {
- bool retVal = true;
- const string c_TEST_DESC = "NegTest1:Verify the param is larger than Decimal.MaxValue";
- const string c_TEST_ID = "N001";
-
- double dValue = 1.2345678901234567E+35;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
-
- try
- {
- Decimal decimalValue = new Decimal(dValue);
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, "ArgumentException is not thrown as expected ." + "\n arame value is "+dValue.ToString());
- retVal = false;
- }
- catch(OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
- const string c_TEST_DESC = "NegTest2:Verify the param is less than Decimal.MinValue";
- const string c_TEST_ID = "N002";
-
- double dValue = -1.2345678901234567E+35;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
-
- try
- {
- Decimal decimalValue = new Decimal(dValue);
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, "ArgumentException is not thrown as expected ." + "\n arame value is "+dValue.ToString());
- retVal = false;
- }
- catch(OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
- const string c_TEST_DESC = "NegTest3:Verify the param is Double.NaN";
- const string c_TEST_ID = "N003";
-
- double dValue = Double.NaN;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
-
- try
- {
- Decimal decimalValue = new Decimal(dValue);
- TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, "ArgumentException is not thrown as expected ." + "\n arame value is " + dValue.ToString());
- retVal = false;
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest4()
- {
- bool retVal = true;
- const string c_TEST_DESC = "NegTest4:Verify the param is Double.PositiveInfinity";
- const string c_TEST_ID = "N004";
-
- double dValue = Double.PositiveInfinity;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
-
- try
- {
- Decimal decimalValue = new Decimal(dValue);
- TestLibrary.TestFramework.LogError("011" + " TestId-" + c_TEST_ID, "ArgumentException is not thrown as expected ." + "\n arame value is " + dValue.ToString());
- retVal = false;
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest5()
- {
- bool retVal = true;
- const string c_TEST_DESC = "NegTest5:Verify the param is Double.NegativeInfinity";
- const string c_TEST_ID = "N005";
-
- double dValue = Double.NegativeInfinity;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
-
- try
- {
- Decimal decimalValue = new Decimal(dValue);
- TestLibrary.TestFramework.LogError("013" + " TestId-" + c_TEST_ID, "ArgumentException is not thrown as expected ." + "\n arame value is " + dValue.ToString());
- retVal = false;
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("014" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-// 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.Decimal.ctor(System.Int32)
-/// </summary>
-public class DecimalCtor2
-{
-
- public static int Main()
- {
- DecimalCtor2 dCtor2 = new DecimalCtor2();
- TestLibrary.TestFramework.BeginTestCase("for Constructor:System.Decimal.Ctor(System.Int32)");
-
- if (dCtor2.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 PositiveTesting
- public bool PosTest1()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest1:Verify the param is a random Int32 ";
- const string c_TEST_ID = "P001";
-
- System.Int32 int32Value = TestLibrary.Generator.GetInt32(-55);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
- Decimal decimalValue = new Decimal(int32Value);
- if (decimalValue != Convert.ToDecimal(int32Value))
- {
- string errorDesc = "Value is not " + decimalValue.ToString() + " as expected: param is " + int32Value.ToString();
- TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002" + " TestId-" + c_TEST_ID + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest2:Verify the param is 0 ";
- const string c_TEST_ID = "P002";
-
- Double dValue = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
- Decimal decimalValue = new Decimal(dValue);
- if (decimalValue != 0m)
- {
- string errorDesc = "Value is not " + decimalValue.ToString() + " as expected: param is " + dValue.ToString();
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
-
- return retVal;
- }
- #endregion
-
-
-}
+++ /dev/null
-// 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.Decimal.ctor(Int32,Int32,Int32,Boolean,Byte)
-/// </summary>
-public class DecimalCtor3
-{
-
- public static int Main()
- {
- DecimalCtor3 dCtor3 = new DecimalCtor3();
- TestLibrary.TestFramework.BeginTestCase("for Constructor:System.Decimal.Ctor(Int32,Int32,Int32,Boolean,Byte)");
-
- if (dCtor3.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 PositiveTesting
- public bool PosTest1()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest1:Verify the isNagetive is true... ";
- const string c_TEST_ID = "P001";
-
- int low = TestLibrary.Generator.GetInt32(-55);
- int mid = TestLibrary.Generator.GetInt32(-55);
- int hi = TestLibrary.Generator.GetInt32(-55);
- bool isNagetive = true;
- Byte scale = TestLibrary.Generator.GetByte(-55);
-
- while (scale > 28)
- {
- scale = TestLibrary.Generator.GetByte(-55);
- }
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
- Decimal decimalValue = new Decimal(low, mid, hi, isNagetive, scale);
- int[] arrInt = Decimal.GetBits(decimalValue);
-
- if (arrInt[0] != low)
- {
- string errorDesc = "lo Value is not " +low.ToString() +" as expected: param is " + arrInt[0].ToString();
- TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- if (arrInt[1] != mid)
- {
- string errorDesc = "mid Value is not " + mid.ToString() + " as expected: param is " + arrInt[1].ToString();
- TestLibrary.TestFramework.LogError("002" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- if (arrInt[2] != hi)
- {
- string errorDesc = "hi Value is not " + hi.ToString() + " as expected: param is " + arrInt[2].ToString();
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- if (isNagetive)
- {
- if (decimalValue > 0m)
- {
- string errorDesc = "created decimal object should is less than 0 ";
- TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- }
- else
- {
- if (decimalValue < 0m)
- {
- string errorDesc = "created decimal object should is larger than 0 ";
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
-
- string subLast;
- int resScale;
- int index = decimalValue.ToString().IndexOf(System.Globalization.CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator);
- if (index != -1)
- {
- subLast = decimalValue.ToString().Substring(index);
- resScale = subLast.Length - 1;
- }
- else
- {
- resScale = 0;
- }
-
- if (Convert.ToInt64(scale) != resScale)
- {
- string errorDesc = "scale Value is not " + scale.ToString() + " as expected: actual<" + resScale.ToString() + ">";
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest2:Verify the isNagetive is false... ";
- const string c_TEST_ID = "P002";
-
- int low = TestLibrary.Generator.GetInt32(-55);
- int mid = TestLibrary.Generator.GetInt32(-55);
- int hi = TestLibrary.Generator.GetInt32(-55);
- bool isNagetive = false;
- Byte scale = TestLibrary.Generator.GetByte(-55);
-
- while (scale > 28)
- {
- scale = TestLibrary.Generator.GetByte(-55);
- }
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
- Decimal decimalValue = new Decimal(low, mid, hi, isNagetive, scale);
- int[] arrInt = Decimal.GetBits(decimalValue);
-
- if (arrInt[0] != low)
- {
- string errorDesc = "lo Value is not " + low.ToString() + " as expected: param is " + arrInt[0].ToString();
- TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- if (arrInt[1] != mid)
- {
- string errorDesc = "mid Value is not " + mid.ToString() + " as expected: param is " + arrInt[1].ToString();
- TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- if (arrInt[2] != hi)
- {
- string errorDesc = "hi Value is not " + hi.ToString() + " as expected: param is " + arrInt[2].ToString();
- TestLibrary.TestFramework.LogError("010" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- if (isNagetive)
- {
- if (decimalValue > 0m)
- {
- string errorDesc = "created decimal object should is less than 0 ";
- TestLibrary.TestFramework.LogError("011" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- }
- else
- {
- if (decimalValue < 0m)
- {
- string errorDesc = "created decimal object should is larger than 0 ";
- TestLibrary.TestFramework.LogError("012" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
-
- string subLast;
- int resScale;
- int index = decimalValue.ToString().IndexOf(System.Globalization.CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator);
- if (index != -1)
- {
- subLast = decimalValue.ToString().Substring(index);
- resScale = subLast.Length - 1;
- }
- else
- {
- resScale=0;
- }
-
-
- if (Convert.ToInt64(scale) != resScale)
- {
- string errorDesc = "scale Value is not " + scale.ToString() + " as expected: actual<" + resScale.ToString() + ">";
- TestLibrary.TestFramework.LogError("013" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("014" + " TestId-" + c_TEST_ID + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
-
- return retVal;
- }
- #endregion
-
- #region Nagetive Testing
- public bool NegTest1()
- {
- bool retVal = true;
- const string c_TEST_DESC = "NegTest1:Verify the scale is larger than 28";
- const string c_TEST_ID = "N001";
-
- int low = TestLibrary.Generator.GetInt32(-55);
- int mid = TestLibrary.Generator.GetInt32(-55);
- int hi = TestLibrary.Generator.GetInt32(-55);
- bool isNagetive = false;
- Byte scale = TestLibrary.Generator.GetByte(-55);
-
- while (scale < 28)
- {
- scale = TestLibrary.Generator.GetByte(-55);
- }
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
-
- try
- {
- Decimal decimalValue = new Decimal(low,mid,hi,isNagetive,scale);
- TestLibrary.TestFramework.LogError("015" + " TestId-" + c_TEST_ID, "ArgumentOutOfRangeException is not thrown as expected ." + "\n scale value is " + scale.ToString());
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("016" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
-
- #endregion
-}
-
+++ /dev/null
-// 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.Decimal.ctor(Int32[])
-/// </summary>
-public class DecimalCtor4
-{
-
- public static int Main()
- {
- DecimalCtor4 dCtor4 = new DecimalCtor4();
- TestLibrary.TestFramework.BeginTestCase("for Constructor:System.Decimal.Ctor(Int32[])");
-
- if (dCtor4.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("[Negative]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
-
- return retVal;
- }
-
- #region PositiveTesting
- public bool PosTest1()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest1:Verify the top 3 param are random Int32... ";
- const string c_TEST_ID = "P001";
-
- int low = TestLibrary.Generator.GetInt32(-55);
- int mid = TestLibrary.Generator.GetInt32(-55);
- int hi = TestLibrary.Generator.GetInt32(-55);
- int flags = 0x1C0000;
- int[] arrInt ={low, mid, hi, flags};
-
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
- Decimal decimalValue = new Decimal(arrInt);
- int[] arrBits = Decimal.GetBits(decimalValue);
-
- if (arrBits[0] != low)
- {
- string errorDesc = "lo Value is not " + low.ToString() + " as expected: param is " + arrInt[0].ToString();
- TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- if (arrBits[1] != mid)
- {
- string errorDesc = "mid Value is not " + mid.ToString() + " as expected: param is " + arrInt[1].ToString();
- TestLibrary.TestFramework.LogError("002" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- if (arrBits[2] != hi)
- {
- string errorDesc = "hi Value is not " + hi.ToString() + " as expected: param is " + arrInt[2].ToString();
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- if (arrBits[3] != flags)
- {
- string errorDesc = "flags Value is not " + flags.ToString() + " as expected: param is " + arrInt[3].ToString();
- TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
-
- return retVal;
- }
-
-
- #endregion
-
- #region Nagetive Testing
- public bool NegTest1()
- {
- bool retVal = true;
- const string c_TEST_DESC = "NegTest1:Verify the param is a null reference";
- const string c_TEST_ID = "N001";
-
- int[] bits = null;
-
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
-
- try
- {
- Decimal decimalValue = new Decimal(bits);
- TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, "ArgumentNullException is not thrown as expected ." );
- retVal = false;
- }
- catch (ArgumentNullException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
- const string c_TEST_DESC = "NegTest2:the bits's length is not 4...";
- const string c_TEST_ID = "N002";
-
- int low = TestLibrary.Generator.GetInt32(-55);
- int mid = TestLibrary.Generator.GetInt32(-55);
- int hi = TestLibrary.Generator.GetInt32(-55);
- int flag = TestLibrary.Generator.GetInt32(-55);
- int[] bits ={ low, mid, hi, flag,low };
-
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
-
- try
- {
- Decimal decimalValue = new Decimal(bits);
- TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, "ArgumentException is not thrown as expected ." );
- retVal = false;
- }
- catch (ArgumentException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
- const string c_TEST_DESC = "NegTest3:Verfiy the decimal value in bits is not valid.";
- const string c_TEST_ID = "N003";
-
- int low = TestLibrary.Generator.GetInt32(-55);
- int mid = TestLibrary.Generator.GetInt32(-55);
- int hi = TestLibrary.Generator.GetInt32(-55);
- int flag = 0x1C0001;
- int[] bits ={ low, mid, hi, flag};
-
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
-
- try
- {
- Decimal decimalValue = new Decimal(bits);
- TestLibrary.TestFramework.LogError("011" + " TestId-" + c_TEST_ID, "ArgumentException is not thrown as expected .");
- retVal = false;
- }
- catch (ArgumentException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-// 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.Decimal.ctor(System.Int64)
-/// </summary>
-public class DecimalCtor5
-{
-
- public static int Main()
- {
- DecimalCtor5 dCtor5 = new DecimalCtor5();
- TestLibrary.TestFramework.BeginTestCase("for Constructor:System.Decimal.Ctor(System.Int64)");
-
- if (dCtor5.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 PositiveTesting
- public bool PosTest1()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest1:Verify the param is a random Int64... ";
- const string c_TEST_ID = "P001";
-
- long value = TestLibrary.Generator.GetInt64(-55);
-
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
- Decimal decimalValue = new Decimal(value);
-
- if (decimalValue != Convert.ToDecimal(value))
- {
- string errorDesc = "Value is not " + Convert.ToDecimal(value).ToString() + " as expected: param is " + decimalValue.ToString();
- TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest2:Verify the param is zero... ";
- const string c_TEST_ID = "P002";
-
- long value = 0;
-
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
- Decimal decimalValue = new Decimal(value);
-
- if (decimalValue != Convert.ToDecimal(value))
- {
- string errorDesc = "Value is not " + Convert.ToDecimal(value).ToString() + " as expected: param is " + decimalValue.ToString();
- TestLibrary.TestFramework.LogError("002" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest3:Verify the param is long.MaxValue... ";
- const string c_TEST_ID = "P003";
-
- long value = long.MaxValue;
-
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
- Decimal decimalValue = new Decimal(value);
-
- if (decimalValue != Convert.ToDecimal(value))
- {
- string errorDesc = "Value is not " + Convert.ToDecimal(value).ToString() + " as expected: param is " + decimalValue.ToString();
- TestLibrary.TestFramework.LogError("002" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest4:Verify the param is long.MinValue... ";
- const string c_TEST_ID = "P004";
-
- long value = long.MinValue;
-
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
- Decimal decimalValue = new Decimal(value);
-
- if (decimalValue != Convert.ToDecimal(value))
- {
- string errorDesc = "Value is not " + Convert.ToDecimal(value).ToString() + " as expected: param is " + decimalValue.ToString();
- TestLibrary.TestFramework.LogError("002" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
-
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-// 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.Decimal.ctor(Single)
-/// </summary>
-public class DecimalCtor6
-{
-
- public static int Main()
- {
- DecimalCtor6 dCtor6 = new DecimalCtor6();
- TestLibrary.TestFramework.BeginTestCase("for Constructor:System.Decimal.Ctor(Single)");
-
- if (dCtor6.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("[Negative]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
- retVal = NegTest4() && retVal;
- retVal = NegTest5() && retVal;
-
- return retVal;
- }
-
- #region PositiveTesting
- public bool PosTest1()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest1:Verify the param is a random float ";
- const string c_TEST_ID = "P001";
-
- float dValue = TestLibrary.Generator.GetSingle(-55);
- while (dValue > Convert.ToSingle(Decimal.MaxValue) || dValue < Convert.ToSingle(Decimal.MinValue))
- {
- dValue = TestLibrary.Generator.GetSingle(-55);
- }
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
- Decimal decimalValue = new Decimal(dValue);
- if (decimalValue != Convert.ToDecimal(dValue))
- {
- string errorDesc = "Value is not " + decimalValue.ToString() + " as expected: param is " + dValue.ToString();
- TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002" + " TestId-" + c_TEST_ID + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
-
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest2:Verify the param is 0.00 ";
- const string c_TEST_ID = "P002";
-
- float dValue = 0.00F;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
- Decimal decimalValue = new Decimal(dValue);
- if (decimalValue != 0m)
- {
- string errorDesc = "Value is not " + decimalValue.ToString() + " as expected: param is " + dValue.ToString();
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest3:Verify the param is 1.23456789E-25F ";
- const string c_TEST_ID = "P003";
-
- float dValue = 1.23456789E-25F;
- Decimal resDec = 0.0000000000000000000000001235m;
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
- Decimal decimalValue = new Decimal(dValue);
- if (decimalValue != resDec)
- {
- string errorDesc = "Value is not " + decimalValue.ToString() + " as expected: param is " + resDec.ToString();
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
-
- return retVal;
- }
- #endregion
-
- #region Nagetive Testing
- public bool NegTest1()
- {
- bool retVal = true;
- const string c_TEST_DESC = "NegTest1:Verify the param is larger than Decimal.MaxValue";
- const string c_TEST_ID = "N001";
-
- float dValue = Convert.ToSingle(Decimal.MaxValue);
-
- float addValue = TestLibrary.Generator.GetSingle(-55);
- while (addValue <= 0)
- {
- addValue = TestLibrary.Generator.GetSingle(-55);
- }
- dValue += addValue;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
-
- try
- {
- Decimal decimalValue = new Decimal(dValue);
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, "ArgumentException is not thrown as expected ." + "\n parame value is " + dValue.ToString());
- retVal = false;
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
- const string c_TEST_DESC = "NegTest2:Verify the param is less than Decimal.MinValue";
- const string c_TEST_ID = "N002";
-
- float dValue = Convert.ToSingle(Decimal.MinValue);
-
- float addValue = TestLibrary.Generator.GetSingle(-55);
- while (addValue <= 0)
- {
- addValue = TestLibrary.Generator.GetSingle(-55);
- }
- dValue -= addValue;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
-
- try
- {
- Decimal decimalValue = new Decimal(dValue);
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, "ArgumentException is not thrown as expected ." + "\n arame value is " + dValue.ToString());
- retVal = false;
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
- const string c_TEST_DESC = "NegTest3:Verify the param is Single.NaN";
- const string c_TEST_ID = "N003";
-
- Single dValue = Single.NaN;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
-
- try
- {
- Decimal decimalValue = new Decimal(dValue);
- TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, "ArgumentException is not thrown as expected ." + "\n arame value is " + dValue.ToString());
- retVal = false;
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest4()
- {
- bool retVal = true;
- const string c_TEST_DESC = "NegTest4:Verify the param is Single.PositiveInfinity";
- const string c_TEST_ID = "N004";
-
- Single dValue = Single.PositiveInfinity;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
-
- try
- {
- Decimal decimalValue = new Decimal(dValue);
- TestLibrary.TestFramework.LogError("011" + " TestId-" + c_TEST_ID, "ArgumentException is not thrown as expected ." + "\n arame value is " + dValue.ToString());
- retVal = false;
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest5()
- {
- bool retVal = true;
- const string c_TEST_DESC = "NegTest5:Verify the param is Single.NegativeInfinity";
- const string c_TEST_ID = "N005";
-
- Single dValue = Single.NegativeInfinity;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
-
- try
- {
- Decimal decimalValue = new Decimal(dValue);
- TestLibrary.TestFramework.LogError("013" + " TestId-" + c_TEST_ID, "ArgumentException is not thrown as expected ." + "\n arame value is " + dValue.ToString());
- retVal = false;
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("014" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-// 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.Decimal.ctor(System.UInt32)
-/// </summary>
-public class DecimalCtor7
-{
-
- public static int Main()
- {
- DecimalCtor7 dCtor7 = new DecimalCtor7();
- TestLibrary.TestFramework.BeginTestCase("for Constructor:System.Decimal.Ctor(System.UInt32)");
-
- if (dCtor7.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;
- }
-
- #region PositiveTesting
- public bool PosTest1()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest1:Verify the param is a random UInt32 ";
- const string c_TEST_ID = "P001";
-
- System.UInt32 uint32Value = Convert.ToUInt32(TestLibrary.Generator.GetInt32(-55));
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
- Decimal decimalValue = new Decimal(uint32Value);
- if (decimalValue != Convert.ToDecimal(uint32Value))
- {
- string errorDesc = "Value is not " + decimalValue.ToString() + " as expected: param is " + uint32Value.ToString();
- TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002" + " TestId-" + c_TEST_ID + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest2:Verify the param is UInt32.MinValue(0) ";
- const string c_TEST_ID = "P002";
-
- UInt32 dValue = UInt32.MinValue;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
- Decimal decimalValue = new Decimal(dValue);
- if (decimalValue != Convert.ToDecimal(dValue))
- {
- string errorDesc = "Value is not " + decimalValue.ToString() + " as expected: param is " + dValue.ToString();
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest3:Verify the param is UInt32.MaxValue ";
- const string c_TEST_ID = "P003";
-
- UInt32 dValue = UInt32.MaxValue;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
- Decimal decimalValue = new Decimal(dValue);
- if (decimalValue != Convert.ToDecimal(dValue))
- {
- string errorDesc = "Value is not " + decimalValue.ToString() + " as expected: param is " + dValue.ToString();
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
-
- return retVal;
- }
- #endregion
-
-}
+++ /dev/null
-// 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.Decimal.ctor(System.UInt64)
-/// </summary>
-public class DecimalCtor8
-{
-
- public static int Main()
- {
- DecimalCtor8 dCtor8 = new DecimalCtor8();
- TestLibrary.TestFramework.BeginTestCase("for Constructor:System.Decimal.Ctor(System.UInt64)");
-
- if (dCtor8.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;
- }
-
- #region PositiveTesting
- public bool PosTest1()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest1:Verify the param is a random UInt64 ";
- const string c_TEST_ID = "P001";
-
- System.UInt64 uint64Value = Convert.ToUInt64(TestLibrary.Generator.GetInt64(-55));
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
- Decimal decimalValue = new Decimal(uint64Value);
- if (decimalValue != Convert.ToDecimal(uint64Value))
- {
- string errorDesc = "Value is not " + Convert.ToDecimal(uint64Value).ToString() + " as expected: param is " + decimalValue.ToString();
- TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002" + " TestId-" + c_TEST_ID + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest2:Verify the param is UInt64.MinValue(0) ";
- const string c_TEST_ID = "P002";
-
- UInt64 dValue = UInt64.MinValue;
- Decimal resValue = 0m;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
- Decimal decimalValue = new Decimal(dValue);
- if (decimalValue != resValue)
- {
- string errorDesc = "Value is not " + resValue.ToString() + " as expected: param is " + decimalValue.ToString();
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest3:Verify the param is UInt64.MaxValue ";
- const string c_TEST_ID = "P003";
-
- UInt64 dValue = UInt64.MaxValue;
- Decimal resValue = 18446744073709551615m;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
- Decimal decimalValue = new Decimal(dValue);
- if (decimalValue != resValue)
- {
- string errorDesc = "Value is not " + resValue.ToString() + " as expected: param is " + decimalValue.ToString();
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID + " TestId-" + c_TEST_ID, "Unexpected exception: " + e);
- retVal = false;
- }
-
-
- return retVal;
- }
- #endregion
-
-}
+++ /dev/null
-// 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;
-/// <summary>
-/// Divide(System.Decimal,System.Decimal)
-/// </summary>
-public class DecimalDivide
-{
- #region const
- private const int SEEDVALUE = 2;
- private const int EQUALVALUE = 1;
- private const int ZEROVALUE = 0;
- #endregion
- #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("[Negtive]");
- 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: Calling Devide method and the dividend is a random decimal,divisor is defined as Seed.");
-
- try
- {
-
- Decimal myDecimal1 = new decimal(TestLibrary.Generator.GetInt32(-55) / SEEDVALUE);
- Decimal myDecimal2 = new decimal(SEEDVALUE);
- Decimal returnValue = Decimal.Divide(myDecimal1 * SEEDVALUE, myDecimal2);
- if (returnValue != myDecimal1)
- {
- TestLibrary.TestFramework.LogError("001.2", "Calling Devide method should return " + myDecimal1);
- retVal = false;
- }
-
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Calling Devide method and the dividend 0.");
-
- try
- {
-
- Decimal myDecimal1 = new decimal(ZEROVALUE / SEEDVALUE);
- Decimal myDecimal2 = new decimal(SEEDVALUE);
- Decimal returnValue = Decimal.Divide(ZEROVALUE, myDecimal2);
- if (returnValue != ZEROVALUE)
- {
- TestLibrary.TestFramework.LogError("002.2", "Calling Devide method should return " + ZEROVALUE);
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Calling Devide method and the dividend is Int32.MaxValue or Int32.MinValue.");
-
- try
- {
-
- Decimal myDecimal1 = new decimal(Int32.MaxValue / SEEDVALUE);
- Decimal myDecimal2 = new decimal(SEEDVALUE);
- Decimal returnValue = Decimal.Divide(myDecimal1 * SEEDVALUE, myDecimal2);
- if (returnValue != myDecimal1)
- {
- TestLibrary.TestFramework.LogError("003.1", "Calling Devide method should return " + myDecimal1);
- retVal = false;
- }
- myDecimal1 = new decimal(Int32.MinValue / SEEDVALUE);
- myDecimal2 = new decimal(SEEDVALUE);
- returnValue = Decimal.Divide(myDecimal1 * SEEDVALUE, myDecimal2);
- if (returnValue != myDecimal1)
- {
- TestLibrary.TestFramework.LogError("003.2", "Calling Devide method should return " + myDecimal1);
- retVal = false;
- }
-
- myDecimal1 = new decimal(Int32.MinValue);
- myDecimal2 = new decimal(Int32.MinValue);
- returnValue = Decimal.Divide(myDecimal1 , myDecimal2);
- if (returnValue != EQUALVALUE)
- {
- TestLibrary.TestFramework.LogError("003.3", "Calling Devide method should return " + EQUALVALUE);
- retVal = false;
- }
-
- myDecimal1 = new decimal(Int32.MaxValue);
- myDecimal2 = new decimal(Int32.MaxValue);
- returnValue = Decimal.Divide(myDecimal1, myDecimal2);
- if (returnValue != EQUALVALUE)
- {
- TestLibrary.TestFramework.LogError("003.4", "Calling Devide method should return " + EQUALVALUE);
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool NegTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: d2 is zero.");
-
- try
- {
-
- Decimal myDecimal1 = new decimal(TestLibrary.Generator.GetInt32(-55) );
- Decimal myDecimal2 = new decimal(ZEROVALUE);
- Decimal returnValue = Decimal.Divide(ZEROVALUE, myDecimal2);
- TestLibrary.TestFramework.LogError("101.1", "DivideByZeroException should be caught.");
- retVal = false;
- }
- catch (DivideByZeroException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("101.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: The return value (that is, the quotient) is greater than MaxValue.");
-
- try
- {
-
- Decimal myDecimal1 = new decimal(Int32.MaxValue);
- Decimal myDecimal2 = new decimal(1e-020);
- Decimal returnValue = Decimal.Divide(myDecimal1, myDecimal2);
- TestLibrary.TestFramework.LogError("102.1", "OverflowException should be caught.");
- retVal = false;
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest3: The return value (that is, the quotient) is less than MinValue .");
-
- try
- {
-
- Decimal myDecimal1 = new decimal(Int32.MinValue);
- Decimal myDecimal2 = new decimal(1e-020);
- Decimal returnValue = Decimal.Divide(myDecimal1, myDecimal2);
- TestLibrary.TestFramework.LogError("103.1", "OverflowException should be caught.");
- retVal = false;
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("103.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #endregion
-
- public static int Main()
- {
- DecimalDivide test = new DecimalDivide();
-
- TestLibrary.TestFramework.BeginTestCase("DecimalDivide");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-
-}
+++ /dev/null
-// 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;
-/// <summary>
-///Equals(System.Decimal)
-/// </summary>
-public class DecimalEquals1
-{
- #region const
- private const int SEEDVALUE = 2;
- private const int EQUALVALUE = 1;
- private const int ZEROVALUE = 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: compare to itself.");
-
- try
- {
-
- Decimal myDecimal1 = new decimal(TestLibrary.Generator.GetInt32(-55));
-
- if (!myDecimal1.Equals(myDecimal1))
- {
- TestLibrary.TestFramework.LogError("001.1", "Calling Equals method should return true" );
- retVal = false;
- }
-
- myDecimal1 = new decimal(TestLibrary.Generator.GetSingle(-55));
-
- if (!myDecimal1.Equals(myDecimal1))
- {
- TestLibrary.TestFramework.LogError("001.2", "Calling Equals method should return true");
- retVal = false;
- }
- myDecimal1 = new decimal(TestLibrary.Generator.GetDouble(-55));
-
- if (!myDecimal1.Equals(myDecimal1))
- {
- TestLibrary.TestFramework.LogError("001.3", "Calling Equals method should return true");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Compare to difference value.");
-
- try
- {
-
- Decimal myDecimal1 = new decimal(TestLibrary.Generator.GetInt32(-55));
- Decimal myDecimal2 = new decimal(TestLibrary.Generator.GetSingle(-55));
- if (myDecimal1.Equals(myDecimal2))
- {
- TestLibrary.TestFramework.LogError("002.1", "Calling Equals method should return false." );
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Compare to difference value.");
-
- try
- {
-
- int myInt = TestLibrary.Generator.GetInt32(-55);
- Decimal myDecimal1 = new decimal(myInt);
- Decimal myDecimal2 = new decimal(myInt);
- if (!myDecimal1.Equals(myDecimal2))
- {
- TestLibrary.TestFramework.LogError("003.1", "Calling Equals method should return true.");
- retVal = false;
- }
- Single mySingle = TestLibrary.Generator.GetSingle(-55);
- myDecimal1 = new decimal(mySingle);
- myDecimal2 = new decimal(mySingle);
- if (!myDecimal1.Equals(myDecimal2))
- {
- TestLibrary.TestFramework.LogError("003.2", "Calling Equals method should return true.");
- retVal = false;
- }
- double myDouble = TestLibrary.Generator.GetDouble(-55);
- myDecimal1 = new decimal(myDouble);
- myDecimal2 = new decimal(myDouble);
- if (!myDecimal1.Equals(myDecimal2))
- {
- TestLibrary.TestFramework.LogError("003.3", "Calling Equals method should return true.");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #endregion
-
- public static int Main()
- {
- DecimalEquals1 test = new DecimalEquals1();
-
- TestLibrary.TestFramework.BeginTestCase("DecimalEquals1");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-
-}
+++ /dev/null
-// 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;
-/// <summary>
-///Equals(System.Decimal,System.Decimal)
-/// </summary>
-public class DecimalEquals2
-{
- #region const
- private const int SEEDVALUE = 2;
- private const int EQUALVALUE = 1;
- private const int ZEROVALUE = 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: compare to itself.");
-
- try
- {
-
- Decimal myDecimal1 = new decimal(TestLibrary.Generator.GetInt32(-55));
-
- if (!Decimal.Equals(myDecimal1, myDecimal1))
- {
- TestLibrary.TestFramework.LogError("001.1", "Calling Equals method should return true" );
- retVal = false;
- }
-
- myDecimal1 = new decimal(TestLibrary.Generator.GetSingle(-55));
-
- if (!Decimal.Equals(myDecimal1, myDecimal1))
- {
- TestLibrary.TestFramework.LogError("001.2", "Calling Equals method should return true");
- retVal = false;
- }
- myDecimal1 = new decimal(TestLibrary.Generator.GetDouble(-55));
-
- if (!Decimal.Equals(myDecimal1, myDecimal1))
- {
- TestLibrary.TestFramework.LogError("001.3", "Calling Equals method should return true");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Compare to difference value.");
-
- try
- {
-
- Decimal myDecimal1 = new decimal(TestLibrary.Generator.GetInt32(-55));
- Decimal myDecimal2 = new decimal(TestLibrary.Generator.GetSingle(-55));
- if (Decimal.Equals(myDecimal1, myDecimal2))
- {
- TestLibrary.TestFramework.LogError("002.1", "Calling Equals method should return false." );
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Compare to difference value.");
-
- try
- {
-
- int myInt = TestLibrary.Generator.GetInt32(-55);
- Decimal myDecimal1 = new decimal(myInt);
- Decimal myDecimal2 = new decimal(myInt);
- if (!Decimal.Equals(myDecimal1, myDecimal2))
- {
- TestLibrary.TestFramework.LogError("003.1", "Calling Equals method should return true.");
- retVal = false;
- }
- Single mySingle = TestLibrary.Generator.GetSingle(-55);
- myDecimal1 = new decimal(mySingle);
- myDecimal2 = new decimal(mySingle);
- if (!Decimal.Equals(myDecimal1, myDecimal2))
- {
- TestLibrary.TestFramework.LogError("003.2", "Calling Equals method should return true.");
- retVal = false;
- }
- double myDouble = TestLibrary.Generator.GetDouble(-55);
- myDecimal1 = new decimal(myDouble);
- myDecimal2 = new decimal(myDouble);
- if (!Decimal.Equals(myDecimal1, myDecimal2))
- {
- TestLibrary.TestFramework.LogError("003.3", "Calling Equals method should return true.");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #endregion
-
- public static int Main()
- {
- DecimalEquals2 test = new DecimalEquals2();
-
- TestLibrary.TestFramework.BeginTestCase("DecimalEquals2");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-
-}
+++ /dev/null
-// 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;
-/// <summary>
-///Equals(System.Object)
-/// </summary>
-public class DecimalEquals3
-{
- #region const
- private const int SEEDVALUE = 2;
- private const int EQUALVALUE = 1;
- private const int ZEROVALUE = 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: compare to itself.");
-
- try
- {
-
- Decimal myDecimal1 = new decimal(TestLibrary.Generator.GetInt32(-55));
- object myValue = myDecimal1;
- if (!myDecimal1.Equals(myValue))
- {
- TestLibrary.TestFramework.LogError("001.1", "Calling Equals method should return true" );
- retVal = false;
- }
-
- myDecimal1 = new decimal(TestLibrary.Generator.GetSingle(-55));
- myValue = myDecimal1;
- if (!myDecimal1.Equals(myValue))
- {
- TestLibrary.TestFramework.LogError("001.2", "Calling Equals method should return true");
- retVal = false;
- }
- myDecimal1 = new decimal(TestLibrary.Generator.GetDouble(-55));
- myValue = myDecimal1;
- if (!myDecimal1.Equals(myValue))
- {
- TestLibrary.TestFramework.LogError("001.3", "Calling Equals method should return true");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Compare to difference value.");
-
- try
- {
-
- Decimal myDecimal1 = new decimal(TestLibrary.Generator.GetInt32(-55));
- Decimal myDecimal2 = new decimal(TestLibrary.Generator.GetSingle(-55));
- object myValue = myDecimal2;
- if (myDecimal1.Equals(myValue))
- {
- TestLibrary.TestFramework.LogError("002.1", "Calling Equals method should return false." );
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Compare to difference value.");
-
- try
- {
-
- int myInt = TestLibrary.Generator.GetInt32(-55);
- Decimal myDecimal1 = new decimal(myInt);
- Decimal myDecimal2 = new decimal(myInt);
- object myValue = myDecimal2;
- if (!myDecimal1.Equals(myValue))
- {
- TestLibrary.TestFramework.LogError("003.1", "Calling Equals method should return true.");
- retVal = false;
- }
- Single mySingle = TestLibrary.Generator.GetSingle(-55);
- myDecimal1 = new decimal(mySingle);
- myDecimal2 = new decimal(mySingle);
- myValue = myDecimal2;
- if (!myDecimal1.Equals(myValue))
- {
- TestLibrary.TestFramework.LogError("003.2", "Calling Equals method should return true.");
- retVal = false;
- }
- double myDouble = TestLibrary.Generator.GetDouble(-55);
- myDecimal1 = new decimal(myDouble);
- myDecimal2 = new decimal(myDouble);
- myValue = myDecimal2;
- if (!myDecimal1.Equals(myValue))
- {
- TestLibrary.TestFramework.LogError("003.3", "Calling Equals method should return true.");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #endregion
-
- public static int Main()
- {
- DecimalEquals3 test = new DecimalEquals3();
-
- TestLibrary.TestFramework.BeginTestCase("DecimalEquals3");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-
-}
+++ /dev/null
-// 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.Decimal.MaxValue
-/// </summary>
-public class DecimalMaxValue
-{
- private const string c_STRMAX = "79228162514264337593543950335";
-
- public static int Main()
- {
- DecimalMaxValue dMaxValue = new DecimalMaxValue();
- TestLibrary.TestFramework.BeginTestCase("for Field:System.Decimal.MaxValue");
-
- if (dMaxValue.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 PositiveTesting
- public bool PosTest1()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest1:Verify the Decimal.MaxValue is equal to 79228162514264337593543950335";
- const string c_TEST_ID = "P001";
-
- Decimal dMax = Convert.ToDecimal(c_STRMAX);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
-
- if (Decimal.MaxValue != dMax)
- {
- string errorDesc = "Value is not " + dMax.ToString() + " as expected: Actual(" + Decimal.MaxValue.ToString() + ")";
- 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);
- retVal = false;
- }
-
-
- return retVal;
- }
-
-
- #endregion
-}
-
+++ /dev/null
-// 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.Decimal.MinusOne
-/// </summary>
-public class DecimalMinusOne
-{
-
- public static int Main()
- {
- DecimalMinusOne dMinusOne = new DecimalMinusOne();
- TestLibrary.TestFramework.BeginTestCase("for Field:System.Decimal.MinusOne");
-
- if (dMinusOne.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 PositiveTesting
- public bool PosTest1()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest1:Verify the Decimal.MinusOne is equal -1";
- const string c_TEST_ID = "P001";
-
- Decimal dMinusOne = Convert.ToDecimal(-1);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
-
- if (Decimal.MinusOne != dMinusOne)
- {
- string errorDesc = "Value is not " + dMinusOne.ToString() + " as expected: Actual(" + Decimal.MinusOne.ToString() + ")";
- 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);
- retVal = false;
- }
-
-
- return retVal;
- }
-
-
- #endregion
-}
-
+++ /dev/null
-// 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.Decimal.MinValue
-/// </summary>
-public class DecimalMinValue
-{
- private const string c_STRMIN = "-79228162514264337593543950335";
-
- public static int Main()
- {
- DecimalMinValue dMinValue = new DecimalMinValue();
- TestLibrary.TestFramework.BeginTestCase("for Field:System.Decimal.MinValue");
-
- if (dMinValue.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 PositiveTesting
- public bool PosTest1()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest1:Verify the Decimal.MinValue is equal to -79228162514264337593543950335";
- const string c_TEST_ID = "P001";
-
- Decimal dMin = Convert.ToDecimal(c_STRMIN);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
-
- if (Decimal.MinValue != dMin)
- {
- string errorDesc = "Value is not " + dMin.ToString() + " as expected: Actual(" + Decimal.MinValue.ToString() + ")";
- 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);
- retVal = false;
- }
-
-
- return retVal;
- }
-
-
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// Negate(System.Decimal)
-/// </summary>
-public class DecimalNegate
-{
- #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: Calling Negate method.");
-
- try
- {
- Decimal m1 = new decimal(TestLibrary.Generator.GetDouble(-55));
- Decimal expectValue = -m1;
- Decimal actualValue = Decimal.Negate(m1);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.1", "Negate should return " + expectValue);
- retVal = false;
- }
-
-
- m1 = new decimal(TestLibrary.Generator.GetInt32(-55));
- expectValue = -m1;
- actualValue = Decimal.Negate(m1);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.2", "Negate should return " + expectValue);
- retVal = false;
- }
-
- m1 = new decimal(TestLibrary.Generator.GetSingle(-55));
- expectValue = -m1;
- actualValue = Decimal.Negate(m1);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.3", "Negate should return " + expectValue);
- retVal = false;
- }
-
- m1 = -1000m;
- expectValue =1000m;
- actualValue = Decimal.Negate(m1);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.4", "Negate should return " + expectValue);
- retVal = false;
- }
-
-
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #endregion
-
- public static int Main()
- {
- DecimalNegate test = new DecimalNegate();
-
- TestLibrary.TestFramework.BeginTestCase("DecimalNegate");
-
- 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
- public TypeCode GetExpectValue(Decimal myValue)
- {
- return TypeCode.Decimal;
- }
- #endregion
-}
+++ /dev/null
-// 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.Decimal.One
-/// </summary>
-public class DecimalOne
-{
-
- public static int Main()
- {
- DecimalOne dOne = new DecimalOne();
- TestLibrary.TestFramework.BeginTestCase("for Field:System.Decimal.One");
-
- if (dOne.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 PositiveTesting
- public bool PosTest1()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest1:Verify the Decimal One is equal to 1";
- const string c_TEST_ID = "P001";
-
- Decimal dOne = Convert.ToDecimal(1);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
-
- if (Decimal.One != dOne)
- {
- string errorDesc = "Value is not " + dOne.ToString() + " as expected: Actual(" + Decimal.One.ToString() + ")";
- 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);
- retVal = false;
- }
-
-
- return retVal;
- }
-
-
- #endregion
-}
-
+++ /dev/null
-// 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;
-/// <summary>
-///System.IConvertible.ToBoolean(System.IFormatProvider)
-/// </summary>
-public class DecimalToBoolean
-{
- #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;
- return retVal;
- }
-
- #region Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Check a random Decimal.");
-
- try
- {
- Decimal i1 =new decimal( TestLibrary.Generator.GetSingle(-55));
- CultureInfo myCulture = new CultureInfo("en-us");
- bool actualValue = ((IConvertible)i1).ToBoolean(myCulture);
- if (!actualValue)
- {
- TestLibrary.TestFramework.LogError("001.1", "ToBoolean should return " + actualValue);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: check Decimal which is the MaxValue and MinValue.");
-
- try
- {
- Decimal i1 = Decimal.MaxValue;
- CultureInfo myCulture = new CultureInfo("en-us");
- bool actualValue = ((IConvertible)i1).ToBoolean(myCulture);
- if (!actualValue)
- {
- TestLibrary.TestFramework.LogError("002.1", "ToBoolean should return " + actualValue);
- retVal = false;
- }
- i1 = Decimal.MinValue;
- actualValue = ((IConvertible)i1).ToBoolean(myCulture);
- if (!actualValue)
- {
- TestLibrary.TestFramework.LogError("002.2", "ToBoolean should return " + actualValue);
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.4", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Check a decimal which is -123456789.");
-
- try
- {
- Decimal i1 = -123456789m;
- CultureInfo myCulture = new CultureInfo("en-us");
- bool actualValue = ((IConvertible)i1).ToBoolean(myCulture);
- if (!actualValue)
- {
- TestLibrary.TestFramework.LogError("003.1", "ToBoolean should return " + actualValue);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool PosTest4()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: Check a Decimal which is 123.45e+6.");
-
- try
- {
- Decimal i1 = (Decimal)123.45e+6;
- CultureInfo myCulture = new CultureInfo("en-us");
- bool actualValue = ((IConvertible)i1).ToBoolean(myCulture);
- if (!actualValue)
- {
- TestLibrary.TestFramework.LogError("004.1", "ToBoolean should return " + actualValue);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool PosTest5()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest5: Check a Decimal which is -.123.");
-
- try
- {
- Decimal i1 = (Decimal)(-.123);
- CultureInfo myCulture = new CultureInfo("en-us");
- bool actualValue = ((IConvertible)i1).ToBoolean(myCulture);
- if (!actualValue)
- {
- TestLibrary.TestFramework.LogError("005.1", "ToBoolean return failed. ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("005.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest6()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest6: Check a Decimal which is +123.");
-
- try
- {
- Decimal i1 = (Decimal)(+123);
- CultureInfo myCulture = new CultureInfo("en-us");
- bool actualValue = ((IConvertible)i1).ToBoolean(myCulture);
- if (!actualValue)
- {
- TestLibrary.TestFramework.LogError("006.1", "ToBoolean return failed. ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #endregion
-
- public static int Main()
- {
- DecimalToBoolean test = new DecimalToBoolean();
-
- TestLibrary.TestFramework.BeginTestCase("DecimalToBoolean");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-}
+++ /dev/null
-// 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;
-/// <summary>
-///System.IConvertible.ToByte(System.IFormatProvider)
-/// </summary>
-public class DecimalToByte
-{
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- TestLibrary.TestFramework.LogInformation("[Negtive]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- return retVal;
- }
-
- #region Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Check a random Decimal.");
-
- try
- {
- Decimal i1 = new decimal(TestLibrary.Generator.GetSingle(-55));
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- byte expectVaule;
- if (i1 > 0.5m)
- expectVaule = 1;
- else
- expectVaule = 0;
- byte actualValue = ((IConvertible)i1).ToByte(myCulture);
- if (actualValue != expectVaule)
- {
- TestLibrary.TestFramework.LogError("001.1", "ToByte mix match: Expected(" + expectVaule +") Actual("+actualValue+")");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Check a Decimal which is byte.MaxValue and byte.MinValue.");
-
- try
- {
- Decimal i1 = byte.MaxValue;
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- byte expectVaule = byte.MaxValue;
- byte actualValue = ((IConvertible)i1).ToByte(myCulture);
- if (actualValue != expectVaule)
- {
- TestLibrary.TestFramework.LogError("002.1", "ToByte should return " + expectVaule);
- retVal = false;
- }
-
- i1 = byte.MinValue;
- expectVaule = byte.MinValue;
- actualValue = ((IConvertible)i1).ToByte(myCulture);
- if (actualValue != expectVaule)
- {
- TestLibrary.TestFramework.LogError("002.2", "ToByte should return " + expectVaule);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: value is greater than Byte.MaxValue.");
-
- try
- {
- Decimal i1 = byte.MaxValue + 1m;
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- byte actualValue = ((IConvertible)i1).ToByte(myCulture);
- TestLibrary.TestFramework.LogError("101.1", "OverflowException should be caught. ");
- retVal = false;
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("101.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: value is less than Byte.MinValue.");
-
- try
- {
- Decimal i1 = byte.MinValue - 1m;
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- byte actualValue = ((IConvertible)i1).ToByte(myCulture);
- TestLibrary.TestFramework.LogError("102.1", "OverflowException should be caught. ");
- retVal = false;
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #endregion
-
- public static int Main()
- {
- DecimalToByte test = new DecimalToByte();
-
- TestLibrary.TestFramework.BeginTestCase("DecimalToByte");
-
- 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 VerifyHelper(Decimal i1, string errorno)
- {
- bool retVal = true;
-
- try
- {
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- byte actualValue = ((IConvertible)i1).ToByte(myCulture);
- TestLibrary.TestFramework.LogError(errorno, "OverflowException should be caught. ");
- retVal = false;
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError(errorno + ".0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
-}
+++ /dev/null
-// 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;
-/// <summary>
-///ToByte(System.Decimal)
-/// </summary>
-public class DecimalToByte1
-{
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- TestLibrary.TestFramework.LogInformation("[Negtive]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- return retVal;
- }
-
- #region Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Check a random Decimal.");
-
- try
- {
- byte b = (byte)(TestLibrary.Generator.GetInt32(-55) % 256);
- Decimal i1 = (Decimal)(b + new decimal(TestLibrary.Generator.GetSingle(-55)));
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- byte expectVaule = b;
- byte actualValue = Decimal.ToByte(i1);
- if (actualValue != expectVaule)
- {
- TestLibrary.TestFramework.LogError("001.1", "ToByte should return " + expectVaule + " Actual: " + actualValue);
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Check a Decimal which is byte.MaxValue and byte.MinValue.");
-
- try
- {
- Decimal i1 = byte.MaxValue;
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- byte expectVaule = byte.MaxValue;
- byte actualValue = Decimal.ToByte(i1);
- if (actualValue != expectVaule)
- {
- TestLibrary.TestFramework.LogError("002.1", "ToByte should return " + expectVaule);
- retVal = false;
- }
-
- i1 = byte.MinValue;
- expectVaule = byte.MinValue;
- actualValue = Decimal.ToByte(i1);
- if (actualValue != expectVaule)
- {
- TestLibrary.TestFramework.LogError("002.2", "ToByte should return " + expectVaule);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: value is greater than Byte.MaxValue.");
-
- try
- {
- Decimal i1 = byte.MaxValue + 1m;
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- byte actualValue = Decimal.ToByte(i1);
- TestLibrary.TestFramework.LogError("101.1", "OverflowException should be caught. ");
- retVal = false;
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("101.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: value is less than Byte.MinValue.");
-
- try
- {
- Decimal i1 = byte.MinValue - 1m;
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- byte actualValue = Decimal.ToByte(i1);
- TestLibrary.TestFramework.LogError("102.1", "OverflowException should be caught. ");
- retVal = false;
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #endregion
-
- public static int Main()
- {
- DecimalToByte1 test = new DecimalToByte1();
-
- TestLibrary.TestFramework.BeginTestCase("DecimalToByte1");
-
- 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 VerifyHelper(Decimal i1, string errorno)
- {
- bool retVal = true;
-
- try
- {
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- byte actualValue = Decimal.ToByte(i1);
- TestLibrary.TestFramework.LogError(errorno, "OverflowException should be caught. ");
- retVal = false;
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError(errorno + ".0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
-}
+++ /dev/null
-// 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;
-/// <summary>
-///System.IConvertible.ToDecimal(System.IFormatProvider)
-/// </summary>
-public class DecimalToDecimal
-{
- #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: Check a random Decimal.");
-
- try
- {
- Decimal i1 = new decimal(TestLibrary.Generator.GetSingle(-55));
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- Decimal expectVaule = i1;
- Decimal actualValue = ((IConvertible)i1).ToDecimal(myCulture);
- if (actualValue != expectVaule)
- {
- TestLibrary.TestFramework.LogError("001.1", "ToDecimal should return " + expectVaule);
- retVal = false;
- }
-
-
- i1 = new decimal(TestLibrary.Generator.GetInt32(-55));
- expectVaule = i1;
- actualValue = ((IConvertible)i1).ToDecimal(myCulture);
- if (actualValue != expectVaule)
- {
- TestLibrary.TestFramework.LogError("001.2", "ToDecimal should return " + expectVaule);
- retVal = false;
- }
-
-
- i1 = new decimal(TestLibrary.Generator.GetSingle(-55));
- expectVaule = i1;
- actualValue = ((IConvertible)i1).ToDecimal(myCulture);
- if (actualValue != expectVaule)
- {
- TestLibrary.TestFramework.LogError("001.3", "ToDecimal should return " + expectVaule);
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Check a Decimal which is byte.MaxValue and byte.MinValue.");
-
- try
- {
- Decimal i1 = Decimal.MaxValue;
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- Decimal expectVaule = Decimal.MaxValue;
- Decimal actualValue = ((IConvertible)i1).ToDecimal(myCulture);
- if (actualValue != expectVaule)
- {
- TestLibrary.TestFramework.LogError("002.1", "ToDecimal should return " + expectVaule);
- retVal = false;
- }
-
- i1 = Decimal.MinValue;
- expectVaule = Decimal.MinValue;
- actualValue = ((IConvertible)i1).ToDecimal(myCulture);
- if (actualValue != expectVaule)
- {
- TestLibrary.TestFramework.LogError("002.2", "ToDecimal should return " + expectVaule);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
-
- #endregion
-
- #endregion
-
- public static int Main()
- {
- DecimalToDecimal test = new DecimalToDecimal();
-
- TestLibrary.TestFramework.BeginTestCase("DecimalToDecimal");
-
- 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 VerifyHelper(Decimal i1, string errorno)
- {
- bool retVal = true;
-
- try
- {
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- Decimal actualValue = ((IConvertible)i1).ToDecimal(myCulture);
- TestLibrary.TestFramework.LogError(errorno, "OverflowException should be caught. ");
- retVal = false;
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError(errorno + ".0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
-}
+++ /dev/null
-// 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;
-/// <summary>
-///System.IConvertible.ToDouble(System.IFormatProvider)
-/// </summary>
-public class DecimalToDouble
-{
- #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: Check a random Decimal.");
-
- try
- {
- Decimal d1 = new decimal(TestLibrary.Generator.GetSingle(-55));
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- double actualValue = ((IConvertible)d1).ToDouble(myCulture);
- double expectValue = (double)d1;
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.1", "ToDouble should return " + expectValue);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Check a Decimal which is the Decimal.MaxValue and Decimal.MinValue.");
-
- try
- {
- Decimal i1 = Decimal.MaxValue;
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- Double actualValue = ((IConvertible)i1).ToDouble(myCulture);
- Double expectValue = (double)i1;
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("002.1", "ToDouble should return " + expectValue);
- retVal = false;
- }
-
- i1 = Decimal.MinValue;
- actualValue = ((IConvertible)i1).ToDouble(myCulture);
- expectValue = (double)i1;
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("002.2", "ToDouble should return " + expectValue);
- retVal = false;
- }
-
- }
-
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
-
- #endregion
-
- #endregion
-
- public static int Main()
- {
- DecimalToDouble test = new DecimalToDouble();
-
- TestLibrary.TestFramework.BeginTestCase("DecimalToDouble");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-}
+++ /dev/null
-// 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;
-/// <summary>
-///System.IConvertible.ToInt16(System.IFormatProvider)
-/// </summary>
-public class DecimalToInt16
-{
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- TestLibrary.TestFramework.LogInformation("[Negtive]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- return retVal;
- }
-
- #region Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Check a random Decimal.");
-
- try
- {
- Decimal i1 = new decimal(TestLibrary.Generator.GetSingle(-55));
- short expectValue = 0;
- if (i1 > 0.5m)
- expectValue = 1;
- else
- expectValue = 0;
- CultureInfo myCulture = new CultureInfo("en-us");
- short actualValue = ((IConvertible)i1).ToInt16(myCulture);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.1", "ToInt16 should return " + expectValue);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Check a Decimal which is -123.");
-
- try
- {
- Decimal i1 = short.MaxValue;
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- short actualValue = ((IConvertible)i1).ToInt16(myCulture);
- if (actualValue != short.MaxValue)
- {
- TestLibrary.TestFramework.LogError("002.1", "ToInt16 return failed. ");
- retVal = false;
- }
-
- i1 = short.MinValue;
- actualValue = ((IConvertible)i1).ToInt16(myCulture);
- if (actualValue != short.MinValue)
- {
- TestLibrary.TestFramework.LogError("002.2", "ToInt16 return failed. ");
- retVal = false;
- }
-
- }
-
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
-
- public bool NegTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: Check a Decimal which is >Int16.MaxValue.");
-
- try
- {
- Decimal i1 = Int16.MaxValue +1m;
- CultureInfo myCulture = new CultureInfo("en-us");
- short actualValue = ((IConvertible)i1).ToInt16(myCulture);
- TestLibrary.TestFramework.LogError("101.1", "OverflowException should be caught.");
- retVal = false;
-
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("101.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: Check a Decimal which is <Int16.MinValue.");
-
- try
- {
- Decimal i1 = Int16.MinValue - 1m;
- CultureInfo myCulture = new CultureInfo("en-us");
- short actualValue = ((IConvertible)i1).ToInt16(myCulture);
- TestLibrary.TestFramework.LogError("102.1", "ToInt16 return failed. ");
- retVal = false;
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #endregion
-
- public static int Main()
- {
- DecimalToInt16 test = new DecimalToInt16();
-
- TestLibrary.TestFramework.BeginTestCase("DecimalToInt16");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-}
+++ /dev/null
-// 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;
-/// <summary>
-///System.IConvertible.ToInt32(System.IFormatProvider)
-/// </summary>
-public class DecimalToInt32
-{
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- TestLibrary.TestFramework.LogInformation("[Negtive]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- return retVal;
- }
-
- #region Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Check a random Decimal.");
-
- try
- {
- Decimal i1 = new decimal(TestLibrary.Generator.GetSingle(-55));
- int expectValue = 0;
- if (i1 > 0.5m)
- expectValue = 1;
- else
- expectValue = 0;
- CultureInfo myCulture = new CultureInfo("en-us");
- int actualValue = ((IConvertible)i1).ToInt32(myCulture);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.1", "ToInt32 should return " + expectValue);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Check a Decimal which is -123.");
-
- try
- {
- Decimal i1 = int.MaxValue;
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- int actualValue = ((IConvertible)i1).ToInt32(myCulture);
- if (actualValue != int.MaxValue)
- {
- TestLibrary.TestFramework.LogError("002.1", "ToInt32 return failed. ");
- retVal = false;
- }
-
- i1 = int.MinValue;
- actualValue = ((IConvertible)i1).ToInt32(myCulture);
- if (actualValue != int.MinValue)
- {
- TestLibrary.TestFramework.LogError("002.2", "ToInt32 return failed. ");
- retVal = false;
- }
-
- }
-
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
-
- public bool NegTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: Check a Decimal which is >Int32.MaxValue.");
-
- try
- {
- Decimal i1 = Int32.MaxValue +1m;
- CultureInfo myCulture = new CultureInfo("en-us");
- int actualValue = ((IConvertible)i1).ToInt32(myCulture);
- TestLibrary.TestFramework.LogError("101.1", "OverflowException should be caught.");
- retVal = false;
-
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("101.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: Check a Decimal which is <Int32.MinValue.");
-
- try
- {
- Decimal i1 = Int32.MinValue - 1m;
- CultureInfo myCulture = new CultureInfo("en-us");
- int actualValue = ((IConvertible)i1).ToInt32(myCulture);
- TestLibrary.TestFramework.LogError("102.1", "ToInt32 return failed. ");
- retVal = false;
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #endregion
-
- public static int Main()
- {
- DecimalToInt32 test = new DecimalToInt32();
-
- TestLibrary.TestFramework.BeginTestCase("DecimalToInt32");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-}
+++ /dev/null
-// 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;
-/// <summary>
-///System.IConvertible.ToInt64(System.IFormatProvider)
-/// </summary>
-public class DecimalToInt64
-{
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- TestLibrary.TestFramework.LogInformation("[Negtive]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- return retVal;
- }
-
- #region Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Check a random Decimal.");
-
- try
- {
- Decimal i1 = new decimal(TestLibrary.Generator.GetSingle(-55));
- long expectValue = 0;
- if (i1 > 0.5m)
- expectValue = 1;
- else
- expectValue = 0;
- CultureInfo myCulture = new CultureInfo("en-us");
- long actualValue = ((IConvertible)i1).ToInt64(myCulture);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.1", "ToInt64 should return " + expectValue);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Check a Decimal which is Int64.MaxValue and Int64.MinValue.");
-
- try
- {
- Decimal i1 = Int64.MaxValue;
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- long actualValue = ((IConvertible)i1).ToInt64(myCulture);
- if (actualValue != Int64.MaxValue)
- {
- TestLibrary.TestFramework.LogError("002.1", "ToInt64 return failed. ");
- retVal = false;
- }
-
- i1 = Int64.MinValue;
- actualValue = ((IConvertible)i1).ToInt64(myCulture);
- if (actualValue != Int64.MinValue)
- {
- TestLibrary.TestFramework.LogError("002.2", "ToInt64 return failed. ");
- retVal = false;
- }
-
- }
-
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
-
- public bool NegTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: Check a Decimal which is >Int64.MaxValue.");
-
- try
- {
- Decimal i1 = Int64.MaxValue +1m;
- CultureInfo myCulture = new CultureInfo("en-us");
- Int64 actualValue = ((IConvertible)i1).ToInt64(myCulture);
- TestLibrary.TestFramework.LogError("101.1", "OverflowException should be caught.");
- retVal = false;
-
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("101.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: Check a Decimal which is <Int64.MinValue.");
-
- try
- {
- Decimal i1 = Int64.MinValue - 1m;
- CultureInfo myCulture = new CultureInfo("en-us");
- Int64 actualValue = ((IConvertible)i1).ToInt64(myCulture);
- TestLibrary.TestFramework.LogError("102.1", "ToInt64 return failed. ");
- retVal = false;
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #endregion
-
- public static int Main()
- {
- DecimalToInt64 test = new DecimalToInt64();
-
- TestLibrary.TestFramework.BeginTestCase("DecimalToInt64");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-}
+++ /dev/null
-// 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;
-/// <summary>
-///System.IConvertible.ToSByte(System.IFormatProvider)
-/// </summary>
-public class DecimalToSByte
-{
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- TestLibrary.TestFramework.LogInformation("[Negtive]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- return retVal;
- }
-
- #region Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Check a random Decimal.");
-
- try
- {
- Decimal i1 = new decimal(TestLibrary.Generator.GetSingle(-55));
- int expectValue = 0;
- if (i1 > 0.5m)
- expectValue = 1;
- else
- expectValue = 0;
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- sbyte actualValue = ((IConvertible)i1).ToSByte(myCulture);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.1", "ToSByte should return " + expectValue);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Check a Decimal which is sbyte.MaxValue and sbyte.MinValue.");
-
- try
- {
- Decimal i1 = sbyte.MaxValue;
- CultureInfo myCulture =CultureInfo.InvariantCulture;
- sbyte actualValue = ((IConvertible)i1).ToSByte(myCulture);
- if (actualValue != sbyte.MaxValue)
- {
- TestLibrary.TestFramework.LogError("002.1", "ToSByte return failed. ");
- retVal = false;
- }
-
- i1 = sbyte.MinValue;
- actualValue = ((IConvertible)i1).ToSByte(myCulture);
- if (actualValue != sbyte.MinValue)
- {
- TestLibrary.TestFramework.LogError("002.2", "ToSByte return failed. ");
- retVal = false;
- }
-
- }
-
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
-
- public bool NegTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: Check a Decimal which is >SByte.MaxValue.");
-
- try
- {
-
- Decimal i1 = SByte.MaxValue + 1.0m;
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- sbyte actualValue = ((IConvertible)i1).ToSByte(myCulture);
- TestLibrary.TestFramework.LogError("101.1", "ToSByte return failed. ");
- retVal = false;
-
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("101.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: Check a Decimal which is <SByte.MinValue.");
-
- try
- {
- Decimal i1 = SByte.MinValue - 1.0m;
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- sbyte actualValue = ((IConvertible)i1).ToSByte(myCulture);
- TestLibrary.TestFramework.LogError("102.1", "ToSByte return failed. ");
- retVal = false;
-
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #endregion
-
- public static int Main()
- {
- DecimalToSByte test = new DecimalToSByte();
-
- TestLibrary.TestFramework.BeginTestCase("DecimalToSByte");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-}
+++ /dev/null
-// 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;
-/// <summary>
-///System.IConvertible.ToSingle(System.IFormatProvider)
-/// </summary>
-public class DecimalToSingle
-{
- #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: Check a random single.");
-
- try
- {
- Decimal i1 = new decimal(TestLibrary.Generator.GetSingle(-55));
-
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- Single actualValue = ((IConvertible)i1).ToSingle(myCulture);
- Single expectValue = (Single)i1;
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.1", "ToSingle should return " + expectValue);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Check a single which is -9999.999.");
-
- try
- {
- Decimal i1 = -9999.999m;
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- Single actualValue = ((IConvertible)i1).ToSingle(myCulture);
- Single expectValue = -9999.999f;
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("002.1", "ToSingle should return " + expectValue);
- retVal = false;
- }
-
- }
-
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
-
- #endregion
-
- #endregion
-
- public static int Main()
- {
- DecimalToSingle test = new DecimalToSingle();
-
- TestLibrary.TestFramework.BeginTestCase("DecimalToSingle");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-}
+++ /dev/null
-// 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.CompilerServices;
-using System.Globalization;
-/// <summary>
-/// ToString
-/// </summary>
-public class DecimalToString1
-{
- #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: Calling ToString method.");
-
- try
- {
- decimal d1 = 11111.111m;
- CultureInfo myCulture=CultureInfo.CurrentCulture ;
- string seperator=myCulture.NumberFormat.CurrencyDecimalSeparator;
- string expectValue="11111"+seperator+"111";
- string actualValue = d1.ToString();
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.1", "ToString should return "+expectValue);
- retVal = false;
- }
- d1 = -11111.111m;
- expectValue = "-11111" + seperator + "111";
- actualValue = d1.ToString();
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.2", "ToString should return " + expectValue);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Calling ToString method and the value is Decimal.MaxValue and Decimal.MinValue.");
-
- try
- {
- decimal d1 = Decimal.MaxValue;
- CultureInfo myCulture = CultureInfo.CurrentCulture;
- string seperator = myCulture.NumberFormat.CurrencyDecimalSeparator;
- string expectValue = "79228162514264337593543950335";
- string actualValue = d1.ToString();
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("002.1", "ToString should return " + expectValue);
- retVal = false;
- }
- d1 = Decimal.MinValue;
- expectValue = "-79228162514264337593543950335";
- actualValue = d1.ToString();
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("002.2", "ToString should return " + expectValue);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Calling ToString method,the decimal has a long fractional digits.");
-
- try
- {
- int exponent = 28;
- decimal d1 = 1e-28m;
- CultureInfo myCulture = CultureInfo.CurrentCulture;
- string seperator = myCulture.NumberFormat.CurrencyDecimalSeparator;
- string expectValue = "0" + seperator;
- for (int i = 1; i < exponent; i++)
- {
- expectValue += "0";
- }
- expectValue = expectValue + "1";
- string actualValue = d1.ToString();
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("003.1", "ToString should return " + expectValue);
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
-
- #endregion
-
- public static int Main()
- {
- DecimalToString1 test = new DecimalToString1();
-
- TestLibrary.TestFramework.BeginTestCase("DecimalToString1");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-}
+++ /dev/null
-// 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.CompilerServices;
-using System.Globalization;
-/// <summary>
-/// ToString(System.IFormatProvider)
-/// </summary>
-public class DecimalToString2
-{
- #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: Calling ToString method.");
-
- try
- {
- decimal d1 = 11111.111m;
- CultureInfo myCulture=CultureInfo.InvariantCulture ;
- string seperator=myCulture.NumberFormat.CurrencyDecimalSeparator;
- string expectValue="11111"+seperator+"111";
- string actualValue = d1.ToString(myCulture);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.1", "ToString should return "+expectValue);
- retVal = false;
- }
- d1 = -11111.111m;
- expectValue = "-11111" + seperator + "111";
- actualValue = d1.ToString(myCulture);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.2", "ToString should return " + expectValue);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Calling ToString method and the value is Decimal.MaxValue and Decimal.MinValue.");
-
- try
- {
- decimal d1 = Decimal.MaxValue;
- CultureInfo myCulture = CultureInfo.CurrentCulture;
- string seperator = myCulture.NumberFormat.CurrencyDecimalSeparator;
- string expectValue = "79228162514264337593543950335";
- string actualValue = d1.ToString(myCulture);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("002.1", "ToString should return " + expectValue);
- retVal = false;
- }
- d1 = Decimal.MinValue;
- expectValue = "-79228162514264337593543950335";
- actualValue = d1.ToString(myCulture);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("002.2", "ToString should return " + expectValue);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Calling ToString method,the decimal has a long fractional digits.");
-
- try
- {
- int exponent = 28;
- decimal d1 = 1e-28m;
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- string seperator = myCulture.NumberFormat.CurrencyDecimalSeparator;
- string expectValue = "0" + seperator;
- for (int i = 1; i < exponent; i++)
- {
- expectValue += "0";
- }
- expectValue = expectValue + "1";
- string actualValue = d1.ToString(myCulture);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("003.1", "ToString should return " + expectValue);
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
-
- #endregion
-
- public static int Main()
- {
- DecimalToString2 test = new DecimalToString2();
-
- TestLibrary.TestFramework.BeginTestCase("DecimalToString2");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-}
+++ /dev/null
-// 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.CompilerServices;
-using System.Globalization;
-/// <summary>
-///ToString(System.String)
-/// </summary>
-public class DecimalToString3
-{
- #region privates
- private CultureInfo CurrentCulture = TestLibrary.Utilities.CurrentCulture;
- private CultureInfo customCulture = null;
-
- private CultureInfo CustomCulture
- {
- get
- {
- if (null == customCulture)
- {
- customCulture = new CultureInfo(CultureInfo.CurrentCulture.Name);
- NumberFormatInfo nfi = customCulture.NumberFormat;
-
- //For "G"
- // NegativeSign, NumberDecimalSeparator, NumberDecimalDigits, PositiveSign
- nfi.NumberDecimalDigits = 2;
- nfi.PositiveSign = "+";
- nfi.NegativeSign = "-";
- nfi.NumberDecimalSeparator = ".";
-
- //For "N"
- //NegativeSign, NumberNegativePattern, NumberGroupSizes, NumberGroupSeparator, NumberDecimalSeparator, NumberDecimalDigits
- nfi.NumberNegativePattern = 1;
- nfi.NumberGroupSizes = new int[]{3};
- nfi.NumberGroupSeparator = ",";
-
- customCulture.NumberFormat = nfi;
- }
- return customCulture;
- }
- }
- #endregion
-
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
-
- TestLibrary.Utilities.CurrentCulture = CustomCulture;
-
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
-
- TestLibrary.Utilities.CurrentCulture = CurrentCulture;
-
- return retVal;
- }
-
- #region Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Calling ToString method,format string is G.");
-
- try
- {
- decimal d1 = 11111.111m;
- CultureInfo myCulture = CultureInfo.CurrentCulture;
- string seperator = myCulture.NumberFormat.NumberDecimalSeparator;
- string expectValue = "11111" + seperator + "111";
- string actualValue = d1.ToString("G9");
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.1", "ToString should return " + expectValue);
- retVal = false;
- }
- d1 = -11111.1234567891m;
- expectValue = "-11111" + seperator + "1235";
- actualValue = d1.ToString("G9");
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.2", "ToString should return " + expectValue);
- retVal = false;
- }
-
- d1 = -1.1234567891m;
- expectValue = "-1";
- actualValue = d1.ToString("G1");
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.3", "ToString should return " + expectValue);
- retVal = false;
- }
-
- d1 = -1.1234567891m;
- expectValue = "-1" + seperator + "1235";
- actualValue = d1.ToString("G5");
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.4", "ToString should return " + expectValue);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Calling ToString method,format string is N.");
-
- try
- {
- decimal d1 = 11111.111m;
- CultureInfo myCulture = CultureInfo.CurrentCulture;
- string seperator = myCulture.NumberFormat.NumberDecimalSeparator;
- string expectValue = "11" + myCulture.NumberFormat.NumberGroupSeparator + "111" + seperator + "111000000";
- string actualValue = d1.ToString("N9");
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("002.1", "ToString should return " + expectValue);
- retVal = false;
- }
- d1 = -11111.1234567891m;
- expectValue = "-11" + myCulture.NumberFormat.NumberGroupSeparator + "111" + seperator + "123456789";
- actualValue = d1.ToString("N9");
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("002.2", "ToString should return " + expectValue);
- retVal = false;
- }
-
- d1 = -1.1234567891m;
- expectValue = "-1" + seperator + "1";
- actualValue = d1.ToString("N1");
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("002.3", "ToString should return " + expectValue);
- retVal = false;
- }
-
- d1 = -1.1234567891m;
- expectValue = "-1" + seperator + "12346";
- actualValue = d1.ToString("N5");
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("002.4", "ToString should return " + expectValue);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
-
- #endregion
-
- public static int Main()
- {
- DecimalToString3 test = new DecimalToString3();
-
- TestLibrary.TestFramework.BeginTestCase("DecimalToString3");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-}
+++ /dev/null
-// 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.CompilerServices;
-using System.Globalization;
-/// <summary>
-/// ToString(System.String,System.IFormatProvider)
-/// </summary>
-public class DecimalToString4
-{
- #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: Calling ToString method,format string is G.");
-
- try
- {
- decimal d1 = 11111.111m;
- CultureInfo myCulture=CultureInfo.InvariantCulture ;
- string seperator=myCulture.NumberFormat.CurrencyDecimalSeparator;
- string expectValue="11111"+seperator+"111";
- string actualValue = d1.ToString("G9", myCulture);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.1", "ToString should return "+expectValue);
- retVal = false;
- }
- d1 = -11111.1234567891m;
- expectValue = "-11111" + seperator + "1235";
- actualValue = d1.ToString("G9", myCulture);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.2", "ToString should return " + expectValue);
- retVal = false;
- }
-
- d1 = -1.1234567891m;
- expectValue = "-1" ;
- actualValue = d1.ToString("G1", myCulture);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.3", "ToString should return " + expectValue);
- retVal = false;
- }
-
- d1 = -1.1234567891m;
- expectValue = "-1" + seperator + "1235";
- actualValue = d1.ToString("G5", myCulture);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.4", "ToString should return " + expectValue);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Calling ToString method,format string is N.");
-
- try
- {
- decimal d1 = 11111.111m;
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- string seperator = myCulture.NumberFormat.CurrencyDecimalSeparator;
- string expectValue = "11" + myCulture.NumberFormat.NumberGroupSeparator + "111" + seperator + "111000000";
- string actualValue = d1.ToString("N9", myCulture);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("002.1", "ToString should return " + expectValue);
- retVal = false;
- }
- d1 = -11111.1234567891m;
- expectValue = "-11" + myCulture.NumberFormat.NumberGroupSeparator + "111" + seperator + "123456789";
- actualValue = d1.ToString("N9", myCulture);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("002.2", "ToString should return " + expectValue);
- retVal = false;
- }
-
- d1 = -1.1234567891m;
- expectValue = "-1" + seperator + "1";
- actualValue = d1.ToString("N1", myCulture);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("002.3", "ToString should return " + expectValue);
- retVal = false;
- }
-
- d1 = -1.1234567891m;
- expectValue = "-1" + seperator + "12346";
- actualValue = d1.ToString("N5", myCulture);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("002.4", "ToString should return " + expectValue);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Calling ToString method,format string is C.");
-
- try
- {
- decimal d1 = 11111.111m;
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- string seperator = myCulture.NumberFormat.CurrencyDecimalSeparator;
- string expectValue = myCulture.NumberFormat.CurrencySymbol + "11" + myCulture.NumberFormat.NumberGroupSeparator + "111" + seperator + "111000000";
- string actualValue = d1.ToString("C9", myCulture);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("003.1", "ToString should return " + expectValue);
- retVal = false;
- }
- d1 = 11111.1234567891m;
- expectValue = myCulture.NumberFormat.CurrencySymbol + "11" + myCulture.NumberFormat.NumberGroupSeparator + "111" + seperator + "123456789";
- actualValue = d1.ToString("C9", myCulture);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("003.2", "ToString should return " + expectValue);
- retVal = false;
- }
-
- d1 = 1.1234567891m;
- expectValue = myCulture.NumberFormat.CurrencySymbol + "1" + seperator + "1";
- actualValue = d1.ToString("C1", myCulture);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("003.3", "ToString should return " + expectValue);
- retVal = false;
- }
-
- d1 = 1.1234567891m;
- expectValue = myCulture.NumberFormat.CurrencySymbol + "1" + seperator + "12346";
- actualValue = d1.ToString("C5", myCulture);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("003.4", "ToString should return " + expectValue);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
-
- #endregion
-
- public static int Main()
- {
- DecimalToString4 test = new DecimalToString4();
-
- TestLibrary.TestFramework.BeginTestCase("DecimalToString4");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-}
+++ /dev/null
-// 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;
-/// <summary>
-///System.IConvertible.ToUInt16(System.IFormatProvider)
-/// </summary>
-public class DecimalToUInt16
-{
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
-
- TestLibrary.TestFramework.LogInformation("[Negtive]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- return retVal;
- }
-
- #region Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Check a random Decimal.");
-
- try
- {
- Decimal i1 = new decimal (TestLibrary.Generator.GetSingle(-55));
- short expectValue = 0;
- if (i1 > 0.5m)
- expectValue = 1;
- else
- expectValue = 0;
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- ushort actualValue = ((IConvertible)i1).ToUInt16(myCulture);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.1", "ToUInt16 return failed. ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
-
- public bool NegTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: Check a Decimal which is >UInt16.MaxValue.");
-
- try
- {
- Decimal i1 = UInt16.MaxValue + 1m;
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- ushort actualValue = ((IConvertible)i1).ToUInt16(myCulture);
- TestLibrary.TestFramework.LogError("101.1", "ToUInt16 return failed. ");
- retVal = false;
-
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("101.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: Check a Decimal which is <UInt16.MinValue.");
-
- try
- {
- Decimal i1 = UInt16.MinValue - 1m;
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- ushort actualValue = ((IConvertible)i1).ToUInt16(myCulture);
- TestLibrary.TestFramework.LogError("102.1", "ToUInt16 return failed. ");
- retVal = false;
-
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #endregion
-
- public static int Main()
- {
- DecimalToUInt16 test = new DecimalToUInt16();
-
- TestLibrary.TestFramework.BeginTestCase("DecimalToUInt16");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-}
+++ /dev/null
-// 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;
-/// <summary>
-///System.IConvertible.ToUInt32(System.IFormatProvider)
-/// </summary>
-public class DecimalToUInt32
-{
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
-
- TestLibrary.TestFramework.LogInformation("[Negtive]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- return retVal;
- }
-
- #region Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Check a random Decimal.");
-
- try
- {
- Decimal i1 = new decimal (TestLibrary.Generator.GetSingle(-55));
- short expectValue = 0;
- if (i1 > 0.5m)
- expectValue = 1;
- else
- expectValue = 0;
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- uint actualValue = ((IConvertible)i1).ToUInt32(myCulture);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.1", "ToUInt32 return failed. ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
-
- public bool NegTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: Check a Decimal which is >UInt32.MaxValue.");
-
- try
- {
- Decimal i1 = UInt32.MaxValue + 1.0m;
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- uint actualValue = ((IConvertible)i1).ToUInt32(myCulture);
- TestLibrary.TestFramework.LogError("101.1", "ToUInt32 return failed. ");
- retVal = false;
-
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("101.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: Check a Decimal which is <UInt32.MinValue.");
-
- try
- {
- Decimal i1 = UInt32.MinValue - 1.0m;
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- uint actualValue = ((IConvertible)i1).ToUInt32(myCulture);
- TestLibrary.TestFramework.LogError("102.1", "ToUInt32 return failed. ");
- retVal = false;
-
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #endregion
-
- public static int Main()
- {
- DecimalToUInt32 test = new DecimalToUInt32();
-
- TestLibrary.TestFramework.BeginTestCase("DecimalToUInt32");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-}
+++ /dev/null
-// 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;
-/// <summary>
-///System.IConvertible.ToUInt64(System.IFormatProvider)
-/// </summary>
-public class DecimalToUInt64
-{
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
-
- TestLibrary.TestFramework.LogInformation("[Negtive]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- return retVal;
- }
-
- #region Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Check a random Decimal.");
-
- try
- {
- Decimal i1 = new decimal (TestLibrary.Generator.GetSingle(-55));
- ulong expectValue = 0;
- if (i1 > 0.5m)
- expectValue = 1;
- else
- expectValue = 0;
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- ulong actualValue = ((IConvertible)i1).ToUInt64(myCulture);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.1", "ToUInt64 return failed. ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
-
- public bool NegTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: Check a Decimal which is >UInt64.MaxValue.");
-
- try
- {
- Decimal i1 = UInt64.MaxValue + 1.0m;
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- ulong actualValue = ((IConvertible)i1).ToUInt64(myCulture);
- TestLibrary.TestFramework.LogError("101.1", "ToUInt64 return failed. ");
- retVal = false;
-
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("101.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: Check a Decimal which is <UInt64.MinValue.");
-
- try
- {
- Decimal i1 = UInt64.MinValue - 1.0m;
- CultureInfo myCulture = CultureInfo.InvariantCulture;
- ulong actualValue = ((IConvertible)i1).ToUInt64(myCulture);
- TestLibrary.TestFramework.LogError("102.1", "ToUInt64 return failed. ");
- retVal = false;
-
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #endregion
-
- public static int Main()
- {
- DecimalToUInt64 test = new DecimalToUInt64();
-
- TestLibrary.TestFramework.BeginTestCase("DecimalToUInt64");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-}
+++ /dev/null
-// 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>
-/// Truncate(System.Decimal)
-/// </summary>
-public class DecimalTruncate
-{
- #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: Calling Truncate method.");
-
- try
- {
- Decimal m1 =new decimal(TestLibrary.Generator.GetSingle(-55));
- Decimal expectValue = 0m;
- Decimal actualValue = Decimal.Truncate(m1);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.1", "Truncate should return " + expectValue);
- retVal = false;
- }
-
-
- m1 = 123.456789m;
- expectValue = 123m;
- actualValue = Decimal.Truncate(m1);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.2", "Truncate should return " + expectValue);
- retVal = false;
- }
-
-
-
- m1 = -123.456789m;
- expectValue = -123m;
- actualValue = Decimal.Truncate(m1);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.3", "Truncate should return " + expectValue);
- retVal = false;
- }
-
- m1 = -9999999999.9999999999m;
- expectValue = -9999999999m;
- actualValue = Decimal.Truncate(m1);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.4", "Truncate should return " + expectValue);
- retVal = false;
- }
- m1 = Decimal.MaxValue;
- expectValue = Decimal.MaxValue;
- actualValue = Decimal.Truncate(m1);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.5", "Truncate should return " + expectValue);
- retVal = false;
- }
-
- m1 = Decimal.MinValue;
- expectValue = Decimal.MinValue;
- actualValue = Decimal.Truncate(m1);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.6", "Truncate should return " + expectValue);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
-
- #endregion
-
- public static int Main()
- {
- DecimalTruncate test = new DecimalTruncate();
-
- TestLibrary.TestFramework.BeginTestCase("DecimalTruncate");
-
- 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
- public TypeCode GetExpectValue(Decimal myValue)
- {
- return TypeCode.Decimal;
- }
- #endregion
-}
+++ /dev/null
-// 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.Decimal.Zero
-/// </summary>
-public class DecimalZero
-{
-
- public static int Main()
- {
- DecimalZero dZero = new DecimalZero();
- TestLibrary.TestFramework.BeginTestCase("for Field:System.Decimal.Zero");
-
- if (dZero.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 PositiveTesting
- public bool PosTest1()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest1:Verify the Decimal Zero is equal to 0";
- const string c_TEST_ID = "P001";
-
- Decimal dZero = Convert.ToDecimal(0);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- try
- {
-
- if (Decimal.Zero != dZero)
- {
- string errorDesc = "Value is not " + dZero.ToString() + " as expected: Actual(" + Decimal.Zero.ToString() + ")";
- 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);
- retVal = false;
- }
-
-
- return retVal;
- }
-
-
- #endregion
-}
-
+++ /dev/null
-<?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="delegateabi.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>
-
+++ /dev/null
-<?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="testforotherassembly.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
+++ /dev/null
-// 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;
-
-namespace ClassLibrary
-{
- public class test
- {
- public delegate float FloatTest(float a);
-
- static float testfloat(float a)
- {
- if(a != -1.1f)
- {
- throw new Exception();
- }
- return -2.2f;
- }
-
- public delegate int IntTest(int a);
-
- static int testint(int a)
- {
- if(a != -1)
- {
- throw new Exception();
- }
- return -2;
- }
-
- static int Main(string[] args)
- {
- try
- {
- IntTest inttest = testint;
- int r = inttest(-1);
- if (r != -2)
- {
- Console.WriteLine("FAIL - int return value mismatch");
- return 101;
- }
- }
- catch (Exception)
- {
- Console.WriteLine("FAIL - int argument value mismatch");
- return 102;
- }
- try
- {
- FloatTest floattest = testfloat;
- float r = floattest(-1.1f);
- if (r != -2.2f)
- {
- Console.WriteLine("FAIL - float return value mismatch");
- return 103;
- }
- }
- catch (Exception)
- {
- Console.WriteLine("FAIL - float argument value mismatch");
- return 104;
- }
- return 100;
- }
- }
-}
+++ /dev/null
-// 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;
-using System.Security;
-
-namespace OtherAssemblyTest
-{
- public class TestOtherAssemblyClass
- {
-
- static internal void MethodF(string s)
- {
- Console.WriteLine("Static internal method MethodE on TestOtherAssemblyClass: s = {0}", s);
- }
- private void MethodH(string s)
- {
- Console.WriteLine("instance private method MethodE on TestOtherAssemblyClass: s = {0}", s);
- }
- }
-}
+++ /dev/null
-<?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="conditionalattributeconditionstring.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>
+++ /dev/null
-<?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="conditionalattributector.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>
+++ /dev/null
-// 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>
-/// ConditionalAttribute.ConditionString(v-yaduoj)
-/// </summary>
-public class ConditionalAttributeConditionString
-{
- public static int Main()
- {
- ConditionalAttributeConditionString testObj = new ConditionalAttributeConditionString();
-
- TestLibrary.TestFramework.BeginTestCase("for property: ConditionalAttribute.ConditionString");
- 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;
-
- return retVal;
- }
-
- #region Positive tests
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P001";
- const string c_TEST_DESC = "PosTest1: Get unempty ConditionString";
- string errorDesc;
-
- string expectedCondition;
- string actualCondition;
- expectedCondition = "CLR_Test_Case";
- ConditionalAttribute conditionalAtt = new ConditionalAttribute(expectedCondition);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualCondition = conditionalAtt.ConditionString;
- if (actualCondition != expectedCondition)
- {
- errorDesc = "The value of property ConditionString of instance of class ConditionalAttribute is not " +
- "the value \"" + expectedCondition + "\" as expected: Actually\"" + actualCondition +
- "\"";
- 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;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P002";
- const string c_TEST_DESC = "PosTest2: Get empty ConditionString";
- string errorDesc;
-
- string expectedCondition;
- string actualCondition;
- expectedCondition = string.Empty;
- ConditionalAttribute conditionalAtt = new ConditionalAttribute(expectedCondition);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualCondition = conditionalAtt.ConditionString;
- if (actualCondition != expectedCondition)
- {
- errorDesc = "The value of property ConditionString of instance of class ConditionalAttribute is not " +
- "the value string.Empty as expected: Actually\"" + actualCondition +
- "\"";
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P003";
- const string c_TEST_DESC = "PosTest3: Get null reference ConditionString";
- string errorDesc;
-
- string expectedCondition;
- string actualCondition;
- expectedCondition = null;
- ConditionalAttribute conditionalAtt = new ConditionalAttribute(expectedCondition);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualCondition = conditionalAtt.ConditionString;
- if (actualCondition != expectedCondition)
- {
- errorDesc = "The value of property ConditionString of instance of class ConditionalAttribute is not " +
- "the value null reference as expected: Actually\"" + actualCondition +
- "\"";
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-// 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>
-/// ConditionalAttribute(string)(v-yaduoj)
-/// </summary>
-public class ConditionalAttributeCtor
-{
- public static int Main()
- {
- ConditionalAttributeCtor testObj = new ConditionalAttributeCtor();
-
- TestLibrary.TestFramework.BeginTestCase("for constructor: ConditionalAttribute(string)");
- 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;
-
- return retVal;
- }
-
- #region Positive tests
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P001";
- const string c_TEST_DESC = "PosTest1: Intinalize the conditional attribute using not empty string.";
- string errorDesc;
-
- string conditionalString;
-
- conditionalString = "CLR_API_Test";
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- ConditionalAttribute conditionalAtt = new ConditionalAttribute(conditionalString);
- if (conditionalAtt.ConditionString != conditionalString)
- {
- errorDesc = string.Format("Faile to initialize the conditional attribute using string \"{0}\"", conditionalString);
- 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;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P002";
- const string c_TEST_DESC = "PosTest2: Intinalize the conditional attribute using string.Empty.";
- string errorDesc;
-
- string conditionalString;
-
- conditionalString = string.Empty;
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- ConditionalAttribute conditionalAtt = new ConditionalAttribute(conditionalString);
- if (conditionalAtt.ConditionString != conditionalString)
- {
- errorDesc = "Failed to initialize the conditional attribute using an empty string(string.Empty)";
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P003";
- const string c_TEST_DESC = "PosTest3: Intinalize the conditional attribute using a null reference.";
- string errorDesc;
-
- string conditionalString;
-
- conditionalString = null;
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- ConditionalAttribute conditionalAtt = new ConditionalAttribute(conditionalString);
- if (conditionalAtt.ConditionString != conditionalString)
- {
- errorDesc = "Failed to initialize the conditional attribute using a null reference";
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-<?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="dllnotfoundexception1.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>
-
+++ /dev/null
-<?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="dllnotfoundexceptionctor2.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>
-
+++ /dev/null
-<?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="dllnotfoundexceptionctor3.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>
-
+++ /dev/null
-// 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.DllNotFoundException.Ctor()
-///</summary>
-
-public class DllNotFoundExceptionCtor
-{
-
- public static int Main()
- {
- DllNotFoundExceptionCtor testObj = new DllNotFoundExceptionCtor();
- TestLibrary.TestFramework.BeginTestCase("for constructor of System.DllNotFoundException");
- 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 Positive Test Logic
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1:Create a instance of DllNotFoundException");
- try
- {
- DllNotFoundException dbz = new DllNotFoundException();
-
- if (dbz == 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
-}
+++ /dev/null
-// 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.DllNotFoundException.Ctor(String)
-///</summary>
-
-public class DllNotFoundExceptionCtor
-{
-
- public static int Main()
- {
- DllNotFoundExceptionCtor testObj = new DllNotFoundExceptionCtor();
- TestLibrary.TestFramework.BeginTestCase("for constructor of System.DllNotFoundException");
- 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;
- 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 DllNotFoundException");
- try
- {
- DllNotFoundException dnfe = new DllNotFoundException(errMessage);
-
- if (dnfe == 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
- {
-
- DllNotFoundException dnfe = new DllNotFoundException(errMessage);
-
- if (dnfe == null)
- {
- TestLibrary.TestFramework.LogError("003", "ExpectedValue(not null) !=ActualValue(null)");
- retVal = false;
- }
- else
- {
- retVal = false;
- throw dnfe;
- }
- }
- catch (DllNotFoundException dE)
- {
- retVal = true;
- if (!dE.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
- {
-
- DllNotFoundException dnfe = new DllNotFoundException(errMessage);
-
- if (dnfe == null)
- {
- TestLibrary.TestFramework.LogError("006", "ExpectedValue(not null) !=ActualValue(null)");
- retVal = false;
- }
- else
- {
- retVal = false;
- throw dnfe;
- }
- }
- catch (DllNotFoundException dE)
- {
- retVal = true;
- if (!dE.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
- {
-
- DllNotFoundException dnfe = new DllNotFoundException(errMessage);
-
- if (dnfe == null)
- {
- TestLibrary.TestFramework.LogError("009", "ExpectedValue(not null) !=ActualValue(null)");
- retVal = false;
- }
- else
- {
- retVal = false;
- throw dnfe;
- }
- }
- catch (DllNotFoundException dE)
- {
- retVal = true;
- if (!dE.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
-}
+++ /dev/null
-// 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.DllNotFoundException.Ctor(String,Exception)
-///</summary>
-
-public class DllNotFoundExceptionCtor
-{
-
- public static int Main()
- {
- DllNotFoundExceptionCtor testObj = new DllNotFoundExceptionCtor();
- TestLibrary.TestFramework.BeginTestCase("for constructor of System.DllNotFoundException");
- 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;
- 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 DllNotFoundException");
- try
- {
- DllNotFoundException dnfe = new DllNotFoundException(errMessage, new Exception());
-
- if (dnfe == 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
- {
-
- DllNotFoundException dnfe = new DllNotFoundException(errMessage, new Exception());
-
- if (dnfe == null)
- {
- TestLibrary.TestFramework.LogError("003", "ExpectedValue(not null) !=ActualValue(null)");
- retVal = false;
- }
- else
- {
- retVal = false;
- throw dnfe;
- }
- }
- catch (DllNotFoundException dE)
- {
- retVal = true;
- if (!dE.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
- {
-
- DllNotFoundException dnfe = new DllNotFoundException(errMessage, new Exception());
-
- if (dnfe == null)
- {
- TestLibrary.TestFramework.LogError("006", "ExpectedValue(not null) !=ActualValue(null)");
- retVal = false;
- }
- else
- {
- retVal = false;
- throw dnfe;
- }
- }
- catch (DllNotFoundException dE)
- {
- retVal = true;
- if (!dE.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
- {
-
- DllNotFoundException dnfe = new DllNotFoundException(errMessage, new Exception());
-
- if (dnfe == null)
- {
- TestLibrary.TestFramework.LogError("009", "ExpectedValue(not null) !=ActualValue(null)");
- retVal = false;
- }
- else
- {
- retVal = false;
- throw dnfe;
- }
- }
- catch (DllNotFoundException dE)
- {
- retVal = true;
- if (!dE.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
-}
+++ /dev/null
-<?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="doublecompareto1.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>
-
+++ /dev/null
-<?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="doubleepsilon.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>
-
+++ /dev/null
-<?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="doubleequals1.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>
-
+++ /dev/null
-<?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="doubleequals2.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>
-
+++ /dev/null
-<?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="doubleiconvertibletoboolean.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>
-
+++ /dev/null
-<?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="doubleiconvertibletobyte.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>
-
+++ /dev/null
-<?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="doubleiconvertibletodatetime.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>
-
+++ /dev/null
-<?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="doubleiconvertibletodecimal.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>
-
+++ /dev/null
-<?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="doubleiconvertibletodouble.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>
-
+++ /dev/null
-<?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="doubleiconvertibletoint16.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>
-
+++ /dev/null
-<?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="doubleiconvertibletoint32.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>
-
+++ /dev/null
-<?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="doubleiconvertibletoint64.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>
-
+++ /dev/null
-<?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="doubleiconvertibletosbyte.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>
-
+++ /dev/null
-<?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="doubleiconvertibletosingle.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>
-
+++ /dev/null
-<?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="doubleisinfinity.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>
-
+++ /dev/null
-<?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="doubleisnan.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>
-
+++ /dev/null
-<?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="doubleisnegativeinfinity.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>
-
+++ /dev/null
-<?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="doubleispositiveinfinity.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>
-
+++ /dev/null
-<?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="doublemaxvalue.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>
-
+++ /dev/null
-<?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="doubleminvalue.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>
-
+++ /dev/null
-<?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="doublenan.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>
-
+++ /dev/null
-<?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="doublenegativeinfinity.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>
-
+++ /dev/null
-<?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="doublepositiveinfinity.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>
-
+++ /dev/null
-<?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="doubletostring1.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>
-
+++ /dev/null
-<?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="doubletostring2.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>
-
+++ /dev/null
-<?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="doubletostring3.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>
-
+++ /dev/null
-<?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="doubletostring4.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>
-
+++ /dev/null
-// 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>
-/// CompareTo(System.Double)
-/// </summary>
-public class DoubleCompareTo1
-{
- public static int Main()
- {
- DoubleCompareTo1 test = new DoubleCompareTo1();
- TestLibrary.TestFramework.BeginTestCase("DoubleCompareTo1");
-
- 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: Ensure the return value of CompareTo(System.Double) is less than zero when the instance is less than System.Double.");
-
- try
- {
- Random random = new Random(-55);
- Double d1, d2;
- do
- {
- d1 = random.NextDouble();
- d2 = random.NextDouble();
- }
- while (d1 >= d2);
- if (d1.CompareTo(d2) >= 0)
- {
- TestLibrary.TestFramework.LogError("001.1", "The return value of CompareTo(System.Double) is not less than zero when the instance is less than System.Double!");
- 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;
- TestLibrary.TestFramework.BeginScenario("PosTest2: Ensure the return value of CompareTo(System.Double) is less than zero when this instance is not a number (NaN) and System.Double is a number.");
-
- try
- {
- Random random = new Random(-55);
- Double randomDouble;
- do
- {
- randomDouble = random.NextDouble();
- }
- while (Double.IsNaN(randomDouble) == true);
-
- if (Double.NaN.CompareTo(randomDouble) >= 0)
- {
- TestLibrary.TestFramework.LogError("002.1", "The return value of CompareTo(System.Double) is not less than zero when this instance is not a number (NaN) and System.Double is a number!");
- 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;
- TestLibrary.TestFramework.BeginScenario("PosTest3: Ensure the return value of CompareTo(System.Double) equal to zero when this instance equals to System.Double.");
-
- try
- {
- Random random = new Random(-55);
- Double d1, d2;
- d1 = random.NextDouble();
- d2 = d1;
-
- if (d1.CompareTo(d2) != 0)
- {
- TestLibrary.TestFramework.LogError("003.1", "The return value of CompareTo(System.Double) does not equal to zero when this instance equals to System.Double!");
- 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;
- TestLibrary.TestFramework.BeginScenario("PosTest4: Ensure the return value of CompareTo(System.Double) equal to zero when both this instance and value are NaN.");
-
- try
- {
- Double d1 = 0.0;
- long myl1 = 0;
- myl1 = myl1 | 0x7ff0000000000001;
- byte[] mybytes1 = { 0, 0, 0, 0, 0, 0, 0, 0 };
- mybytes1 = BitConverter.GetBytes(myl1);
- d1 = BitConverter.ToDouble(mybytes1, 0);
-
- Double d2 = 0.0;
- long myl2 = 0;
- myl2 = myl2 | 0x7ff0000000000002;
- byte[] mybytes2 = { 0, 0, 0, 0, 0, 0, 0, 0 };
- mybytes2 = BitConverter.GetBytes(myl2);
- d2 = BitConverter.ToDouble(mybytes2, 0);
-
- if (d1.CompareTo(d2) != 0)
- {
- TestLibrary.TestFramework.LogError("004.1", "The return value of CompareTo(System.Double) does not equal to zero when both this instance and value are NaN!");
- 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: Ensure the return value of CompareTo(System.Double) equal to zero when both this instance and value are PositiveInfinity.");
-
- try
- {
- Double zero = 0.0;
-
- if ((1 / zero).CompareTo(2 / zero) != 0)
- {
- TestLibrary.TestFramework.LogError("005.1", "The return value of CompareTo(System.Double) does not equal to zero when both this instance and value are PositiveInfinity!");
- 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;
- TestLibrary.TestFramework.BeginScenario("PosTest6: Ensure the return value of CompareTo(System.Double) is greater than zero when the instance is greater than System.Double.");
-
- try
- {
- Random random = new Random(-55);
- Double d1, d2;
- do
- {
- d1 = random.NextDouble();
- d2 = random.NextDouble();
- }
- while (d1 <= d2);
- if (d1.CompareTo(d2) <= 0)
- {
- TestLibrary.TestFramework.LogError("006.1", "The return value of CompareTo(System.Double) is not greater than zero when the instance is greater than System.Double!");
- 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;
- TestLibrary.TestFramework.BeginScenario("PosTest7: Ensure the return value of CompareTo(System.Double) is greater than zero when this instance is a number and System.Double is not a number.");
-
- try
- {
- Random random = new Random(-55);
- Double randomDouble;
- do
- {
- randomDouble = random.NextDouble();
- }
- while (Double.IsNaN(randomDouble) == true);
-
- if (randomDouble.CompareTo(Double.NaN) <= 0)
- {
- TestLibrary.TestFramework.LogError("007.1", "The return value of CompareTo(System.Double) is not greater than zero when this instance is a number and System.Double is not a number!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("007.2", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-// 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>
-/// Epsilon
-/// </summary>
-public class DoubleEpsilon
-{
- public static int Main()
- {
- DoubleEpsilon test = new DoubleEpsilon();
- TestLibrary.TestFramework.BeginTestCase("DoubleEpsilon");
-
- 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;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: Ensure Epsilon equals 4.94065645841247e-324");
-
- try
- {
- if (Double.Epsilon.CompareTo(4.94065645841247e-324) != 0)
- {
- TestLibrary.TestFramework.LogError("001.1", "Epsilon does not equal 4.94065645841247e-324!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-// 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.Double)
-/// </summary>
-
-public class DoubleEquals1
-{
- #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: Verify Double value equals with Equals(Double).");
-
- try
- {
- Double d1 = new Random(-55).NextDouble();
- Double d2 = d1;
-
- if (!d1.Equals(d2))
- {
- TestLibrary.TestFramework.LogError("001.1", "Method Double.Equals(Double) 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;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Verify Double value not equals with Equals(Double).");
-
- try
- {
- Random random = new Random(-55);
- Double d1,d2;
- do
- {
- d1 = random.NextDouble();
- d2 = random.NextDouble();
- }
- while (d1 == d2);
-
- if (d1.Equals(d2))
- {
- TestLibrary.TestFramework.LogError("002.1", "Method Double.Equals(Double) Err.");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.2", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #endregion
-
- public static int Main()
- {
- DoubleEquals1 test = new DoubleEquals1();
-
- TestLibrary.TestFramework.BeginTestCase("DoubleEquals1");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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)
-/// </summary>
-
-public class DoubleEquals2
-{
- #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: Verify Double value equals with Equals(Object).");
-
- try
- {
- Double d = new Random(-55).NextDouble();
- Object obj = (Object)d;
-
- if (!d.Equals(obj))
- {
- TestLibrary.TestFramework.LogError("001.1", "Method Double.Equals(Object) 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;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Verify Double value not equals with Equals(Object).");
-
- try
- {
- Random random = new Random(-55);
- Double d1, d2;
- do
- {
- d1 = random.NextDouble();
- d2 = random.NextDouble();
- }
- while (d1 == d2);
-
- Object obj = (Object)d2;
-
- if (d1.Equals(obj))
- {
- TestLibrary.TestFramework.LogError("002.1", "Method Double.Equals(Object) Err.");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.2", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #endregion
-
- public static int Main()
- {
- DoubleEquals2 test = new DoubleEquals2();
-
- TestLibrary.TestFramework.BeginTestCase("DoubleEquals2");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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 DoubleIConvertibleToBoolean
-{
- #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;
-
- // Add your scenario description here
- TestLibrary.TestFramework.BeginScenario("PosTest1: genarate a random Double to boolean");
-
- try
- {
- Double i1 = 0;
- while (i1 == 0)
- {
- i1 = TestLibrary.Generator.GetDouble(-55);
- }
-
- IConvertible Icon1 = (IConvertible)(i1);
- if (Icon1.ToBoolean(null) != true)
- {
- TestLibrary.TestFramework.LogError("001.1", String.Format("The Double {0} to boolean is not true as expected ", i1));
- 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;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Zero to boolean ");
-
- try
- {
- Double i1 = 0;
- IConvertible Icon1 = (IConvertible)(i1);
- if (Icon1.ToBoolean(null) != false)
- {
- TestLibrary.TestFramework.LogError("002.1", String.Format("The Double {0} to boolean is not false as expected ", i1));
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: convert negative number to boolean ");
-
- try
- {
- Double i1 = 0;
- while (i1 == 0)
- {
- i1 = TestLibrary.Generator.GetInt32(-55);
- }
- IConvertible Icon1 = (IConvertible)(-i1);
- if (Icon1.ToBoolean(null) != true)
- {
- TestLibrary.TestFramework.LogError("003.1", String.Format("The Double {0} to boolean is not true as expected ", i1));
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #endregion
-
- public static int Main()
- {
- DoubleIConvertibleToBoolean test = new DoubleIConvertibleToBoolean();
-
- TestLibrary.TestFramework.BeginTestCase("DoubleIConvertibleToBoolean");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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>
-/// DoubleIConvertibleToByte
-/// </summary>
-
-public class DoubleIConvertibleToByte
-{
- #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;
-
- // Add your scenario description here
- TestLibrary.TestFramework.BeginScenario("PosTest1: Convert a random Double( <= 0.5 ) to byte");
-
- try
- {
- Double i1;
- do
- i1 = (Double)TestLibrary.Generator.GetDouble(-55);
- while (i1 > 0.5D);
-
- IConvertible Icon1 = (IConvertible)i1;
-
- if (Icon1.ToByte(null) != 0)
- {
- TestLibrary.TestFramework.LogError("001.1", "The result is not the value as 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: Convert a random Double( > 0.5 ) to byte");
-
- try
- {
- Double i1;
- do
- i1 = (Double)TestLibrary.Generator.GetDouble(-55);
- while (i1 <= 0.5D);
-
- IConvertible Icon1 = (IConvertible)i1;
-
- if (Icon1.ToByte(null) != 1)
- {
- TestLibrary.TestFramework.LogError("002.1", "The result is not the value as expected");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.1", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Convert ByteMaxValue");
-
- try
- {
- Double i1 = (Double)Byte.MaxValue;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToByte(null) != i1)
- {
- TestLibrary.TestFramework.LogError("003.1", "The result is not the value as expected");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: Convert zero to byte ");
-
- try
- {
- Double i1 = 0;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToByte(null) != 0)
- {
- TestLibrary.TestFramework.LogError("004.1", "The result is not zero as expected");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #region Nagetive Test Cases
- public bool NegTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: Convert a negative byte Double to Byte ");
-
- try
- {
- Double i1 = 0;
- while (i1 == 0)
- i1 = (Double)TestLibrary.Generator.GetByte(-55);
-
- IConvertible Icon1 = (IConvertible)(-i1);
- Byte b1 = Icon1.ToByte(null);
- TestLibrary.TestFramework.LogError("101.1", "An overflowException was not thrown as expected");
- retVal = false;
- }
- catch (System.OverflowException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("101.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: Convert Double to Byte ");
-
- try
- {
- Int32 i1 = 0;
- while (i1 <= 255)
- i1 = (Int32)TestLibrary.Generator.GetInt32(-55);
-
- IConvertible Icon1 = (IConvertible)((Double)i1);
- Byte b1 = Icon1.ToByte(null);
- TestLibrary.TestFramework.LogError("102.1", "An overflowException was not thrown as expected");
- retVal = false;
- }
- catch (System.OverflowException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest3: Check the border value ");
-
- try
- {
- Double i1 = 256D;
- IConvertible Icon1 = (IConvertible)(i1);
- Byte b1 = Icon1.ToByte(null);
- TestLibrary.TestFramework.LogError("103.1", "An overflowException was not thrown as expected");
- retVal = false;
- }
- catch (System.OverflowException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("103.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- DoubleIConvertibleToByte test = new DoubleIConvertibleToByte();
-
- TestLibrary.TestFramework.BeginTestCase("DoubleIConvertibleToByte");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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.IConvertible.ToDateTime(System.IFormatProvider)
-/// </summary>
-
-public class DoubleIConvertibleToDateTime
-{
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Negative]");
- retVal = NegTest1() && retVal;
-
- return retVal;
- }
-
- #region Nagetive Test Cases
- public bool NegTest1()
- {
- bool retVal = true;
- try
- {
- Double d = TestLibrary.Generator.GetDouble(-55);
- DateTime v = (d as IConvertible).ToDateTime(null);
- TestLibrary.TestFramework.LogError("001",
- String.Format("expected a InvalidCastException on (d as IConvertible).ToDateTime(null)) but got {0}", v));
- retVal = false;
- }
- catch (InvalidCastException)
- {
- retVal = true;
- return retVal;
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- #endregion
- #endregion
-
- public static int Main()
- {
- DoubleIConvertibleToDateTime test = new DoubleIConvertibleToDateTime();
-
- TestLibrary.TestFramework.BeginTestCase("DoubleIConvertibleToDateTime");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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.IConvertible.ToDecimal(System.IFormatProvider)
-/// </summary>
-
-public class DoubleIConvertibleToDecimal
-{
- #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;
-
- return retVal;
- }
-
- #region Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- // Add your scenario description here
- TestLibrary.TestFramework.BeginScenario("PosTest1: Convert a Double to Decimal.");
-
- try
- {
- Double d = TestLibrary.Generator.GetDouble();
- IConvertible i = (IConvertible)d;
- Decimal dm = i.ToDecimal(null);
-
- String dmString = dm.ToString();
- //truncate one more precision digit to get rid off precision difference
- dmString = dmString.Substring(0, dmString.Length - 1);
-
- if (!d.ToString().Contains(dmString))
- {
- TestLibrary.TestFramework.LogError("001.1", "The result " + dmString + " is not correct as expected: " + d);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Convert zero to decimal");
-
- try
- {
- Double d = 0;
- IConvertible i = (IConvertible)d;
- decimal dm = i.ToDecimal(null);
- if (d.ToString() != dm.ToString())
- {
- TestLibrary.TestFramework.LogError("002.1", "The result is not correct as expected");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
-
-
- #region Nagetive Test Cases
- public bool NegTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: Check OverflowException");
-
- try
- {
- Double d = Double.MaxValue;
- IConvertible i = (IConvertible)d;
- decimal dm = i.ToDecimal(null);
-
- TestLibrary.TestFramework.LogError("001.1", "The OverflowException is not thrown.");
- retVal = false;
-
- }
- catch (OverflowException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: Check OverflowException");
-
- try
- {
- Double d = Double.MinValue;
- IConvertible i = (IConvertible)d;
- decimal dm = i.ToDecimal(null);
-
- TestLibrary.TestFramework.LogError("002.1", "The OverflowException is not thrown.");
- retVal = false;
-
- }
- catch (OverflowException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- DoubleIConvertibleToDecimal test = new DoubleIConvertibleToDecimal();
-
- TestLibrary.TestFramework.BeginTestCase("DoubleIConvertibleToDecimal");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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.IConvertible.ToDouble(System.IFormatProvider)
-/// </summary>
-
-public class DoubleIConvertibleToDouble
-{
- #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;
-
- // Add your scenario description here
- TestLibrary.TestFramework.BeginScenario("PosTest1: Random double to double.");
-
- try
- {
- Double d1 = TestLibrary.Generator.GetDouble(-55);
- IConvertible i = d1 as IConvertible;
- Double d2 = i.ToDouble(null);
-
- if (d1 != d2)
- {
- TestLibrary.TestFramework.LogError("001.1", "The result is not correct as 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: Zero to double.");
-
- try
- {
- Double d1 = 0.00D;
- IConvertible i = d1 as IConvertible;
- Double d2 = i.ToDouble(null);
-
- if (d1 != d2)
- {
- TestLibrary.TestFramework.LogError("002.1", "The result is not correct as 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: Double.MaxValue to double.");
-
- try
- {
- Double d1 = Double.MaxValue;
- IConvertible i = d1 as IConvertible;
- Double d2 = i.ToDouble(null);
-
- if (d1 != d2)
- {
- TestLibrary.TestFramework.LogError("003.1", "The result is not correct as expected.");
- 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: Random.MinValue to double.");
-
- try
- {
- Double d1 = Double.MinValue;
- IConvertible i = d1 as IConvertible;
- Double d2 = i.ToDouble(null);
-
- if (d1 != d2)
- {
- TestLibrary.TestFramework.LogError("004.1", "The result is not correct as expected.");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004.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()
- {
- DoubleIConvertibleToDouble test = new DoubleIConvertibleToDouble();
-
- TestLibrary.TestFramework.BeginTestCase("DoubleIConvertibleToDouble");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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.IConvertible.ToInt16(System.IFormatProvider)
-/// </summary>
-
-public class DoubleIConvertibleToInt16
-{
- #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;
-
- //
- // 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: Convert a random Double( <= 0.5 ) to int16");
-
- try
- {
- Double i1;
- do
- i1 = (Double)TestLibrary.Generator.GetDouble(-55);
- while (i1 > 0.5D);
-
- IConvertible Icon1 = (IConvertible)i1;
-
- if (Icon1.ToInt16(null) != 0)
- {
- TestLibrary.TestFramework.LogError("001.1", "The result is not the value as 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: Convert a random Double( > 0.5 ) to int16");
-
- try
- {
- Double i1;
- do
- i1 = (Double)TestLibrary.Generator.GetDouble(-55);
- while (i1 <= 0.5D);
-
- IConvertible Icon1 = (IConvertible)i1;
-
- if (Icon1.ToInt16(null) != 1)
- {
- TestLibrary.TestFramework.LogError("002.1", "The result is not the value as expected");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.1", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: Convert zero to int16 ");
-
- try
- {
- Double i1 = 0;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToInt16(null) != 0)
- {
- TestLibrary.TestFramework.LogError("003.1", "The result is not zero as expected");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: Convert (double)int16.MaxValue to int16 ");
-
- try
- {
- Double i1 = (Double)Int16.MaxValue;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToInt16(null) != Int16.MaxValue)
- {
- TestLibrary.TestFramework.LogError("004.1", "The result is not expected");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest5: Convert (double)int16.MinValue to int16 ");
-
- try
- {
- Double i1 = (Double)Int16.MinValue;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToInt16(null) != Int16.MinValue)
- {
- TestLibrary.TestFramework.LogError("005.1", "The result is not expected");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("005.2", "Unexpected exception: " + e);
- 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()
- {
- DoubleIConvertibleToInt16 test = new DoubleIConvertibleToInt16();
-
- TestLibrary.TestFramework.BeginTestCase("DoubleIConvertibleToInt16");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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.IConvertible.ToInt32(System.IFormatProvider)
-/// </summary>
-
-public class DoubleIConvertibleToInt32
-{
- #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;
-
- //
- // 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: Convert a random Double( <= 0.5 ) to int32");
-
- try
- {
- Double i1;
- do
- i1 = (Double)TestLibrary.Generator.GetDouble(-55);
- while (i1 > 0.5D);
-
- IConvertible Icon1 = (IConvertible)i1;
-
- if (Icon1.ToInt32(null) != 0)
- {
- TestLibrary.TestFramework.LogError("001.1", "The result is not the value as 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: Convert a random Double( > 0.5 ) to int32");
-
- try
- {
- Double i1;
- do
- i1 = (Double)TestLibrary.Generator.GetDouble(-55);
- while (i1 <= 0.5D);
-
- IConvertible Icon1 = (IConvertible)i1;
-
- if (Icon1.ToInt32(null) != 1)
- {
- TestLibrary.TestFramework.LogError("002.1", "The result is not the value as expected");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.1", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: Convert zero to int32 ");
-
- try
- {
- Double i1 = 0;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToInt32(null) != 0)
- {
- TestLibrary.TestFramework.LogError("003.1", "The result is not zero as expected");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: Convert (double)int32.MaxValue to int32 ");
-
- try
- {
- Double i1 = (Double)Int32.MaxValue;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToInt32(null) != Int32.MaxValue)
- {
- TestLibrary.TestFramework.LogError("004.1", "The result is not expected");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest5: Convert (double)int32.MinValue to int32 ");
-
- try
- {
- Double i1 = (Double)Int32.MinValue;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToInt32(null) != Int32.MinValue)
- {
- TestLibrary.TestFramework.LogError("005.1", "The result is not expected");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("005.2", "Unexpected exception: " + e);
- 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()
- {
- DoubleIConvertibleToInt32 test = new DoubleIConvertibleToInt32();
-
- TestLibrary.TestFramework.BeginTestCase("DoubleIConvertibleToInt32");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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.IConvertible.ToInt64(System.IFormatProvider)
-/// </summary>
-
-public class DoubleIConvertibleToInt64
-{
- #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;
-
- // Add your scenario description here
- TestLibrary.TestFramework.BeginScenario("PosTest1: Convert a random Double( <= 0.5 ) to int64");
-
- try
- {
- Double i1;
- do
- i1 = (Double)TestLibrary.Generator.GetDouble(-55);
- while (i1 > 0.5D);
-
- IConvertible Icon1 = (IConvertible)i1;
-
- if (Icon1.ToInt64(null) != 0)
- {
- TestLibrary.TestFramework.LogError("001.1", "The result is not the value as 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: Convert a random Double( > 0.5 ) to int64");
-
- try
- {
- Double i1;
- do
- i1 = (Double)TestLibrary.Generator.GetDouble(-55);
- while (i1 <= 0.5D);
-
- IConvertible Icon1 = (IConvertible)i1;
-
- if (Icon1.ToInt64(null) != 1)
- {
- TestLibrary.TestFramework.LogError("002.1", "The result is not the value as expected");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.1", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: Convert zero to int64 ");
-
- try
- {
- Double i1 = 0;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToInt64(null) != 0)
- {
- TestLibrary.TestFramework.LogError("003.1", "The result is not zero as expected");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.2", "Unexpected exception: " + e);
- 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()
- {
- DoubleIConvertibleToInt64 test = new DoubleIConvertibleToInt64();
-
- TestLibrary.TestFramework.BeginTestCase("DoubleIConvertibleToInt64");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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.IConvertible.ToSByte(System.IFormatProvider)
-/// </summary>
-
-public class DoubleIConvertibleToSByte
-{
- #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;
-
- //
- // 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: Convert a random Double( <= 0.5 ) to sbyte");
-
- try
- {
- Double i1;
- do
- i1 = (Double)TestLibrary.Generator.GetDouble(-55);
- while (i1 > 0.5D);
-
- IConvertible Icon1 = (IConvertible)i1;
-
- if (Icon1.ToSByte(null) != 0)
- {
- TestLibrary.TestFramework.LogError("001.1", "The result is not the value as 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: Convert a random Double( > 0.5 ) to sbyte");
-
- try
- {
- Double i1;
- do
- i1 = (Double)TestLibrary.Generator.GetDouble(-55);
- while (i1 <= 0.5D);
-
- IConvertible Icon1 = (IConvertible)i1;
-
- if (Icon1.ToSByte(null) != 1)
- {
- TestLibrary.TestFramework.LogError("002.1", "The result is not the value as expected");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.1", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: Convert zero to sbyte ");
-
- try
- {
- Double i1 = 0;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToSByte(null) != 0)
- {
- TestLibrary.TestFramework.LogError("003.1", "The result is not zero as expected");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: Convert (double)SByte.MaxValue to sbyte.");
-
- try
- {
- Double i1 = (Double)SByte.MaxValue;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToSByte(null) != SByte.MaxValue)
- {
- TestLibrary.TestFramework.LogError("004.1", "The result is not expected");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest5: Convert (double)SByte.MinValue to sbyte.");
-
- try
- {
- Double i1 = (Double)SByte.MinValue;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToSByte(null) != SByte.MinValue)
- {
- TestLibrary.TestFramework.LogError("005.1", "The result is not expected");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("005.2", "Unexpected exception: " + e);
- 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()
- {
- DoubleIConvertibleToSByte test = new DoubleIConvertibleToSByte();
-
- TestLibrary.TestFramework.BeginTestCase("DoubleIConvertibleToSByte");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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.IConvertible.ToSingle(System.IFormatProvider)
-/// </summary>
-
-public class DoubleIConvertibleToSingle
-{
- #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;
-
- //
- // 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: Convert a random positive Double to single");
-
- try
- {
-
- Single s = TestLibrary.Generator.GetSingle(-55);
- Double i1 = (Double)s;
-
- IConvertible Icon1 = (IConvertible)i1;
-
- if (Icon1.ToSingle(null) != s)
- {
- TestLibrary.TestFramework.LogError("001.1", "The result is not the value as 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: Convert a random negtive Double to single");
-
- try
- {
-
- Single s = -TestLibrary.Generator.GetSingle(-55);
- Double i1 = (Double)s;
-
- IConvertible Icon1 = (IConvertible)i1;
-
- if (Icon1.ToSingle(null) != s)
- {
- TestLibrary.TestFramework.LogError("002.1", "The result is not the value as 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;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: Convert zero to single ");
-
- try
- {
- Double i1 = 0;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToSingle(null) != 0)
- {
- TestLibrary.TestFramework.LogError("003.1", "The result is not zero as expected");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: Convert (double)Single.MaxValue to single.");
-
- try
- {
- Double i1 = (Double)Single.MaxValue;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToSingle(null) != Single.MaxValue)
- {
- TestLibrary.TestFramework.LogError("004.1", "The result is not expected");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest5: Convert (double)Single.MinValue to single.");
-
- try
- {
- Double i1 = (Double)Single.MinValue;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToSingle(null) != Single.MinValue)
- {
- TestLibrary.TestFramework.LogError("005.1", "The result is not expected");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("005.2", "Unexpected exception: " + e);
- 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()
- {
- DoubleIConvertibleToSingle test = new DoubleIConvertibleToSingle();
-
- TestLibrary.TestFramework.BeginTestCase("DoubleIConvertibleToSingle");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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>
-/// IsInfinity(System.Double)
-/// </summary>
-
-public class DoubleIsInfinity
-{
- #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;
-
- // Add your scenario description here
- TestLibrary.TestFramework.BeginScenario("PosTest1: Verify IsInfinity when value is PositiveInfinity.");
-
- try
- {
- Double d;
- do
- d = TestLibrary.Generator.GetDouble(-55);
- while (d == 0);
-
- if (true != Double.IsInfinity(d / 0))
- {
- TestLibrary.TestFramework.LogError("001.1", "IsInfinity 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 IsInfinity when value is NegativeInfinity.");
-
- try
- {
- Double d;
- do
- d = -TestLibrary.Generator.GetDouble(-55);
- while (d == 0);
-
- if (true != Double.IsInfinity(d / 0))
- {
- TestLibrary.TestFramework.LogError("002.1", "IsInfinity Err.");
- 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 IsInfinity when d is zero.");
-
- try
- {
- Double d = 0.00D;
-
- if (false != Double.IsInfinity(d / 0))
- {
- TestLibrary.TestFramework.LogError("003.1", "IsInfinity Err.");
- 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 IsInfinity when d is a const.");
-
- try
- {
- Double d = -TestLibrary.Generator.GetDouble(-55);
-
- if (false != Double.IsInfinity(d))
- {
- TestLibrary.TestFramework.LogError("004.1", "IsInfinity Err.");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004.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()
- {
- DoubleIsInfinity test = new DoubleIsInfinity();
-
- TestLibrary.TestFramework.BeginTestCase("DoubleIsInfinity");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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>
-/// IsNaN(System.Double)
-/// </summary>
-
-public class DoubleIsNaN
-{
- #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;
-
- // Add your scenario description here
- TestLibrary.TestFramework.BeginScenario("PosTest1: Verify Double.IsNaN true.");
-
- try
- {
- Double zero = 0.00D;
-
- if (Double.IsNaN(0 / zero) == false)
- {
- TestLibrary.TestFramework.LogError("001.1", "Double.IsNaN Err.");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001", "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 Double.IsNaN false.");
-
- try
- {
- Double d1,d2;
- do
- {
- d1 = TestLibrary.Generator.GetDouble(-55);
- d2 = TestLibrary.Generator.GetDouble(-55);
- }
- while (d1 * d2 == 0);
-
- if (Double.IsNaN(d1 / d2) == true)
- {
- TestLibrary.TestFramework.LogError("001.1", "Double.IsNaN Err.");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001", "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()
- {
- DoubleIsNaN test = new DoubleIsNaN();
-
- TestLibrary.TestFramework.BeginTestCase("DoubleIsNaN");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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>
-/// IsNegativeInfinity(System.Double)
-/// </summary>
-
-public class DoubleIsNegativeInfinity
-{
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- retVal = PosTest2() && retVal;
-
-
- return retVal;
- }
-
- #region Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- // Add your scenario description here
- TestLibrary.TestFramework.BeginScenario("PosTest1: Verify Method IsNegativeInfinity when Double is Negative value.");
-
- try
- {
- Double d;
- do
- d = -TestLibrary.Generator.GetDouble(-55);
- while (d == 0);
-
- if (!Double.IsNegativeInfinity(d / 0))
- {
- TestLibrary.TestFramework.LogError("001.1", "Method IsNegativeInfinity(System.Double) 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("PosTest1: Verify Method IsNegativeInfinity when Double is Positive value.");
-
- try
- {
- Double d;
- do
- d = TestLibrary.Generator.GetDouble(-55);
- while (d == 0);
-
- if (Double.IsNegativeInfinity(d / 0))
- {
- TestLibrary.TestFramework.LogError("002.1", "Method IsNegativeInfinity(System.Double) Err.");
- 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("PosTest1: Verify Method IsNegativeInfinity when Double is zero value.");
-
- try
- {
- Double d = 0.00D;
-
- if (Double.IsNegativeInfinity(d / 0))
- {
- TestLibrary.TestFramework.LogError("003.1", "Method IsNegativeInfinity(System.Double) Err.");
- 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()
- {
- DoubleIsNegativeInfinity test = new DoubleIsNegativeInfinity();
-
- TestLibrary.TestFramework.BeginTestCase("DoubleIsNegativeInfinity");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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>
-/// IsPositiveInfinity(System.Double)
-/// </summary>
-
-public class DoubleIsPositiveInfinity
-{
- #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;
-
- // Add your scenario description here
- TestLibrary.TestFramework.BeginScenario("PosTest1: Verify Method IsPositiveInfinity when Double is Positive value.");
-
- try
- {
- Double d;
- do
- d = TestLibrary.Generator.GetDouble(-55);
- while (d == 0);
-
- if (!Double.IsPositiveInfinity(d / 0))
- {
- TestLibrary.TestFramework.LogError("001.1", "Method IsPositiveInfinity(System.Double) 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("PosTest1: Verify Method IsPositiveInfinity when Double is Negative value.");
-
- try
- {
- Double d;
- do
- d = -TestLibrary.Generator.GetDouble(-55);
- while (d == 0);
-
- if (Double.IsPositiveInfinity(d / 0))
- {
- TestLibrary.TestFramework.LogError("002.1", "Method IsPositiveInfinity(System.Double) Err.");
- 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("PosTest1: Verify Method IsPositiveInfinity when Double is zero value.");
-
- try
- {
- Double d = 0.00D;
-
- if (Double.IsPositiveInfinity(d / 0))
- {
- TestLibrary.TestFramework.LogError("003.1", "Method IsPositiveInfinity(System.Double) Err.");
- 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()
- {
- DoubleIsPositiveInfinity test = new DoubleIsPositiveInfinity();
-
- TestLibrary.TestFramework.BeginTestCase("DoubleIsPositiveInfinity");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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>
-/// MaxValue
-/// </summary>
-public class DoubleMaxValue
-{
- public static int Main()
- {
- DoubleMaxValue test = new DoubleMaxValue();
- TestLibrary.TestFramework.BeginTestCase("DoubleMaxValue");
-
- 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;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: Ensure MaxValue equals +1.79769313486232e308");
-
- try
- {
- if (Double.MaxValue.CompareTo(+1.7976931348623157E+308) != 0)
- {
- TestLibrary.TestFramework.LogError("001.1", "MaxValue does not equal +1.79769313486232e308!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-// 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.
-// v-jinfw
-// Does not build
-
-using System;
-using System.Collections;
-
-/// <summary>
-/// MinValue
-/// </summary>
-public class DoubleMinValue
-{
- public static int Main()
- {
- DoubleMinValue test = new DoubleMinValue();
- TestLibrary.TestFramework.BeginTestCase("DoubleMinValue");
-
- 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;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: Ensure MinValue equals -1.79769313486232e308");
-
- try
- {
- if (Double.MinValue.CompareTo(-1.7976931348623157E+308) != 0)
- {
- TestLibrary.TestFramework.LogError("001.1", "MinValue does not equal -1.79769313486232e308!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-// 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>
-/// NaN
-/// </summary>
-public class DoubleNaN
-{
- public static int Main()
- {
- DoubleNaN test = new DoubleNaN();
- TestLibrary.TestFramework.BeginTestCase("DoubleNaN");
-
- 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;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: Ensure NaN is not a number");
-
- try
- {
- if (Double.IsNaN(Double.NaN) != true)
- {
- TestLibrary.TestFramework.LogError("001.1", "NaN is a number!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-// 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>
-/// NegativeInfinity
-/// </summary>
-public class DoubleNegativeInfinity
-{
- public static int Main()
- {
- DoubleNegativeInfinity test = new DoubleNegativeInfinity();
- TestLibrary.TestFramework.BeginTestCase("DoubleNegativeInfinity");
-
- 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;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: Ensure NegativeInfinity is negative infinity.");
-
- try
- {
- if (Double.IsNegativeInfinity(Double.NegativeInfinity) != true)
- {
- TestLibrary.TestFramework.LogError("001.1", "NegativeInfinity is not negative infinity!");
- 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;
- TestLibrary.TestFramework.BeginScenario("PosTest2: Ensure NegativeInfinity is negative infinity after adding with a double value.");
-
- Double randomDouble = new Random(-55).NextDouble();
- try
- {
- if (Double.IsNegativeInfinity(Double.NegativeInfinity + randomDouble) != true)
- {
- TestLibrary.TestFramework.LogError("002.1", "NegativeInfinity is not negative infinity after adding with a double value!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.2", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-// 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>
-/// PositiveInfinity
-/// </summary>
-public class DoublePositiveInfinity
-{
- public static int Main()
- {
- DoublePositiveInfinity test = new DoublePositiveInfinity();
- TestLibrary.TestFramework.BeginTestCase("DoublePositiveInfinity");
-
- 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;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: Ensure PositiveInfinity is positive infinity.");
-
- try
- {
- if (Double.IsPositiveInfinity(Double.PositiveInfinity) != true)
- {
- TestLibrary.TestFramework.LogError("001.1", "PositiveInfinity is not positive infinity!");
- 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;
- TestLibrary.TestFramework.BeginScenario("PosTest2: Ensure PositiveInfinity is positive infinity after adding with a double value.");
-
- Double randomDouble = new Random(-55).NextDouble();
- try
- {
- if (Double.IsPositiveInfinity(Double.PositiveInfinity + randomDouble) != true)
- {
- TestLibrary.TestFramework.LogError("001.1", "PositiveInfinity is not positive infinity after adding with a double value!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-// 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;
-/// <summary>
-/// ToString()
-/// </summary>
-
-public class DoubleToString1
-{
- public static int Main()
- {
- DoubleToString1 test = new DoubleToString1();
-
- TestLibrary.TestFramework.BeginTestCase("DoubleToString1");
-
- 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]");
- TestLibrary.Utilities.CurrentCulture = CustomCulture;
-
- retVal &= VerifyToString("PostTest0", Double.NaN, "NaN");
- retVal &= VerifyToString("PosTest1", 0.123456789123456789123D, "0,123456789123457");
- retVal &= VerifyToString("PosTest2", 0.123456789123459789123D, "0,12345678912346");
- retVal &= VerifyToString("PosTest3", 0.123456789123000009123D, "0,123456789123");
-
- TestLibrary.Utilities.CurrentCulture = CurrentCulture;
-
- return retVal;
- }
-
- private CultureInfo CurrentCulture = TestLibrary.Utilities.CurrentCulture;
- private CultureInfo customCulture = null;
-
- private CultureInfo CustomCulture
- {
- get
- {
- if (null == customCulture)
- {
- customCulture = new CultureInfo(CultureInfo.CurrentCulture.Name);
- NumberFormatInfo nfi = customCulture.NumberFormat;
-
- //For "G"
- // NegativeSign, NumberDecimalSeparator, NumberDecimalDigits, PositiveSign
- nfi.NumberDecimalDigits = 3; //Default: 2
- nfi.PositiveSign = "++"; //Default: "+"
- nfi.NegativeSign = "@"; //Default: "-"
- nfi.NumberDecimalSeparator = ","; //Default: "."
- nfi.NaNSymbol = "NaN";
-
- customCulture.NumberFormat = nfi;
- }
- return customCulture;
- }
- }
-
- private bool VerifyToString(String id, Double myDouble, String expected)
- {
- try
- {
- String actual = myDouble.ToString();
- if (actual != expected)
- {
- TestLibrary.TestFramework.LogError(id + "_001", "Expected: " + expected + " Actual: " + actual);
- return false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError(id + "_002", "Unexpected exception occurs: " + e);
- return false;
- }
- return true;
- }
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// ToString(System.IFormatProvider)
-/// </summary>
-
-public class DoubleToString1
-{
- private static NumberFormatInfo nfi;
-
- public static void InitializeIFormatProvider()
- {
- nfi = new CultureInfo("en-US").NumberFormat;
- //For "G"
- // NegativeSign, NumberDecimalSeparator, NumberDecimalDigits, PositiveSign
- nfi.NumberDecimalDigits = 2; //Default: 2
- nfi.PositiveSign = "+"; //Default: "+"
- nfi.NegativeSign = "-"; //Default: "-"
- nfi.NumberDecimalSeparator = "."; //Default: "."
- nfi.NaNSymbol = "NaN";
- }
-
- public static int Main()
- {
- InitializeIFormatProvider();
- DoubleToString1 test = new DoubleToString1();
-
- TestLibrary.TestFramework.BeginTestCase("DoubleToString1");
-
- 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;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: Ensure the String decimal part will be rounded to 15 digits when the Double decimal part is longer than 15.");
-
- try
- {
- Double d1 = 0.123456789123456789123D;
- String s1 = d1.ToString(nfi);
- if (s1 != "0.123456789123457")
- {
- TestLibrary.TestFramework.LogError("P01.1", "The String decimal part is not rounded to 15 digits when the Double decimal part is longer than 15!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("P01.2", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest2: Ensure the suffix zero will be discarded in String after Double decimal part is rounded (become zero after carry).");
-
- try
- {
- Double d1 = 0.123456789123459789123D;
- String s1 = d1.ToString(nfi);
- if (s1 != "0.12345678912346")
- {
- TestLibrary.TestFramework.LogError("P02.1", "The suffix zero is not discarded in String after Double decimal part is rounded (become zero after carry)!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("P02.2", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest3: Ensure the suffix zero will be discarded in String after Double decimal part is rounded (original zero).");
-
- try
- {
- Double d1 = 0.123456789123000009123D;
- String s1 = d1.ToString(nfi);
- if (s1 != "0.123456789123")
- {
- TestLibrary.TestFramework.LogError("P03.1", "The suffix zero is not discarded in String after Double decimal part is rounded (original zero)");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("P03.2", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest4: Ensure the result will be correct when Double is NaN.");
-
- try
- {
- Double d1 = Double.NaN;
- String s1 = d1.ToString(nfi);
- if (s1 != "NaN")
- {
- TestLibrary.TestFramework.LogError("P04.1", "The result is not correct when Double is NaN!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("P04.2", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// ToString(System.String)
-/// </summary>
-
-public class DoubleToString3
-{
- public static int Main()
- {
- DoubleToString3 test = new DoubleToString3();
-
- TestLibrary.TestFramework.BeginTestCase("DoubleToString3");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
- private CultureInfo CurrentCulture = TestLibrary.Utilities.CurrentCulture;
- private CultureInfo customCulture = null;
-
- private CultureInfo CustomCulture
- {
- get
- {
- if (null == customCulture)
- {
- customCulture = new CultureInfo(CultureInfo.CurrentCulture.Name);
- NumberFormatInfo nfi = customCulture.NumberFormat;
-
- //For "E"
- // PositiveSign, NegativeSign, and NumberDecimalSeparator.
- // If precision specifier is omitted, a default of six digits after the decimal point is used.
- nfi.PositiveSign = "++"; //Default: "+"
- nfi.NegativeSign = "@"; //Default: "-"
- nfi.NumberDecimalSeparator = ","; //Default: "."
-
- //For "G"
- // NegativeSign, NumberDecimalSeparator, NumberDecimalDigits, PositiveSign
- nfi.NumberDecimalDigits = 3; //Default: 2
- nfi.NaNSymbol = "NaN";
-
- //For "R"
- // NegativeSign, NumberDecimalSeparator and PositiveSign
-
- customCulture.NumberFormat = nfi;
- }
- return customCulture;
- }
- }
-
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
-
- TestLibrary.Utilities.CurrentCulture = CustomCulture;
- retVal &= VerifyToString("PostTestG1", Double.NaN, "G", "NaN");
- retVal &= VerifyToString("PostTestG2", 0.123456789123456789123D, "G", "0,123456789123457");
- retVal &= VerifyToString("PostTestG3", 0.123456789123459789D, "G", "0,12345678912346");
- retVal &= VerifyToString("PostTestG4", 0.123456789123000009123D, "G", "0,123456789123");
-
- retVal &= VerifyToString("PostTestR1", Double.NaN, "R", "NaN");
- retVal &= VerifyToString("PostTestR2", 0.123456789123456789123D, "R", "0,12345678912345678");
- retVal &= VerifyToString("PostTestR3", 0.123456789123459789D, "R", "0,1234567891234598");
- retVal &= VerifyToString("PostTestR4", 0.123456789123000009123D, "R", "0,12345678912300001");
-
- retVal &= VerifyToString("PostTestE1", Double.NaN, "E", "NaN");
- retVal &= VerifyToString("PostTestE2", 0.123456789123456789123D, "E", "1,234568E@001");
- retVal &= VerifyToString("PostTestE3", 0.123456789123459789D, "E", "1,234568E@001");
- retVal &= VerifyToString("PostTestE4", 0.123456789123000009123D, "E", "1,234568E@001");
-
- TestLibrary.Utilities.CurrentCulture = CurrentCulture;
-
- TestLibrary.TestFramework.LogInformation("[Negative]");
- retVal &= NegTest1();
-
- return retVal;
- }
-
- private bool VerifyToString(String id, Double myDouble, String format, String expected)
- {
- try
- {
- String actual = myDouble.ToString(format);
- if (actual != expected)
- {
- TestLibrary.TestFramework.LogError(id + "_001", "Expected: " + expected + " Actual: " + actual);
- return false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError(id + "_002", "Unexpected exception occurs: " + e);
- return false;
- }
- return true;
- }
-
- private bool NegTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest1: FormatException should be thrown when the format string is invalid.");
-
- try
- {
- Double d1 = 0.123456009123000009123D;
- String s1 = d1.ToString("H");
- TestLibrary.TestFramework.LogError("N01.1", "FormatException is not thrown when the format string is invalid!");
- retVal = false;
- }
- catch (FormatException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N01.2", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// ToString(System.String,System.IFormatProvider)
-/// </summary>
-
-public class DoubleToString3
-{
- private static CultureInfo ci = new CultureInfo("en-US");
- private static NumberFormatInfo nfi = ci.NumberFormat;
-
- public static int Main()
- {
- DoubleToString3 test = new DoubleToString3();
-
- TestLibrary.TestFramework.BeginTestCase("DoubleToString3");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
- private NumberFormatInfo customNFI = null;
-
- private NumberFormatInfo CustomNFI
- {
- get
- {
- if (null == customNFI)
- {
- customNFI = new CultureInfo(CultureInfo.CurrentCulture.Name).NumberFormat;
- //For "E"
- // PositiveSign, NegativeSign, and NumberDecimalSeparator.
- // If precision specifier is omitted, a default of six digits after the decimal point is used.
- customNFI.PositiveSign = "++"; //Default: "+"
- customNFI.NegativeSign = "@"; //Default: "-"
- customNFI.NumberDecimalSeparator = ","; //Default: "."
-
- //For "G"
- // NegativeSign, NumberDecimalSeparator, NumberDecimalDigits, PositiveSign
- customNFI.NumberDecimalDigits = 3; //Default: 2
- customNFI.NaNSymbol = "NaN";
-
- //For "R"
- // NegativeSign, NumberDecimalSeparator and PositiveSign
- }
- return customNFI;
- }
- }
-
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal &= VerifyToString("PostTestG1", Double.NaN, "G", "NaN");
- retVal &= VerifyToString("PostTestG2", 0.123456789123456789123D, "G", "0,123456789123457");
- retVal &= VerifyToString("PostTestG3", 0.123456789123459789D, "G", "0,12345678912346");
- retVal &= VerifyToString("PostTestG4", 0.123456789123000009123D, "G", "0,123456789123");
-
- retVal &= VerifyToString("PostTestR1", Double.NaN, "R", "NaN");
- retVal &= VerifyToString("PostTestR2", 0.123456789123456789123D, "R", "0,12345678912345678");
- retVal &= VerifyToString("PostTestR3", 0.123456789123459789D, "R", "0,1234567891234598");
- retVal &= VerifyToString("PostTestR4", 0.123456789123000009123D, "R", "0,12345678912300001");
-
- retVal &= VerifyToString("PostTestE1", Double.NaN, "E", "NaN");
- retVal &= VerifyToString("PostTestE2", 0.123456789123456789123D, "E", "1,234568E@001");
- retVal &= VerifyToString("PostTestE3", 0.123456789123459789D, "E", "1,234568E@001");
- retVal &= VerifyToString("PostTestE4", 0.123456789123000009123D, "E", "1,234568E@001");
-
- TestLibrary.TestFramework.LogInformation("[Negative]");
- retVal &= NegTest1();
-
- return retVal;
- }
-
- private bool VerifyToString(String id, Double myDouble, String format, String expected)
- {
- try
- {
- String actual = myDouble.ToString(format, CustomNFI);
- if (actual != expected)
- {
- TestLibrary.TestFramework.LogError(id + "_001", "Expected: " + expected + " Actual: " + actual);
- return false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError(id + "_002", "Unexpected exception occurs: " + e);
- return false;
- }
- return true;
- }
-
- public bool NegTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest1: FormatException should be thrown when the format string is invalid.");
-
- try
- {
- Double d1 = 0.123456009123000009123D;
- String s1 = d1.ToString("H", nfi);
- TestLibrary.TestFramework.LogError("N01.1", "FormatException is not thrown when the format string is invalid!");
- retVal = false;
- }
- catch (FormatException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N01.2", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-<?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="flagsattributector.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>
-
+++ /dev/null
-// 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>
-/// ctor
-/// </summary>
-
-public class FlagsAttributeCtor
-{
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && 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 Ctor.");
-
- try
- {
- FlagsAttribute fa = new FlagsAttribute();
-
- if (fa == null)
- {
- TestLibrary.TestFramework.LogError("001.1", "Ctor Err !");
- retVal = false;
- return retVal;
- }
- }
- 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()
- {
- FlagsAttributeCtor test = new FlagsAttributeCtor();
-
- TestLibrary.TestFramework.BeginTestCase("FlagsAttributeCtor");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-<?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="gccollect.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>
-
+++ /dev/null
-<?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="gcgettotalmemory.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>
-
+++ /dev/null
-<?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="gckeepalive.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>
-
+++ /dev/null
-<?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="gcmaxgeneration.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>
-
+++ /dev/null
-<?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="gcreregisterforfinalize.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>
-
+++ /dev/null
-<?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="gcsuppressfinalize.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>
-
+++ /dev/null
-<?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="gcwaitforpendingfinalizers.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>
-
+++ /dev/null
-// 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 TestClass
-{
- private const int c_SIZE_OF_ARRAY = 1024;
- private byte[] m_Bytes;
-
- public TestClass()
- {
- m_Bytes = new byte[c_SIZE_OF_ARRAY];
- TestLibrary.Generator.GetBytes(-55, m_Bytes);
- }
-}
-
-/// <summary>
-/// Collect
-/// </summary>
-public class GCCollect
-{
- #region Private Fields
- private const int c_MAX_GARBAGE_COUNT = 1000;
- #endregion
-
- #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 Collect to reclaim memories");
-
- try
- {
- MakeSomeGarbage();
- long beforeCollect = GC.GetTotalMemory(false);
-
- GC.Collect();
- long afterCollect = GC.GetTotalMemory(true);
-
- if (beforeCollect <= afterCollect)
- {
- TestLibrary.TestFramework.LogError("001.1", "GC.Collect does not work");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLE] beforeCollect = " + beforeCollect + ", afterCollect = " + afterCollect);
- 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()
- {
- GCCollect test = new GCCollect();
-
- TestLibrary.TestFramework.BeginTestCase("GCCollect");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
- #region Private Methods
- private static void MakeSomeGarbage()
- {
- for (int i = 0; i < c_MAX_GARBAGE_COUNT; ++i)
- {
- TestClass c = new TestClass();
- }
- }
- #endregion
-}
+++ /dev/null
-// 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>
-/// GetTotalMemory(System.Boolean)
-/// </summary>
-public class GCGetTotalMemory
-{
- #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 GetTotalMemory with forceFullCollection set to false");
-
- try
- {
- long result = GC.GetTotalMemory(false);
-
- if (result == 0)
- {
- TestLibrary.TestFramework.LogError("001.1", "Calling GetTotalMemory with forceFullCollection set to false returns 0");
- 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 GetTotalMemory with forceFullCollection set to true");
-
- try
- {
- long result = GC.GetTotalMemory(true);
-
- if (result == 0)
- {
- TestLibrary.TestFramework.LogError("002.1", "Calling GetTotalMemory with forceFullCollection set to true returns 0");
- 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()
- {
- GCGetTotalMemory test = new GCGetTotalMemory();
-
- TestLibrary.TestFramework.BeginTestCase("GCGetTotalMemory");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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 TestClass
-{
- public static int m_TestInt = 1;
-
- ~TestClass()
- {
- m_TestInt--;
- }
-}
-
-/// <summary>
-/// KeepAlive(System.Object)
-/// </summary>
-public class GCKeepAlive
-{
- #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 KeepAlive to prevent an object to be GCed");
-
- try
- {
- TestClass tc = new TestClass();
-
- GC.Collect();
- GC.WaitForPendingFinalizers();
- GC.Collect();
-
- if (TestClass.m_TestInt != 1)
- {
- TestLibrary.TestFramework.LogError("001.1", "Calling KeepAlive can not prevent an object to be GCed");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLE] TestClass.m_TestInt = " + TestClass.m_TestInt);
- retVal = false;
- }
- GC.KeepAlive(tc);
- }
- 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()
- {
- GCKeepAlive test = new GCKeepAlive();
-
- TestLibrary.TestFramework.BeginTestCase("GCKeepAlive");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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>
-/// MaxGeneration
-/// </summary>
-public class GCMaxGeneration
-{
- #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 MaxGeneration to get the max generation the system current supports");
-
- try
- {
- int gen = GC.MaxGeneration;
-
- if (gen == 0)
- {
- TestLibrary.TestFramework.LogError("001.1", "Call MaxGeneration to get the max generation the system current supports returns 0");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLE] gen = " + gen);
- 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()
- {
- GCMaxGeneration test = new GCMaxGeneration();
-
- TestLibrary.TestFramework.BeginTestCase("GCMaxGeneration");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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.CompilerServices;
-
-public class TestClass
-{
- public const int c_DEFAULT_VALUE = 2;
- public static int m_TestInt = c_DEFAULT_VALUE;
-
- private bool m_hasFinalized = false;
-
- ~TestClass()
- {
- m_TestInt--;
-
- if (!m_hasFinalized)
- {
- m_hasFinalized = true;
- GC.ReRegisterForFinalize(this);
- }
- }
-}
-
-public class TestClass1
-{
- public const int c_DEFAULT_VALUE = 2;
- public static int m_TestInt = c_DEFAULT_VALUE;
-
- ~TestClass1()
- {
- m_TestInt--;
- }
-}
-
-/// <summary>
-/// ReRegisterForFinalize(System.Object)
-/// </summary>
-public class GCReRegisterForFinalize
-{
- #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 ReRegisterForFinalize to register the Finalizer for twice");
-
- try
- {
- PosTest1Worker();
-
- GC.Collect();
- GC.WaitForPendingFinalizers();
- GC.Collect();
-
- // Call the Finalizer second time
- GC.WaitForPendingFinalizers();
- GC.Collect();
-
- if (TestClass.m_TestInt != 0)
- {
- TestLibrary.TestFramework.LogError("001.1", "Calling ReRegisterForFinalize has no effect");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLE] TestClass.m_TestInt = " + TestClass.m_TestInt);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- [MethodImplAttribute(MethodImplOptions.NoInlining)]
- public void PosTest1Worker()
- {
- TestClass tc = new TestClass();
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Call ReRegisterForFinalize to register the Finalizer for twice with the caller is not the current object");
-
- try
- {
- PosTest2Worker();
-
- GC.Collect();
- // Call the Finalizer second time
- GC.WaitForPendingFinalizers();
- GC.Collect();
-
- if (TestClass1.m_TestInt != 0)
- {
- TestLibrary.TestFramework.LogError("002.1", "Calling ReRegisterForFinalize has no effect");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLE] TestClass1.m_TestInt = " + TestClass1.m_TestInt);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- [MethodImplAttribute(MethodImplOptions.NoInlining)]
- public void PosTest2Worker()
- {
- TestClass1 tc = new TestClass1();
-
- GC.Collect();
- GC.WaitForPendingFinalizers();
- GC.ReRegisterForFinalize(tc);
- }
- #endregion
-
- #region Nagetive Test Cases
- public bool NegTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: ArgumentNullException should be thrown when obj is a null reference");
-
- try
- {
- GC.ReRegisterForFinalize(null);
-
- TestLibrary.TestFramework.LogError("101.1", "ArgumentNullException is not thrown when obj is a 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()
- {
- GCReRegisterForFinalize test = new GCReRegisterForFinalize();
-
- TestLibrary.TestFramework.BeginTestCase("GCReRegisterForFinalize");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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.CompilerServices;
-
-public class TestClass
-{
- public const int c_DEFAULT_VALUE = 1;
- public static int m_TestInt = c_DEFAULT_VALUE;
-
- ~TestClass()
- {
- m_TestInt--;
- }
-}
-
-/// <summary>
-/// SuppressFinalize(System.Object)
-/// </summary>
-public class GCSuppressFinalize
-{
- #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 SuppressFinalize should prevent an object's finalizer is called during GC");
-
- try
- {
- TestClass.m_TestInt = TestClass.c_DEFAULT_VALUE;
-
- PosTest1Worker();
-
- GC.Collect();
- GC.WaitForPendingFinalizers();
- GC.Collect();
-
- if (TestClass.m_TestInt != TestClass.c_DEFAULT_VALUE)
- {
- TestLibrary.TestFramework.LogError("001.1", "Calling SuppressFinalize does not prevent an object's finalizer is called during GC");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] TestClass.m_TestInt = " + TestClass.m_TestInt);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- [MethodImplAttribute(MethodImplOptions.NoInlining)]
- public void PosTest1Worker()
- {
- TestClass tc = new TestClass();
- GC.SuppressFinalize(tc);
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Call SuppressFinalize should prevent an object's finalizer is called during GC and then you can re-register is to finalizer calling queue");
-
- try
- {
- TestClass.m_TestInt = TestClass.c_DEFAULT_VALUE;
-
- PosTest2Worker();
-
- GC.Collect();
- GC.WaitForPendingFinalizers();
- GC.Collect();
-
- if (TestClass.m_TestInt != 0)
- {
- TestLibrary.TestFramework.LogError("002.1", "Calling SuppressFinalize prevents an object's finalizer is called during GC, but then call ReRegisterForFinalize method takes no effect");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] TestClass.m_TestInt = " + TestClass.m_TestInt);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- [MethodImplAttribute(MethodImplOptions.NoInlining)]
- public void PosTest2Worker()
- {
- TestClass tc = new TestClass();
- GC.SuppressFinalize(tc);
- GC.ReRegisterForFinalize(tc);
- }
- #endregion
-
- #region Nagetive Test Cases
- public bool NegTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: ArgumentNullException should be thrown when obj is a null reference ");
-
- try
- {
- GC.SuppressFinalize(null);
-
- TestLibrary.TestFramework.LogError("101.1", "ArgumentNullException is not thrown when obj is a 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()
- {
- GCSuppressFinalize test = new GCSuppressFinalize();
-
- TestLibrary.TestFramework.BeginTestCase("GCSuppressFinalize");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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.Threading;
-using System.Runtime.CompilerServices;
-
-public class TestClass
-{
- GCWaitForPendingFinalizers creator;
-
- public TestClass(GCWaitForPendingFinalizers _creator)
- {
- creator = _creator;
- }
-
- ~TestClass()
- {
- creator.f_TestClassFinalizerExecuted = true;
- }
-}
-
-/// <summary>
-/// WaitForPendingFinalizers
-/// </summary>
-public class GCWaitForPendingFinalizers
-{
- public bool f_TestClassFinalizerExecuted = false;
-
- #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 WaitForPendingFinalizers should wait all finalizer are called");
-
- try
- {
- PosTest1Worker();
-
- GC.Collect();
- GC.WaitForPendingFinalizers();
-
- if (!f_TestClassFinalizerExecuted)
- {
- TestLibrary.TestFramework.LogError("001.1", "Call WaitForPendingFinalizers does not wait for finalizer");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- [MethodImplAttribute(MethodImplOptions.NoInlining)]
- public void PosTest1Worker()
- {
- TestClass tc = new TestClass(this);
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- GCWaitForPendingFinalizers test = new GCWaitForPendingFinalizers();
-
- TestLibrary.TestFramework.BeginTestCase("GCWaitForPendingFinalizers");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-<?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="iconvertibletoboolean.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>
-
+++ /dev/null
-<?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="iconvertibletobyte.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>
-
+++ /dev/null
-<?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="iconvertibletochar.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>
-
+++ /dev/null
-<?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="iconvertibletodatetime.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>
-
+++ /dev/null
-<?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="iconvertibletodecimal.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>
-
+++ /dev/null
-<?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="iconvertibletodouble.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>
-
+++ /dev/null
-<?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="iconvertibletoint16.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>
-
+++ /dev/null
-<?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="iconvertibletoint32.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>
-
+++ /dev/null
-<?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="iconvertibletoint64.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>
-
+++ /dev/null
-// 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 IConvertibleToBoolean
-{
- #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 method ToBoolean of interface IConvertible when value is true.");
-
- try
- {
- if ((true as IConvertible).ToBoolean(null) != true)
- {
- TestLibrary.TestFramework.LogError("001.1", "expect (true as IConvertible).ToBoolean(null) == true");
- 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 method ToBoolean of interface IConvertible when value is false.");
-
-
- try
- {
- if ((false as IConvertible).ToBoolean(null) != false)
- {
- TestLibrary.TestFramework.LogError("002.1", "expect (false as IConvertible).ToBoolean(null) == false");
- 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: ");
-
- // 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()
- {
- IConvertibleToBoolean test = new IConvertibleToBoolean();
-
- TestLibrary.TestFramework.BeginTestCase("IConvertibleToBoolean");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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 IConvertibleToByte
-{
- #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 method ToByte of interface IConvertible when value is true.");
-
- try
- {
- if ((true as IConvertible).ToByte(null) != (byte)1)
- {
- TestLibrary.TestFramework.LogError("001.1", "expect (true as IConvertible).ToByte(null) == (byte)1");
- 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 method ToByte of interface IConvertible when value is false.");
-
- try
- {
- if ((false as IConvertible).ToByte(null) != (byte)0)
- {
- TestLibrary.TestFramework.LogError("002.1", "expect (false as IConvertible).ToByte(null) == 0");
- 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: ");
-
- // 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()
- {
- IConvertibleToByte test = new IConvertibleToByte();
-
- TestLibrary.TestFramework.BeginTestCase("IConvertibleToByte");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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 IConvertibleToChar
-{
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- //retVal = PosTest1() && 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: ");
-
- // try
- // {
- // //
- // // Add your test logic here
- // //
- // }
- // catch (Exception e)
- // {
- // TestLibrary.TestFramework.LogError("001", "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: Verify method ToChar of interface IConvertible when value is true.");
-
- try
- {
- char v = (true as IConvertible).ToChar(null);
- TestLibrary.TestFramework.LogError("101.1",
- String.Format("expected a InvalidCastException on (true as IConvertible).ToChar(null)) but got {0}", v));
- retVal = false;
- }
- catch (InvalidCastException) { }
- 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: Verify method ToChar of interface IConvertible when value is false.");
-
- try
- {
- char v = (false as IConvertible).ToChar(null);
- TestLibrary.TestFramework.LogError("102.1",
- String.Format("expected a InvalidCastException on (false as IConvertible).ToChar(null)) but got {0}", v));
- retVal = false;
- }
- catch (InvalidCastException) { }
- 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()
- {
- IConvertibleToChar test = new IConvertibleToChar();
-
- TestLibrary.TestFramework.BeginTestCase("IConvertibleToChar");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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 IConvertibleToDateTime
-{
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- //retVal = PosTest1() && 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: ");
-
- // try
- // {
- // //
- // // Add your test logic here
- // //
- // }
- // catch (Exception e)
- // {
- // TestLibrary.TestFramework.LogError("001", "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: Verify method ToDateTime of interface IConvertible when value is true.");
-
- try
- {
- DateTime v = (true as IConvertible).ToDateTime(null);
- TestLibrary.TestFramework.LogError("101.1",
- String.Format("expected a InvalidCastException on (true as IConvertible).ToDateTime(null)) but got {0}", v));
- retVal = false;
- }
- catch (InvalidCastException) { }
- 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: Verify method ToDateTime of interface IConvertible when value is false.");
-
- try
- {
- DateTime v = (false as IConvertible).ToDateTime(null);
- TestLibrary.TestFramework.LogError("102.1",
- String.Format("expected a InvalidCastException on (false as IConvertible).ToDateTime(null)) but got {0}", v));
- retVal = false;
- }
- catch (InvalidCastException) { }
- 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()
- {
- IConvertibleToDateTime test = new IConvertibleToDateTime();
-
- TestLibrary.TestFramework.BeginTestCase("IConvertibleToDateTime");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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 IConvertibleToDecimal
-{
- #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 method ToDateTime of interface IConvertible when value is true.");
-
- try
- {
- if ((true as IConvertible).ToDecimal(null) != 1)
- {
- TestLibrary.TestFramework.LogError("001.1", "expect (true as IConvertible).ToDecimal(null) == 1");
- 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 method ToDateTime of interface IConvertible when value is false.");
-
- try
- {
- if ((false as IConvertible).ToDecimal(null) != 0)
- {
- TestLibrary.TestFramework.LogError("002.1", "expect (false as IConvertible).ToDecimal(null) == 0");
- 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: ");
-
- // 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()
- {
- IConvertibleToDecimal test = new IConvertibleToDecimal();
-
- TestLibrary.TestFramework.BeginTestCase("IConvertibleToDecimal");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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>
-/// ToDouble [v-jianq]
-/// </summary>
-
-public class IConvertibleToDouble
-{
- #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 method ToDouble of interface IConvertible when value is true.");
-
- try
- {
- if ((true as IConvertible).ToDouble(null) != 1.0)
- {
- TestLibrary.TestFramework.LogError("001.1", "expect (true as IConvertible).ToDouble(null) == 1.0");
- 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 method ToDouble of interface IConvertible when value is false.");
-
- try
- {
- if ((false as IConvertible).ToDouble(null) != 0.0)
- {
- TestLibrary.TestFramework.LogError("002.1", "expect (false as IConvertible).ToDouble(null) == 0.0");
- 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: ");
-
- // 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()
- {
- IConvertibleToDouble test = new IConvertibleToDouble();
-
- TestLibrary.TestFramework.BeginTestCase("IConvertibleToDouble");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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>
-/// ToInt16 [v-jianq]
-/// </summary>
-
-public class IConvertibleToInt16
-{
- #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 method ToInt16 of interface IConvertible when value is true.");
-
- try
- {
- if ((true as IConvertible).ToInt16(null) != (short)1)
- {
- TestLibrary.TestFramework.LogError("001.1", "expect (true as IConvertible).ToInt16(null) == (short)1");
- 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 method ToInt16 of interface IConvertible when value is false.");
-
- try
- {
- if ((false as IConvertible).ToInt16(null) != 0)
- {
- TestLibrary.TestFramework.LogError("002.1", "expect (false as IConvertible).ToInt16(null) == 0");
- 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: ");
-
- // 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()
- {
- IConvertibleToInt16 test = new IConvertibleToInt16();
-
- TestLibrary.TestFramework.BeginTestCase("IConvertibleToInt16");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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>
-/// ToInt32 [v-jianq]
-/// </summary>
-
-public class IConvertibleToInt32
-{
- #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 method ToInt32 of interface IConvertible when value is true.");
-
- try
- {
- if ((true as IConvertible).ToInt32(null) != 1)
- {
- TestLibrary.TestFramework.LogError("001.1", "expect (true as IConvertible).ToInt32(null) == 1");
- 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 method ToInt32 of interface IConvertible when value is false.");
-
- try
- {
- if ((false as IConvertible).ToInt32(null) != 0)
- {
- TestLibrary.TestFramework.LogError("002.1", "expect (false as IConvertible).ToInt32(null) == 0");
- 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: ");
-
- // 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()
- {
- IConvertibleToInt32 test = new IConvertibleToInt32();
-
- TestLibrary.TestFramework.BeginTestCase("IConvertibleToInt32");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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>
-/// ToInt64 [v-jianq]
-/// </summary>
-
-public class IConvertibleToInt64
-{
- #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 method ToInt64 of interface IConvertible when value is true.");
-
- try
- {
- if ((true as IConvertible).ToInt64(null) != 1L)
- {
- TestLibrary.TestFramework.LogError("001.1", "expect (true as IConvertible).ToInt64(null) == 1L");
- 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 method ToInt64 of interface IConvertible when value is false.");
-
- try
- {
- if ((false as IConvertible).ToInt64(null) != 0L)
- {
- TestLibrary.TestFramework.LogError("002.1", "expect (false as IConvertible).ToInt64(null) == 0L");
- 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: ");
-
- // 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()
- {
- IConvertibleToInt64 test = new IConvertibleToInt64();
-
- TestLibrary.TestFramework.BeginTestCase("IConvertibleToInt64");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-<?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="int32compareto1.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>
-
+++ /dev/null
-<?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="int32equals1.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>
-
+++ /dev/null
-<?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="int32equals2.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>
-
+++ /dev/null
-<?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="int32gethashcode.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>
-
+++ /dev/null
-<?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="int32iconvertibletoboolean.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>
-
+++ /dev/null
-<?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="int32iconvertibletobyte.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>
-
+++ /dev/null
-<?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="int32iconvertibletochar.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>
-
+++ /dev/null
-<?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="int32iconvertibletodatetime.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>
-
+++ /dev/null
-<?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="int32iconvertibletodecimal.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>
-
+++ /dev/null
-<?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="int32iconvertibletodouble.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>
-
+++ /dev/null
-<?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="int32iconvertibletoint16.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>
-
+++ /dev/null
-<?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="int32iconvertibletoint32.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>
-
+++ /dev/null
-<?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="int32iconvertibletoint64.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>
-
+++ /dev/null
-<?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="int32iconvertibletosbyte.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>
-
+++ /dev/null
-<?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="int32iconvertibletosingle.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>
-
+++ /dev/null
-<?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="int32iconvertibletotype.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>
-
+++ /dev/null
-<?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="int32iconvertibletouint16.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>
-
+++ /dev/null
-<?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="int32iconvertibletouint32.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>
-
+++ /dev/null
-<?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="int32iconvertibletouint64.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>
-
+++ /dev/null
-<?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="int32maxvalue.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>
-
+++ /dev/null
-<?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="int32minvalue.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>
-
+++ /dev/null
-<?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="int32tostring3.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>
-
+++ /dev/null
-// 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 Int32CompareTo1
-{
- #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: set the parameter to int32MaxValue");
-
- try
- {
- Int32 intCase = Int32.MaxValue;
- if (intCase.CompareTo(Int32.MaxValue) != 0)
- {
- TestLibrary.TestFramework.LogError("001", " CompareTo method works incorrectly");
- 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;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Compare to a less int");
-
- try
- {
- Int32 intCase = TestLibrary.Generator.GetInt32(-55);
- if(intCase == Int32.MinValue)
- intCase = intCase+1; // To avoid the intCase = Int32.MinValue
-
- if (intCase.CompareTo(Int32.MinValue) <= 0)
- {
- TestLibrary.TestFramework.LogError("003", " CompareTo method works incorrectly");
- 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;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Compare to a big int");
-
- try
- {
- Int32 intCase1 = TestLibrary.Generator.GetInt32(-55);
- while (intCase1 == Int32.MaxValue)
- {
- intCase1 = TestLibrary.Generator.GetInt32(-55);
- }
-
- int intCase2 = intCase1 + 1;
-
- if (intCase1.CompareTo(intCase2) >= 0)
- {
- TestLibrary.TestFramework.LogError("005", " CompareTo method works incorrectly");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- Int32CompareTo1 test = new Int32CompareTo1();
-
- TestLibrary.TestFramework.BeginTestCase("Int32CompareTo1");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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.Int32.Equals(System.Int32)
-public class Int32Equals1
-{
- #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;
-
- // Add your scenario description here
- TestLibrary.TestFramework.BeginScenario("PosTest1:Test random number ");
-
- try
- {
- Int32 i1, i2;
- i1 = i2 = TestLibrary.Generator.GetInt32(-55);
- if (!i1.Equals(i2))
- {
- TestLibrary.TestFramework.LogError("001", String.Format("equal two equal number {0} did not return true", i2));
- 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;
-
- // Add your scenario description here
- TestLibrary.TestFramework.BeginScenario("PosTest2:Test two different number");
-
- try
- {
-
- Int32 i1 = TestLibrary.Generator.GetInt32(-55);
- Int32 i2;
- if (i1 == Int32.MaxValue)
- {
- i2 = i1-1;
- }
- else
- {
- i2 = i1+1;
- }
- if (i1.Equals(i2))
- {
-
- TestLibrary.TestFramework.LogError("003", String.Format("compare two number which is not equal did not return false: {0} and {1}",i1,i2 ));
- 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;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3:Test 0 equals 0 ");
-
- try
- {
- Int32 i1, i2;
- i1 = i2 = 0;
- if (!i1.Equals(i2))
- {
- TestLibrary.TestFramework.LogError("005", "0!=0");
- 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
-
- #endregion
- #endregion
-
- public static int Main()
- {
- Int32Equals1 test = new Int32Equals1();
-
- TestLibrary.TestFramework.BeginTestCase("Int32Equals1");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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.Int32.Equals(System.Object)
-public class Int32Equals2
-{
- #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;
-
- return retVal;
- }
-
- #region Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: test two random Int32");
-
- try
- {
- Int32 o1;
- object o2 = o1 = TestLibrary.Generator.GetInt32(-55);
- if (!o1.Equals(o2))
- {
- TestLibrary.TestFramework.LogError("001", "Equal error , random number: " + o1);
- 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;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: test 0 = 0");
-
- try
- {
- Int32 o1 = 0;
- object o2 = 0;
- if (!o1.Equals(o2))
- {
- TestLibrary.TestFramework.LogError("003", "Equal error 0 = 0 ");
- 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;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: test Int32.MaxValue");
-
- try
- {
- Int32 o1 = Int32.MaxValue;
- object o2 = Int32.MaxValue;
- if (!o1.Equals(o2))
- {
- TestLibrary.TestFramework.LogError("005", "Equal error Int32.MaxValue ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: test Int32.MinValue");
-
- try
- {
- Int32 o1 = Int32.MinValue;
- object o2 = Int32.MinValue;
- if (!o1.Equals(o2))
- {
- TestLibrary.TestFramework.LogError("007", "Equal error Int32.MinValue ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest5: test two different value");
-
- try
- {
- Int32 o1 = 0;
- object o2 = o1 + 1;
-
- if (o1.Equals(o2))
- {
- TestLibrary.TestFramework.LogError("009", "Equal two different value get a true, error");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest6()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest6: test other parameter ");
-
- try
- {
- double f1 = 3.00;
- Int32 i1 = 3;
- if (i1.Equals(f1))
- {
- TestLibrary.TestFramework.LogError("011", "different kind parameters is not equal");
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #region Nagetive Test Cases
-
- #endregion
- #endregion
-
- public static int Main()
- {
- Int32Equals2 test = new Int32Equals2();
-
- TestLibrary.TestFramework.BeginTestCase("Int32Equals2");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
-
+++ /dev/null
-// 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 Int32GetHashCode
-{
- #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: check that if the return value is equal to the int32 ");
-
- try
- {
- Int32 i1 = TestLibrary.Generator.GetInt32(-55);
- Int32 i2 = i1.GetHashCode();
- if (i1 != i2)
- {
- TestLibrary.TestFramework.LogError("001", "int32.gethashcode is not equal to the int32 itself : " + i1);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #endregion
-
- public static int Main()
- {
- Int32GetHashCode test = new Int32GetHashCode();
-
- TestLibrary.TestFramework.BeginTestCase("Int32GetHashCode");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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.Int32.System.IConvertibleToBoolean
-public class Int32IConvertibleToBoolean
-{
- #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: genarate a random int32 to boolean ");
-
- try
- {
- Int32 i1 = 0;
- while (i1 == 0)
- {
- i1 = TestLibrary.Generator.GetInt32(-55);
- }
- IConvertible Icon1 = (IConvertible)(i1);
- if (Icon1.ToBoolean(null) != true)
- {
- TestLibrary.TestFramework.LogError("001", String.Format("The int32 {0} to boolean is not true as expected ", i1));
- 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: Zero to boolean ");
-
- try
- {
- Int32 i1 = 0;
- IConvertible Icon1 = (IConvertible)(i1);
- if (Icon1.ToBoolean(null) != false)
- {
- TestLibrary.TestFramework.LogError("003", String.Format("The int32 {0} to boolean is not false as expected ", i1));
- 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: convert negative number to boolean ");
-
- try
- {
- Int32 i1 = 0;
- while (i1 == 0)
- {
- i1 = TestLibrary.Generator.GetInt32(-55);
- }
- IConvertible Icon1 = (IConvertible)(-i1);
- if (Icon1.ToBoolean(null) != true)
- {
- TestLibrary.TestFramework.LogError("005", String.Format("The int32 {0} to boolean is not true as expected ", i1));
- 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: ");
-
- // 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()
- {
- Int32IConvertibleToBoolean test = new Int32IConvertibleToBoolean();
-
- TestLibrary.TestFramework.BeginTestCase("Int32IConvertibleToBoolean");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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.Int32.System.IConvertibleToByte
-public class Int32IConvertibleToByte
-{
- #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;
-
- return retVal;
- }
-
- #region Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Convert a random int32 to byte ");
-
- try
- {
- Int32 i1 = (Int32)TestLibrary.Generator.GetByte(-55);
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToByte(null) != i1)
- {
- 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: Convert ByteMaxValue to byte ");
-
- try
- {
- Int32 i1 = (Int32)Byte.MaxValue;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToByte(null) != i1)
- {
- 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:Convert zero to byte ");
-
- try
- {
- Int32 i1 = 0;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToByte(null) != 0)
- {
- TestLibrary.TestFramework.LogError("005", "The result is not zero 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: Convert a negative byte int32 to Byte ");
-
- try
- {
- Int32 i1 = 0;
- while (i1 == 0)
- {
- i1 = (Int32)TestLibrary.Generator.GetByte(-55);
- }
- IConvertible Icon1 = (IConvertible)(-i1);
- Byte b1 = Icon1.ToByte(null);
- TestLibrary.TestFramework.LogError("101", "An overflowException was not thrown as expected");
- retVal = false;
- }
- catch (System.OverflowException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: Convert int32 to Byte ");
-
- try
- {
- Int32 i1 = 0;
- while (i1 <= 255)
- {
- i1 = (Int32)TestLibrary.Generator.GetInt32(-55);
- }
- IConvertible Icon1 = (IConvertible)(i1);
- Byte b1 = Icon1.ToByte(null);
- TestLibrary.TestFramework.LogError("103", "An overflowException was not thrown as expected");
- retVal = false;
- }
- catch (System.OverflowException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest3: Check the border value ");
-
- try
- {
- Int32 i1 = 256;
- IConvertible Icon1 = (IConvertible)(i1);
- Byte b1 = Icon1.ToByte(null);
- TestLibrary.TestFramework.LogError("105", "An overflowException was not thrown as expected");
- retVal = false;
- }
- catch (System.OverflowException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("106", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- Int32IConvertibleToByte test = new Int32IConvertibleToByte();
-
- TestLibrary.TestFramework.BeginTestCase("Int32IConvertibleToByte");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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 Int32IConvertibleToChar
-{
- #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;
-
- // Add your scenario description here
- TestLibrary.TestFramework.BeginScenario("PosTest1: Convert a random (Int32)char to char ");
-
- try
- {
- Int32 i1 = (Int32)TestLibrary.Generator.GetChar(-55);
- IConvertible Icon1 = (IConvertible)i1;
- char c1 = Icon1.ToChar(null);
- if (c1 != i1)
- {
- 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: Convert zero to char ");
-
- try
- {
- Int32 i1 = 0;
- IConvertible Icon1 = (IConvertible)i1;
- char c1 = Icon1.ToChar(null);
- if (c1 != i1)
- {
- 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: Check the border value of char ");
-
- try
- {
- Int32 i1 = 65535;
- IConvertible Icon1 = (IConvertible)i1;
- char c1 = Icon1.ToChar(null);
- if (c1 != i1)
- {
- 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: Convert a negative int32 to char");
-
- try
- {
- Int32 i1 = (Int32)TestLibrary.Generator.GetChar(-55);
- IConvertible Icon1 = (IConvertible)(-i1);
- char c1 = Icon1.ToChar(null);
- TestLibrary.TestFramework.LogError("101", "OverflowException was not thrown as expected ");
- retVal = false;
- }
- catch (OverflowException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: Convert a int32 which is bigger than char to char ");
-
- try
- {
- Int32 i1 = 65536;
- IConvertible Icon1 = (IConvertible)i1;
- char c1 = Icon1.ToChar(null);
- TestLibrary.TestFramework.LogError("103", "OverflowException was not thrown as expected ");
- retVal = false;
- }
- catch (OverflowException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- Int32IConvertibleToChar test = new Int32IConvertibleToChar();
-
- TestLibrary.TestFramework.BeginTestCase("Int32IConvertibleToChar");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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 Int32IConvertibleToDateTime
-{
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Negative]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
-
- return retVal;
- }
-
- #region Positive Test Cases
- #endregion
-
- #region Nagetive Test Cases
- public bool NegTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: Convert an random int32 to DateTime ");
-
- try
- {
- Int32 i1 = TestLibrary.Generator.GetInt32(-55);
- IConvertible Icon1 = (IConvertible)i1;
- DateTime d1 = Icon1.ToDateTime(null);
- TestLibrary.TestFramework.LogError("101", "The InvalidCastException was not thrown as expected");
- retVal = false;
-
- }
- catch (System.InvalidCastException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: Convert zero to DateTime ");
-
- try
- {
- Int32 i1 = 0;
- DateTime d1 = (i1 as IConvertible).ToDateTime(null);
- TestLibrary.TestFramework.LogError("103", "The InvalidCastException was not thrown as expected");
- retVal = false;
-
- }
- catch (System.InvalidCastException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- Int32IConvertibleToDateTime test = new Int32IConvertibleToDateTime();
-
- TestLibrary.TestFramework.BeginTestCase("Int32IConvertibleToDateTime");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
-
+++ /dev/null
-// 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 Int32IConvertibleToDecimal
-{
- #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: Check a random int32 to Decimal ");
-
- try
- {
- Int32 i1 = TestLibrary.Generator.GetInt32(-55);
- IConvertible Icon1 = (IConvertible)i1;
- decimal d1 = Icon1.ToDecimal(null);
- if (d1 != i1)
- {
- TestLibrary.TestFramework.LogError("001", "The result is not correct 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: Convert zero to decimal");
-
- try
- {
- Int32 i1 = 0;
- IConvertible Icon1 = (IConvertible)i1;
- decimal d1 = Icon1.ToDecimal(null);
- if (d1 != i1)
- {
- TestLibrary.TestFramework.LogError("003", "The result is not correct 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: Check the border value Int32MaxValue");
-
- try
- {
- Int32 i1 = Int32.MaxValue;
- IConvertible Icon1 = (IConvertible)i1;
- decimal d1 = Icon1.ToDecimal(null);
- if (d1 != i1)
- {
- TestLibrary.TestFramework.LogError("005", "The result is not correct 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: Check the border value Int32MinValue");
-
- try
- {
- Int32 i1 = Int32.MinValue;
- IConvertible Icon1 = (IConvertible)i1;
- decimal d1 = Icon1.ToDecimal(null);
- if (d1 != i1)
- {
- TestLibrary.TestFramework.LogError("007", "The result is not correct as expected");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- Int32IConvertibleToDecimal test = new Int32IConvertibleToDecimal();
-
- TestLibrary.TestFramework.BeginTestCase("Int32IConvertibleToDecimal");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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.Int32.IConvertibleToDouble(System.IFormatProvider)
-public class Int32IConvertibleToDouble
-{
- #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: Convert a random int to double");
-
- try
- {
- Int32 i1 = TestLibrary.Generator.GetInt32(-55);
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToDouble(null) != i1)
- {
- 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: Convert a zero to double");
-
- try
- {
- Int32 i1 = 0;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToDouble(null) != i1)
- {
- 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: Convert a negative int to double");
-
- try
- {
- Int32 i1 = 0;
- while (i1 == 0)
- {
- i1 = TestLibrary.Generator.GetInt32(-55);
- }
- IConvertible Icon1 = (IConvertible)(-i1);
- if (Icon1.ToDouble(null) != (-i1))
- {
- 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: Check the boundary value1");
-
- try
- {
- Int32 i1 = Int32.MaxValue;
- IConvertible Icon1 = (IConvertible)(i1);
- if (Icon1.ToDouble(null) != i1)
- {
- 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: Check the boundary value2");
-
- try
- {
- Int32 i1 = Int32.MinValue;
- IConvertible Icon1 = (IConvertible)(i1);
- if (Icon1.ToDouble(null) != i1)
- {
- 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
- #endregion
-
- public static int Main()
- {
- Int32IConvertibleToDouble test = new Int32IConvertibleToDouble();
-
- TestLibrary.TestFramework.BeginTestCase("Int32IConvertibleToDouble");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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.Int32.ConvertibleToInt16(System.IFormatProvider)
-public class Int32IConvertibleToInt16
-{
- #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: Convert a Int32 to int16");
-
- try
- {
- int i1 = 0;
- while (i1 == 0)
- {
- i1 = (Int32)TestLibrary.Generator.GetInt16(-55);
- }
- IConvertible Icon1 = (IConvertible)(i1);
- if (Icon1.ToInt16(null) != i1)
- {
- 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: Convert a negative int32 to int16");
-
- try
- {
- int i1 = 0;
- while (i1 == 0)
- {
- i1 = (Int32)TestLibrary.Generator.GetInt16(-55);
- }
- IConvertible Icon1 = (IConvertible)(-i1);
- if (Icon1.ToInt16(null) != (-i1))
- {
- 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: Convert zero to int16");
-
- try
- {
- int i1 = 0;
- IConvertible Icon1 = (IConvertible)(i1);
- if (Icon1.ToInt16(null) != i1)
- {
- 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: Convert a Int32 which is bigger than int16 to Int16 ");
-
- try
- {
- Int32 i1 = 0;
- while (i1 <= 32767)
- {
- i1 = TestLibrary.Generator.GetInt32(-55);
- }
- IConvertible Icon1 = (IConvertible)(i1);
- if (Icon1.ToInt16(null) != i1)
- {
- }
- TestLibrary.TestFramework.LogError("101", "An overflowException was not thrown as expected ");
- retVal = false;
- }
- catch (OverflowException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: Check the boundary value ");
-
- try
- {
- Int32 i1 = (Int32)(Int16.MinValue - 1);
- IConvertible Icon1 = (IConvertible)(i1);
- if (Icon1.ToInt16(null) != i1)
- {
- }
- TestLibrary.TestFramework.LogError("103", "An overflowException was not thrown as expected ");
- retVal = false;
- }
- catch (OverflowException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- Int32IConvertibleToInt16 test = new Int32IConvertibleToInt16();
-
- TestLibrary.TestFramework.BeginTestCase("Int32IConvertibleToInt16");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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 Int32IConvertibleToInt32
-{
- #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;
-
- // Add your scenario description here
- TestLibrary.TestFramework.BeginScenario("PosTest1: Check the int32.MaxValue ");
-
- try
- {
- Int32 i1 = Int32.MaxValue;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToInt32(null) != i1)
- {
- 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:Check Int32.MinValue ");
-
- try
- {
- Int32 i1 = Int32.MinValue;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToInt32(null) != i1)
- {
- 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:Check zero ");
-
- try
- {
- Int32 i1 = 0;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToInt32(null) != i1)
- {
- 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: Check a random Int32 number ");
-
- try
- {
- Int32 i1 = TestLibrary.Generator.GetInt32(-55);
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToInt32(null) != i1)
- {
- TestLibrary.TestFramework.LogError("007", string.Format("The result is not the value {0} as expected", i1));
- 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()
- {
- Int32IConvertibleToInt32 test = new Int32IConvertibleToInt32();
-
- TestLibrary.TestFramework.BeginTestCase("Int32IConvertibleToInt32");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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 Int32IConvertibleToInt64
-{
- #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: check a random int32 to int64");
-
- try
- {
- Int32 i1 = TestLibrary.Generator.GetInt32(-55);
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToInt64(null) != i1)
- {
- 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: check zero");
-
- try
- {
- Int32 i1 = 0;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToInt64(null) != i1)
- {
- 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;
- }
- #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()
- {
- Int32IConvertibleToInt64 test = new Int32IConvertibleToInt64();
-
- TestLibrary.TestFramework.BeginTestCase("Int32IConvertibleToInt64");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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 Int32IConvertibleToSByte
-{
- #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;
-
- return retVal;
- }
-
- #region Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- // Add your scenario description here
- TestLibrary.TestFramework.BeginScenario("PosTest1: Convert a random int32 to sbyte ");
-
- try
- {
- int i1 = 200;
- while (i1 > 127)
- {
- i1 = (Int32)TestLibrary.Generator.GetByte(-55);
- }
- IConvertible Icon1 = (IConvertible)(i1);
- if (Icon1.ToSByte(null) != i1)
- {
- TestLibrary.TestFramework.LogError("001", "The result is not the value as expected");
- 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;
-
- // Add your scenario description here
- TestLibrary.TestFramework.BeginScenario("PosTest2: Convert zero to sbyte ");
-
- try
- {
- int i1 = 0;
- IConvertible Icon1 = (IConvertible)(i1);
- if (Icon1.ToSByte(null) != i1)
- {
- TestLibrary.TestFramework.LogError("003", "The result is not the value as expected");
- 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;
-
- // Add your scenario description here
- TestLibrary.TestFramework.BeginScenario("PosTest3: Convert a negative int32 to sbyte ");
-
- try
- {
- int i1 = 200;
- while (i1 > 127)
- {
- i1 = (Int32)TestLibrary.Generator.GetByte(-55);
- }
- IConvertible Icon1 = (IConvertible)(-i1);
- if (Icon1.ToSByte(null) != (-i1))
- {
- TestLibrary.TestFramework.LogError("005", "The result is not the value as expected");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "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: Check the boundary value");
-
- try
- {
-
- Int32 i1 = (Int32)sbyte.MinValue;
- IConvertible Icon1 = (IConvertible)(i1);
- if (Icon1.ToSByte(null) != (i1))
- {
- TestLibrary.TestFramework.LogError("007", "The result is not the value as expected");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "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: Test the overflowException");
-
- try
- {
- Int32 i1 = 0;
- while (i1 <= 127)
- {
- i1 = TestLibrary.Generator.GetInt32(-55);
- }
- IConvertible Icon1 = (IConvertible)(i1);
- if (Icon1.ToInt16(null) != i1)
- {
- }
- TestLibrary.TestFramework.LogError("101", "An overflowException was not thrown as expected ");
- retVal = false;
- }
- catch (OverflowException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- Int32IConvertibleToSByte test = new Int32IConvertibleToSByte();
-
- TestLibrary.TestFramework.BeginTestCase("Int32IConvertibleToSByte");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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 Int32IConvertibleToSingle
-{
- #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: Convert a random int32 to single ");
-
- try
- {
- int i1 = 0;
- while (i1 == 0)
- {
- i1 = (Int32)TestLibrary.Generator.GetInt32(-55);
- }
- IConvertible Icon1 = (IConvertible)(i1);
- if (Icon1.ToSingle(null) != i1)
- {
- TestLibrary.TestFramework.LogError("001", "The result is not the value as expected");
- 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;
-
- // Add your scenario description here
- TestLibrary.TestFramework.BeginScenario("PosTest2: Convert zero to single ");
-
- try
- {
- int i1 = 0;
- IConvertible Icon1 = (IConvertible)(i1);
- if (Icon1.ToSingle(null) != i1)
- {
- TestLibrary.TestFramework.LogError("003", "The result is not the value as expected");
- 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;
-
- // Add your scenario description here
- TestLibrary.TestFramework.BeginScenario("PosTest3: Convert a negative int32 to single ");
-
- try
- {
- int i1 = 0;
- while (i1 == 0)
- {
- i1 = (Int32)TestLibrary.Generator.GetByte(-55);
- }
- IConvertible Icon1 = (IConvertible)(-i1);
- if (Icon1.ToSingle(null) != (-i1))
- {
- TestLibrary.TestFramework.LogError("005", "The result is not the value as expected");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "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: Check the boundary value");
-
- try
- {
-
- Int32 i1 = Int32.MinValue;
- IConvertible Icon1 = (IConvertible)(i1);
- if (Icon1.ToSingle(null) != (i1))
- {
- TestLibrary.TestFramework.LogError("007", "The result is not the value as expected");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #region Nagetive Test Cases
-
- #endregion
- #endregion
-
- public static int Main()
- {
- Int32IConvertibleToSingle test = new Int32IConvertibleToSingle();
-
- TestLibrary.TestFramework.BeginTestCase("Int32IConvertibleToSingle");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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.Int32.System.IConvertible.ToType(System.Type,System.IFormatProvider)
-public class Int32IConvertibleToType
-{
- #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;
-
- return retVal;
- }
-
- #region Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- // Add your scenario description here
- TestLibrary.TestFramework.BeginScenario("PosTest1: Convert a random Int32 to String ");
-
- try
- {
- Int32 i1 = TestLibrary.Generator.GetInt32(-55);
- IConvertible Icon1 = (IConvertible)i1;
- string s1 = Icon1.ToType(typeof(System.String), null) as string;
- if (s1 != i1.ToString())
- {
- TestLibrary.TestFramework.LogError("001", "The result is not the value as expected.The random number is :" + i1.ToString());
- 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: Convert a random Int32 to Boolean ");
-
- try
- {
- Int32 i1 = 0;
- while (i1 == 0)
- {
- i1 = TestLibrary.Generator.GetInt32(-55);
- }
- IConvertible Icon1 = (IConvertible)i1;
- bool s1 = (bool)Icon1.ToType(typeof(System.Boolean), null);
- if (s1 != true)
- {
- TestLibrary.TestFramework.LogError("003", "The result is not the value as expected.The random number is :" + i1.ToString());
- 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: Check the boundary value ");
-
- try
- {
- Int32 i1 = Int32.MaxValue;
- IConvertible Icon1 = (IConvertible)i1;
- long s1 = (long)Icon1.ToType(typeof(System.Int64), null);
- if (s1 != i1)
- {
- 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: Convert \'-0\' to char ");
-
- try
- {
- Int32 i1 = -0;
- IConvertible Icon1 = (IConvertible)i1;
- char s1 = (char)Icon1.ToType(typeof(System.Char), null);
- if (s1 != '\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;
- }
- #endregion
-
- #region Nagetive Test Cases
- public bool NegTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: Test the overflowException ");
-
- try
- {
- Int32 i1 = 0;
- while (i1 <= 255)
- {
- i1 = TestLibrary.Generator.GetInt32(-55);
- }
- IConvertible Icon1 = (IConvertible)i1;
- byte s1 = (byte)Icon1.ToType(typeof(System.Byte), null);
- TestLibrary.TestFramework.LogError("101", "The overflow exception was not thrown as expected: ");
- retVal = false;
- }
- catch (OverflowException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- Int32IConvertibleToType test = new Int32IConvertibleToType();
-
- TestLibrary.TestFramework.BeginTestCase("Int32IConvertibleToType");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
-
+++ /dev/null
-// 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.Int32.System.IConvertible.ToUInt16(System.IFormatProvider)
-public class Int32IConvertibleToUInt16
-{
- public const int c_UINT16_MAXVALUE = 65535;
-
- #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;
-
- // Add your scenario description here
- TestLibrary.TestFramework.BeginScenario("PosTest1: Convert a random Int32 to UInt16");
-
- try
- {
- Int32 i1 = TestLibrary.Generator.GetInt16(-55);
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToUInt16(null) != i1)
- {
- 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: Convert zero to UInt16 ");
-
- try
- {
- Int32 i1 = 0;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToUInt16(null) != 0)
- {
- 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: Check the boundary value ");
-
- try
- {
- Int32 i1 = c_UINT16_MAXVALUE;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToUInt16(null) != c_UINT16_MAXVALUE)
- {
- 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: Test the overflowException ");
-
- try
- {
- Int32 i1 = 0;
- while (i1 <= c_UINT16_MAXVALUE)
- {
- i1 = TestLibrary.Generator.GetInt32(-55);
- }
- IConvertible Icon1 = (IConvertible)i1;
- ushort s1 = Icon1.ToUInt16(null);
- TestLibrary.TestFramework.LogError("101", "The overflow exception was not thrown as expected: ");
- retVal = false;
- }
- catch (OverflowException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: Test the negative int32 ");
-
- try
- {
- Int32 i1 = TestLibrary.Generator.GetInt16(-55);
- IConvertible Icon1 = (IConvertible)(-i1);
- ushort s1 = Icon1.ToUInt16(null);
- TestLibrary.TestFramework.LogError("103", "The overflow exception was not thrown as expected: ");
- retVal = false;
- }
- catch (OverflowException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- Int32IConvertibleToUInt16 test = new Int32IConvertibleToUInt16();
-
- TestLibrary.TestFramework.BeginTestCase("Int32IConvertibleToUInt16");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
-
-
+++ /dev/null
-// 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.Int32.System.IConvertible.ToUInt32(System.IFormatProvider)
-public class Int32IConvertibleToUInt32
-{
- #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;
-
- // Add your scenario description here
- TestLibrary.TestFramework.BeginScenario("PosTest1: Convert a random Int32 to UInt32");
-
- try
- {
- Int32 i1 = TestLibrary.Generator.GetInt32(-55);
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToUInt32(null) != i1)
- {
- TestLibrary.TestFramework.LogError("001", "The result is not the value as expected. The random number is: " + i1);
- 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: Convert zero to UInt32 ");
-
- try
- {
- Int32 i1 = 0;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToUInt32(null) != 0)
- {
- 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: Check the boundary value ");
-
- try
- {
- Int32 i1 = Int32.MaxValue;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToUInt32(null) != Int32.MaxValue)
- {
- 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: Test the overflowException ");
-
- try
- {
- Int32 i1 = TestLibrary.Generator.GetInt32(-55);
- IConvertible Icon1 = (IConvertible)(-i1);
- UInt32 s1 = Icon1.ToUInt32(null);
- TestLibrary.TestFramework.LogError("101", "The overflow exception was not thrown as expected: ");
- retVal = false;
- }
- catch (OverflowException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- Int32IConvertibleToUInt32 test = new Int32IConvertibleToUInt32();
-
- TestLibrary.TestFramework.BeginTestCase("Int32IConvertibleToUInt32");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
-
+++ /dev/null
-// 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.Int32.System.IConvertible.ToUInt64(System.IFormatProvider)
-public class Int32IConvertibleToUInt64
-{
- #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: Convert a random Int32 to UInt64");
-
- try
- {
- Int32 i1 = TestLibrary.Generator.GetInt32(-55);
- IConvertible Icon1 = (IConvertible)i1;
- ulong u1 = (ulong)i1;
- if (Icon1.ToUInt64(null) != u1)
- {
- TestLibrary.TestFramework.LogError("001", "The result is not the value as expected. The random number is: " + i1);
- 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: Convert zero to UInt64 ");
-
- try
- {
- Int32 i1 = 0;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToUInt64(null) != 0)
- {
- 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: Check the boundary value ");
-
- try
- {
- Int32 i1 = Int32.MaxValue;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToUInt64(null) != (ulong)Int32.MaxValue)
- {
- 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: Test the overflowException ");
-
- try
- {
- Int32 i1 = TestLibrary.Generator.GetInt32(-55);
- IConvertible Icon1 = (IConvertible)(-i1);
- ulong s1 = Icon1.ToUInt64(null);
- TestLibrary.TestFramework.LogError("101", "The overflow exception was not thrown as expected: ");
- retVal = false;
- }
- catch (OverflowException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- Int32IConvertibleToUInt64 test = new Int32IConvertibleToUInt64();
-
- TestLibrary.TestFramework.BeginTestCase("Int32IConvertibleToUInt64");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
-
+++ /dev/null
-// 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 Int32MaxValue
-{
- private const int c_Int32MaxValue = 2147483647;
-
- public static int Main()
- {
- Int32MaxValue testCase = new Int32MaxValue();
-
- TestLibrary.TestFramework.BeginTestCase("Int32MaxValue");
-
- if (testCase.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: Test Int32MaxValue");
-#pragma warning disable 0162
- if (Int32.MaxValue != c_Int32MaxValue)
- {
- TestLibrary.TestFramework.LogError("001", "expected Int32MaxValue is not equal to 2147483647 ");
- retVal = false;
- }
-#pragma warning restore
- return retVal;
- }
-}
-
+++ /dev/null
-// 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;
-
-class Int32MinValue
-{
- private const int c_Int32MinValue = -2147483648;
-
- public static int Main()
- {
- Int32MinValue testCase = new Int32MinValue();
-
- TestLibrary.TestFramework.BeginTestCase("Int32MinValue");
-
- if (testCase.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: Test Int32MinValue ");
-#pragma warning disable 0162
- if (Int32.MinValue != c_Int32MinValue)
- {
- TestLibrary.TestFramework.LogError("001", "expected Int32MaxValue is not equal to -2147483648 ");
- retVal = false;
- }
-#pragma warning restore
-
- return retVal;
- }
-}
-
+++ /dev/null
-// 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;
-
-//System.Int32.ToString(System.String);
-public class Int32ToString3
-{
- #region Private Methods
- private CultureInfo CurrentCulture = TestLibrary.Utilities.CurrentCulture;
- private CultureInfo customCulture = null;
-
- private CultureInfo CustomCulture
- {
- get
- {
- if (null == customCulture)
- {
- customCulture = new CultureInfo(CultureInfo.CurrentCulture.Name);
- NumberFormatInfo nfi = customCulture.NumberFormat;
- //For "G"
- // NegativeSign, NumberDecimalSeparator, NumberDecimalDigits, PositiveSign
- nfi.NegativeSign = "@"; //Default: "-"
- nfi.NumberDecimalSeparator = ","; //Default: "."
- nfi.NumberDecimalDigits = 3; //Default: 2
- nfi.PositiveSign = "++"; //Default: "+"
-
- //For "E"
- // PositiveSign, NegativeSign, and NumberDecimalSeparator.
- // If precision specifier is omitted, a default of six digits after the decimal point is used.
-
- //For "R"
- // NegativeSign, NumberDecimalSeparator and PositiveSign
-
- //For "X", The result string isn't affected by the formatting information of the current NumberFormatInfo
-
- //For "C"
- // CurrencyPositivePattern, CurrencySymbol, CurrencyDecimalDigits, CurrencyDecimalSeparator, CurrencyGroupSeparator, CurrencyGroupSizes, NegativeSign and CurrencyNegativePattern
- nfi.CurrencyDecimalDigits = 3; //Default: 2
- nfi.CurrencyDecimalSeparator = ","; //Default: ","
- nfi.CurrencyGroupSeparator = "."; //Default: "."
- nfi.CurrencyGroupSizes = new int[] { 2 }; //Default: new int[]{3}
- nfi.CurrencyNegativePattern = 2; //Default: 0
- nfi.CurrencyPositivePattern = 1; //Default: 0
- nfi.CurrencySymbol = "USD"; //Default: "$"
-
- //For "D"
- // NegativeSign
-
- //For "E"
- // PositiveSign, NumberDecimalSeparator and NegativeSign.
- // If precision specifier is omitted, a default of six digits after the decimal point is used.
- nfi.PositiveSign = "++"; //Default: "+"
- nfi.NumberDecimalSeparator = ","; //Default: "."
-
- //For "F"
- // NumberDecimalDigits, and NumberDecimalSeparator and NegativeSign.
- nfi.NumberDecimalDigits = 3; //Default: 2
-
- //For "N"
- // NumberGroupSizes, NumberGroupSeparator, NumberDecimalSeparator, NumberDecimalDigits, NumberNegativePattern and NegativeSign.
- nfi.NumberGroupSizes = new int[] { 2 }; //Default: 3
- nfi.NumberGroupSeparator = "#"; //Default: ","
-
- //For "P"
- // PercentPositivePattern, PercentNegativePattern, NegativeSign, PercentSymbol, PercentDecimalDigits, PercentDecimalSeparator, PercentGroupSeparator and PercentGroupSizes
- nfi.PercentPositivePattern = 1; //Default: 0
- nfi.PercentNegativePattern = 2; //Default: 0
- nfi.PercentSymbol = "~"; //Default: "%"
- nfi.PercentDecimalDigits = 4; //Default: 2
- nfi.PercentDecimalSeparator = ","; //Default: "."
- nfi.PercentGroupSizes[0] = 2; //Default: 3
- nfi.PercentGroupSeparator = ","; //Default: "," in most languages, "." in DE and TR
-
- customCulture.NumberFormat = nfi;
- }
- return customCulture;
- }
- }
-
- private bool VerifyToString(String id, Int32 myInt, String format, String expected)
- {
- try
- {
- String actual = myInt.ToString(format);
- if (actual != expected)
- {
- TestLibrary.TestFramework.LogError(id + "_001", "Expected: " + expected + " Actual: " + actual);
- return false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError(id + "_002", "Unexpected exception occurs: " + e);
- return false;
- }
- return true;
- }
- #endregion
-
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal &= VerifyToString("PostTest1", Int32.MinValue, "X", "80000000");
- retVal &= VerifyToString("PostTest2", -0, "d", "0");
-
- TestLibrary.Utilities.CurrentCulture = CustomCulture;
- retVal &= VerifyToString("PostTest3", Int32.MaxValue, "G", "2147483647");
- retVal &= VerifyToString("PostTest4", -1, "d", "@1");
- retVal &= VerifyToString("PostTest5", -00000765, "f", "@765,000");
- retVal &= VerifyToString("PostTest6", -76500, "c", "USD@7.65.00,000");
- retVal &= VerifyToString("PostTest7", -1800000000, "e", "@1,800000e++009");
- retVal &= VerifyToString("PostTest8", 1886000000, "n", "18#86#00#00#00,000");
- retVal &= VerifyToString("PostTest9", -1987, "p", "@~198,700,0000");
-
- TestLibrary.Utilities.CurrentCulture = CurrentCulture;
-
- TestLibrary.TestFramework.LogInformation("[Negative]");
- retVal &= NegTest1();
-
- return retVal;
- }
- #endregion
-
- #region Nagetive Test Cases
- public bool NegTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: Input an invalid argument\"K\"");
-
- try
- {
- Int32 i1 = TestLibrary.Generator.GetInt32();
- string s1 = i1.ToString("k");
- TestLibrary.TestFramework.LogError("101", "The FormatException was not thrown as expected ");
- retVal = false;
- }
- catch (System.FormatException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- public static int Main()
- {
- Int32ToString3 test = new Int32ToString3();
-
- TestLibrary.TestFramework.BeginTestCase("Int32ToString3");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-<?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="int16equals1.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>
-
+++ /dev/null
-<?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="int16equals2.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>
-
+++ /dev/null
-<?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="int16gethashcode.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>
-
+++ /dev/null
-<?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="int16iconvertibletoboolean.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>
-
+++ /dev/null
-<?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="int16iconvertibletobyte.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>
-
+++ /dev/null
-<?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="int16iconvertibletochar.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>
-
+++ /dev/null
-<?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="int16iconvertibletodatetime.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>
-
+++ /dev/null
-<?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="int16iconvertibletodecimal.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>
-
+++ /dev/null
-<?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="int16iconvertibletodouble.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>
-
+++ /dev/null
-<?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="int16iconvertibletoint16.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>
-
+++ /dev/null
-<?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="int16iconvertibletoint32.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>
-
+++ /dev/null
-<?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="int16iconvertibletoint64.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>
-
+++ /dev/null
-<?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="int16iconvertibletosbyte.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>
-
+++ /dev/null
-<?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="int16iconvertibletosingle.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>
-
+++ /dev/null
-<?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="int16iconvertibletotype.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>
-
+++ /dev/null
-<?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="int16iconvertibletouint16.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>
-
+++ /dev/null
-<?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="int16iconvertibletouint32.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>
-
+++ /dev/null
-<?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="int16iconvertibletouint64.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>
-
+++ /dev/null
-<?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="int16maxvalue.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>
-
+++ /dev/null
-<?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="int16minvalue.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>
-
+++ /dev/null
-// 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>
-/// Int16Equals(Int16)
-/// </summary>
-public class Int16Equals1
-{
- #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: Test two equal random int16");
-
- try
- {
- Int16 number1, number2;
- number1 = number2 = TestLibrary.Generator.GetInt16(-55);
- if (!number1.Equals(number2))
- {
- TestLibrary.TestFramework.LogError("001", String.Format("equal two equal number {0} did not return true", number2));
- 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 two different int16");
-
- try
- {
- Int16 i = TestLibrary.Generator.GetInt16(-55);
- Int16 number1 = this.GetInt16(Int16.MinValue, (Int16)(i - 1));
- Int16 number2 = this.GetInt16(i, Int16.MaxValue);
- if (number1.Equals(number2))
- {
- TestLibrary.TestFramework.LogError("003", String.Format("equal two unqual number did not return false,the two number is {0}and{1}", number1, number2));
- 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 zero equals zero");
-
- try
- {
- Int16 i1 = 0;
- Int16 i2 = 0;
- if (!i1.Equals(i2))
- {
- TestLibrary.TestFramework.LogError("005", "0!=0");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #region Nagetive Test Cases
- #endregion
- #endregion
-
- public static int Main()
- {
- Int16Equals1 test = new Int16Equals1();
-
- TestLibrary.TestFramework.BeginTestCase("Int16Equals1");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
- private Int16 GetInt16(Int16 minValue, Int16 maxValue)
- {
- try
- {
- if (minValue == maxValue)
- {
- return minValue;
- }
- if (minValue < maxValue)
- {
- return (Int16)(minValue + TestLibrary.Generator.GetInt16(-55) % (maxValue - minValue));
- }
- }
- catch
- {
- throw;
- }
-
- return minValue;
- }
-}
+++ /dev/null
-// 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>
-/// Int16Equals(Object)
-/// </summary>
-public class Int16Equals2
-{
- #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;
-
- return retVal;
- }
-
- #region Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Test two equal random int16");
-
- try
- {
- Int16 number1 = TestLibrary.Generator.GetInt16(-55);
- Object ob = number1;
- if (!number1.Equals(ob))
- {
- TestLibrary.TestFramework.LogError("001", String.Format("equal two equal number {0} did not return true", number1));
- 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 two different int16");
-
- try
- {
- Int16 i = TestLibrary.Generator.GetInt16(-55);
- Int16 number1 = this.GetInt16(Int16.MinValue, (Int16)(i - 1));
- object ob = this.GetInt16(i, Int16.MaxValue);
- if (number1.Equals(ob))
- {
- TestLibrary.TestFramework.LogError("003", String.Format("equal two unqual number did not return false,the two number is {0}and{1}", number1, ob.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: Test zero equals zero");
-
- try
- {
- Int16 i1 = 0;
- object ob = (Int16)0;
- if (!i1.Equals(ob))
- {
- TestLibrary.TestFramework.LogError("005", "0!=0");
- 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 int16MinValue");
-
- try
- {
- Int16 i1 = Int16.MinValue;
- object ob = Int16.MinValue;
- if (!i1.Equals(ob))
- {
- TestLibrary.TestFramework.LogError("007", "equals error int16MinValue");
- 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 int16MaxValue");
-
- try
- {
- Int16 i1 = Int16.MaxValue;
- object ob = Int16.MaxValue;
- if (!i1.Equals(ob))
- {
- TestLibrary.TestFramework.LogError("009", "equals error int16MinValue");
- 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 argument is not int16 type");
-
- try
- {
- Int16 i1 = TestLibrary.Generator.GetInt16(-55);
- object ob = Convert.ToInt32(i1);
- if (i1.Equals(ob))
- {
- TestLibrary.TestFramework.LogError("011", "equals error int16MinValue");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #region Nagetive Test Cases
- #endregion
- #endregion
-
- public static int Main()
- {
- Int16Equals2 test = new Int16Equals2();
-
- TestLibrary.TestFramework.BeginTestCase("Int16Equals2");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
- private Int16 GetInt16(Int16 minValue, Int16 maxValue)
- {
- try
- {
- if (minValue == maxValue)
- {
- return minValue;
- }
- if (minValue < maxValue)
- {
- return (Int16)(minValue + TestLibrary.Generator.GetInt16(-55) % (maxValue - minValue));
- }
- }
- catch
- {
- throw;
- }
-
- return minValue;
- }
-}
+++ /dev/null
-// 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 Int16GetHashCode
-{
- #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: Check the return hash code");
-
- try
- {
- Int16 i1 = TestLibrary.Generator.GetInt16(-55);
- int hash = i1.GetHashCode();
- if (i1 == hash)
- {
- TestLibrary.TestFramework.LogError("001", "int16.gethashcode is equal to the int16 itself : " + i1);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #region Nagetive Test Cases
- #endregion
- #endregion
-
- public static int Main()
- {
- Int16GetHashCode test = new Int16GetHashCode();
-
- TestLibrary.TestFramework.BeginTestCase("Int16GetHashCode");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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.Int16.System.IConvertibleToBoolean
-public class Int16IConvertibleToBoolean
-{
- #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: genarate a random int16 to boolean ");
-
- try
- {
- Int16 i1 = 0;
- while (i1 == 0)
- {
- i1 = TestLibrary.Generator.GetInt16(-55);
- }
- IConvertible Icon1 = (IConvertible)(i1);
- if (Icon1.ToBoolean(null) != true)
- {
- TestLibrary.TestFramework.LogError("001", String.Format("The int16{0} to boolean is not true as expected ", i1));
- 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: Zero to boolean ");
-
- try
- {
- Int16 i1 = 0;
- IConvertible Icon1 = (IConvertible)(i1);
- if (Icon1.ToBoolean(null) != false)
- {
- TestLibrary.TestFramework.LogError("003", String.Format("The int16 {0} to boolean is not false as expected ", i1));
- 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: convert negative number to boolean ");
-
- try
- {
- Int16 i1 = 0;
- while (i1 == 0)
- {
- i1 = TestLibrary.Generator.GetInt16(-55);
- }
- IConvertible Icon1 = (IConvertible)(-i1);
- if (Icon1.ToBoolean(null) != true)
- {
- TestLibrary.TestFramework.LogError("005", String.Format("The int16 {0} to boolean is not true as expected ", i1));
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #region Nagetive Test Cases
- #endregion
- #endregion
-
- public static int Main()
- {
- Int16IConvertibleToBoolean test = new Int16IConvertibleToBoolean();
-
- TestLibrary.TestFramework.BeginTestCase("Int16IConvertibleToBoolean");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
- private Int16 GetInt16(Int16 minValue, Int16 maxValue)
- {
- try
- {
- if (minValue == maxValue)
- {
- return minValue;
- }
- if (minValue < maxValue)
- {
- return Convert.ToInt16(minValue + TestLibrary.Generator.GetInt16(-55) % (maxValue - minValue));
- }
- }
- catch
- {
- throw;
- }
-
- return minValue;
- }
-}
+++ /dev/null
-// 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.Int16.System.IConvertibleToByte
-public class Int16IConvertibleToByte
-{
- #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;
-
- return retVal;
- }
-
- #region Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Convert a random int16 to byte ");
-
- try
- {
- Byte by = TestLibrary.Generator.GetByte(-55);
- Int16 i1 = (Int16)by;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToByte(null) != by)
- {
- 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: Convert ByteMaxValue to byte ");
-
- try
- {
- Int16 i1 = (Int16)Byte.MaxValue;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToByte(null) != Byte.MaxValue)
- {
- 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:Convert zero to byte ");
-
- try
- {
- Int16 i1 = 0;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToByte(null) != 0)
- {
- TestLibrary.TestFramework.LogError("005", "The result is not zero 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: Convert a negative byte int16 to Byte ");
-
- try
- {
- Int16 i1 = 0;
- while (i1 == 0)
- {
- i1 = (Int16)TestLibrary.Generator.GetByte(-55);
- }
- IConvertible Icon1 = (IConvertible)(-i1);
- Byte b1 = Icon1.ToByte(null);
- TestLibrary.TestFramework.LogError("101", "An overflowException was not thrown as expected");
- retVal = false;
- }
- catch (System.OverflowException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: Convert int16 to Byte ");
-
- try
- {
- Int16 i1 = 0;
- while (i1 <= 255)
- {
- i1 = (Int16)TestLibrary.Generator.GetInt16(-55);
- }
- IConvertible Icon1 = (IConvertible)(i1);
- Byte b1 = Icon1.ToByte(null);
- TestLibrary.TestFramework.LogError("103", "An overflowException was not thrown as expected");
- retVal = false;
- }
- catch (System.OverflowException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest3: Check the border value ");
-
- try
- {
- Int16 i1 = 256;
- IConvertible Icon1 = (IConvertible)(i1);
- Byte b1 = Icon1.ToByte(null);
- TestLibrary.TestFramework.LogError("105", "An overflowException was not thrown as expected");
- retVal = false;
- }
- catch (System.OverflowException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("106", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- Int16IConvertibleToByte test = new Int16IConvertibleToByte();
-
- TestLibrary.TestFramework.BeginTestCase("Int16IConvertibleToByte");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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.IConvertible.ToChar(System.IFormatProvider)
-/// </summary>
-public class Int16IConvertibleToChar
-{
- #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: Convert a random (Int16)char to char ");
-
- try
- {
-
- Int16 i1 = TestLibrary.Generator.GetInt16(-55);
- IConvertible Icon1 = (IConvertible)i1;
- char c1 = Icon1.ToChar(null);
- if (c1 != i1)
- {
- 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: Convert zero to char ");
-
- try
- {
- Int16 i1 = 0;
- IConvertible Icon1 = (IConvertible)i1;
- char c1 = Icon1.ToChar(null);
- if (c1 != i1)
- {
- 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;
- }
- #endregion
-
- #region Nagetive Test Cases
- public bool NegTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: Convert a negative int16 to char");
-
- try
- {
- Int16 i1 = TestLibrary.Generator.GetInt16(-55);
- IConvertible Icon1 = (IConvertible)(-i1);
- char c1 = Icon1.ToChar(null);
- TestLibrary.TestFramework.LogError("101", "OverflowException was not thrown as expected ");
- retVal = false;
- }
- catch (OverflowException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- Int16IConvertibleToChar test = new Int16IConvertibleToChar();
-
- TestLibrary.TestFramework.BeginTestCase("Int16IConvertibleToChar");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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>
-/// Int16.IConvertible.ToDateTime(IFormatProvider)
-/// </summary>
-public class Int16IConvertibleToDateTime
-{
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Negative]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
-
- return retVal;
- }
-
- #region Positive Test Cases
- #endregion
-
- #region Nagetive Test Cases
- public bool NegTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: Convert a random int16 number to dateTime");
-
- try
- {
- Int16 i1 = TestLibrary.Generator.GetInt16(-55);
- DateTime datetime = (i1 as IConvertible).ToDateTime(null);
- TestLibrary.TestFramework.LogError("101", "The InvalidCastException was not thrown as expected");
- retVal = false;
- }
- catch (InvalidCastException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: Convert a zero to dateTime");
-
- try
- {
- Int16 i1 = 0;
- DateTime datetime = (i1 as IConvertible).ToDateTime(null);
- TestLibrary.TestFramework.LogError("103", "The InvalidCastException was not thrown as expected");
- retVal = false;
- }
- catch (InvalidCastException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- Int16IConvertibleToDateTime test = new Int16IConvertibleToDateTime();
-
- TestLibrary.TestFramework.BeginTestCase("Int16IConvertibleToDateTime");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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>
-/// Int16.IConvertilbe.ToDecimal
-/// </summary>
-public class Int16IConvertibleToDecimal
-{
- #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: Check a random int16 to Decimal ");
-
- try
- {
- Int16 i1 = TestLibrary.Generator.GetInt16(-55);
- IConvertible Icon1 = (IConvertible)i1;
- decimal d1 = Icon1.ToDecimal(null);
- if (d1 != i1)
- {
- TestLibrary.TestFramework.LogError("001", "The result is not correct 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: Convert zero to decimal");
-
- try
- {
- Int16 i1 = 0;
- IConvertible Icon1 = (IConvertible)i1;
- decimal d1 = Icon1.ToDecimal(null);
- if (d1 != i1)
- {
- TestLibrary.TestFramework.LogError("003", "The result is not correct 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: Check the border value Int16MaxValue");
-
- try
- {
- Int16 i1 = Int16.MaxValue;
- IConvertible Icon1 = (IConvertible)i1;
- decimal d1 = Icon1.ToDecimal(null);
- if (d1 != i1)
- {
- TestLibrary.TestFramework.LogError("005", "The result is not correct 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: Check the border value Int16MinValue");
-
- try
- {
- Int16 i1 = Int16.MinValue;
- IConvertible Icon1 = (IConvertible)i1;
- decimal d1 = Icon1.ToDecimal(null);
- if (d1 != i1)
- {
- TestLibrary.TestFramework.LogError("007", "The result is not correct as expected");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- Int16IConvertibleToDecimal test = new Int16IConvertibleToDecimal();
-
- TestLibrary.TestFramework.BeginTestCase("Int16IConvertibleToDecimal");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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.Int16.IConvertibleToDouble(System.IFormatProvider)
-public class Int16IConvertibleToDouble
-{
- #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: Convert a random int16 to double");
-
- try
- {
- Int16 i1 = TestLibrary.Generator.GetInt16(-55);
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToDouble(null) != i1)
- {
- 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: Convert a zero to double");
-
- try
- {
- Int16 i1 = 0;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToDouble(null) != i1)
- {
- 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: Convert a negative int16 to double");
-
- try
- {
- Int16 i1 = 0;
- while (i1 == 0)
- {
- i1 = TestLibrary.Generator.GetInt16(-55);
- }
- IConvertible Icon1 = (IConvertible)(-i1);
- if (Icon1.ToDouble(null) != (-i1))
- {
- 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: Check the boundary value1");
-
- try
- {
- Int16 i1 = Int16.MaxValue;
- IConvertible Icon1 = (IConvertible)(i1);
- if (Icon1.ToDouble(null) != i1)
- {
- 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: Check the boundary value2");
-
- try
- {
- Int16 i1 = Int16.MinValue;
- IConvertible Icon1 = (IConvertible)(i1);
- if (Icon1.ToDouble(null) != i1)
- {
- 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
- #endregion
-
- public static int Main()
- {
- Int16IConvertibleToDouble test = new Int16IConvertibleToDouble();
-
- TestLibrary.TestFramework.BeginTestCase("Int16IConvertibleToDouble");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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>
-/// Int16.IConverible.ToInt16(IFormatProvider)
-/// </summary>
-public class Int16IConvertibleToInt16
-{
- #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;
-
- // Add your scenario description here
- TestLibrary.TestFramework.BeginScenario("PosTest1: Check the int16.MaxValue ");
-
- try
- {
- Int16 i1 = Int16.MaxValue;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToInt16(null) != Int16.MaxValue)
- {
- 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:Check Int16.MinValue ");
-
- try
- {
- Int16 i1 = Int16.MinValue;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToInt16(null) != i1)
- {
- 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:Check zero ");
-
- try
- {
- Int16 i1 = 0;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToInt16(null) != i1)
- {
- 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: Check a random Int16 number ");
-
- try
- {
- Int16 i1 = TestLibrary.Generator.GetInt16(-55);
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToInt16(null) != i1)
- {
- TestLibrary.TestFramework.LogError("007", string.Format("The result is not the value {0} as expected", i1));
- 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()
- {
- Int16IConvertibleToInt16 test = new Int16IConvertibleToInt16();
-
- TestLibrary.TestFramework.BeginTestCase("Int16IConvertibleToInt16");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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>
-/// Int16.IConvertible.ToInt32(IFormatProvider)
-/// </summary>
-public class Int16IConvertibleToInt32
-{
- #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;
-
- // Add your scenario description here
- TestLibrary.TestFramework.BeginScenario("PosTest1: Check the int16.MaxValue ");
-
- try
- {
- Int16 i1 = Int16.MaxValue;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToInt32(null) != i1)
- {
- 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:Check Int16.MinValue ");
-
- try
- {
- Int16 i1 = Int16.MinValue;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToInt32(null) != i1)
- {
- 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:Check zero ");
-
- try
- {
- Int16 i1 = 0;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToInt32(null) != i1)
- {
- 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: Check a random Int16 number ");
-
- try
- {
- Int16 i1 = TestLibrary.Generator.GetInt16(-55);
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToInt32(null) != i1)
- {
- TestLibrary.TestFramework.LogError("007", string.Format("The result is not the value {0} as expected", i1));
- 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()
- {
- Int16IConvertibleToInt32 test = new Int16IConvertibleToInt32();
-
- TestLibrary.TestFramework.BeginTestCase("Int16IConvertibleToInt32");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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>
-/// Int16.IConvertible.ToInt64(IFormatProvider)
-/// </summary>
-public class Int16IConvertibleToInt64
-{
- #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;
-
- // Add your scenario description here
- TestLibrary.TestFramework.BeginScenario("PosTest1: check a random int16 to int64");
-
- try
- {
- Int16 i1 = this.GetInt16(Int16.MinValue, Int16.MaxValue);
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToInt64(null) != i1)
- {
- 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: check zero");
-
- try
- {
- Int16 i1 = 0;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToInt64(null) != i1)
- {
- 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;
- }
- #endregion
-
- #region Nagetive Test Cases
- #endregion
- #endregion
-
- public static int Main()
- {
- Int16IConvertibleToInt64 test = new Int16IConvertibleToInt64();
-
- TestLibrary.TestFramework.BeginTestCase("Int16IConvertibleToInt64");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
- private Int16 GetInt16(Int16 minValue, Int16 maxValue)
- {
- try
- {
- if (minValue == maxValue)
- {
- return minValue;
- }
- if (minValue < maxValue)
- {
- return (Int16)(minValue + TestLibrary.Generator.GetInt32(-55) % (maxValue - minValue));
- }
- }
- catch
- {
- throw;
- }
-
- return minValue;
- }
-}
+++ /dev/null
-// 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>
-/// Int16.IConverible.ToSbyte(IFormatProvider)
-/// </summary>
-public class Int16IConvertibleToSByte
-{
- #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;
-
- // Add your scenario description here
- TestLibrary.TestFramework.BeginScenario("PosTest1: Convert a random int16 to sbyte ");
-
- try
- {
- Int16 i1 = 200;
- while (i1 > 127)
- {
- i1 = (Int16)TestLibrary.Generator.GetByte(-55);
- }
- IConvertible Icon1 = (IConvertible)(i1);
- if (Icon1.ToSByte(null) != i1)
- {
- TestLibrary.TestFramework.LogError("001", "The result is not the value as expected,tht int16 is:" + i1);
- 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;
-
- // Add your scenario description here
- TestLibrary.TestFramework.BeginScenario("PosTest2: Convert zero to sbyte ");
-
- try
- {
- Int16 i1 = 0;
- IConvertible Icon1 = (IConvertible)(i1);
- if (Icon1.ToSByte(null) != i1)
- {
- TestLibrary.TestFramework.LogError("003", "The result is not the value as expected");
- 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;
-
- // Add your scenario description here
- TestLibrary.TestFramework.BeginScenario("PosTest3: Convert a negative int16 to sbyte ");
-
- try
- {
- Int16 i1 = 200;
- while (i1 > 127)
- {
- i1 = (Int16)TestLibrary.Generator.GetByte(-55);
- }
- IConvertible Icon1 = (IConvertible)(-i1);
- if (Icon1.ToSByte(null) != (-i1))
- {
- TestLibrary.TestFramework.LogError("005", "The result is not the value as expected,the int16 is:" + i1);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "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: Check the boundary value of sbyte.MinValue");
-
- try
- {
-
- Int16 i1 = (Int16)sbyte.MinValue;
- IConvertible Icon1 = (IConvertible)(i1);
- if (Icon1.ToSByte(null) != (i1))
- {
- TestLibrary.TestFramework.LogError("007", "The result is not the value as expected");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest5: Check the boundary value of sbyte.MaxValue");
-
- try
- {
-
- Int16 i1 = (Int16)sbyte.MaxValue;
- IConvertible Icon1 = (IConvertible)(i1);
- if (Icon1.ToSByte(null) != (i1))
- {
- TestLibrary.TestFramework.LogError("009", "The result is not the value as expected");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "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: Test the overflowException");
-
- try
- {
- Int16 i1 = 0;
- while (i1 <= 127)
- {
- i1 = TestLibrary.Generator.GetInt16(-55);
- }
- IConvertible Icon1 = (IConvertible)(i1);
- if (Icon1.ToSByte(null) != i1)
- {
- }
- TestLibrary.TestFramework.LogError("101", "An overflowException was not thrown as expected ");
- retVal = false;
- }
- catch (OverflowException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- Int16IConvertibleToSByte test = new Int16IConvertibleToSByte();
-
- TestLibrary.TestFramework.BeginTestCase("Int16IConvertibleToSByte");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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>
-/// Int16.IConvertibleToSingle(IFormatPorvider)
-/// </summary>
-public class Int16IConvertibleToSingle
-{
- #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: Convert a random int16 to single ");
-
- try
- {
- Int16 i1 = 0;
- while (i1 == 0)
- {
- i1 = TestLibrary.Generator.GetInt16(-55);
- }
- IConvertible Icon1 = (IConvertible)(i1);
- if (Icon1.ToSingle(null) != i1)
- {
- TestLibrary.TestFramework.LogError("001", "The result is not the value as expected");
- 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;
-
- // Add your scenario description here
- TestLibrary.TestFramework.BeginScenario("PosTest2: Convert zero to single ");
-
- try
- {
- Int16 i1 = 0;
- IConvertible Icon1 = (IConvertible)(i1);
- if (Icon1.ToSingle(null) != i1)
- {
- TestLibrary.TestFramework.LogError("003", "The result is not the value as expected");
- 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;
-
- // Add your scenario description here
- TestLibrary.TestFramework.BeginScenario("PosTest3: Convert a negative int16 to single ");
-
- try
- {
- Int16 i1 = 0;
- while (i1 == 0)
- {
- i1 = TestLibrary.Generator.GetInt16(-55);
- }
- IConvertible Icon1 = (IConvertible)(-i1);
- if (Icon1.ToSingle(null) != (-i1))
- {
- TestLibrary.TestFramework.LogError("005", "The result is not the value as expected");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "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: Check the boundary value");
-
- try
- {
-
- Int16 i1 = Int16.MinValue;
- IConvertible Icon1 = (IConvertible)(i1);
- if (Icon1.ToSingle(null) != (i1))
- {
- TestLibrary.TestFramework.LogError("007", "The result is not the value as expected");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #region Nagetive Test Cases
-
- #endregion
- #endregion
-
- public static int Main()
- {
- Int16IConvertibleToSingle test = new Int16IConvertibleToSingle();
-
- TestLibrary.TestFramework.BeginTestCase("Int16IConvertibleToSingle");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// System.Int16.System.IConvertible.ToType(System.Type,System.IFormatProvider)
-/// </summary>
-public class Int16IConvertibleToType
-{
- #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;
-
- return retVal;
- }
-
- #region Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- // Add your scenario description here
- TestLibrary.TestFramework.BeginScenario("PosTest1: Convert a random Int16 to String ");
-
- try
- {
- Int16 i1 = TestLibrary.Generator.GetInt16(-55);
- IConvertible Icon1 = (IConvertible)i1;
- CultureInfo cultureinfo = new CultureInfo("en-US");
- string s1 = Icon1.ToType(typeof(System.String), cultureinfo) as string;
- if (s1 != i1.ToString())
- {
- TestLibrary.TestFramework.LogError("001", "The result is not the value as expected.The random number is :" + i1.ToString());
- 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: Convert a random Int16 to Boolean ");
-
- try
- {
- Int16 i1 = 0;
- while (i1 == 0)
- {
- i1 = TestLibrary.Generator.GetInt16(-55);
- }
- IConvertible Icon1 = (IConvertible)i1;
- CultureInfo cultureinfo = new CultureInfo("en-US");
- bool s1 = (bool)Icon1.ToType(typeof(System.Boolean), cultureinfo);
- if (s1 != true)
- {
- TestLibrary.TestFramework.LogError("003", "The result is not the value as expected.The random number is :" + i1.ToString());
- 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: Check the boundary value ");
-
- try
- {
- Int16 i1 = Int16.MaxValue;
- IConvertible Icon1 = (IConvertible)i1;
- CultureInfo cultureinfo = new CultureInfo("en-US");
- long s1 = (long)Icon1.ToType(typeof(System.Int64), cultureinfo);
- if (s1 != i1)
- {
- 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: Convert \'-0\' to char ");
-
- try
- {
- Int16 i1 = -0;
- IConvertible Icon1 = (IConvertible)i1;
- char s1 = (char)Icon1.ToType(typeof(System.Char), null);
- if (s1 != '\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;
- }
- #endregion
-
- #region Nagetive Test Cases
- public bool NegTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: Test the overflowException ");
-
- try
- {
- Int16 i1 = 0;
- while (i1 <= 255)
- {
- i1 = TestLibrary.Generator.GetInt16(-55);
- }
- IConvertible Icon1 = (IConvertible)i1;
- byte s1 = (byte)Icon1.ToType(typeof(System.Byte), null);
- TestLibrary.TestFramework.LogError("101", "The overflow exception was not thrown as expected: ");
- retVal = false;
- }
- catch (OverflowException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: Convert an int16 to a custom class type ");
-
- try
- {
- Int16 i1 = TestLibrary.Generator.GetInt16(-55);
- IConvertible Icon1 = (IConvertible)i1;
- CultureInfo cultureinfo = new CultureInfo("en-US");
- TestClass testclass = Icon1.ToType(typeof(TestClass), cultureinfo) as TestClass;
- TestLibrary.TestFramework.LogError("103", "The InvalidCastException was not thrown as expected: " + i1);
- retVal = false;
- }
- catch (InvalidCastException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- Int16IConvertibleToType test = new Int16IConvertibleToType();
-
- TestLibrary.TestFramework.BeginTestCase("Int16IConvertibleToType");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
-public class TestClass
-{
-}
-
+++ /dev/null
-// 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.Int16.System.IConvertible.ToUInt16(System.IFormatProvider)
-public class Int16IConvertibleToUInt16
-{
- public const int c_UINT16_MAXVALUE = 65535;
-
- #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;
-
- // Add your scenario description here
- TestLibrary.TestFramework.BeginScenario("PosTest1: Convert a random Int16 to UInt16");
-
- try
- {
- Int16 i1 = TestLibrary.Generator.GetInt16(-55);
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToUInt16(null) != i1)
- {
- 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: Convert zero to UInt16 ");
-
- try
- {
- Int16 i1 = 0;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToUInt16(null) != 0)
- {
- 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: Check the boundary value ");
-
- try
- {
- Int16 i1 = Int16.MaxValue;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToUInt16(null) != Int16.MaxValue)
- {
- 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: Test the negative int16 ");
-
- try
- {
- Int16 i1 = TestLibrary.Generator.GetInt16(-55);
- IConvertible Icon1 = (IConvertible)(-i1);
- ushort s1 = Icon1.ToUInt16(null);
- TestLibrary.TestFramework.LogError("101", "The overflow exception was not thrown as expected: ");
- retVal = false;
- }
- catch (OverflowException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- Int16IConvertibleToUInt16 test = new Int16IConvertibleToUInt16();
-
- TestLibrary.TestFramework.BeginTestCase("Int16IConvertibleToUInt16");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
-
-
+++ /dev/null
-// 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.Int16.System.IConvertible.ToUInt32(System.IFormatProvider)
-public class Int16IConvertibleToUInt32
-{
- #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;
-
- // Add your scenario description here
- TestLibrary.TestFramework.BeginScenario("PosTest1: Convert a random Int16 to UInt32");
-
- try
- {
- Int16 i1 = TestLibrary.Generator.GetInt16(-55);
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToUInt32(null) != i1)
- {
- TestLibrary.TestFramework.LogError("001", "The result is not the value as expected. The random number is: " + i1);
- 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: Convert zero to UInt32 ");
-
- try
- {
- Int16 i1 = 0;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToUInt32(null) != 0)
- {
- 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: Check the boundary value ");
-
- try
- {
- Int16 i1 = Int16.MaxValue;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToUInt32(null) != Int16.MaxValue)
- {
- 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: Test the overflowException ");
-
- try
- {
- Int16 i1 = TestLibrary.Generator.GetInt16(-55);
- IConvertible Icon1 = (IConvertible)(-i1);
- UInt32 s1 = Icon1.ToUInt32(null);
- TestLibrary.TestFramework.LogError("101", "The overflow exception was not thrown as expected: ");
- retVal = false;
- }
- catch (OverflowException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- Int16IConvertibleToUInt32 test = new Int16IConvertibleToUInt32();
-
- TestLibrary.TestFramework.BeginTestCase("Int16IConvertibleToUInt32");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
-
+++ /dev/null
-// 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.Int16.System.IConvertible.ToUInt64(System.IFormatProvider)
-public class Int16IConvertibleToUInt64
-{
- #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: Convert a random Int16 to UInt64");
-
- try
- {
- Int16 i1 = TestLibrary.Generator.GetInt16(-55);
- IConvertible Icon1 = (IConvertible)i1;
- ulong u1 = (ulong)i1;
- if (Icon1.ToUInt64(null) != u1)
- {
- TestLibrary.TestFramework.LogError("001", "The result is not the value as expected. The random number is: " + i1);
- 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: Convert zero to UInt64 ");
-
- try
- {
- Int16 i1 = 0;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToUInt64(null) != 0)
- {
- 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: Check the boundary value ");
-
- try
- {
- Int16 i1 = Int16.MaxValue;
- IConvertible Icon1 = (IConvertible)i1;
- if (Icon1.ToUInt64(null) != (ulong)Int16.MaxValue)
- {
- 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: Test the overflowException ");
-
- try
- {
- Int16 i1 = TestLibrary.Generator.GetInt16(-55);
- IConvertible Icon1 = (IConvertible)(-i1);
- ulong s1 = Icon1.ToUInt64(null);
- TestLibrary.TestFramework.LogError("101", "The overflow exception was not thrown as expected: ");
- retVal = false;
- }
- catch (OverflowException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- Int16IConvertibleToUInt64 test = new Int16IConvertibleToUInt64();
-
- TestLibrary.TestFramework.BeginTestCase("Int16IConvertibleToUInt64");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
-
+++ /dev/null
-// 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 Int16MaxValue
-{
- private int c_INT16_MAXVALUE = 32767;
-
- #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: Test Int16MaxValue");
-
- try
- {
- if (Int16.MaxValue != c_INT16_MAXVALUE)
- {
- TestLibrary.TestFramework.LogError("001", "expected Int16MaxValue is not equal to 32767 ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #region Nagetive Test Cases
- #endregion
- #endregion
-
- public static int Main()
- {
- Int16MaxValue test = new Int16MaxValue();
-
- TestLibrary.TestFramework.BeginTestCase("Int16MaxValue");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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 Int16MinValue
-{
- private int c_INT16_MINVALUE = -32768;
-
- #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: Test Int16MinValue");
-
- try
- {
- if (Int16.MinValue != c_INT16_MINVALUE)
- {
- TestLibrary.TestFramework.LogError("001", "expected Int16MinValue is not equal to -32768 ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #region Nagetive Test Cases
- #endregion
- #endregion
-
- public static int Main()
- {
- Int16MinValue test = new Int16MinValue();
-
- TestLibrary.TestFramework.BeginTestCase("Int16MinValue");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-<?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="int64compareto1.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>
-
+++ /dev/null
-<?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="int64equals1.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>
-
+++ /dev/null
-<?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="int64equals2.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>
-
+++ /dev/null
-<?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="int64gethashcode.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>
-
+++ /dev/null
-<?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="int64iconvertibletoboolean.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>
-
+++ /dev/null
-<?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="int64iconvertibletobyte.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>
-
+++ /dev/null
-<?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="int64iconvertibletochar.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>
-
+++ /dev/null
-<?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="int64iconvertibletodatetime.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>
-
+++ /dev/null
-<?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="int64iconvertibletodecimal.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>
-
+++ /dev/null
-<?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="int64iconvertibletodouble.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>
-
+++ /dev/null
-<?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="int64iconvertibletoint16.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>
-
+++ /dev/null
-<?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="int64iconvertibletoint32.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>
-
+++ /dev/null
-<?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="int64iconvertibletoint64.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>
-
+++ /dev/null
-<?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="int64iconvertibletosbyte.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>
-
+++ /dev/null
-<?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="int64iconvertibletosingle.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>
-
+++ /dev/null
-<?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="int64iconvertibletotype.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>
-
+++ /dev/null
-<?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="int64iconvertibletouint16.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>
-
+++ /dev/null
-<?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="int64iconvertibletouint32.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>
-
+++ /dev/null
-<?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="int64iconvertibletouint64.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>
-
+++ /dev/null
-<?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="int64maxvalue.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>
-
+++ /dev/null
-<?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="int64minvalue.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>
-
+++ /dev/null
-<?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="int64tostring3.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>
-
+++ /dev/null
-// 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.Int64.CompareTo(Int64)
-/// </summary>
-public class Int64CompareTo1
-{
- private long c_INT64_MaxValue_10 = 9223372036854775807;
- public static int Main()
- {
- Int64CompareTo1 int64ct1 = new Int64CompareTo1();
- TestLibrary.TestFramework.BeginTestCase("Int64CompareTo1");
- if (int64ct1.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("[PosTest]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- retVal = PosTest3() && retVal;
- retVal = PosTest4() && retVal;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: long Value is less than the instance");
-
- try
- {
- long value = TestLibrary.Generator.GetInt64(-55);
- long int64A = Int64.MinValue;
- if (int64A.CompareTo(value) >= 0)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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: long Value is larger than the instance");
-
- try
- {
- long value = TestLibrary.Generator.GetInt64(-55);
- long int64A = Int64.MaxValue;
- if (int64A.CompareTo(value) <= 0)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- 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: long Value is equal the instance");
- try
- {
- long value = c_INT64_MaxValue_10;
- long int64A = Int64.MaxValue;
- if (int64A.CompareTo(value) != 0)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- 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: long Value is not equal the instance");
- try
- {
- long value = TestLibrary.Generator.GetInt64(-55);
- long int64A1 = value + 1;
- long int64A2 = value - 1;
- if (int64A1.CompareTo(value) <= 0 || int64A2.CompareTo(value) >= 0)
- {
- TestLibrary.TestFramework.LogError("007", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-// 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.Int64.Equals(int64)
-/// </summary>
-public class Int64Equals1
-{
- private long c_INT64_MaxValue_10 = 9223372036854775807;
- private long c_INT64_MaxValue_16 = 0x7fffffffffffffff;
- public static int Main()
- {
- Int64Equals1 int64equ1 = new Int64Equals1();
- TestLibrary.TestFramework.BeginTestCase("Int64Equals1");
- if (int64equ1.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("[PosTest]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- retVal = PosTest3() && retVal;
- retVal = PosTest4() && retVal;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:Verify Int64 MinValue equals to zero");
-
- try
- {
- long minValue = Int64.MinValue;
- long int64A = 0;
- if (int64A.Equals(minValue))
- {
- TestLibrary.TestFramework.LogError("001", "The ActualResult is not the ExpectResult");
- 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:Verify Int64 MaxValue decimal equals hexadecimal");
-
- try
- {
- long maxValue = c_INT64_MaxValue_10;
- long int64A = c_INT64_MaxValue_16;
- if (!int64A.Equals(maxValue))
- {
- TestLibrary.TestFramework.LogError("003", "The ActualResult is not the ExpectResult");
- 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:Verify Int64 +0 equals-0");
-
- try
- {
- long maxValue = +0;
- long int64A = -0;
- if (!int64A.Equals(maxValue))
- {
- TestLibrary.TestFramework.LogError("005", "The ActualResult is not the ExpectResult");
- 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:Verify Int64 minValue equals maxValue");
-
- try
- {
- long int64A = Int64.MinValue;
- long maxValue = Int64.MaxValue;
- if (int64A.Equals(maxValue))
- {
- TestLibrary.TestFramework.LogError("007", "The ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
\ No newline at end of file
+++ /dev/null
-// 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.Int64.Equals(Object)
-/// </summary>
-public class Int64Equals2
-{
- private long c_INT64_MaxValue_10 = 9223372036854775807;
- private long c_INT64_MaxValue_16 = 0x7fffffffffffffff;
- public static int Main()
- {
- Int64Equals2 int64equ2 = new Int64Equals2();
- TestLibrary.TestFramework.BeginTestCase("Int64Equals2");
- if (int64equ2.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("[PosTest]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- retVal = PosTest3() && retVal;
- retVal = PosTest4() && retVal;
- retVal = PosTest5() && retVal;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:Verify Int64 MaxValue decimal equals hexadecimal");
- try
- {
- long int64A = c_INT64_MaxValue_16;
- object objValue = c_INT64_MaxValue_10;
- if (!int64A.Equals(objValue))
- {
- TestLibrary.TestFramework.LogError("001", "The ActualResult is not the ExpectResult");
- 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:Verify Int64 minValue equals maxValue");
- try
- {
- long int64A = Int64.MinValue;
- object objValue = Int64.MaxValue;
- if (int64A.Equals(objValue))
- {
- TestLibrary.TestFramework.LogError("003", "The ActualResult is not the ExpectResult");
- 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:Verify Int64 maxValue string format equals maxValue");
- try
- {
- long int64A = Int64.MaxValue;
- object objValue = Int64.MaxValue.ToString();
- if (int64A.Equals(objValue))
- {
- TestLibrary.TestFramework.LogError("005", "The ActualResult is not the ExpectResult");
- 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:Verify a random Int64 equals a new object");
- try
- {
- long int64A = TestLibrary.Generator.GetInt64(-55);
- object objValue = new object();
- if (int64A.Equals(objValue))
- {
- TestLibrary.TestFramework.LogError("007", "The ActualResult is not the ExpectResult");
- 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:Verify a random Int64 equals null");
- try
- {
- long int64A = TestLibrary.Generator.GetInt64(-55);
- object objValue = null;
- if (int64A.Equals(objValue))
- {
- TestLibrary.TestFramework.LogError("009", "The ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-// 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>
-/// Int64.GetHashCode()
-/// </summary>
-public class Int64GetHashCode
-{
- public static int Main()
- {
- Int64GetHashCode int64ghc = new Int64GetHashCode();
- TestLibrary.TestFramework.BeginTestCase("Int64GetHashCode");
- if (int64ghc.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("[PosTest]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- retVal = PosTest3() && retVal;
- retVal = PosTest4() && retVal;
- retVal = PosTest5() && retVal;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the Int64'minValue hash code");
- try
- {
- long int64A = Int64.MinValue;
- Int32 hashCode = int64A.GetHashCode();
- if (hashCode != Int32.MinValue)
- {
- TestLibrary.TestFramework.LogError("001", "The ActualResult is not the ExpectResult");
- 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: Verify the Int64'maxValue hash code");
- try
- {
- long int64A = Int64.MaxValue;
- Int32 hashCode = int64A.GetHashCode();
- if (hashCode != Int32.MinValue)
- {
- TestLibrary.TestFramework.LogError("003", "The ActualResult is not the ExpectResult");
- 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: Verify the a random Int64 which is out of Int32.MaxValue or Int32.MinValue hash code");
- try
- {
- Int32 temp = this.GetInt32(1, Int32.MaxValue);
- long int64A = (long)(Int64.MaxValue - temp);
- long int64A2 = (long)(Int64.MinValue + temp);
- Int32 hashCode = int64A.GetHashCode();
- Int32 hashCode2 = int64A2.GetHashCode();
- if (hashCode != Int32.MinValue + temp|| hashCode2!= Int32.MinValue + temp)
- {
- TestLibrary.TestFramework.LogError("005", "The ActualResult is not the ExpectResult");
- 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: Verify the Int64 which is in the Int32.MinValue and Int32.MaxValue hash code");
- try
- {
- Int32 temp = this.GetInt32(0, Int32.MaxValue);
- long int64A = temp;
- long int64A2 = temp * (-1);
- Int32 hashCode = int64A.GetHashCode();
- Int32 hashCode2 = int64A2.GetHashCode();
- if (hashCode != temp || hashCode2 != temp - 1)
- {
- TestLibrary.TestFramework.LogError("007", "The ActualResult is not the ExpectResult");
- 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("PosTest4: Verify the Int64 which is equal the Int32.MinValue or Int32.MaxValue hash code");
- try
- {
- long int64A = Int32.MaxValue;
- long int64A2 = Int32.MinValue ;
- Int32 hashCode = int64A.GetHashCode();
- Int32 hashCode2 = int64A2.GetHashCode();
- if (hashCode != Int32.MaxValue || hashCode2 != Int32.MaxValue)
- {
- TestLibrary.TestFramework.LogError("009", "The ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region HelpMethod
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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;
-/// <summary>
-/// Int64.System.IConvertible.ToBoolean(IFormatProvider)
-/// </summary>
-public class Int64IConvertibleToBoolean
-{
- public static int Main()
- {
- Int64IConvertibleToBoolean ui64IContBool = new Int64IConvertibleToBoolean();
- TestLibrary.TestFramework.BeginTestCase("Int64IConvertibleToBoolean");
- if (ui64IContBool.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("[PosTest]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- retVal = PosTest3() && retVal;
- retVal = PosTest4() && retVal;
- retVal = PosTest5() && retVal;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest1:The Int64 MaxValue IConvertible To Boolean");
- try
- {
- long int64A = Int64.MaxValue;
- IConvertible iConvert = (IConvertible)(int64A);
- bool boolA = iConvert.ToBoolean(provider);
- if (boolA!= true)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:The Int64 MinValue IConvertible To Boolean");
- try
- {
- long int64A = Int64.MinValue;
- IConvertible iConvert = (IConvertible)(int64A);
- bool boolA = iConvert.ToBoolean(null);
- if (boolA != true)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest3:The random Int64 IConvertible To Boolean 1");
- try
- {
- long int64A = 0;
- IConvertible iConvert = (IConvertible)(int64A);
- bool boolA = iConvert.ToBoolean(null);
- if (boolA != false)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- 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:The random Int64 IConvertible To Boolean 2");
- try
- {
- long int64A = TestLibrary.Generator.GetInt64(-55);
- IConvertible iConvert = (IConvertible)(int64A);
- bool boolA = iConvert.ToBoolean(null);
- if (int64A == 0)
- {
- if (boolA != false)
- {
- TestLibrary.TestFramework.LogError("007", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- else
- {
- if (boolA != true)
- {
- TestLibrary.TestFramework.LogError("007", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest5()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest5:The random Int64 IConvertible To Boolean 3");
- try
- {
- long int64A = TestLibrary.Generator.GetInt64(-55) * (-1);
- IConvertible iConvert = (IConvertible)(int64A);
- bool boolA = iConvert.ToBoolean(provider);
- if (int64A == 0)
- {
- if (boolA != false)
- {
- TestLibrary.TestFramework.LogError("009", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- else
- {
- if (boolA != true)
- {
- TestLibrary.TestFramework.LogError("009", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-// 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;
-/// <summary>
-/// Int64.System.IConvertible.ToByte(IFormatProvider)
-/// </summary>
-public class Int64IConvertibleToByte
-{
- public static int Main()
- {
- Int64IConvertibleToByte ui64IContByte = new Int64IConvertibleToByte();
- TestLibrary.TestFramework.BeginTestCase("Int64IConvertibleToByte");
-
- if (ui64IContByte.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("[PosTest]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- retVal = PosTest3() && retVal;
- TestLibrary.TestFramework.LogInformation("[NegTest]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest1:The Int64 value which is in the range of Byte IConvertible To Byte 1");
- try
- {
- long int64A = (long)Byte.MaxValue;
- IConvertible iConvert = (IConvertible)(int64A);
- byte byteA = iConvert.ToByte(provider);
- if (byteA != 255)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:The Int64 value which is in the range of Byte IConvertible To Byte 2");
- try
- {
- long int64A = (long)Byte.MinValue;
- IConvertible iConvert = (IConvertible)(int64A);
- byte byteA = iConvert.ToByte(null);
- if (byteA != 0)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("el-GR");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest3:The Int64 value which is in the range of Byte IConvertible To Byte 3");
- try
- {
- long int64A = this.GetInt32(1, 255);
- IConvertible iConvert = (IConvertible)(int64A);
- byte byteA = iConvert.ToByte(provider);
- if (byteA != (Byte)int64A)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("NegTest1:The Int64 value which is out the range of Byte IConvertible To Byte 1");
- try
- {
- long int64A = Int64.MaxValue;
- IConvertible iConvert = (IConvertible)(int64A);
- byte byteA = iConvert.ToByte(provider);
- retVal = false;
- TestLibrary.TestFramework.LogError("N001", "Int64 value out of the range of Byte but not throw exception");
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool NegTest2()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("NegTest2:The Int64 value which is out the range of Byte IConvertible To Byte 2");
- try
- {
- long int64A = TestLibrary.Generator.GetInt64(-55);
- if (int64A == 0)
- {
- int64A = (int64A + 1) * (-1);
- }
- else
- {
- int64A = int64A * (-1);
- }
- IConvertible iConvert = (IConvertible)(int64A);
- byte byteA = iConvert.ToByte(provider);
- retVal = false;
- TestLibrary.TestFramework.LogError("N003", "Int64 value out of the range of Byte but not throw exception");
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool NegTest3()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("NegTest3:The Int64 value which is out the range of Byte IConvertible To Byte 3");
- try
- {
- long int64A = TestLibrary.Generator.GetInt64(-55);
- if (int64A <= 255)
- {
- int64A = int64A + 256;
- }
- IConvertible iConvert = (IConvertible)(int64A);
- byte byteA = iConvert.ToByte(provider);
- retVal = false;
- TestLibrary.TestFramework.LogError("N005", "Int64 value out of the range of Byte but not throw exception");
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region HelpMethod
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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;
-/// <summary>
-/// Int64.System.IConvertible.ToChar(IFormatProvider)
-/// </summary>
-public class Int64IConvertibleToChar
-{
- public static int Main()
- {
- Int64IConvertibleToChar ui64IContChar = new Int64IConvertibleToChar();
- TestLibrary.TestFramework.BeginTestCase("Int64IConvertibleToChar");
-
- if (ui64IContChar.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("[PosTest]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- retVal = PosTest3() && retVal;
- TestLibrary.TestFramework.LogInformation("[NegTest]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest1:The Int64 value which is in the range of Char IConvertible To Char 1");
- try
- {
- long int64A = (long)Char.MaxValue;
- IConvertible iConvert = (IConvertible)(int64A);
- char charA = iConvert.ToChar(provider);
- if (charA != Char.MaxValue)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:The Int64 value which is in the range of Char IConvertible To Char 2");
- try
- {
- long int64A = (long)Char.MinValue;
- IConvertible iConvert = (IConvertible)(int64A);
- char charA = iConvert.ToChar(null);
- if (charA != Char.MinValue)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("el-GR");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest3:The Int64 value which is in the range of Char IConvertible To Char 3");
- try
- {
- long int64A = (long)this.GetInt32(1, 65535);
- IConvertible iConvert = (IConvertible)(int64A);
- char charA = iConvert.ToChar(provider);
- if (charA != (char)(int64A))
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("NegTest1:The Int64 value which is out the range of Char IConvertible To Char 1");
- try
- {
- long int64A = Int64.MaxValue;
- IConvertible iConvert = (IConvertible)(int64A);
- char charA = iConvert.ToChar(provider);
- retVal = false;
- TestLibrary.TestFramework.LogError("N001", "Int64 value out of the range of char but not throw exception");
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool NegTest2()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("NegTest2:The Int64 value which is out the range of Char IConvertible To Char 2");
- try
- {
- long int64A = TestLibrary.Generator.GetInt64(-55);
- if (int64A == 0)
- {
- int64A = (int64A + 1) * (-1);
- }
- else
- {
- int64A = int64A * (-1);
- }
- IConvertible iConvert = (IConvertible)(int64A);
- char charA = iConvert.ToChar(provider);
- retVal = false;
- TestLibrary.TestFramework.LogError("N003", "Int64 value out of the range of char but not throw exception");
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool NegTest3()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("NegTest3:The Int64 value which is out the range of Char IConvertible To Char 3");
- try
- {
- long int64A = TestLibrary.Generator.GetInt64(-55);
- if (int64A <= 65535)
- {
- int64A = int64A + 65536;
- }
- IConvertible iConvert = (IConvertible)(int64A);
- char charA = iConvert.ToChar(provider);
- retVal = false;
- TestLibrary.TestFramework.LogError("N005", "Int64 value out of the range of char but not throw exception");
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-
- #region HelpMethod
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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;
-/// <summary>
-/// Int64.System.IConvertible.ToDateTime(IFormatProvider)
-/// </summary>
-public class Int64IConvertibleToDateTime
-{
- public static int Main()
- {
- Int64IConvertibleToDateTime ui64IContDT = new Int64IConvertibleToDateTime();
- TestLibrary.TestFramework.BeginTestCase("Int64IConvertibleToDateTime");
-
- if (ui64IContDT.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("[NegTest]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
- retVal = NegTest4() && retVal;
- return retVal;
- }
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.DateTimeFormat;
- TestLibrary.TestFramework.BeginScenario("NegTest1:The Int64 MaxValue IConvertible To DateTime");
- try
- {
- long int64A = Int64.MaxValue;
- IConvertible iConvert = (IConvertible)(int64A);
- DateTime dtA = iConvert.ToDateTime(provider);
- retVal = false;
- TestLibrary.TestFramework.LogError("N001", "The InvalidCastException was not thrown as expected");
- }
- catch (InvalidCastException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool NegTest2()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest2:The Int64 MinValue IConvertible To DateTime");
- try
- {
- long int64A = Int64.MinValue;
- IConvertible iConvert = (IConvertible)(int64A);
- DateTime dtA = iConvert.ToDateTime(null);
- retVal = false;
- TestLibrary.TestFramework.LogError("N003", "The InvalidCastException was not thrown as expected");
- }
- catch (InvalidCastException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool NegTest3()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest3:The random Int64 IConvertible To DateTime");
- try
- {
- long int64A = TestLibrary.Generator.GetInt64(-55);
- IConvertible iConvert = (IConvertible)(int64A);
- DateTime dtA = iConvert.ToDateTime(null);
- retVal = false;
- TestLibrary.TestFramework.LogError("N005", "The InvalidCastException was not thrown as expected");
- }
- catch (InvalidCastException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool NegTest4()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest4:The Int64 zero IConvertible To DateTime");
- try
- {
- long int64A = 0;
- IConvertible iConvert = (IConvertible)(int64A);
- DateTime dtA = iConvert.ToDateTime(null);
- retVal = false;
- TestLibrary.TestFramework.LogError("N007", "The InvalidCastException was not thrown as expected");
- }
- catch (InvalidCastException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N008", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-// 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;
-/// <summary>
-/// Int64.System.IConvertible.ToDecimal(IFormatProvider)
-/// </summary>
-public class Int64IConvertibleToDecimal
-{
- public static int Main()
- {
- Int64IConvertibleToDecimal ui64IContDecimal = new Int64IConvertibleToDecimal();
- TestLibrary.TestFramework.BeginTestCase("Int64IConvertibleToDecimal");
- if (ui64IContDecimal.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("[PosTest]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- retVal = PosTest3() && retVal;
- retVal = PosTest4() && retVal;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest1:The Int64 MaxValue IConvertible To Decimal");
- try
- {
- long int64A = Int64.MaxValue;
- IConvertible iConvert = (IConvertible)(int64A);
- decimal decimalA = iConvert.ToDecimal(provider);
- if (decimalA != int64A)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:The Int64 MinValue IConvertible To Decimal");
- try
- {
- long int64A = Int64.MinValue;
- IConvertible iConvert = (IConvertible)(int64A);
- decimal decimalA = iConvert.ToDecimal(null);
- if (decimalA != int64A)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest3:The random Int64 IConvertible To Decimal 1");
- try
- {
- long int64A = TestLibrary.Generator.GetInt64(-55);
- IConvertible iConvert = (IConvertible)(int64A);
- decimal decimalA = iConvert.ToDecimal(provider);
- if (decimalA != int64A)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- 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:The random Int64 IConvertible To Decimal 2");
- try
- {
- long int64A = TestLibrary.Generator.GetInt64(-55);
- IConvertible iConvert = (IConvertible)(int64A);
- decimal decimalA = iConvert.ToDecimal(null);
- if (decimalA != int64A)
- {
- TestLibrary.TestFramework.LogError("007", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-// 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;
-/// <summary>
-/// Int64.System.IConvertible.ToDouble(IFormatProvider)
-/// </summary>
-public class Int64IConvertibleToDouble
-{
- public static int Main()
- {
- Int64IConvertibleToDouble ui64IContDouble = new Int64IConvertibleToDouble();
- TestLibrary.TestFramework.BeginTestCase("Int64IConvertibleToDouble");
- if (ui64IContDouble.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("[PosTest]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- retVal = PosTest3() && retVal;
- retVal = PosTest4() && retVal;
- retVal = PosTest5() && retVal;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest1:The Int64 MaxValue IConvertible To Double");
- try
- {
- long int64A = Int64.MaxValue;
- IConvertible iConvert = (IConvertible)(int64A);
- double doubleA = iConvert.ToDouble(provider);
- if (doubleA != 9.2233720368547758E+18)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("el-GR");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest2:The Int64 MinValue IConvertible To Double");
- try
- {
- long int64A = Int64.MinValue;
- IConvertible iConvert = (IConvertible)(int64A);
- double doubleA = iConvert.ToDouble(provider);
- if (doubleA != -9.2233720368547758E+18)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- 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:The random Int64 IConvertible To Double 1");
- try
- {
- long int64A = 0;
- IConvertible iConvert = (IConvertible)(int64A);
- double doubleA = iConvert.ToDouble(null);
- if (doubleA != 0.0)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest4()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest4:The random Int64 IConvertible To Double 2");
- try
- {
- long int64A = 123456789;
- IConvertible iConvert = (IConvertible)(int64A);
- double doubleA = iConvert.ToDouble(provider);
- if (doubleA != 123456789.0)
- {
- TestLibrary.TestFramework.LogError("007", "the ActualResult is not the ExpectResult");
- 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 random Int64 IConvertible To Double 3");
- try
- {
- long int64A = -123456789;
- IConvertible iConvert = (IConvertible)(int64A);
- double doubleA = iConvert.ToDouble(null);
- if (doubleA != -123456789.0)
- {
- TestLibrary.TestFramework.LogError("009", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
\ No newline at end of file
+++ /dev/null
-// 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;
-/// <summary>
-/// Int64.System.IConvertible.ToInt16()
-/// </summary>
-public class Int64IConvertibleToInt16
-{
- public static int Main()
- {
- Int64IConvertibleToInt16 ui64IContInt16 = new Int64IConvertibleToInt16();
- TestLibrary.TestFramework.BeginTestCase("Int64IConvertibleToInt16");
- if (ui64IContInt16.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("[PosTest]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- retVal = PosTest3() && retVal;
- retVal = PosTest4() && retVal;
- TestLibrary.TestFramework.LogInformation("[NegTest]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest1:The Int64 value which in the range of Int16 IConvertible To Int16 1");
- try
- {
- long int64A = Int16.MaxValue;
- IConvertible iConvert = (IConvertible)(int64A);
- short int16A = iConvert.ToInt16(provider);
- if (int16A != int64A)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("el-GR");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest2:The Int64 value which in the range of Int16 IConvertible To Int16 2");
- try
- {
- long int64A = Int16.MinValue;
- IConvertible iConvert = (IConvertible)(int64A);
- short int16A = iConvert.ToInt16(provider);
- if (int16A != int64A)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- 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:The Int64 value which in the range of Int16 IConvertible To Int16 3");
- try
- {
- long int64A = this.GetInt32(0, Int16.MaxValue);
- IConvertible iConvert = (IConvertible)(int64A);
- short int16A = iConvert.ToInt16(null);
- if (int16A != int64A)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- 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:The Int64 value which in the range of Int16 IConvertible To Int16 4");
- try
- {
- long int64A = (this.GetInt32(0, Int16.MaxValue) + 1) * (-1);
- IConvertible iConvert = (IConvertible)(int64A);
- short int16A = iConvert.ToInt16(null);
- if (int16A != int64A)
- {
- TestLibrary.TestFramework.LogError("007", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("NegTest1: The current Int64 value is out of Int16 range 1");
- try
- {
- long int64A = (long)Int16.MaxValue + (long)(this.GetInt32(1, Int16.MaxValue));
- IConvertible iConvert = (IConvertible)(int64A);
- short int16A = iConvert.ToInt16(provider);
- retVal = false;
- TestLibrary.TestFramework.LogError("N001", "The current Int64 value is out of Int16 range but not throw exception");
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool NegTest2()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest2: The current Int64 value is out of Int16 range 2");
- try
- {
- long int64A = (long)Int16.MinValue + (long)(this.GetInt32(1, Int16.MaxValue) + 1) * (-1);
- IConvertible iConvert = (IConvertible)(int64A);
- short int16A = iConvert.ToInt16(null);
- retVal = false;
- TestLibrary.TestFramework.LogError("N003", "The current Int64 value is out of Int16 range but not throw exception");
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region HelpMethod
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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;
-/// <summary>
-/// Int64.System.IConvertible.ToInt32()
-/// </summary>
-public class Int64IConvertibleToInt32
-{
- public static int Main()
- {
- Int64IConvertibleToInt32 ui64IContInt32 = new Int64IConvertibleToInt32();
- TestLibrary.TestFramework.BeginTestCase("Int64IConvertibleToInt32");
- if (ui64IContInt32.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("[PosTest]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- retVal = PosTest3() && retVal;
- retVal = PosTest4() && retVal;
- TestLibrary.TestFramework.LogInformation("[NegTest]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest1:The Int64 value which in the range of Int32 IConvertible To Int32 1");
- try
- {
- long int64A = Int32.MaxValue;
- IConvertible iConvert = (IConvertible)(int64A);
- int int32A = iConvert.ToInt32(provider);
- if (int32A != int64A)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("el-GR");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest2:The Int64 value which in the range of Int32 IConvertible To Int32 2");
- try
- {
- long int64A = Int32.MinValue;
- IConvertible iConvert = (IConvertible)(int64A);
- int int32A = iConvert.ToInt32(provider);
- if (int32A != int64A)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- 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:The Int64 value which in the range of Int32 IConvertible To Int32 3");
- try
- {
- long int64A = this.GetInt32(0, Int32.MaxValue);
- IConvertible iConvert = (IConvertible)(int64A);
- int int32A = iConvert.ToInt32(null);
- if (int32A != int64A)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- 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:The Int64 value which in the range of Int32 IConvertible To Int32 4");
- try
- {
- long int64A = (this.GetInt32(0, Int32.MaxValue) + 1) * (-1);
- IConvertible iConvert = (IConvertible)(int64A);
- int int32A = iConvert.ToInt32(null);
- if (int32A != int64A)
- {
- TestLibrary.TestFramework.LogError("007", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("NegTest1: The current Int64 value is out of Int32 range 1");
- try
- {
- long int64A = (long)Int32.MaxValue + (long)this.GetInt32(1, Int32.MaxValue);
- IConvertible iConvert = (IConvertible)(int64A);
- int int32A = iConvert.ToInt32(provider);
- retVal = false;
- TestLibrary.TestFramework.LogError("N001", "The current Int64 value is out of Int32 range but not throw exception");
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool NegTest2()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest2: The current Int64 value is out of Int32 range 2");
- try
- {
- long int64A = (long)Int32.MinValue + (long)(this.GetInt32(0, Int32.MaxValue) + 1) * (-1);
- IConvertible iConvert = (IConvertible)(int64A);
- int int32A = iConvert.ToInt32(null);
- retVal = false;
- TestLibrary.TestFramework.LogError("N003", "The current Int64 value is out of Int32 range but not throw exception");
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region HelpMethod
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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;
-/// <summary>
-/// Int64.System.IConvertible.ToInt64()
-/// </summary>
-public class Int64IConvertibleToInt64
-{
- public static int Main()
- {
- Int64IConvertibleToInt64 ui64IContInt64 = new Int64IConvertibleToInt64();
- TestLibrary.TestFramework.BeginTestCase("Int64IConvertibleToInt64");
- if (ui64IContInt64.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("[PosTest]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- retVal = PosTest3() && retVal;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest1:Int64 MaxValue IConvertible To Int64");
- try
- {
- long int64A = Int64.MaxValue;
- IConvertible iConvert = (IConvertible)(int64A);
- long int64B = iConvert.ToInt64(provider);
- if (int64B != int64A)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("el-GR");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest2:Int64 MinValue IConvertible To Int64");
- try
- {
- long int64A = Int64.MinValue;
- IConvertible iConvert = (IConvertible)(int64A);
- long int64B = iConvert.ToInt64(provider);
- if (int64B != int64A)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- 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 Int64 IConvertible To Int64");
- try
- {
- long int64A = TestLibrary.Generator.GetInt64(-55);
- IConvertible iConvert = (IConvertible)(int64A);
- long int64B = iConvert.ToInt64(null);
- if (int64B != int64A)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-// 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;
-/// <summary>
-/// Int64.System.IConvertible.ToSByte(IFormatProvider)
-/// </summary>
-public class Int64IConvertibleToSByte
-{
- public static int Main()
- {
- Int64IConvertibleToSByte ui64IContSByte = new Int64IConvertibleToSByte();
- TestLibrary.TestFramework.BeginTestCase("Int64IConvertibleToSByte");
- if (ui64IContSByte.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("[PosTest]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- retVal = PosTest3() && retVal;
- retVal = PosTest4() && retVal;
- TestLibrary.TestFramework.LogInformation("[NegTest]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest1:The Int64 value which is in the range of SByte IConvertible To SByte 1");
- try
- {
- long int64A = (long)SByte.MaxValue;
- IConvertible iConvert = (IConvertible)(int64A);
- sbyte sbyteA = iConvert.ToSByte(provider);
- if (sbyteA != 127)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:The Int64 value which is in the range of SByte IConvertible To SByte 2");
- try
- {
- long int64A = (long)SByte.MinValue;
- IConvertible iConvert = (IConvertible)(int64A);
- sbyte sbyteA = iConvert.ToSByte(null);
- if (sbyteA != (SByte)int64A)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("el-GR");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest3:The Int64 value which is in the range of SByte IConvertible To SByte 3");
- try
- {
- long int64A = this.GetInt32(0, 127);
- IConvertible iConvert = (IConvertible)(int64A);
- sbyte sbyteA = iConvert.ToSByte(provider);
- if (sbyteA != (SByte)int64A)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- 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:The Int64 value which is in the range of SByte IConvertible To SByte 4");
- try
- {
- long int64A = this.GetInt32(1, 129) * (-1);
- IConvertible iConvert = (IConvertible)(int64A);
- sbyte sbyteA = iConvert.ToSByte(null);
- if (sbyteA != (SByte)int64A)
- {
- TestLibrary.TestFramework.LogError("007", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("NegTest1:The Int64 value which is out the range of SByte IConvertible To SByte 1");
- try
- {
- long int64A = Int64.MaxValue;
- IConvertible iConvert = (IConvertible)(int64A);
- sbyte sbyteA = iConvert.ToSByte(provider);
- retVal = false;
- TestLibrary.TestFramework.LogError("N001", "Int64 value out of the range of SByte but not throw exception");
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool NegTest2()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("NegTest2:The Int64 value which is out the range of SByte IConvertible To SByte 2");
- try
- {
- long int64A = TestLibrary.Generator.GetInt64(-55);
- if (int64A <= 127)
- {
- int64A = int64A + 127;
- }
- IConvertible iConvert = (IConvertible)(int64A);
- sbyte sbyteA = iConvert.ToSByte(provider);
- retVal = false;
- TestLibrary.TestFramework.LogError("N004", "Int64 value out of the range of Byte but not throw exception");
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N005", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool NegTest3()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("NegTest3:The Int64 value which is out the range of Byte IConvertible To Byte 3");
- try
- {
- long int64A = TestLibrary.Generator.GetInt64(-55);
- if (int64A <=128)
- {
- int64A = (int64A + 129) * (-1);
- }
- else
- {
- int64A = int64A * (-1);
- }
- IConvertible iConvert = (IConvertible)(int64A);
- sbyte sbyteA = iConvert.ToSByte(provider);
- retVal = false;
- TestLibrary.TestFramework.LogError("N003", "Int64 value out of the range of Byte but not throw exception");
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region HelpMethod
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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;
-/// <summary>
-/// Int64.System.IConvertible.ToSingle(IFormatProvider)
-/// </summary>
-public class Int64IConvertibleToSingle
-{
- public static int Main()
- {
- Int64IConvertibleToSingle i64ictsingle = new Int64IConvertibleToSingle();
- TestLibrary.TestFramework.BeginTestCase("Int64IConvertibleToSingle");
- if (i64ictsingle.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("[PosTest]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- retVal = PosTest3() && retVal;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest1:The Int64 MaxValue IConvertible To Single");
- try
- {
- long int64A = Int64.MaxValue;
- IConvertible iConvert = (IConvertible)(int64A);
- Single singleA = iConvert.ToSingle(provider);
- if (singleA != (Single)int64A)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:The Int64 MinValue IConvertible To Single");
- try
- {
- long int64A = Int64.MinValue;
- IConvertible iConvert = (IConvertible)(int64A);
- Single singleA = iConvert.ToSingle(null);
- if (singleA != (Single)int64A)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- 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:The random Int64 IConvertible To Single");
- try
- {
- long int64A = TestLibrary.Generator.GetInt64(-55);
- IConvertible iConvert = (IConvertible)(int64A);
- Single singleA = iConvert.ToSingle(null);
- if (singleA != (Single)int64A)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-// 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;
-/// <summary>
-/// Int64.System.IConvertible.ToType(IFormatProvider)
-/// </summary>
-public class Int64IConvertibleToType
-{
- private long c_INT64_MaxValue = 9223372036854775807;
- private long c_INT64_MinValue = -9223372036854775808;
- public static int Main()
- {
- Int64IConvertibleToType ui64IContType = new Int64IConvertibleToType();
- TestLibrary.TestFramework.BeginTestCase("Int64IConvertibleToType");
-
- if (ui64IContType.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("[PosTest]");
- 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("[NegTest]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest1:The Int64 MinValue IConvertible to Type 1");
- try
- {
- long int64A = Int64.MinValue;
- IConvertible iConvert = (IConvertible)(int64A);
- object objA = iConvert.ToType(typeof(Int64),provider);
- if ((long)objA != c_INT64_MinValue)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:The Int64 MinValue IConvertible to Type 2");
- try
- {
- long int64A = Int64.MinValue;
- IConvertible iConvert = (IConvertible)(int64A);
- object objA = iConvert.ToType(typeof(double), null);
- if ((Double)objA != (Double)(int64A))
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("el-GR");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest3:The Int64 MinValue IConvertible to Type 3");
- try
- {
- long int64A = Int64.MinValue;
- IConvertible iConvert = (IConvertible)(int64A);
- object objA = iConvert.ToType(typeof(decimal), provider);
- if ((Decimal)objA != int64A)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest4()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest4:The Int64 MinValue IConvertible to Type 4");
- try
- {
- long int64A = Int64.MinValue;
- IConvertible iConvert = (IConvertible)(int64A);
- object objA = iConvert.ToType(typeof(Single), provider);
- if ((Single)objA != (Single)(int64A))
- {
- TestLibrary.TestFramework.LogError("007", "the ActualResult is not the ExpectResult");
- 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 Int64 MinValue IConvertible to Type 5");
- try
- {
- long int64A = Int64.MinValue;
- IConvertible iConvert = (IConvertible)(int64A);
- object objA = iConvert.ToType(typeof(string), null);
- if ((string)objA != int64A.ToString())
- {
- TestLibrary.TestFramework.LogError("009", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest6()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest6:The Int64 MaxValue IConvertible to Type 1");
- try
- {
- long int64A = Int64.MaxValue;
- IConvertible iConvert = (IConvertible)(int64A);
- object objA = iConvert.ToType(typeof(Int64), provider);
- if ((long)objA != c_INT64_MaxValue)
- {
- TestLibrary.TestFramework.LogError("011", "the ActualResult is not the ExpectResult");
- 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 Int64 MaxValue IConvertible to Type 2");
- try
- {
- long int64A = Int64.MaxValue;
- IConvertible iConvert = (IConvertible)(int64A);
- object objA = iConvert.ToType(typeof(UInt64), null);
- if ((ulong)objA != (ulong)int64A)
- {
- TestLibrary.TestFramework.LogError("013", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("014", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest8()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest8:The random Int64 IConvertible to Type 1");
- try
- {
- long int64A = TestLibrary.Generator.GetInt64(-55);
- IConvertible iConvert = (IConvertible)(int64A);
- object objA = iConvert.ToType(typeof(Int64), null);
- if ((long)objA != int64A)
- {
- TestLibrary.TestFramework.LogError("015", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("016", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest9()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest9:The random Int64 IConvertible to Type 2");
- try
- {
- long int64A = (long)this.GetInt32(0, Int32.MaxValue);
- IConvertible iConvert = (IConvertible)(int64A);
- object objA = iConvert.ToType(typeof(Int32), null);
- if ((Int32)objA != (Int32)int64A)
- {
- TestLibrary.TestFramework.LogError("017", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("018", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest10()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest10:The random Int64 IConvertible to Type 3");
- try
- {
- long int64A = (long)this.GetInt32(0, Int16.MaxValue);
- IConvertible iConvert = (IConvertible)(int64A);
- object objA = iConvert.ToType(typeof(Int16), null);
- if ((Int16)objA != (Int16)int64A)
- {
- TestLibrary.TestFramework.LogError("019", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("020", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest11()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest11:The random Int64 IConvertible to Type 4");
- try
- {
- long int64A = TestLibrary.Generator.GetInt64(-55);
- IConvertible iConvert = (IConvertible)(int64A);
- object objA = iConvert.ToType(typeof(string), null);
- if ((string)objA != int64A.ToString())
- {
- TestLibrary.TestFramework.LogError("021", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("022", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("NegTest1:The current Int64 out of the range of Type which IConverted to 1");
- try
- {
- long int64A = Int64.MinValue;
- IConvertible iConvert = (IConvertible)(int64A);
- object objA = iConvert.ToType(typeof(Int32), provider);
- TestLibrary.TestFramework.LogError("N001", "The current Int64 out of the range of Type which IConverted to but not throw exception");
- retVal = false;
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool NegTest2()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest2:The current Int64 out of the range of Type which IConverted to 2");
- try
- {
- long int64A = Int64.MaxValue;
- IConvertible iConvert = (IConvertible)(int64A);
- object objA = iConvert.ToType(typeof(Int32), null);
- TestLibrary.TestFramework.LogError("N003", "The current Int64 out of the range of Type which IConverted to but not throw exception");
- retVal = false;
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool NegTest3()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest3:The current Int64 can not IConvertibleTo the Type");
- try
- {
- long int64A = Int64.MaxValue;
- IConvertible iConvert = (IConvertible)(int64A);
- object objA = iConvert.ToType(typeof(DateTime), null);
- TestLibrary.TestFramework.LogError("N005", "The current Int64 can not IConvertibleTo the Type but not throw exception");
- retVal = false;
- }
- catch (InvalidCastException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region HelpMethod
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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;
-/// <summary>
-/// Int64.System.IConvertible.ToUInt16()
-/// </summary>
-public class Int64IConvertibleToUInt16
-{
- public static int Main()
- {
- Int64IConvertibleToUInt16 ui64IContUInt16 = new Int64IConvertibleToUInt16();
- TestLibrary.TestFramework.BeginTestCase("Int64IConvertibleToUInt16");
- if (ui64IContUInt16.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("[PosTest]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- retVal = PosTest3() && retVal;
- TestLibrary.TestFramework.LogInformation("[NegTest]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest1:The Int64 value which in the range of UInt16 IConvertible To UInt16 1");
- try
- {
- long int64A = UInt16.MaxValue;
- IConvertible iConvert = (IConvertible)(int64A);
- ushort uint16A = iConvert.ToUInt16(provider);
- if (uint16A != int64A)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("el-GR");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest2:The Int64 value which in the range of UInt16 IConvertible To UInt16 2");
- try
- {
- long int64A = this.GetInt32(0,UInt16.MaxValue);
- IConvertible iConvert = (IConvertible)(int64A);
- ushort uint16A = iConvert.ToUInt16(provider);
- if (uint16A != int64A)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- 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:The Int64 value which in the range of UInt16 IConvertible To UInt16 3");
- try
- {
- long int64A = this.GetInt32(0, UInt16.MaxValue);
- IConvertible iConvert = (IConvertible)(int64A);
- ushort uint16A = iConvert.ToUInt16(null);
- if (uint16A != int64A)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("NegTest1: The current Int64 value is out of UInt16 range 1");
- try
- {
- long int64A = UInt16.MaxValue + this.GetInt32(1, Int32.MaxValue);
- IConvertible iConvert = (IConvertible)(int64A);
- ushort uint16A = iConvert.ToUInt16(provider);
- retVal = false;
- TestLibrary.TestFramework.LogError("N001", "The current Int64 value is out of UInt16 range but not throw exception");
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool NegTest2()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest2: The current Int64 value is out of UInt16 range 2");
- try
- {
- long int64A = (this.GetInt32(0, Int32.MaxValue) + 1) * (-1);
- IConvertible iConvert = (IConvertible)(int64A);
- ushort uint16A = iConvert.ToUInt16(null);
- retVal = false;
- TestLibrary.TestFramework.LogError("N003", "The current Int64 value is out of UInt16 range but not throw exception");
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region HelpMethod
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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;
-/// <summary>
-/// Int64.System.IConvertible.ToUInt32()
-/// </summary>
-public class Int64IConvertibleToUInt32
-{
- public static int Main()
- {
- Int64IConvertibleToUInt32 ui64IContUInt32 = new Int64IConvertibleToUInt32();
- TestLibrary.TestFramework.BeginTestCase("Int64IConvertibleToUInt32");
- if (ui64IContUInt32.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("[PosTest]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- retVal = PosTest3() && retVal;
- TestLibrary.TestFramework.LogInformation("[NegTest]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest1:The Int64 value which in the range of UInt32 IConvertible To UInt32 1");
- try
- {
- long int64A = UInt32.MaxValue;
- IConvertible iConvert = (IConvertible)(int64A);
- uint uint32A = iConvert.ToUInt32(provider);
- if (uint32A != int64A)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("el-GR");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest2:The Int64 value which in the range of UInt32 IConvertible To UInt32 2");
- try
- {
- long int64A = this.GetInt32(0, Int32.MaxValue);
- IConvertible iConvert = (IConvertible)(int64A);
- uint uint32A = iConvert.ToUInt32(provider);
- if (uint32A != int64A)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- 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:The Int64 value which in the range of UInt32 IConvertible To UInt32 3");
- try
- {
- long int64A = this.GetInt32(0, Int32.MaxValue);
- IConvertible iConvert = (IConvertible)(int64A);
- uint uint32A = iConvert.ToUInt32(null);
- if (uint32A != int64A)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("NegTest1: The current Int64 value is out of UInt32 range 1");
- try
- {
- long int64A = UInt32.MaxValue + this.GetInt32(1, Int32.MaxValue);
- IConvertible iConvert = (IConvertible)(int64A);
- uint uint32A = iConvert.ToUInt32(provider);
- retVal = false;
- TestLibrary.TestFramework.LogError("N001", "The current Int64 value is out of UInt32 range but not throw exception");
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool NegTest2()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest2: The current Int64 value is out of UInt32 range 2");
- try
- {
- long int64A = (this.GetInt32(0,Int32.MaxValue) + 1) * (-1);
- IConvertible iConvert = (IConvertible)(int64A);
- uint uint32A = iConvert.ToUInt32(null);
- retVal = false;
- TestLibrary.TestFramework.LogError("N003", "The current Int64 value is out of UInt32 range but not throw exception");
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region HelpMethod
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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;
-/// <summary>
-/// Int64.System.IConvertible.ToUInt64()
-/// </summary>
-public class Int64IConvertibleToUInt64
-{
- public static int Main()
- {
- Int64IConvertibleToUInt64 ui64IContUInt64 = new Int64IConvertibleToUInt64();
- TestLibrary.TestFramework.BeginTestCase("Int64IConvertibleToUInt64");
- if (ui64IContUInt64.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("[PosTest]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- retVal = PosTest3() && retVal;
- TestLibrary.TestFramework.LogInformation("[NegTest]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest1:Int64 MaxValue IConvertible To UInt64");
- try
- {
- long int64A = Int64.MaxValue;
- IConvertible iConvert = (IConvertible)(int64A);
- ulong uint64A = iConvert.ToUInt64(provider);
- if ((long)uint64A != int64A)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest2:Random Int64 IConvertible To UInt64 1");
- try
- {
- long int64A = TestLibrary.Generator.GetInt64(-55);
- IConvertible iConvert = (IConvertible)(int64A);
- ulong uint64A = iConvert.ToUInt64(provider);
- if ((long)uint64A != int64A)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("el-GR");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest3:Random Int64 IConvertible To UInt64 2");
- try
- {
- long int64A = TestLibrary.Generator.GetInt64(-55);
- IConvertible iConvert = (IConvertible)(int64A);
- ulong uint64A = iConvert.ToUInt64(provider);
- if ((long)uint64A != int64A)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("NegTest1: The current Int64 value is out of UInt64 range 1");
- try
- {
- long int64A = Int64.MinValue;
- IConvertible iConvert = (IConvertible)(int64A);
- ulong uint64 = iConvert.ToUInt64(provider);
- retVal = false;
- TestLibrary.TestFramework.LogError("N001", "The current Int64 value is out of UInt64 range but not throw exception");
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool NegTest2()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest2: The current Int64 value is out of UInt64 range 2");
- try
- {
- long int64A = (TestLibrary.Generator.GetInt64(-55) + 1) * (-1);
- IConvertible iConvert = (IConvertible)(int64A);
- ulong uint64 = iConvert.ToUInt64(null);
- retVal = false;
- TestLibrary.TestFramework.LogError("N003", "The current Int64 value is out of UInt64 range but not throw exception");
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-// 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.Int64.MaxValue
-/// </summary>
-public class Int64MaxValue
-{
- private long c_INT64_MaxValue_10 = 9223372036854775807;
- private long c_INT64_MaxValue_16 = 0x7fffffffffffffff;
- public static int Main()
- {
- Int64MaxValue int64Max = new Int64MaxValue();
-
- TestLibrary.TestFramework.BeginTestCase("Int64MaxValue");
-
- if (int64Max.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("[PosTest]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: Int64.MaxValue should return the Int64' maxValue 1");
- try
- {
- Int64 int64A = Int64.MaxValue;
- if (int64A != c_INT64_MaxValue_10)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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("PosTest1: Int64.MaxValue should return the Int64' maxValue 2");
- try
- {
- Int64 int64A = Int64.MaxValue;
- if (int64A != c_INT64_MaxValue_16)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
\ No newline at end of file
+++ /dev/null
-// 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.Int64.MinValue
-/// </summary>
-public class Int64MinValue
-{
- private long c_INT64_MinValue_10 = -9223372036854775808;
- //private long c_INT64_MinValue_16 = 0x8000000000000000;
- public static int Main()
- {
- Int64MinValue int64Min = new Int64MinValue();
-
- TestLibrary.TestFramework.BeginTestCase("Int64MinValue");
-
- if (int64Min.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("[PosTest]");
- retVal = PosTest1() && retVal;
- //retVal = PosTest2() && retVal;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: Int64.MinValue should return the Int64' minValue 1");
- try
- {
- Int64 int64A = Int64.MinValue;
- if (int64A != c_INT64_MinValue_10)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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("PosTest1: Int64.MinValue should return the Int64' minValue 2");
- // try
- // {
- // Int64 int64A = Int64.MinValue;
- // if (int64A != c_INT64_MinValue_16)
- // {
- // TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- // retVal = false;
- // }
- // }
- // catch (Exception e)
- // {
- // TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e);
- // retVal = false;
- // }
- // return retVal;
- //}
- #endregion
-}
\ No newline at end of file
+++ /dev/null
-// 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;
-/// <summary>
-/// Int64.ToString(System.String)
-/// </summary>
-public class Int64ToString3
-{
- public static int Main()
- {
- Int64ToString3 int64ts3 = new Int64ToString3();
- TestLibrary.TestFramework.BeginTestCase("Int64ToString3");
- if (int64ts3.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 = PosTest(2, Int64.MinValue, "Int64.MinValue", "x", "8000000000000000") && retVal;
-
- TestLibrary.Utilities.CurrentCulture = CustomCulture;
- retVal &= PosTest(1, Int64.MinValue, "Int64.MinValue", "g", "@9223372036854775808");
- retVal &= PosTest(3, Int64.MaxValue, "Int64.MaxValue", "g", "9223372036854775807");
- retVal &= PosTest(4, Int64.MaxValue, "Int64.MaxValue", "x", "7fffffffffffffff");
- retVal &= PosTest(5, Int64.MaxValue, "Int64.MaxValue", "f", "9223372036854775807,000");
- retVal &= PosTest(6, Int64.MaxValue, "Int64.MaxValue", "E", "9,223372E++018");
- retVal &= PosTest(7, Int64.MaxValue, "Int64.MaxValue", "N", "9#22#33#72#03#68#54#77#58#07,000");
- retVal &= PosTest(8, Int64.MaxValue, "Int64.MaxValue", "P", "922,337,203,685,477,580,700,0000~");
- retVal &= PosTest(9, Int64.MaxValue, "Int64.MaxValue", "D", "9223372036854775807");
- retVal &= PosTest(10, 00065536, "00065536", "G", "65536");
- retVal &= PosTest(11, 00065536, "00065536", "P", "6,553,600,0000~");
- retVal &= PosTest(12, 00065536, "00065536", "E", "6,553600E++004");
- retVal &= PosTest(13, 00065536, "00065536", string.Empty, "65536");
- retVal &= PosTest(14, 00065536, "00065536", null, "65536");
- retVal &= PosTest(15, -00065536, "-00065536", "P", "@~6,553,600,0000");
- retVal &= PosTest(16, -00065536, "-00065536", "E", "@6,553600E++004");
-
- TestLibrary.Utilities.CurrentCulture = CurrentCulture;
-
- TestLibrary.TestFramework.LogInformation("[NegTest]");
- retVal &= NegTest1();
- return retVal;
- }
-
- #region Private Methods
- private CultureInfo CurrentCulture = TestLibrary.Utilities.CurrentCulture;
- private CultureInfo customCulture = null;
-
- private CultureInfo CustomCulture
- {
- get
- {
- if (null == customCulture)
- {
- customCulture = new CultureInfo(CultureInfo.CurrentCulture.Name);
- NumberFormatInfo nfi = customCulture.NumberFormat;
- //For "G"
- // NegativeSign, NumberDecimalSeparator, NumberDecimalDigits, PositiveSign
- nfi.NegativeSign = "@"; //Default: "-"
- nfi.NumberDecimalSeparator = ","; //Default: "."
- nfi.NumberDecimalDigits = 3; //Default: 2
- nfi.PositiveSign = "++"; //Default: "+"
-
- //For "E"
- // PositiveSign, NegativeSign, and NumberDecimalSeparator.
- // If precision specifier is omitted, a default of six digits after the decimal point is used.
-
- //For "R"
- // NegativeSign, NumberDecimalSeparator and PositiveSign
-
- //For "X", The result string isn't affected by the formatting information of the current NumberFormatInfo
-
- //For "C"
- // CurrencyPositivePattern, CurrencySymbol, CurrencyDecimalDigits, CurrencyDecimalSeparator, CurrencyGroupSeparator, CurrencyGroupSizes, NegativeSign and CurrencyNegativePattern
- nfi.CurrencyDecimalDigits = 3; //Default: 2
- nfi.CurrencyDecimalSeparator = ","; //Default: ","
- nfi.CurrencyGroupSeparator = "."; //Default: "."
- nfi.CurrencyGroupSizes = new int[] { 2 }; //Default: new int[]{3}
- nfi.CurrencyNegativePattern = 2; //Default: 0
- nfi.CurrencyPositivePattern = 1; //Default: 0
- nfi.CurrencySymbol = "USD"; //Default: "$"
-
- //For "D"
- // NegativeSign
-
- //For "E"
- // PositiveSign, NumberDecimalSeparator and NegativeSign.
- // If precision specifier is omitted, a default of six digits after the decimal point is used.
- nfi.PositiveSign = "++"; //Default: "+"
- nfi.NumberDecimalSeparator = ","; //Default: "."
-
- //For "F"
- // NumberDecimalDigits, and NumberDecimalSeparator and NegativeSign.
- nfi.NumberDecimalDigits = 3; //Default: 2
-
- //For "N"
- // NumberGroupSizes, NumberGroupSeparator, NumberDecimalSeparator, NumberDecimalDigits, NumberNegativePattern and NegativeSign.
- nfi.NumberGroupSizes = new int[] { 2 }; //Default: 3
- nfi.NumberGroupSeparator = "#"; //Default: ","
-
- //For "P"
- // PercentPositivePattern, PercentNegativePattern, NegativeSign, PercentSymbol, PercentDecimalDigits, PercentDecimalSeparator, PercentGroupSeparator and PercentGroupSizes
- nfi.PercentPositivePattern = 1; //Default: 0
- nfi.PercentNegativePattern = 2; //Default: 0
- nfi.PercentSymbol = "~"; //Default: "%"
- nfi.PercentDecimalDigits = 4; //Default: 2
- nfi.PercentDecimalSeparator = ","; //Default: "."
- nfi.PercentGroupSizes[0] = 2; //Default: 3
- nfi.PercentGroupSeparator = ","; //Default: "," in most cultures, but "." in TR and DE
-
- customCulture.NumberFormat = nfi;
- }
- return customCulture;
- }
- }
- #endregion
-
- #region PositiveTest
- public bool PosTest(int seqNumber, long value, string description, string formatString, string expectedValue)
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest " + seqNumber.ToString() + ": " + description + ".ToString('" + formatString + "')");
- try
- {
- string actual = value.ToString(formatString);
- if (formatString == null) formatString = "G";
-
- if (!actual.Equals(expectedValue))
- {
- TestLibrary.TestFramework.LogError("00" + seqNumber.ToString() + ".1",
- "Expected: " + expectedValue + ", Actual: " + actual);
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("00" + seqNumber.ToString() + ".2", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- #endregion
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest1: The Format parameter is Invalid");
- try
- {
- long int64A = TestLibrary.Generator.GetInt64();
- String strA = int64A.ToString("Q");
- retVal = false;
- TestLibrary.TestFramework.LogError("N001", "the format param is Invalid but not throw exception");
- }
- catch (FormatException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-<?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="objectctor.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>
-
+++ /dev/null
-<?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="objectequals1.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>
-
+++ /dev/null
-<?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="objectequals2.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>
-
+++ /dev/null
-<?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="objectfinalize.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>
-
+++ /dev/null
-<?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="objectgethashcode.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>
-
+++ /dev/null
-<?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="objectmemberwiseclone.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>
-
+++ /dev/null
-<?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="objectreferenceequals.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>
-
+++ /dev/null
-<?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="objecttostring.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>
-
+++ /dev/null
-// 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 ObjectCtor
-{
- #region Public Method
- 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: Create a new Object instance");
-
- try
- {
- Object obj = new Object();
-
- if (null == obj)
- {
- TestLibrary.TestFramework.LogError("001", "Failed to instance a Object type");
- 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;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Create two Object instances, make sure CLR does not use the memory occuppied by the first one to alloc the second one");
-
- try
- {
- Object obj1 = new Object();
- Object obj2 = new Object();
-
- if (Object.ReferenceEquals(obj1, obj2))
- {
- TestLibrary.TestFramework.LogError("003", "CLR uses the memory occuppied by the first one to alloc the second one");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- ObjectCtor oc = new ObjectCtor();
-
- TestLibrary.TestFramework.BeginTestCase("ObjectCtor");
-
- if (oc.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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 ObjectEquals1
-{
- #region Private Constaints
- private const int c_MIN_STRING_LENGTH = 0;
- private const int c_MAX_STRING_LENGTH = 256;
- #endregion
-
- #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;
-
- TestLibrary.TestFramework.LogInformation("[Negative]");
- retVal = NegTest1() && retVal;
-
- return retVal;
- }
-
- #region Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Compare two empty object instances");
-
- try
- {
- Object obj1 = new Object();
- Object obj2 = new Object();
-
- if (obj1.Equals(obj2))
- {
- TestLibrary.TestFramework.LogError("001", "Two empty object instances are equal");
- 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;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Boxed value type");
-
- try
- {
- int i = TestLibrary.Generator.GetInt32(-55);
- Object obj = i;
-
- if (!obj.Equals(i))
- {
- TestLibrary.TestFramework.LogError("003", "Boxed type is not equal with the underlying value type");
- 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;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Compare two object reference");
-
- try
- {
- Object obj1 = new Object();
- Object obj2 = obj1;
-
- if (!obj1.Equals(obj2))
- {
- TestLibrary.TestFramework.LogError("005", "Compare two object reference failed");
- retVal = false;
- }
-
- // Also make sure this case is true
- if (!obj2.Equals(obj1))
- {
- TestLibrary.TestFramework.LogError("006", "Compare two object reference failed");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("007", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: Compare an object with itself");
-
- try
- {
- Object obj = new Object();
-
- if (!obj.Equals(obj))
- {
- TestLibrary.TestFramework.LogError("008", "An object does not equal with itself");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("009", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest5: Compare two NaN instances");
-
- try
- {
- Object obj1 = Double.NaN;
- Object obj2 = Double.NaN;
-
- if (!obj1.Equals(Double.NaN))
- {
- TestLibrary.TestFramework.LogError("010", "An object initialized with Double.NaN does not equal with Double.NaN");
- retVal = false;
- }
-
- if (!obj1.Equals(obj2))
- {
- TestLibrary.TestFramework.LogError("011", "Two objects initialized with Double.NaN do not equal");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest6()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest6: Successive calls to Equals return the same value for reference types");
-
- try
- {
- Object obj1 = new Object();
- Object obj2 = new Object();
-
- if (obj1.Equals(obj2) || obj1.Equals(obj2) )
- {
- TestLibrary.TestFramework.LogError("013", "Successive calls to Equals do not return the same value");
- retVal = false;
- }
-
- Object obj3 = TestLibrary.Generator.GetString(-55,
- false, c_MIN_STRING_LENGTH, c_MAX_STRING_LENGTH);
- // use !! instead of || to make sure the statement obj1.Equals(obj3) is evaluated twice
- if ( !( !obj1.Equals(obj3) && !obj1.Equals(obj3)) )
- {
- TestLibrary.TestFramework.LogError("014", "Successive calls to Equals do not return the same value");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("015", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest7()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest7: Successive calls to Equals return the same value for value types");
-
- try
- {
- int i = TestLibrary.Generator.GetInt32(-55);
- Object obj = i;
-
- if (!obj.Equals(i) && obj.Equals(i))
- {
- TestLibrary.TestFramework.LogError("016", "Successive calls to Equals for value types do not return the same value");
- retVal = false;
- }
-
- i++;
- // use !! instead of || to make sure the statement obj.Equals(i) is evaluated twice
- if (!(!obj.Equals(i) && !obj.Equals(i)))
- {
- TestLibrary.TestFramework.LogError("017", "Successive calls to Equals for value types do not return the same value");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("018", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest8()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest8: Upcast an type derivered from Object and compare with it");
-
- try
- {
- String str = TestLibrary.Generator.GetString(-55,
- false, c_MIN_STRING_LENGTH, c_MAX_STRING_LENGTH);
- Object obj = str;
-
- if (!obj.Equals(str))
- {
- TestLibrary.TestFramework.LogError("019", "Failed to compare with an upcast type");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("020", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest9()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest9: Upcast an type derivered from Object and compare with a different reference");
-
- try
- {
- String str1 = TestLibrary.Generator.GetString(-55,
- false, c_MIN_STRING_LENGTH, c_MAX_STRING_LENGTH);
- String str2 = TestLibrary.Generator.GetString(-55,
- false, c_MIN_STRING_LENGTH, c_MAX_STRING_LENGTH);
-
- // Make sure the two strings are different
- if (str1.Length == str2.Length)
- {
- str1 += TestLibrary.Generator.GetCharLetter(-55);
- }
-
- Object obj1 = str1;
- Object obj2 = str2;
-
- if (obj1.Equals(obj2))
- {
- TestLibrary.TestFramework.LogError("021", "Upcast an type derivered from Object and compare with a different reference returns true");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("022", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest10()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest10: Compare two different value type");
-
- try
- {
- int i1 = TestLibrary.Generator.GetInt32(-55);
- int i2 = i1;
-
- // Generate a different value type
- while (i1 == i2)
- {
- i2 = TestLibrary.Generator.GetInt32(-55);
- }
-
- Object obj1 = i1;
- Object obj2 = i2;
-
- if (obj1.Equals(obj2))
- {
- TestLibrary.TestFramework.LogError("023", "Compare two different value type returns true");
- retVal = false;
- }
-
- // Compare different type of value type
- double d1 = TestLibrary.Generator.GetDouble(-55);
- Object obj3 = d1;
-
- if (obj1.Equals(d1))
- {
- TestLibrary.TestFramework.LogError("024", "Compare two different value type returns true");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("025", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest11()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest11: Compare an object instance with an array which contains the instance");
-
- try
- {
- Object obj1 = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LENGTH, c_MAX_STRING_LENGTH);
- Object[] array = new Object[] {
- obj1
- };
- Object obj2 = array; // Upcast the array instance to an Object
-
- if (obj1.Equals(obj2))
- {
- TestLibrary.TestFramework.LogError("026", "Compare an object instance with an array which contains the instance returns true");
- retVal = false;
- }
-
- if (obj2.Equals(obj1))
- {
- TestLibrary.TestFramework.LogError("027", "Compare an object instance with an array which contains the instance returns true");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("028", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest12()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest12: Compare an value instance with an array which contains the instance");
-
- try
- {
- int i1 = TestLibrary.Generator.GetInt32(-55);
- int[] array = new int[] { i1 };
- Object obj1 = i1;
- Object obj2 = array; // Upcast the array instance to an Object
-
- if (obj1.Equals(obj2))
- {
- TestLibrary.TestFramework.LogError("029", "Compare an value instance with an array which contains the instance returns true");
- retVal = false;
- }
-
- if (obj2.Equals(obj1))
- {
- TestLibrary.TestFramework.LogError("030", "Compare an value instance with an array which contains the instance returns true");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("031", "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: Compare an object instance with null reference");
-
- try
- {
- Object obj = new Object();
-
- if (obj.Equals(null))
- {
- TestLibrary.TestFramework.LogError("101", "an object instance is equal with null reference");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- ObjectEquals1 test = new ObjectEquals1();
-
- TestLibrary.TestFramework.BeginTestCase("ObjectEquals1");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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 ObjectEquals2
-{
- #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;
-
- return retVal;
- }
-
- #region Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Compare two different object instances");
-
- try
- {
- Object obj1 = new Object();
- Object obj2 = new Object();
-
- if (Object.Equals(obj1, obj2))
- {
- TestLibrary.TestFramework.LogError("001", "Object.Equals returns true when comparing two different object instances");
- 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;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Compare two same object references");
-
- try
- {
- Object obj1 = new Object();
- Object obj2 = obj1;
-
- if (!Object.Equals(obj1, obj2))
- {
- TestLibrary.TestFramework.LogError("003", "Object.Equals returns false when comparing two same object references");
- 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;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Compare two same value type");
-
- try
- {
- int i1 = TestLibrary.Generator.GetInt32(-55);
- int i2 = i1;
-
- Object obj1 = i1;
- Object obj2 = i2;
-
- if (!Object.Equals(obj1, obj2))
- {
- TestLibrary.TestFramework.LogError("005", "Object.Equals returns false when comparing two same value type");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: Compare two different instance of same value type");
-
- try
- {
- int i1 = TestLibrary.Generator.GetInt32(-55);
- int i2 = i1;
-
- // Generate a different value type
- while (i1 == i2)
- {
- i2 = TestLibrary.Generator.GetInt32(-55);
- }
-
- Object obj1 = i1;
- Object obj2 = i2;
-
- if (Object.Equals(obj1, obj2))
- {
- TestLibrary.TestFramework.LogError("007", "Object.Equals returns true when comparing two different instance of same value type");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest5: Compare two different instance of different value type");
-
- try
- {
- int i1 = TestLibrary.Generator.GetInt32(-55);
- double d1 = TestLibrary.Generator.GetDouble(-55);
-
- Object obj1 = i1;
- Object obj2 = d1;
-
- if (Object.Equals(obj1, obj2))
- {
- TestLibrary.TestFramework.LogError("009", "Object.Equals returns true when comparing two different instance of different value type");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest6()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest6: Compare two same instances of different value type");
-
- try
- {
- int i1 = TestLibrary.Generator.GetInt32(-55);
- double d1 = (double)i1;
-
- Object obj1 = i1;
- Object obj2 = d1;
-
- if (Object.Equals(obj1, obj2))
- {
- TestLibrary.TestFramework.LogError("009", "Object.Equals returns true when comparing two same instances of different value type");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest7()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest7: Compare an object with itself");
-
- try
- {
- Object obj = new Object();
-
- if (!Object.Equals(obj, obj))
- {
- TestLibrary.TestFramework.LogError("011", "An object does not equal with itself");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012", "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: Compare two null references");
-
- try
- {
- if (!Object.Equals(null, null))
- {
- TestLibrary.TestFramework.LogError("101", "Object.Equals return false when compare two null references");
- retVal = false;
- }
-
- // Check successive call to Equals does not return different result
- if (!Object.Equals(null, null))
- {
- TestLibrary.TestFramework.LogError("102", "Object.Equals return false when compare two null references");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("103", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: Compare an object instance with null references");
-
- try
- {
- Object obj1 = new Object();
-
- if (Object.Equals(obj1, null))
- {
- TestLibrary.TestFramework.LogError("104", "Object.Equals return true when comparing an object instance with null references");
- retVal = false;
- }
-
- // Check successive call to Equals does not return different result
- if (Object.Equals(obj1, null))
- {
- TestLibrary.TestFramework.LogError("105", "Object.Equals return true when comparing an object instance with null references");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("106", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest3: Compare null references with an object instance");
-
- try
- {
- Object obj1 = new Object();
-
- if (Object.Equals(null, obj1))
- {
- TestLibrary.TestFramework.LogError("107", "Object.Equals return true when comparing null references with an object instance");
- retVal = false;
- }
-
- // Check successive call to Equals does not return different result
- if (Object.Equals(null, obj1))
- {
- TestLibrary.TestFramework.LogError("108", "Object.Equals return true when comparing null references with an object instance");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("109", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest4()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest4: Compare a value instance with null reference");
-
- try
- {
- Object obj1 = TestLibrary.Generator.GetInt32(-55);
-
- if (Object.Equals(obj1, null))
- {
- TestLibrary.TestFramework.LogError("110", "Object.Equals return true when comparing a value instance with null reference");
- retVal = false;
- }
-
- // Check successive call to Equals does not return different result
- if (Object.Equals(obj1, null))
- {
- TestLibrary.TestFramework.LogError("111", "Object.Equals return true when comparing a value instance with null reference");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("112", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- ObjectEquals2 test = new ObjectEquals2();
-
- TestLibrary.TestFramework.BeginTestCase("ObjectEquals2");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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.CompilerServices;
-
-public class TestObject
-{
- #region Private Members
- private const int c_MIN_STRING_LENGTH = 0;
- private const int c_MAX_STRING_LENGTH = 1024;
-
- private string m_Eat_Memory1 = null;
- private int m_Eat_Memory2 = 0;
- #endregion
-
- #region Constructors
- public TestObject()
- {
- m_Eat_Memory1 = TestLibrary.Generator.GetString(-55,
- false, c_MIN_STRING_LENGTH, c_MAX_STRING_LENGTH);
- m_Eat_Memory2 = TestLibrary.Generator.GetInt32(-55);
- }
- #endregion
-
- #region Public Method
- public void DoSomething()
- {
- int x = 4;
- x += 5;
- }
- #endregion
-
- ~TestObject()
- {
- ObjectFinalize.m_STATIC_VARIABLE++;
- }
-}
-
-public class ObjectFinalize
-{
- #region Public Static Member
- public const int c_DEFAULT_INT_VALUE = 1;
-
- public static volatile int m_STATIC_VARIABLE = c_DEFAULT_INT_VALUE;
- #endregion
-
- #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: Test destroying an object");
-
- try
- {
- // Create an unreferenced object
- UseTestObject();
-
- // Force runtime to do Garbage collection
- GC.Collect();
- GC.WaitForPendingFinalizers();
-
- if (ObjectFinalize.m_STATIC_VARIABLE != ObjectFinalize.c_DEFAULT_INT_VALUE + 1)
- {
- TestLibrary.TestFramework.LogError("001", "Call Object.Finalize failed: Execpted("+(ObjectFinalize.c_DEFAULT_INT_VALUE + 1)+") Actual("+ObjectFinalize.m_STATIC_VARIABLE+")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- ObjectFinalize test = new ObjectFinalize();
-
- TestLibrary.TestFramework.BeginTestCase("ObjectFinalize");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
- #region Private Methods
- [MethodImplAttribute(MethodImplOptions.NoInlining)]
- private void UseTestObject()
- {
- TestObject testObject = new TestObject();
-
- // Avoid used variable compiler warning.
- testObject.DoSomething();
- }
- #endregion
-}
+++ /dev/null
-// 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 struct Empty
-{
-}
-
-public class ObjectGetHashCode
-{
- #region Private Variables
- private string m_String = null;
- private int m_Int32 = 0;
- #endregion
-
- #region Private Constaints
- private const int c_MIN_STRING_LENGTH = 1;
- private const int c_MAX_STRING_LENGHT = 1024;
- #endregion
-
- #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: Hash code for two objects with same type and same value should be equal");
-
- try
- {
- ObjectGetHashCode obj1 = new ObjectGetHashCode();
- ObjectGetHashCode obj2 = new ObjectGetHashCode();
-
- if (obj1.GetHashCode() == obj2.GetHashCode())
- {
- TestLibrary.TestFramework.LogError("001", "Hash code for two objects with same type and same value are not equal");
- 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;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Hash function must return exactly the same value regardless of any changes that are made to the object");
-
- try
- {
- // Hack: Implement of ObjectGetHashCode.GetHashCode is inheritted from Object
- String str1 = TestLibrary.Generator.GetString(-55,
- false, c_MIN_STRING_LENGTH, c_MAX_STRING_LENGHT);
- ObjectGetHashCode oghc = new ObjectGetHashCode();
- oghc.m_String = str1;
- int hashCode1 = oghc.GetHashCode();
-
- String str2 = TestLibrary.Generator.GetString(-55,
- false, c_MIN_STRING_LENGTH, c_MAX_STRING_LENGHT);
-
- if (str1.Length == str2.Length)
- {
- str2 += TestLibrary.Generator.GetChar(-55);
- }
-
- oghc.m_String = str2;
- int hashCode2 = oghc.GetHashCode();
-
- if (hashCode1 != hashCode2)
- {
- TestLibrary.TestFramework.LogError("003", "Hash function does not return exactly the same value regardless of any changes that are made to the object");
- retVal = false;
- }
-
- // Change value type field should not change the hash code
- oghc.m_Int32 = TestLibrary.Generator.GetInt32(-55);
- hashCode2 = oghc.GetHashCode();
-
- if (hashCode1 != hashCode2)
- {
- TestLibrary.TestFramework.LogError("004", "Hash function does not return exactly the same value regardless of any changes that are made to the object");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("005", "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: Get hash code for an empty struct");
-
- try
- {
- Empty test = new Empty();
- Empty test1 = new Empty();
-
- if (test.GetHashCode() != test1.GetHashCode())
- {
- TestLibrary.TestFramework.LogError("101", "Hash code for two Empty struct instances does not equal");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- ObjectGetHashCode test = new ObjectGetHashCode();
-
- TestLibrary.TestFramework.BeginTestCase("ObjectGetHashCode");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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 struct TestStruct
-{
- public int Int32;
- public long Long;
- public double Double;
- public float Float;
-}
-
-public class ObjectMemberwiseClone
-{
- #region Private Fields
- private string m_String = null;
- private int m_Int32 = 0;
- private TestStruct m_TestStruct;
-
- private const int c_MIN_STRING_LENGTH = 0;
- private const int c_MAX_STRING_LENGHT = 1024;
- #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: MemberwiseClone do a bit-by-bit copy of a value type field");
-
- try
- {
- ObjectMemberwiseClone omc1 = new ObjectMemberwiseClone();
- omc1.m_Int32 = TestLibrary.Generator.GetInt32(-55);
-
- ObjectMemberwiseClone omc2 = (ObjectMemberwiseClone)omc1.MemberwiseClone();
- if (omc2.m_Int32 != omc1.m_Int32)
- {
- TestLibrary.TestFramework.LogError("001", "MemberwiseClone does not do a bit-by-bit copy of a value type field");
- 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;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: MemberwiseClone copies reference for a reference type field");
-
- try
- {
- ObjectMemberwiseClone omc1 = new ObjectMemberwiseClone();
- omc1.m_String = TestLibrary.Generator.GetString(-55,
- false, c_MIN_STRING_LENGTH, c_MAX_STRING_LENGHT);
-
- ObjectMemberwiseClone omc2 = (ObjectMemberwiseClone)omc1.MemberwiseClone();
- if (!Object.ReferenceEquals(omc1.m_String, omc2.m_String))
- {
- TestLibrary.TestFramework.LogError("003", "MemberwiseClone does not copy reference for a reference type field");
- 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;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: MemberwiseClone do a bit-by-bit copy of a struct type field");
-
- try
- {
- ObjectMemberwiseClone omc1 = new ObjectMemberwiseClone();
- omc1.m_TestStruct.Int32 = TestLibrary.Generator.GetInt32(-55);
- omc1.m_TestStruct.Long = TestLibrary.Generator.GetInt64(-55);
- omc1.m_TestStruct.Double = TestLibrary.Generator.GetDouble(-55);
- omc1.m_TestStruct.Float = TestLibrary.Generator.GetSingle(-55);
-
- ObjectMemberwiseClone omc2 = (ObjectMemberwiseClone)omc1.MemberwiseClone();
- if ((omc2.m_TestStruct.Int32 != omc1.m_TestStruct.Int32) ||
- (omc2.m_TestStruct.Long != omc1.m_TestStruct.Long) ||
- (omc2.m_TestStruct.Double != omc1.m_TestStruct.Double) ||
- (omc2.m_TestStruct.Float != omc1.m_TestStruct.Float))
- {
- TestLibrary.TestFramework.LogError("005", "MemberwiseClone does not do a bit-by-bit copy of a value type field");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- ObjectMemberwiseClone test = new ObjectMemberwiseClone();
-
- TestLibrary.TestFramework.BeginTestCase("ObjectMemberwiseClone");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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 ObjectReferenceEquals
-{
- #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: Compare an object with itself");
-
- try
- {
- Object obj = new Object();
- if (!Object.ReferenceEquals(obj, obj))
- {
- TestLibrary.TestFramework.LogError("001", "ReferenceEquals returns false when comparing an object with itself");
- 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;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Compare two object with same reference");
-
- try
- {
- Object obj1 = new Object();
- Object obj2 = obj1;
- if (!Object.ReferenceEquals(obj1, obj2))
- {
- TestLibrary.TestFramework.LogError("003", "ReferenceEquals returns false when comparing two object with same reference");
- 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;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Compare two value type instance with same value");
-
- try
- {
- int i1 = TestLibrary.Generator.GetInt32(-55);
- int i2 = i1;
-
- while (i1 == i2)
- {
- i2 = TestLibrary.Generator.GetInt32(-55);
- }
-
- Object obj1 = i1;
- Object obj2 = i2;
-
- if (Object.ReferenceEquals(obj1, obj2))
- {
- TestLibrary.TestFramework.LogError("005", "ReferenceEquals returns true when compare two value type instance with same value");
- 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: Compare two null references");
-
- try
- {
- if (!Object.ReferenceEquals(null, null))
- {
- TestLibrary.TestFramework.LogError("101", "Comparing two null references returns false");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: Compare null reference with an object instance");
-
- try
- {
- Object obj = new Object();
- if (Object.ReferenceEquals(obj, null))
- {
- TestLibrary.TestFramework.LogError("103", "Compare null reference with an object instance returns true");
- retVal = false;
- }
-
- // make sure this case is true
- if (Object.ReferenceEquals(null, obj))
- {
- TestLibrary.TestFramework.LogError("104", "Compare null reference with an object instance returns true");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("105", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- ObjectReferenceEquals test = new ObjectReferenceEquals();
-
- TestLibrary.TestFramework.BeginTestCase("ObjectReferenceEquals");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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 ObjectToString
-{
- #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 ToString");
-
- try
- {
- Object obj1 = new Object();
- if (obj1.ToString() != "System.Object")
- {
- TestLibrary.TestFramework.LogError("001", "Call Object.ToString() does not return the fully qualified name of type Object");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- ObjectToString test = new ObjectToString();
-
- TestLibrary.TestFramework.BeginTestCase("ObjectToString");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-<?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="ambiguousmatchexceptionctor1.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>
+++ /dev/null
-<?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="ambiguousmatchexceptionctor2.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>
+++ /dev/null
-<?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="ambiguousmatchexceptionctor3.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>
+++ /dev/null
-// 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>
-/// AmbiguousMatchException constructor() [v-yaduoj]
-/// </summary>
-public class AmbiguousMatchExceptionCtor
-{
- public static int Main()
- {
- AmbiguousMatchExceptionCtor testObj = new AmbiguousMatchExceptionCtor();
-
- TestLibrary.TestFramework.BeginTestCase("for AmbiguousMatchException()");
- 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 AmbiguousMatchException via default constructor";
- string errorDesc;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- AmbiguousMatchException e = new AmbiguousMatchException();
- if (null == e)
- {
- errorDesc = "Failed to initialize an instance of type AmbiguousMatchException 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
-}
+++ /dev/null
-// 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>
-/// AmbiguousMatchException constructor(string) [v-yaduoj]
-/// </summary>
-public class AmbiguousMatchExceptionCtor
-{
- public static int Main()
- {
- AmbiguousMatchExceptionCtor testObj = new AmbiguousMatchExceptionCtor();
-
- TestLibrary.TestFramework.BeginTestCase("for AmbiguousMatchException(string)");
- 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;
-
- 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 AmbiguousMatchException using an emtpy string message";
- string errorDesc;
-
- string message = string.Empty;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- AmbiguousMatchException e = new AmbiguousMatchException(message);
- if (null == e || e.Message != message)
- {
- errorDesc = "Failed to initialize an instance of type AmbiguousMatchException.";
- errorDesc += "\nInput message is emtpy string";
- TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += "\nInput message is emtpy string";
- TestLibrary.TestFramework.LogError("002" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P002";
- string c_TEST_DESC = "PosTest2: initialize an instance of type AmbiguousMatchException using a string containing special character";
- string errorDesc;
-
- string message = "Not supported exception occurs here \n\r\0\t\v";
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- AmbiguousMatchException e = new AmbiguousMatchException(message);
- if (null == e || e.Message != message)
- {
- errorDesc = "Failed to initialize an instance of type AmbiguousMatchException.";
- errorDesc += "\nInput message is \"" + message + "\"";
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += "\nInput message is \"" + message + "\"";
- TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P003";
- string c_TEST_DESC = "PosTest3: initialize an instance of type AmbiguousMatchException using a null reference";
- string errorDesc;
-
- string message = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- AmbiguousMatchException e = new AmbiguousMatchException(message);
- if (null == e)
- {
- errorDesc = "Failed to initialize an instance of type AmbiguousMatchException.";
- errorDesc += "\nInput message is a null reference.";
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += "\nInput message is a null reference.";
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-// 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>
-/// AmbiguousMatchException constructor(string, Exception) [v-yaduoj]
-/// </summary>
-public class AmbiguousMatchExceptionCtor
-{
- public static int Main()
- {
- AmbiguousMatchExceptionCtor testObj = new AmbiguousMatchExceptionCtor();
-
- TestLibrary.TestFramework.BeginTestCase("for AmbiguousMatchException(string, Exception)");
- 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 tests
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P001";
- string c_TEST_DESC = "PosTest1: initialize an instance of type AmbiguousMatchException using an emtpy string message";
- string errorDesc;
-
- string message = string.Empty;
- Exception innerException = new ArgumentNullException();
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- AmbiguousMatchException e = new AmbiguousMatchException(message, innerException);
- if (null == e || e.Message != message || e.InnerException != innerException)
- {
- errorDesc = "Failed to initialize an instance of type AmbiguousMatchException.";
- errorDesc += "\nInput message is emtpy string";
- errorDesc += "\nInner exception is " + innerException;
- TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += "\nInput message is emtpy string";
- errorDesc += "\nInner exception is " + innerException;
- TestLibrary.TestFramework.LogError("002" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P002";
- string c_TEST_DESC = "PosTest2: initialize an instance of type AmbiguousMatchException using a string containing special character";
- string errorDesc;
-
- string message = "Not supported exception occurs here \n\r\0\t\v";
- Exception innerException = new Exception();
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- AmbiguousMatchException e = new AmbiguousMatchException(message, innerException);
- if (null == e || e.Message != message || e.InnerException != innerException)
- {
- errorDesc = "Failed to initialize an instance of type AmbiguousMatchException.";
- errorDesc += "\nInput message is \"" + message + "\"";
- errorDesc += "\nInner exception is " + innerException;
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += "\nInput message is \"" + message + "\"";
- errorDesc += "\nInner exception is " + innerException;
- TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P003";
- string c_TEST_DESC = "PosTest3: initialize an instance of type AmbiguousMatchException using a null reference";
- string errorDesc;
-
- string message = null;
- Exception innerException = new Exception();
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- AmbiguousMatchException e = new AmbiguousMatchException(message, innerException);
- if (null == e)
- {
- errorDesc = "Failed to initialize an instance of type AmbiguousMatchException.";
- errorDesc += "\nInput message is a null reference.";
- errorDesc += "\nInner exception is " + innerException;
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += "\nInput message is a null reference.";
- errorDesc += "\nInner exception is " + innerException;
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P004";
- string c_TEST_DESC = "PosTest4: message is a string containing special character and inner exception is a null reference";
- string errorDesc;
-
- string message = "Not supported exception occurs here";
- Exception innerException = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- AmbiguousMatchException e = new AmbiguousMatchException(message, innerException);
- if (null == e || e.Message != message || e.InnerException != innerException)
- {
- errorDesc = "Failed to initialize an instance of type AmbiguousMatchException.";
- errorDesc += "\nInput message is \"" + message + "\"";
- errorDesc += "\nInner exception is a null reference.";
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += "\nInput message is \"" + message + "\"";
- errorDesc += "\nInner exception is a null reference.";
- TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-<?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="assemblyconfigurationattribute.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
+++ /dev/null
-<?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="assemblyconfigurationattributector.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>
+++ /dev/null
-// 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>
-/// AssemblyConfigurationAttribute.Configuration
-/// </summary>
-public class AssemblyConfigurationAttributeConfiguration
-{
- private int c_MIN_STR_LENGTH = 8;
- private int c_MAX_STR_LENGTH = 256;
- public static int Main()
- {
- AssemblyConfigurationAttributeConfiguration assemConfigurationAttrConfig = new AssemblyConfigurationAttributeConfiguration();
- TestLibrary.TestFramework.BeginTestCase("AssemblyConfigurationAttributeConfiguration");
- if (assemConfigurationAttrConfig.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;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:Return the configuration info from initialized the AssemblyConfigurationAttribute 1");
- try
- {
- string configuration = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LENGTH, c_MAX_STR_LENGTH);
- AssemblyConfigurationAttribute assemConfigAttr = new AssemblyConfigurationAttribute(configuration);
- if (assemConfigAttr.Configuration != configuration)
- {
- 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:Return the configuration info from initialized the AssemblyConfigurationAttribute 2");
- try
- {
- string configuration = null;
- AssemblyConfigurationAttribute assemConfigAttr = new AssemblyConfigurationAttribute(configuration);
- if (assemConfigAttr.Configuration != null)
- {
- 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:Return the configuration info from initialized the AssemblyConfigurationAttribute 3");
- try
- {
- string configuration = string.Empty;
- AssemblyConfigurationAttribute assemConfigAttr = new AssemblyConfigurationAttribute(configuration);
- if (assemConfigAttr.Configuration != "")
- {
- 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;
- }
- #endregion
-}
+++ /dev/null
-// 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;
-
-public class AssemblyConfigurationAttributeCtor
-{
- private int c_MIN_STR_LENGTH = 8;
- private int c_MAX_STR_LENGTH = 256;
- public static int Main()
- {
- AssemblyConfigurationAttributeCtor assemConfigurationAttrCtor = new AssemblyConfigurationAttributeCtor();
- TestLibrary.TestFramework.BeginTestCase("AssemblyConfigurationAttributeCtor");
- if (assemConfigurationAttrCtor.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;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:Initialize the AssemblyConfigurationAttribute 1");
- try
- {
- string configuration = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LENGTH, c_MAX_STR_LENGTH);
- AssemblyConfigurationAttribute assemConfigAttr = new AssemblyConfigurationAttribute(configuration);
- if (assemConfigAttr == null || assemConfigAttr.Configuration != configuration)
- {
- 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:Initialize the AssemblyConfigurationAttribute 2");
- try
- {
- string configuration = null;
- AssemblyConfigurationAttribute assemConfigAttr = new AssemblyConfigurationAttribute(configuration);
- if (assemConfigAttr == null || assemConfigAttr.Configuration != null)
- {
- 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:Initialize the AssemblyConfigurationAttribute 3");
- try
- {
- string configuration = string.Empty;
- AssemblyConfigurationAttribute assemConfigAttr = new AssemblyConfigurationAttribute(configuration);
- if (assemConfigAttr == null || assemConfigAttr.Configuration != "")
- {
- 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;
- }
- #endregion
-}
+++ /dev/null
-<?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="assemblydefaultaliasattribute.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
+++ /dev/null
-<?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="assemblydefaultaliasattributector.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>
+++ /dev/null
-// 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>
-/// AssemblyDefaultAliasAttribute.DefaultAlias
-/// </summary>
-public class AssemblyDefaultAliasAttributeDefaultAlias
-{
- private int c_MIN_STR_LENGTH = 8;
- private int c_MAX_STR_LENGTH = 256;
- public static int Main()
- {
- AssemblyDefaultAliasAttributeDefaultAlias assemDefaultAliasAttrDefaultAlias = new AssemblyDefaultAliasAttributeDefaultAlias();
- TestLibrary.TestFramework.BeginTestCase("AssemblyDefaultAliasAttributeDefaultAlias");
- if (assemDefaultAliasAttrDefaultAlias.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;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:Return the defaultAlias info from initialized the AssemblyDefaultAliasAttribute 1");
- try
- {
- string defaultAlias = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LENGTH, c_MAX_STR_LENGTH);
- AssemblyDefaultAliasAttribute assemDefaultAliasAttr = new AssemblyDefaultAliasAttribute(defaultAlias);
- if (assemDefaultAliasAttr.DefaultAlias != defaultAlias)
- {
- 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:Return the defaultAlias info from initialized the AssemblyDefaultAliasAttribute 2");
- try
- {
- string defaultAlias = null;
- AssemblyDefaultAliasAttribute assemDefaultAliasAttr = new AssemblyDefaultAliasAttribute(defaultAlias);
- if (assemDefaultAliasAttr.DefaultAlias != null)
- {
- 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:Return the defaultAlias info from initialized the AssemblyDefaultAliasAttribute 3");
- try
- {
- string defaultAlias = string.Empty;
- AssemblyDefaultAliasAttribute assemDefaultAliasAttr = new AssemblyDefaultAliasAttribute(defaultAlias);
- if (assemDefaultAliasAttr.DefaultAlias != "")
- {
- 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;
- }
- #endregion
-}
+++ /dev/null
-// 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>
-/// AssemblyDefaultAliasAttribute(String)
-/// </summary>
-public class AssemblyDefaultAliasAttributeCtor
-{
- private int c_MIN_STR_LENGTH = 8;
- private int c_MAX_STR_LENGTH = 256;
- public static int Main()
- {
- AssemblyDefaultAliasAttributeCtor assemDefaultAliasAttrCtor = new AssemblyDefaultAliasAttributeCtor();
- TestLibrary.TestFramework.BeginTestCase("AssemblyDefaultAliasAttributeCtor");
- if (assemDefaultAliasAttrCtor.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;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:Initialize the AssemblyDefaultAliasAttribute 1");
- try
- {
- string defaultAlias = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LENGTH, c_MAX_STR_LENGTH);
- AssemblyDefaultAliasAttribute assemDefaultAliasAttr = new AssemblyDefaultAliasAttribute(defaultAlias);
- if (assemDefaultAliasAttr == null || assemDefaultAliasAttr.DefaultAlias != defaultAlias)
- {
- 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:Initialize the AssemblyDefaultAliasAttribute 2");
- try
- {
- string defaultAlias = null;
- AssemblyDefaultAliasAttribute assemDefaultAliasAttr = new AssemblyDefaultAliasAttribute(defaultAlias);
- if (assemDefaultAliasAttr == null || assemDefaultAliasAttr.DefaultAlias != null)
- {
- 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:Initialize the AssemblyDefaultAliasAttribute 3");
- try
- {
- string defaultAlias = string.Empty;
- AssemblyDefaultAliasAttribute assemDefaultAliasAttr = new AssemblyDefaultAliasAttribute(defaultAlias);
- if (assemDefaultAliasAttr == null || assemDefaultAliasAttr.DefaultAlias != "")
- {
- 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;
- }
- #endregion
-}
+++ /dev/null
-<?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="assemblydelaysignattributector.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>
+++ /dev/null
-<?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="assemblydelaysignattributedelaysign.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>
+++ /dev/null
-// 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>
-/// Ctor.
-/// </summary>
-
-public class AssemblyDelaySignAttributeCtor
-{
- #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 AssemblyDelaySignAttribute Ctor .");
-
- try
- {
- bool delaySign = true;
- AssemblyDelaySignAttribute adsa = new AssemblyDelaySignAttribute(delaySign);
-
- if (adsa.DelaySign != delaySign)
- {
- TestLibrary.TestFramework.LogError("001.1", "Ctor 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 AssemblyDelaySignAttribute Ctor .");
-
- try
- {
- bool delaySign = false;
- AssemblyDelaySignAttribute adsa = new AssemblyDelaySignAttribute(delaySign);
-
- if (adsa.DelaySign != delaySign)
- {
- TestLibrary.TestFramework.LogError("002.1", "Ctor Err.");
- 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: ");
-
- // 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()
- {
- AssemblyDelaySignAttributeCtor test = new AssemblyDelaySignAttributeCtor();
-
- TestLibrary.TestFramework.BeginTestCase("AssemblyDelaySignAttributeCtor");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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>
-/// DelaySign
-/// </summary>
-
-public class AssemblyDelaySignAttributeDelaySign
-{
- #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 property DelaySign .");
-
- try
- {
- bool delaySign = true;
- AssemblyDelaySignAttribute adsa = new AssemblyDelaySignAttribute(delaySign);
-
- if (adsa.DelaySign != delaySign)
- {
- TestLibrary.TestFramework.LogError("001.1", "Property DelaySign 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 property DelaySign .");
-
- try
- {
- bool delaySign = false;
- AssemblyDelaySignAttribute adsa = new AssemblyDelaySignAttribute(delaySign);
-
- if (adsa.DelaySign != delaySign)
- {
- TestLibrary.TestFramework.LogError("002.1", "Property DelaySign Err.");
- 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: ");
-
- // 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()
- {
- AssemblyDelaySignAttributeDelaySign test = new AssemblyDelaySignAttributeDelaySign();
-
- TestLibrary.TestFramework.BeginTestCase("AssemblyDelaySignAttributeDelaySign");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-<?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="assemblydescriptionattributector.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>
+++ /dev/null
-<?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="assemblydescriptionattributedescription.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>
+++ /dev/null
-// 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;
-
-public class AssemblyDescriptionAttributeCtor
-{
- private int c_MIN_STR_LENGTH = 8;
- private int c_MAX_STR_LENGTH = 256;
- public static int Main()
- {
- AssemblyDescriptionAttributeCtor assemDescriptionAttrCtor = new AssemblyDescriptionAttributeCtor();
- TestLibrary.TestFramework.BeginTestCase("AssemblyDescriptionAttributeCtor");
- if (assemDescriptionAttrCtor.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;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:Initialize the AssemblyDescriptionAttribute 1");
- try
- {
- string description = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LENGTH, c_MAX_STR_LENGTH);
- AssemblyDescriptionAttribute assemDescriptionAttr = new AssemblyDescriptionAttribute(description);
- if (assemDescriptionAttr == null || assemDescriptionAttr.Description != description)
- {
- 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:Initialize the AssemblyDescriptionAttribute 2");
- try
- {
- string description = string.Empty;
- AssemblyDescriptionAttribute assemDescriptionAttr = new AssemblyDescriptionAttribute(description);
- if (assemDescriptionAttr == null || assemDescriptionAttr.Description != description)
- {
- 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:Initialize the AssemblyDescriptionAttribute 3");
- try
- {
- string description = null;
- AssemblyDescriptionAttribute assemDescriptionAttr = new AssemblyDescriptionAttribute(description);
- if (assemDescriptionAttr == null || assemDescriptionAttr.Description != description)
- {
- 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;
- }
- #endregion
-
-}
+++ /dev/null
-// 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>
-/// AssemblyDescriptionAttribute.Description
-/// </summary>
-public class AssemblyDescriptionAttributeDescription
-{
- private int c_MIN_STR_LENGTH = 8;
- private int c_MAX_STR_LENGTH = 256;
- public static int Main()
- {
- AssemblyDescriptionAttributeDescription assemDescriptionAttrDesprop = new AssemblyDescriptionAttributeDescription();
- TestLibrary.TestFramework.BeginTestCase("AssemblyDescriptionAttributeDescription");
- if (assemDescriptionAttrDesprop.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;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:Return the description from initialized AssemblyDescriptionAttribute 1");
- try
- {
- string description = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LENGTH, c_MAX_STR_LENGTH);
- AssemblyDescriptionAttribute assemDescriptionAttr = new AssemblyDescriptionAttribute(description);
- if (assemDescriptionAttr.Description != description)
- {
- 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:Return the description from initialized AssemblyDescriptionAttribute 2");
- try
- {
- string description = string.Empty;
- AssemblyDescriptionAttribute assemDescriptionAttr = new AssemblyDescriptionAttribute(description);
- if (assemDescriptionAttr.Description != "")
- {
- 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:Return the description from initialized AssemblyDescriptionAttribute 3");
- try
- {
- string description = null;
- AssemblyDescriptionAttribute assemDescriptionAttr = new AssemblyDescriptionAttribute(description);
- if (assemDescriptionAttr.Description != null)
- {
- 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;
- }
- #endregion
-}
+++ /dev/null
-<?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="assemblykeyfileattributector.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>
+++ /dev/null
-<?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="assemblykeyfileattributekeyfile.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>
+++ /dev/null
-// 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>
-/// Ctor
-/// </summary>
-
-public class AssemblyKeyFileAttributeCtor
-{
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && 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 Ctor.");
-
- try
- {
- string keyFile = "keyfile";
- AssemblyKeyFileAttribute akfa = new AssemblyKeyFileAttribute(keyFile);
-
- if (akfa.KeyFile != keyFile)
- {
- TestLibrary.TestFramework.LogError("001.1", "Ctor 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()
- {
- AssemblyKeyFileAttributeCtor test = new AssemblyKeyFileAttributeCtor();
-
- TestLibrary.TestFramework.BeginTestCase("AssemblyKeyFileAttributeCtor");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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>
-/// KeyFile
-/// </summary>
-
-public class AssemblyKeyFileAttributeKeyFile
-{
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && 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 property KeyFile .");
-
- try
- {
- string keyFile = "keyfile";
- AssemblyKeyFileAttribute akfa = new AssemblyKeyFileAttribute(keyFile);
-
- if (akfa.KeyFile != keyFile)
- {
- TestLibrary.TestFramework.LogError("001.1", "Property KeyFile 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()
- {
- AssemblyKeyFileAttributeKeyFile test = new AssemblyKeyFileAttributeKeyFile();
-
- TestLibrary.TestFramework.BeginTestCase("AssemblyKeyFileAttributeKeyFile");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-<?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="assemblykeynameattributector.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>
+++ /dev/null
-<?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="assemblykeynameattributekeyname.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>
+++ /dev/null
-// 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>
-/// AssemblyKeyNameAttribute(String)
-/// </summary>
-public class AssemblyKeyNameAttributeCtor
-{
- private int c_MIN_STR_LENGTH = 8;
- private int c_MAX_STR_LENGTH = 256;
- public static int Main()
- {
- AssemblyKeyNameAttributeCtor assemKeyNameAttrCtor = new AssemblyKeyNameAttributeCtor();
- TestLibrary.TestFramework.BeginTestCase("AssemblyKeyNameAttributeCtor");
- if (assemKeyNameAttrCtor.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;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:Initialize the AssemblyKeyNameAttribute 1");
- try
- {
- string keyname = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LENGTH, c_MAX_STR_LENGTH);
- AssemblyKeyNameAttribute assemKeyNameAttr = new AssemblyKeyNameAttribute(keyname);
- if (assemKeyNameAttr == null || assemKeyNameAttr.KeyName != keyname)
- {
- 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:Initialize the AssemblyKeyNameAttribute 2");
- try
- {
- string keyname = null;
- AssemblyKeyNameAttribute assemKeyNameAttr = new AssemblyKeyNameAttribute(keyname);
- if (assemKeyNameAttr == null || assemKeyNameAttr.KeyName != keyname)
- {
- 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:Initialize the AssemblyKeyNameAttribute 3");
- try
- {
- string keyname = string.Empty;
- AssemblyKeyNameAttribute assemKeyNameAttr = new AssemblyKeyNameAttribute(keyname);
- if (assemKeyNameAttr == null || assemKeyNameAttr.KeyName != keyname)
- {
- 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;
- }
- #endregion
-}
+++ /dev/null
-// 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>
-/// AssemblyKeyNameAttribute.KeyName
-/// </summary>
-public class AssemblyKeyNameAttributeKeyName
-{
- private int c_MIN_STR_LENGTH = 8;
- private int c_MAX_STR_LENGTH = 256;
- public static int Main()
- {
- AssemblyKeyNameAttributeKeyName assemKeyNameAttrKeyName = new AssemblyKeyNameAttributeKeyName();
- TestLibrary.TestFramework.BeginTestCase("AssemblyKeyNameAttributeKeyName");
- if (assemKeyNameAttrKeyName.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;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:Return the KeyName info from initialized the AssemblyKeyNameAttribute 1");
- try
- {
- string keyname = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LENGTH, c_MAX_STR_LENGTH);
- AssemblyKeyNameAttribute assemKeyNameAttr = new AssemblyKeyNameAttribute(keyname);
- if (assemKeyNameAttr.KeyName != keyname)
- {
- 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:Return the KeyName info from initialized the AssemblyKeyNameAttribute 2");
- try
- {
- string keyname = null;
- AssemblyKeyNameAttribute assemKeyNameAttr = new AssemblyKeyNameAttribute(keyname);
- if (assemKeyNameAttr.KeyName != null)
- {
- 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:Return the KeyName info from initialized the AssemblyKeyNameAttribute 3");
- try
- {
- string keyname = string.Empty;
- AssemblyKeyNameAttribute assemKeyNameAttr = new AssemblyKeyNameAttribute(keyname);
- if (assemKeyNameAttr.KeyName != "")
- {
- 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;
- }
- #endregion
-}
+++ /dev/null
-<?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="assemblynamegetpublickey.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>
+++ /dev/null
-<?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="assemblynamegetpublickeytoken.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>
+++ /dev/null
-<?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="assemblynamesetpublickey.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>
+++ /dev/null
-<?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="assemblynamesetpublickeytoken.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>
+++ /dev/null
-<?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="assemblynameversion.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>
+++ /dev/null
-// 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.Reflection;
-
-[assembly: SecurityCritical]
-
-/// <summary>
-/// System.Reflection.AssembelyName.GetPublicKey()
-/// </summary>
-public class AssemblyNameGetPublicKey
-{
- #region Main Entry
- static public int Main()
- {
- AssemblyNameGetPublicKey test = new AssemblyNameGetPublicKey();
-
- TestLibrary.TestFramework.BeginTestCase("AssembelyName.GetPublicKey");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
- #endregion
-
- #region utility functions
- string Key2String(byte[] key)
- {
- System.Text.StringBuilder result = new System.Text.StringBuilder(key.Length * 2);
- for (int i = 0; i < key.Length; i++)
- {
- result.AppendFormat("{0:x2}", key[i]);
- }
- return result.ToString();
- }
-
- bool KeyEquals(byte[] k1, byte[] k2)
- {
- if (k1.Length != k2.Length)
- return false;
- for (int i = 0; i < k1.Length; i++)
- {
- if (k1[i] != k2[i])
- return false;
- }
- return true;
- }
- #endregion
-
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- TestLibrary.TestFramework.BeginScenario("PosTest1: get default PublicKey");
- bool retVal = true;
- try
- {
- AssemblyName an = new AssemblyName();
- byte[] key = an.GetPublicKey();
- if (key != null)
- {
- TestLibrary.TestFramework.LogError("001.1", "expect (new AssemblyName()).GetPublicKey() == null");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- TestLibrary.TestFramework.BeginScenario("PosTest2: set then get and verify");
- bool retVal = true;
- try
- {
- byte[] key = new byte[TestLibrary.Generator.GetInt32(-55) % 255];
-
- AssemblyName an = new AssemblyName();
- an.SetPublicKey(key);
-
- if (an.GetPublicKey() != key)
- {
- TestLibrary.TestFramework.LogError("002.1", "expect AssemblyName.GetPublicKey() equals what it's been set");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.2", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-}
+++ /dev/null
-// 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.Reflection;
-
-[assembly: SecurityCritical]
-
-/// <summary>
-/// System.Reflection.AssembelyName.GetPublicKeyToken()
-/// </summary>
-public class AssemblyNameGetPublicKeyToken
-{
- #region Main Entry
- static public int Main()
- {
- AssemblyNameGetPublicKeyToken test = new AssemblyNameGetPublicKeyToken();
-
- TestLibrary.TestFramework.BeginTestCase("AssembelyName.GetPublicKeyToken");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
- #endregion
-
- #region utility functions
- string Key2String(byte[] key)
- {
- System.Text.StringBuilder result = new System.Text.StringBuilder(key.Length * 2);
- for (int i = 0; i < key.Length; i++)
- {
- result.AppendFormat("{0:x2}", key[i]);
- }
- return result.ToString();
- }
-
- bool KeyEquals(byte[] k1, byte[] k2)
- {
- if (k1.Length != k2.Length)
- return false;
- for (int i = 0; i < k1.Length; i++)
- {
- if (k1[i] != k2[i])
- return false;
- }
- return true;
- }
- #endregion
-
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- TestLibrary.TestFramework.BeginScenario("PosTest1: get default PublicKeyToken");
- bool retVal = true;
- try
- {
- AssemblyName an = new AssemblyName();
- byte[] key = an.GetPublicKeyToken();
- if (key != null)
- {
- TestLibrary.TestFramework.LogError("001.1", "expect (new AssemblyName()).GetPublicKeyToken() == null");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- TestLibrary.TestFramework.BeginScenario("PosTest2: set then get and verify");
- bool retVal = true;
- try
- {
- byte[] key = new byte[TestLibrary.Generator.GetInt32(-55) % 255];
-
- AssemblyName an = new AssemblyName();
- an.SetPublicKeyToken(key);
-
- if (an.GetPublicKeyToken() != key)
- {
- TestLibrary.TestFramework.LogError("002.1", "expect AssemblyName.GetPublicKeyToken() equals what it's been set");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.2", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-}
+++ /dev/null
-// 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.Reflection;
-
-[assembly: SecurityCritical]
-
-/// <summary>
-/// System.Reflection.AssembelyName.SetPublicKey(byte[])
-/// </summary>
-public class AssemblyNameSetPublicKey
-{
- #region Main Entry
- static public int Main()
- {
- AssemblyNameSetPublicKey test = new AssemblyNameSetPublicKey();
-
- TestLibrary.TestFramework.BeginTestCase("AssembelyName.SetPublicKey(byte[])");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
- #endregion
-
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- retVal = PosTest3() && retVal;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- TestLibrary.TestFramework.BeginScenario("PosTest1: set then get and verify");
- bool retVal = true;
- try
- {
- byte[] key = new byte[TestLibrary.Generator.GetInt32(-55) % 80 + 20];
-
- AssemblyName an = new AssemblyName();
- an.SetPublicKey(key);
-
- if (an.GetPublicKey() != key)
- {
- TestLibrary.TestFramework.LogError("001.1", "expect AssemblyName.GetPublicKey() equals what it's been set");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- TestLibrary.TestFramework.BeginScenario("PosTest2: set a 0 length key then get and verify");
- bool retVal = true;
- try
- {
- byte[] key = new byte[0];
-
- AssemblyName an = new AssemblyName();
- an.SetPublicKey(key);
-
- if (an.GetPublicKey() != key)
- {
- TestLibrary.TestFramework.LogError("002.1", "expect AssemblyName.GetPublicKey() equals what it's been set");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.2", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest3()
- {
- TestLibrary.TestFramework.BeginScenario("PosTest2: set a null key then get and verify");
- bool retVal = true;
- try
- {
- byte[] key = null;
-
- AssemblyName an = new AssemblyName();
- an.SetPublicKey(key);
-
- if (an.GetPublicKey() != key)
- {
- TestLibrary.TestFramework.LogError("003.1", "expect AssemblyName.GetPublicKey() equals what it's been set");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.2", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
-}
+++ /dev/null
-// 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.Reflection;
-
-[assembly: SecurityCritical]
-
-/// <summary>
-/// AssembelyName.SetPublicKeyToken(byte[])
-/// </summary>
-public class AssemblyNameSetPublicKeyToken
-{
- #region Main Entry
- static public int Main()
- {
- AssemblyNameSetPublicKeyToken test = new AssemblyNameSetPublicKeyToken();
-
- TestLibrary.TestFramework.BeginTestCase("AssembelyName.SetPublicKeyToken");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
- #endregion
-
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- retVal = PosTest3() && retVal;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- TestLibrary.TestFramework.BeginScenario("PosTest1: set then get and verify");
- bool retVal = true;
- try
- {
- byte[] key = new byte[TestLibrary.Generator.GetInt32(-55) % 255];
- TestLibrary.Generator.GetBytes(-55, key);
- AssemblyName an = new AssemblyName();
- an.SetPublicKeyToken(key);
-
- if (an.GetPublicKeyToken() != key)
- {
- TestLibrary.TestFramework.LogError("001.1", "expect AssemblyName.GetPublicKeyToken() equals what it's been set");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- TestLibrary.TestFramework.BeginScenario("PosTest2: set a 0 length key then get and verify");
- bool retVal = true;
- try
- {
- byte[] key = new byte[0];
-
- AssemblyName an = new AssemblyName();
- an.SetPublicKeyToken(key);
-
- if (an.GetPublicKeyToken() != key)
- {
- TestLibrary.TestFramework.LogError("002.1", "expect AssemblyName.GetPublicKeyToken() equals what it's been set");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.2", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest3()
- {
- TestLibrary.TestFramework.BeginScenario("PosTest2: set a null key then get and verify");
- bool retVal = true;
- try
- {
- byte[] key = null;
-
- AssemblyName an = new AssemblyName();
- an.SetPublicKeyToken(key);
-
- if (an.GetPublicKeyToken() != key)
- {
- TestLibrary.TestFramework.LogError("003.1", "expect AssemblyName.GetPublicKeyToken() equals what it's been set");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.2", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-}
+++ /dev/null
-// 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.Reflection;
-
-[assembly: SecurityCritical]
-
-/// <summary>
-/// System.Reflection.AssembelyName.Version
-/// </summary>
-public class AssemblyNameVersion
-{
- #region Main Entry
- static public int Main()
- {
- AssemblyNameVersion test = new AssemblyNameVersion();
-
- TestLibrary.TestFramework.BeginTestCase("AssembelyName.Version");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
- #endregion
-
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- retVal = PosTest3() && retVal;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- TestLibrary.TestFramework.BeginScenario("PosTest1: check version which set in ctor");
- bool retVal = true;
- try
- {
- Version ver = new Version(1,0,0,1);
- AssemblyName an = new AssemblyName("aa, Version="+ver.ToString());
-
- if (!an.Version.Equals(ver))
- {
- TestLibrary.TestFramework.LogError("001.1", "expect Version is " + ver.ToString());
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- TestLibrary.TestFramework.BeginScenario("PosTest2: version in FullName");
- bool retVal = true;
- try
- {
- AssemblyName an = new AssemblyName("aa");
- Version ver = new Version("10.100.1000.10000");
-
- an.Version = ver;
- if (!an.FullName.Contains("Version="+ver.ToString()))
- {
- TestLibrary.TestFramework.LogError("002.1", "expect an.FullName.Contains " + ver.ToString());
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.2", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest3()
- {
- TestLibrary.TestFramework.BeginScenario("PosTest3: version set in ctor then set as null");
- bool retVal = true;
- try
- {
- Version ver = new Version("10.100.1000.10000");
- AssemblyName an = new AssemblyName("aa, Version="+ver.ToString());
-
- if (!an.Version.Equals(ver))
- {
- TestLibrary.TestFramework.LogError("003.1", "expect Version is " + ver.ToString());
- retVal = false;
- }
-
- an.Version = null;
- if (an.Version != null)
- {
- TestLibrary.TestFramework.LogError("003.2", "expect Version is " + ver.ToString());
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.3", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-}
\ No newline at end of file
+++ /dev/null
-<?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="assemblytitleattributector.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>
+++ /dev/null
-<?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="assemblytitleattributetitle.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>
+++ /dev/null
-// 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>
-/// AssemblyTitleAttribute(String)
-/// </summary>
-public class AssemblyTitleAttributeCtor
-{
- private int c_MIN_STR_LENGTH = 8;
- private int c_MAX_STR_LENGTH = 256;
- public static int Main()
- {
- AssemblyTitleAttributeCtor assemTitleAttrCtor = new AssemblyTitleAttributeCtor();
- TestLibrary.TestFramework.BeginTestCase("AssemblyTitleAttributeCtor");
- if (assemTitleAttrCtor.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;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:Initialize the AssemblyTitleAttribute 1");
- try
- {
- string title = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LENGTH, c_MAX_STR_LENGTH);
- AssemblyTitleAttribute assemTitleAttr = new AssemblyTitleAttribute(title);
- if (assemTitleAttr == null || assemTitleAttr.Title != title)
- {
- 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:Initialize the AssemblyTitleAttribute 2");
- try
- {
- string title = null;
- AssemblyTitleAttribute assemTitleAttr = new AssemblyTitleAttribute(title);
- if (assemTitleAttr == null || assemTitleAttr.Title != null)
- {
- 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:Initialize the AssemblyTitleAttribute 3");
- try
- {
- string title = string.Empty;
- AssemblyTitleAttribute assemTitleAttr = new AssemblyTitleAttribute(title);
- if (assemTitleAttr == null || assemTitleAttr.Title != "")
- {
- 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;
- }
- #endregion
-}
+++ /dev/null
-// 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>
-/// AssemblyTitleAttribute.Title
-/// </summary>
-public class AssemblyTitleAttributeTitle
-{
- private int c_MIN_STR_LENGTH = 8;
- private int c_MAX_STR_LENGTH = 256;
- public static int Main()
- {
- AssemblyTitleAttributeTitle assemTitleAttrTitle = new AssemblyTitleAttributeTitle();
- TestLibrary.TestFramework.BeginTestCase("AssemblyTitleAttributeTitle");
- if (assemTitleAttrTitle.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;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:Return the Title info from initialized AssemblyTitleAttribute 1");
- try
- {
- string title = TestLibrary.Generator.GetString(-55, false, c_MIN_STR_LENGTH, c_MAX_STR_LENGTH);
- AssemblyTitleAttribute assemTitleAttr = new AssemblyTitleAttribute(title);
- if (assemTitleAttr.Title != title)
- {
- 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:Return the Title info from initialized AssemblyTitleAttribute 2");
- try
- {
- string title = null;
- AssemblyTitleAttribute assemTitleAttr = new AssemblyTitleAttribute(title);
- if (assemTitleAttr.Title != null)
- {
- 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:Return the Title info from initialized AssemblyTitleAttribute 3");
- try
- {
- string title = string.Empty;
- AssemblyTitleAttribute assemTitleAttr = new AssemblyTitleAttribute(title);
- if (assemTitleAttr.Title != "")
- {
- 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;
- }
- #endregion
-}
+++ /dev/null
-<?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="constructorinfoconstructorname.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>
+++ /dev/null
-<?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="constructorinfotypeconstructorname.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>
+++ /dev/null
-// 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>
-/// ConstructorName
-/// </summary>
-public class ConstructorInfoConstructorName
-{
- #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: Ensure ConstructorInfo.ContructorName is correct");
-
- try
- {
- if (ConstructorInfo.ConstructorName != ".ctor")
- {
- TestLibrary.TestFramework.LogError("001.1", "ConstructorName is not correct");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- ConstructorInfoConstructorName test = new ConstructorInfoConstructorName();
-
- TestLibrary.TestFramework.BeginTestCase("ConstructorInfoConstructorName");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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>
-/// TypeConstructorName
-/// </summary>
-
-public class ConstructorInfoTypeConstructorName
-{
- #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: Ensure ConstructorInfo.TypeContructorName is correct");
-
- try
- {
- if (ConstructorInfo.TypeConstructorName != ".cctor")
- {
- TestLibrary.TestFramework.LogError("001.1", "TypeConstructorName is not correct");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- ConstructorInfoTypeConstructorName test = new ConstructorInfoTypeConstructorName();
-
- TestLibrary.TestFramework.BeginTestCase("ConstructorInfoTypeConstructorName");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-<?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="defaultmemberattributector.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>
+++ /dev/null
-<?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="defaultmemberattributemembername.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>
+++ /dev/null
-// 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>
-/// DefaultMemberAttribute.Ctor(System.String)
-/// </summary>
-public class DefaultMemberAttributeCtor
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- public static int Main()
- {
- DefaultMemberAttributeCtor dmaCtor = new DefaultMemberAttributeCtor();
- TestLibrary.TestFramework.BeginTestCase("Testing for Method: System.Reflection.DefaultMemberAttribute.Ctor(System.String)...");
-
- if (dmaCtor.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;
- }
-
- #region PositiveTesting
- public bool PosTest1()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest1: Verify the memberName is random string... ";
- const string c_TEST_ID = "P001";
-
- string memberName = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- DefaultMemberAttribute dma = new DefaultMemberAttribute(memberName);
- if (dma == null)
- {
- string errorDesc = "the DefaultMemberAttribute ctor error occurred.)";
- errorDesc += "\n parameter is " + memberName;
- TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "unexpected exception occurs :" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest2: the parameter is empty ... ";
- const string c_TEST_ID = "P002";
-
- string memberName = "";
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- DefaultMemberAttribute dma = new DefaultMemberAttribute(memberName);
- if (dma == null)
- {
- string errorDesc = "the DefaultMemberAttribute ctor error occurred.)";
- errorDesc += "\n parameter is empty";
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "unexpected exception occurs :" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest3: the parameter is a null reference ... ";
- const string c_TEST_ID = "P003";
-
- string memberName = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- DefaultMemberAttribute dma = new DefaultMemberAttribute(memberName);
- if (dma == null)
- {
- string errorDesc = "the DefaultMemberAttribute ctor error occurred.)";
- errorDesc += "\n parameter is a null reference";
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "unexpected exception occurs :" + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-// 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>
-/// System.Reflection.DefaultMemberAttribute.MemberName
-/// </summary>
-public class DefaultMemberAttributeMemberName
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- public static int Main()
- {
- DefaultMemberAttributeMemberName dmaMemberName = new DefaultMemberAttributeMemberName();
- TestLibrary.TestFramework.BeginTestCase("Testing for Method: DefaultMemberAttribute.Ctor()...");
-
- if (dmaMemberName.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;
- }
-
- #region PositiveTesting
- public bool PosTest1()
- {
- bool retVal = true;
- string c_TEST_DESC = "PosTest1: Verfify property MemberName is random string ... ";
- string c_TEST_ID = "P001";
- string memberName = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
-
- DefaultMemberAttribute dma = new DefaultMemberAttribute(memberName);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- if (dma.MemberName != memberName)
- {
- string errorDesc = "value is not " + memberName + " as expected: Actual is " + dma.MemberName;
- TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "unexpected exception occurs :" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- string c_TEST_DESC = "PosTest2: Verfify the MemberName is empty ... ";
- string c_TEST_ID = "P002";
- string memberName = "";
-
- DefaultMemberAttribute dma = new DefaultMemberAttribute(memberName);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- if (dma.MemberName != memberName)
- {
- string errorDesc = "value is not " + memberName + " as expected: Actual is empty";
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs :" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- string c_TEST_DESC = "PosTest3: Verfify the MemberName is a null reference ... ";
- string c_TEST_ID = "P003";
- string memberName = null;
-
- DefaultMemberAttribute dma = new DefaultMemberAttribute(memberName);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- if (dma.MemberName != memberName)
- {
- string errorDesc = "value is not " + memberName + " as expected: Actual is null";
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexcpected exception occurs :" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-}
+++ /dev/null
-<?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="targetinvocationexceptionctor1.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>
+++ /dev/null
-<?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="targetinvocationexceptionctor2.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>
+++ /dev/null
-// 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>
-/// TargetInvocationException constructor() [v-yaduoj]
-/// </summary>
-public class TargetInvocationExceptionCtor
-{
- public static int Main()
- {
- TargetInvocationExceptionCtor testObj = new TargetInvocationExceptionCtor();
-
- TestLibrary.TestFramework.BeginTestCase("for TargetInvocationException()");
- 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 TargetInvocationException via default constructor";
- string errorDesc;
-
- Exception innerException = new ArgumentNullException();
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- TargetInvocationException ex = new TargetInvocationException(innerException);
- if (null == ex)
- {
- errorDesc = "Failed to initialize an instance of type TargetInvocationException via default constructor.";
- errorDesc += "\nInner exception is " + innerException;
- TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += "\nInner exception is " + innerException;
- TestLibrary.TestFramework.LogError("002" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-}
+++ /dev/null
-// 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>
-/// TargetInvocationException constructor(string, Exception) [v-yaduoj]
-/// </summary>
-public class TargetInvocationExceptionCtor
-{
- public static int Main()
- {
- TargetInvocationExceptionCtor testObj = new TargetInvocationExceptionCtor();
-
- TestLibrary.TestFramework.BeginTestCase("for TargetInvocationException(string, Exception)");
- 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 tests
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P001";
- string c_TEST_DESC = "PosTest1: initialize an instance of type TargetInvocationException using an emtpy string message";
- string errorDesc;
-
- string message = string.Empty;
- Exception innerException = new ArgumentNullException();
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- TargetInvocationException e = new TargetInvocationException(message, innerException);
- if (null == e || e.Message != message || e.InnerException != innerException)
- {
- errorDesc = "Failed to initialize an instance of type TargetInvocationException.";
- errorDesc += "\nInput message is emtpy string";
- errorDesc += "\nInner exception is " + innerException;
- TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += "\nInput message is emtpy string";
- errorDesc += "\nInner exception is " + innerException;
- TestLibrary.TestFramework.LogError("002" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P002";
- string c_TEST_DESC = "PosTest2: initialize an instance of type TargetInvocationException using a string containing special character";
- string errorDesc;
-
- string message = "Not supported exception occurs here \n\r\0\t\v";
- Exception innerException = new Exception();
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- TargetInvocationException e = new TargetInvocationException(message, innerException);
- if (null == e || e.Message != message || e.InnerException != innerException)
- {
- errorDesc = "Failed to initialize an instance of type TargetInvocationException.";
- errorDesc += "\nInput message is \"" + message + "\"";
- errorDesc += "\nInner exception is " + innerException;
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += "\nInput message is \"" + message + "\"";
- errorDesc += "\nInner exception is " + innerException;
- TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P003";
- string c_TEST_DESC = "PosTest3: initialize an instance of type TargetInvocationException using a null reference";
- string errorDesc;
-
- string message = null;
- Exception innerException = new Exception();
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- TargetInvocationException e = new TargetInvocationException(message, innerException);
- if (null == e)
- {
- errorDesc = "Failed to initialize an instance of type TargetInvocationException.";
- errorDesc += "\nInput message is a null reference.";
- errorDesc += "\nInner exception is " + innerException;
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += "\nInput message is a null reference.";
- errorDesc += "\nInner exception is " + innerException;
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P004";
- string c_TEST_DESC = "PosTest4: message is a string containing special character and inner exception is a null reference";
- string errorDesc;
-
- string message = "Not supported exception occurs here";
- Exception innerException = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- TargetInvocationException e = new TargetInvocationException(message, innerException);
- if (null == e || e.Message != message || e.InnerException != innerException)
- {
- errorDesc = "Failed to initialize an instance of type TargetInvocationException.";
- errorDesc += "\nInput message is \"" + message + "\"";
- errorDesc += "\nInner exception is a null reference.";
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += "\nInput message is \"" + message + "\"";
- errorDesc += "\nInner exception is a null reference.";
- TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-<?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="targetparametercountexceptionctor1.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>
+++ /dev/null
-<?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="targetparametercountexceptionctor2.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>
+++ /dev/null
-<?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="targetparametercountexceptionctor3.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>
+++ /dev/null
-// 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>
-/// TargetParameterCountException constructor() [v-yaduoj]
-/// </summary>
-public class TargetParameterCountExceptionCtor
-{
- public static int Main()
- {
- TargetParameterCountExceptionCtor testObj = new TargetParameterCountExceptionCtor();
-
- TestLibrary.TestFramework.BeginTestCase("for TargetParameterCountException()");
- 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 TargetParameterCountException via default constructor";
- string errorDesc;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- TargetParameterCountException e = new TargetParameterCountException();
- if (null == e)
- {
- errorDesc = "Failed to initialize an instance of type TargetParameterCountException 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
-}
+++ /dev/null
-// 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>
-/// TargetParameterCountException constructor(string) [v-yaduoj]
-/// </summary>
-public class TargetParameterCountExceptionCtor
-{
- public static int Main()
- {
- TargetParameterCountExceptionCtor testObj = new TargetParameterCountExceptionCtor();
-
- TestLibrary.TestFramework.BeginTestCase("for TargetParameterCountException(string)");
- 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;
-
- 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 TargetParameterCountException using an emtpy string message";
- string errorDesc;
-
- string message = string.Empty;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- TargetParameterCountException e = new TargetParameterCountException(message);
- if (null == e || e.Message != message)
- {
- errorDesc = "Failed to initialize an instance of type TargetParameterCountException.";
- errorDesc += "\nInput message is emtpy string";
- TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += "\nInput message is emtpy string";
- TestLibrary.TestFramework.LogError("002" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P002";
- string c_TEST_DESC = "PosTest2: initialize an instance of type TargetParameterCountException using a string containing special character";
- string errorDesc;
-
- string message = "Not supported exception occurs here \n\r\0\t\v";
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- TargetParameterCountException e = new TargetParameterCountException(message);
- if (null == e || e.Message != message)
- {
- errorDesc = "Failed to initialize an instance of type TargetParameterCountException.";
- errorDesc += "\nInput message is \"" + message + "\"";
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += "\nInput message is \"" + message + "\"";
- TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P003";
- string c_TEST_DESC = "PosTest3: initialize an instance of type TargetParameterCountException using a null reference";
- string errorDesc;
-
- string message = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- TargetParameterCountException e = new TargetParameterCountException(message);
- if (null == e)
- {
- errorDesc = "Failed to initialize an instance of type TargetParameterCountException.";
- errorDesc += "\nInput message is a null reference.";
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += "\nInput message is a null reference.";
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-// 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>
-/// TargetParameterCountException constructor(string, Exception) [v-yaduoj]
-/// </summary>
-public class TargetParameterCountExceptionCtor
-{
- public static int Main()
- {
- TargetParameterCountExceptionCtor testObj = new TargetParameterCountExceptionCtor();
-
- TestLibrary.TestFramework.BeginTestCase("for TargetParameterCountException(string, Exception)");
- 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 tests
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P001";
- string c_TEST_DESC = "PosTest1: initialize an instance of type TargetParameterCountException using an emtpy string message";
- string errorDesc;
-
- string message = string.Empty;
- Exception innerException = new ArgumentNullException();
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- TargetParameterCountException e = new TargetParameterCountException(message, innerException);
- if (null == e || e.Message != message || e.InnerException != innerException)
- {
- errorDesc = "Failed to initialize an instance of type TargetParameterCountException.";
- errorDesc += "\nInput message is emtpy string";
- errorDesc += "\nInner exception is " + innerException;
- TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += "\nInput message is emtpy string";
- errorDesc += "\nInner exception is " + innerException;
- TestLibrary.TestFramework.LogError("002" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P002";
- string c_TEST_DESC = "PosTest2: initialize an instance of type TargetParameterCountException using a string containing special character";
- string errorDesc;
-
- string message = "Not supported exception occurs here \n\r\0\t\v";
- Exception innerException = new Exception();
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- TargetParameterCountException e = new TargetParameterCountException(message, innerException);
- if (null == e || e.Message != message || e.InnerException != innerException)
- {
- errorDesc = "Failed to initialize an instance of type TargetParameterCountException.";
- errorDesc += "\nInput message is \"" + message + "\"";
- errorDesc += "\nInner exception is " + innerException;
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += "\nInput message is \"" + message + "\"";
- errorDesc += "\nInner exception is " + innerException;
- TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P003";
- string c_TEST_DESC = "PosTest3: initialize an instance of type TargetParameterCountException using a null reference";
- string errorDesc;
-
- string message = null;
- Exception innerException = new Exception();
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- TargetParameterCountException e = new TargetParameterCountException(message, innerException);
- if (null == e)
- {
- errorDesc = "Failed to initialize an instance of type TargetParameterCountException.";
- errorDesc += "\nInput message is a null reference.";
- errorDesc += "\nInner exception is " + innerException;
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += "\nInput message is a null reference.";
- errorDesc += "\nInner exception is " + innerException;
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P004";
- string c_TEST_DESC = "PosTest4: message is a string containing special character and inner exception is a null reference";
- string errorDesc;
-
- string message = "Not supported exception occurs here";
- Exception innerException = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- TargetParameterCountException e = new TargetParameterCountException(message, innerException);
- if (null == e || e.Message != message || e.InnerException != innerException)
- {
- errorDesc = "Failed to initialize an instance of type TargetParameterCountException.";
- errorDesc += "\nInput message is \"" + message + "\"";
- errorDesc += "\nInner exception is a null reference.";
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += "\nInput message is \"" + message + "\"";
- errorDesc += "\nInner exception is a null reference.";
- TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-<?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="atpactor.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>
+++ /dev/null
-<?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="atpapropertyname.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>
+++ /dev/null
-// 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;
-
-/// <summary>
-/// System.Runtime.CompilerServices.AccessedThroughPropertyAttribute.Ctor()
-/// </summary>
-public class AccessedThroughPropertyAttributeCtor
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- public static int Main()
- {
- AccessedThroughPropertyAttributeCtor atpaCtor = new AccessedThroughPropertyAttributeCtor();
- TestLibrary.TestFramework.BeginTestCase("Testing for Method: System.Runtime.CompilerServices.AccessedThroughPropertyAttribute.Ctor()...");
-
- if (atpaCtor.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;
- }
-
- #region PositiveTesting
- public bool PosTest1()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest1: Create a new AccessedThroughPropertyAttribute instance ... ";
- const string c_TEST_ID = "P001";
-
- string c_PROPERTYNAME = TestLibrary.Generator.GetString(-55, false,c_MIN_STRING_LEN,c_MAX_STRING_LEN);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- System.Runtime.CompilerServices.AccessedThroughPropertyAttribute atpa = new System.Runtime.CompilerServices.AccessedThroughPropertyAttribute(c_PROPERTYNAME);
- if (atpa == null)
- {
- string errorDesc = "the AccessedThroughPropertyAttribute ctor error occurred.)";
- errorDesc += "\n parameter is " + c_PROPERTYNAME;
- TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "unexpected exception occurs :" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest2: the parameter is empty ... ";
- const string c_TEST_ID = "P002";
-
- string c_PROPERTYNAME = "";
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- System.Runtime.CompilerServices.AccessedThroughPropertyAttribute atpa = new System.Runtime.CompilerServices.AccessedThroughPropertyAttribute(c_PROPERTYNAME);
- if (atpa == null)
- {
- string errorDesc = "the AccessedThroughPropertyAttribute ctor error occurred.)";
- errorDesc += "\n parameter is empty";
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "unexpected exception occurs :" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest3: the parameter is a null reference ... ";
- const string c_TEST_ID = "P003";
-
- string c_PROPERTYNAME = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- System.Runtime.CompilerServices.AccessedThroughPropertyAttribute atpa = new System.Runtime.CompilerServices.AccessedThroughPropertyAttribute(c_PROPERTYNAME);
- if (atpa == null)
- {
- string errorDesc = "the AccessedThroughPropertyAttribute ctor error occurred.)";
- errorDesc += "\n parameter is a null reference";
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "unexpected exception occurs :" + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// System.Runtime.CompilerServices.AccessedThroughPropertyAttribute.PropertyName
-/// </summary>
-public class AccessedThroughPropertyAttributePropertyName
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- public static int Main()
- {
- AccessedThroughPropertyAttributePropertyName atpaPropertyName = new AccessedThroughPropertyAttributePropertyName();
- TestLibrary.TestFramework.BeginTestCase("Testing for Method: System.Runtime.CompilerServices.AccessedThroughPropertyAttribute.Ctor()...");
-
- if (atpaPropertyName.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;
- }
-
- #region PositiveTesting
- public bool PosTest1()
- {
- bool retVal = true;
- string c_TEST_DESC = "PosTest1: Verfify property PropertyName ... ";
- string c_TEST_ID = "P001";
- string c_PROPERTYNAME = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
-
- System.Runtime.CompilerServices.AccessedThroughPropertyAttribute atpa = new System.Runtime.CompilerServices.AccessedThroughPropertyAttribute(c_PROPERTYNAME);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- if (atpa.PropertyName != c_PROPERTYNAME)
- {
- string errorDesc = "value is not " + c_PROPERTYNAME + " as expected: Actual is " + atpa.PropertyName;
- TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "unexpected exception occurs :" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- string c_TEST_DESC = "PosTest2: Verfify the PropertyName is empty ... ";
- string c_TEST_ID = "P002";
- string c_PROPERTYNAME = "";
-
- System.Runtime.CompilerServices.AccessedThroughPropertyAttribute atpa = new System.Runtime.CompilerServices.AccessedThroughPropertyAttribute(c_PROPERTYNAME);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- if (atpa.PropertyName != c_PROPERTYNAME)
- {
- string errorDesc = "value is not " + c_PROPERTYNAME + " as expected: Actual is empty";
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs :" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- string c_TEST_DESC = "PosTest3: Verfify the PropertyName is a null reference ... ";
- string c_TEST_ID = "P003";
- string c_PROPERTYNAME = null;
-
- System.Runtime.CompilerServices.AccessedThroughPropertyAttribute atpa = new System.Runtime.CompilerServices.AccessedThroughPropertyAttribute(c_PROPERTYNAME);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- if (atpa.PropertyName != c_PROPERTYNAME)
- {
- string errorDesc = "value is not " + c_PROPERTYNAME + " as expected: Actual is null";
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexcpected exception occurs :" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-}
+++ /dev/null
-<?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="compilationrelaxationsattributector1.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>
+++ /dev/null
-// 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.CompilerServices;
-
-///<summary>
-///System.Runtime.CompilerServices.CompilationRelaxationsAttribute.Ctor(int) [v-zuolan]
-///</summary>
-
-public class CompilationRelaxationsAttributeCtor
-{
-
- public static int Main()
- {
- CompilationRelaxationsAttributeCtor testObj = new CompilationRelaxationsAttributeCtor();
- TestLibrary.TestFramework.BeginTestCase("for constructor of System.Runtime.CompilerServices.CompilationRelaxationsAttribute");
- 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;
-
- return retVal;
- }
-
-
- #region Test Logic
- public bool PosTest1()
- {
- bool retVal = true;
-
- int expectedValue = TestLibrary.Generator.GetInt32(-55);
- int actualValue;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1:Create a instance with random parameter.");
- try
- {
- CompilationRelaxationsAttribute cRA = new CompilationRelaxationsAttribute(expectedValue);
- actualValue = cRA.CompilationRelaxations;
-
- if (expectedValue != actualValue)
- {
- TestLibrary.TestFramework.LogError("001", "ExpectedValue(" + expectedValue + ") !=ActualValue(" + actualValue + ")");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e + "when expectedValue is:" + expectedValue);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- int expectedValue = int.MaxValue;
- int actualValue;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2:Create a instance with MaxValue.");
- try
- {
- CompilationRelaxationsAttribute cRA = new CompilationRelaxationsAttribute(expectedValue);
- actualValue = cRA.CompilationRelaxations;
-
- 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;
- }
-
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- int expectedValue = int.MinValue;
- int actualValue;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3:Create a instance with MinValue.");
- try
- {
- CompilationRelaxationsAttribute cRA = new CompilationRelaxationsAttribute(expectedValue);
- actualValue = cRA.CompilationRelaxations;
-
- if (expectedValue != actualValue)
- {
- TestLibrary.TestFramework.LogError("005", "ExpectedValue(" + expectedValue + ") !=ActualValue(" + actualValue + ")");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- #endregion
-}
+++ /dev/null
-<?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="compilergeneratedattributector.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>
+++ /dev/null
-// 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;
-
-/// <summary>
-/// System.Runtime.CompilerServices.CompilerGeneratedAttribute.Ctor()
-/// </summary>
-public class CompilerGeneratedAttributeCtor
-{
-
- public static int Main()
- {
- CompilerGeneratedAttributeCtor cgaCtor = new CompilerGeneratedAttributeCtor();
- TestLibrary.TestFramework.BeginTestCase("Testing for Method: System.Runtime.CompilerServices.CompilerGeneratedAttribute.Ctor()...");
-
- if (cgaCtor.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 PositiveTesting
- public bool PosTest1()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest1: Create a new CompilerGeneratedAttribute instance ... ";
- const string c_TEST_ID = "P001";
-
-
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- System.Runtime.CompilerServices.CompilerGeneratedAttribute cga = new System.Runtime.CompilerServices.CompilerGeneratedAttribute();
- if (cga == null)
- {
- string errorDesc = "the CompilerGeneratedAttribute ctor error occurred.)";
- TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexcpected exception occurs :" + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-<?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="customconstantattributector.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>
+++ /dev/null
-// 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.CompilerServices;
-
-/// <summary>
-/// CustomConstantAttribute.Ctor()
-/// </summary>
-public class CustomConstantAttributector
-{
- #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: Using a derived class to call the protected Ctor method of base class");
-
- try
- {
- TestClass testClass = new TestClass();
- if (testClass == null)
- {
- TestLibrary.TestFramework.LogError("001", "The Constructor did not create a new instance as expected");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #region Nagetive Test Cases
- #endregion
- #endregion
-
- public static int Main()
- {
- CustomConstantAttributector test = new CustomConstantAttributector();
-
- TestLibrary.TestFramework.BeginTestCase("CustomConstantAttributector");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
-public class TestClass : CustomConstantAttribute
-{
- public TestClass()
- : base()
- {
- }
- public override object Value
- {
- get { throw new System.Exception("The method or operation is not implemented."); }
- }
-}
+++ /dev/null
-<?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="indexernameattributector.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>
+++ /dev/null
-// 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;
-
-/// <summary>
-/// System.Runtime.CompilerServices.IndexerNameAttribute.Ctor()
-/// </summary>
-public class IndexerNameAttributeCtor
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- public static int Main()
- {
- IndexerNameAttributeCtor atpaCtor = new IndexerNameAttributeCtor();
- TestLibrary.TestFramework.BeginTestCase("Testing for Method: System.Runtime.CompilerServices.IndexerNameAttribute.Ctor()...");
-
- if (atpaCtor.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;
- }
-
- #region PositiveTesting
- public bool PosTest1()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest1: Create a new IndexerNameAttribute instance ... ";
- const string c_TEST_ID = "P001";
-
- string c_PROPERTYNAME = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- System.Runtime.CompilerServices.IndexerNameAttribute atpa = new System.Runtime.CompilerServices.IndexerNameAttribute(c_PROPERTYNAME);
- if (atpa == null)
- {
- string errorDesc = "the IndexerNameAttribute ctor error occurred.)";
- errorDesc += "\n parameter is " + c_PROPERTYNAME;
- TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "unexpected exception occurs :" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest2: the parameter is empty ... ";
- const string c_TEST_ID = "P002";
-
- string c_PROPERTYNAME = "";
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- System.Runtime.CompilerServices.IndexerNameAttribute atpa = new System.Runtime.CompilerServices.IndexerNameAttribute(c_PROPERTYNAME);
- if (atpa == null)
- {
- string errorDesc = "the IndexerNameAttribute ctor error occurred.)";
- errorDesc += "\n parameter is empty";
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "unexpected exception occurs :" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- const string c_TEST_DESC = "PosTest3: the parameter is a null reference ... ";
- const string c_TEST_ID = "P003";
-
- string c_PROPERTYNAME = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- System.Runtime.CompilerServices.IndexerNameAttribute atpa = new System.Runtime.CompilerServices.IndexerNameAttribute(c_PROPERTYNAME);
- if (atpa == null)
- {
- string errorDesc = "the IndexerNameAttribute ctor error occurred.)";
- errorDesc += "\n parameter is a null reference";
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "unexpected exception occurs :" + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-<?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="internalsvisibletoattributeassemblyname.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>
+++ /dev/null
-<?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="internalsvisibletoattributector.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>
+++ /dev/null
-// 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.CompilerServices;
-
-/// <summary>
-/// InternalsVisibleToAttribute.AssemblyName [v-yaduoj]
-/// </summary>
-public class InternalsVisibleToAttributeAssemblyName
-{
- public static int Main()
- {
- InternalsVisibleToAttributeAssemblyName testObj = new InternalsVisibleToAttributeAssemblyName();
-
- TestLibrary.TestFramework.BeginTestCase("for property: InternalsVisibleToAttribute.AssemblyName");
- 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 tests
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P001";
- string c_TEST_DESC = "PosTest1: Get a normal friend assembly name.";
- string errorDesc;
-
- string assemblyName;
- string actualFriendAssemblyName;
- assemblyName = "myTestCase.dll";
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- InternalsVisibleToAttribute internalIsVisibleTo = new InternalsVisibleToAttribute(assemblyName);
- actualFriendAssemblyName = internalIsVisibleTo.AssemblyName;
- if (actualFriendAssemblyName != assemblyName)
- {
- errorDesc = "The friend assembly name is not the value \"" + assemblyName +
- "\" as expected, Actually\"" + actualFriendAssemblyName + "\"";
- 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;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P002";
- string c_TEST_DESC = "PosTest2: Get a friend assembly name that is an emtpy string.";
- string errorDesc;
-
- string assemblyName;
- string actualFriendAssemblyName;
- assemblyName = string.Empty;
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- InternalsVisibleToAttribute internalIsVisibleTo = new InternalsVisibleToAttribute(assemblyName);
- actualFriendAssemblyName = internalIsVisibleTo.AssemblyName;
- if (actualFriendAssemblyName != assemblyName)
- {
- errorDesc = "The friend assembly name is not an empty string as expected, Actually\"" +
- actualFriendAssemblyName + "\"";
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P003";
- string c_TEST_DESC = "PosTest3: Get a friend assembly name that is a null reference.";
- string errorDesc;
-
- string assemblyName;
- string actualFriendAssemblyName;
- assemblyName = null;
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- InternalsVisibleToAttribute internalIsVisibleTo = new InternalsVisibleToAttribute(assemblyName);
- actualFriendAssemblyName = internalIsVisibleTo.AssemblyName;
- if (actualFriendAssemblyName != assemblyName)
- {
- errorDesc = "The friend assembly name is not a null reference as expected, Actually\"" +
- actualFriendAssemblyName + "\"";
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P004";
- string c_TEST_DESC = "PosTest4: Get a friend assembly name containing special characters.";
- string errorDesc;
-
- string assemblyName;
- string actualFriendAssemblyName;
- assemblyName = "::B:" + System.IO.Path.DirectorySeparatorChar + "\n\v\r\t\0myTestCase.dll";
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- InternalsVisibleToAttribute internalIsVisibleTo = new InternalsVisibleToAttribute(assemblyName);
- actualFriendAssemblyName = internalIsVisibleTo.AssemblyName;
- if (actualFriendAssemblyName != assemblyName)
- {
- errorDesc = "The friend assembly name is not the value \"" + assemblyName +
- "\" as expected, Actually\"" + actualFriendAssemblyName + "\"";
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-// 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.CompilerServices;
-
-/// <summary>
-/// InternalsVisibleToAttribute.Ctor(System.String)
-/// </summary>
-public class InternalsVisibleToAttributeCtor
-{
- private const string c_ASSEMBLY_NAME = "AssemblyName";
-
- #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 the constructor directly");
-
- try
- {
- InternalsVisibleToAttribute internalsVisibleToAttribute = new InternalsVisibleToAttribute(c_ASSEMBLY_NAME);
- if (internalsVisibleToAttribute == null)
- {
- TestLibrary.TestFramework.LogError("001", "The Constructor did not create a new instance as expected");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #region Nagetive Test Cases
- #endregion
- #endregion
-
- public static int Main()
- {
- InternalsVisibleToAttributeCtor test = new InternalsVisibleToAttributeCtor();
-
- TestLibrary.TestFramework.BeginTestCase("InternalsVisibleToAttributeCtor");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-<?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="methodimploptionsnoinlining.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>
+++ /dev/null
-<?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="methodimploptionspreservesig.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>
+++ /dev/null
-// 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.CompilerServices;
-
-/// <summary>
-/// MethodImplOptions.NoInlining(v-yaduoj)
-/// </summary>
-public class MethodImplOptionsTest
-{
- private enum MyMethodImplOptions
- {
- Unmanaged = System.Reflection.MethodImplAttributes.NoInlining,
- ForwardRef = System.Reflection.MethodImplAttributes.NoInlining,
- PreserveSig = System.Reflection.MethodImplAttributes.NoInlining,
- InternalCall = System.Reflection.MethodImplAttributes.InternalCall,
- Synchronized = System.Reflection.MethodImplAttributes.Synchronized,
- NoInlining = System.Reflection.MethodImplAttributes.NoInlining,
- }
-
- public static int Main()
- {
- MethodImplOptionsTest testObj = new MethodImplOptionsTest();
-
- TestLibrary.TestFramework.BeginTestCase("for Enumeration: MethodImplOptions.NoInlining");
- 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";
- const string c_TEST_DESC = "PosTest1: method implementation options is NoInlining";
- string errorDesc;
-
- int expectedValue;
- int actualValue;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- expectedValue = (int)MyMethodImplOptions.NoInlining;
- actualValue = (int)MethodImplOptions.NoInlining;
- if (actualValue != expectedValue)
- {
- errorDesc = "NoInlining value of MethodImplOptions is not the value " + expectedValue +
- "as expected: actual(" + actualValue + ")";
- 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
-}
+++ /dev/null
-// 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.CompilerServices;
-
-/// <summary>
-/// MethodImplOptions.PreserveSig(v-yaduoj)
-/// </summary>
-public class MethodImplOptionsTest
-{
- private enum MyMethodImplOptions
- {
- Unmanaged = System.Reflection.MethodImplAttributes.PreserveSig,
- ForwardRef = System.Reflection.MethodImplAttributes.PreserveSig,
- PreserveSig = System.Reflection.MethodImplAttributes.PreserveSig,
- InternalCall = System.Reflection.MethodImplAttributes.InternalCall,
- Synchronized = System.Reflection.MethodImplAttributes.Synchronized,
- NoInlining = System.Reflection.MethodImplAttributes.NoInlining,
- }
-
- public static int Main()
- {
- MethodImplOptionsTest testObj = new MethodImplOptionsTest();
-
- TestLibrary.TestFramework.BeginTestCase("for Enumeration: MethodImplOptions.PreserveSig");
- 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";
- const string c_TEST_DESC = "PosTest1: method implementation options is PreserveSig";
- string errorDesc;
-
- int expectedValue;
- int actualValue;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- expectedValue = (int)MyMethodImplOptions.PreserveSig;
- actualValue = (int)MethodImplOptions.PreserveSig;
- if (actualValue != expectedValue)
- {
- errorDesc = "PreserveSig value of MethodImplOptions is not the value " + expectedValue +
- "as expected: actual(" + actualValue + ")";
- 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
-}
+++ /dev/null
-<?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="runtimecompatibilityattributewrapnonexceptionthrows.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>
+++ /dev/null
-<?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="runtimecompatibilityattributector.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>
+++ /dev/null
-// 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.CompilerServices;
-
-/// <summary>
-/// RuntimeCompatibilityAttribute constructor() [v-yaduoj]
-/// </summary>
-public class RuntimeCompatibilityAttributeCtor
-{
- public static int Main()
- {
- RuntimeCompatibilityAttributeCtor testObj = new RuntimeCompatibilityAttributeCtor();
-
- TestLibrary.TestFramework.BeginTestCase("for RuntimeCompatibilityAttribute()");
- 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 RuntimeCompatibilityAttribute via default constructor";
- string errorDesc;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- RuntimeCompatibilityAttribute runtimeCompaibilityAtt = new RuntimeCompatibilityAttribute();
- if (null == runtimeCompaibilityAtt)
- {
- errorDesc = "Failed to initialize an instance of type RuntimeCompatibilityAttribute 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
-}
+++ /dev/null
-// 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.CompilerServices;
-
-/// <summary>
-/// RuntimeCompatibilityAttribute.WrapNonExceptionThrows [v-yaduoj]
-/// </summary>
-public class RuntimeCompatibilityAttributeWrapNonExceptionThrows
-{
- public static int Main()
- {
- RuntimeCompatibilityAttributeWrapNonExceptionThrows testObj = new RuntimeCompatibilityAttributeWrapNonExceptionThrows();
-
- TestLibrary.TestFramework.BeginTestCase("for RuntimeCompatibilityAttribute.WrapNonExceptionThrows");
- 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 Positive tests
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P001";
- string c_TEST_DESC = "PosTest1: Verify get accessor of property RuntimeCompatibilityAttribute.WrapNonExceptionThrows";
- string errorDesc;
-
- bool expectedValue, actualValue;
- expectedValue = false;
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- RuntimeCompatibilityAttribute runtimeCompaibilityAtt = new RuntimeCompatibilityAttribute();
- actualValue = runtimeCompaibilityAtt.WrapNonExceptionThrows;
- if (actualValue != expectedValue)
- {
- errorDesc = "The value of property RuntimeCompatibilityAttribute.WrapNonExceptionThrows " +
- "is not the value " + expectedValue + " as expected, actually(" + actualValue +
- ")";
- 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;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P002";
- string c_TEST_DESC = "PosTest2: Verify set accessor of property RuntimeCompatibilityAttribute.WrapNonExceptionThrows";
- string errorDesc;
-
- bool expectedValue, actualValue;
- expectedValue = (TestLibrary.Generator.GetInt32(-55) & 1) == 0;
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- RuntimeCompatibilityAttribute runtimeCompaibilityAtt = new RuntimeCompatibilityAttribute();
- runtimeCompaibilityAtt.WrapNonExceptionThrows = expectedValue;
- actualValue = runtimeCompaibilityAtt.WrapNonExceptionThrows;
- if (actualValue != expectedValue)
- {
- errorDesc = "The value of property RuntimeCompatibilityAttribute.WrapNonExceptionThrows " +
- "is not the value " + expectedValue + " as expected, actually(" + actualValue +
- ")";
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-<?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="decimalconstantattributector.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>
+++ /dev/null
-<?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="decimalconstantattributevalue.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>
+++ /dev/null
-// 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.CompilerServices;
-
-/// <summary>
-/// ctor(System.Byte,System.Byte,System.UInt32,System.UInt32,System.UInt32)
-/// </summary>
-public class DecimalConstantAttributeCtor
-{
-
-
- public static int Main(string[] args)
- {
- DecimalConstantAttributeCtor DecimalConstantAttributeCtor = new DecimalConstantAttributeCtor();
- TestLibrary.TestFramework.BeginTestCase("DecimalConstantAttributeCtor");
-
- if (DecimalConstantAttributeCtor.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("[Negative]");
- retVal = NegTest1() && retVal;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: Create a new DecimalConstantAttribute instance.");
-
- try
- {
- DecimalConstantAttribute myDAttribute = new DecimalConstantAttribute(0, 0, 0x00000000, 0x00000000, 0x00000000);
-
- if (myDAttribute == null)
- {
- TestLibrary.TestFramework.LogError("001.1", "Occurs error when Construct DecimalConstantAttribute !");
- retVal = false;
- }
-
- myDAttribute = new DecimalConstantAttribute(28, 1, 0x00000000, 0x00000000, 0x00000000);
-
- if (myDAttribute == null)
- {
- TestLibrary.TestFramework.LogError("001.2", "Occurs error when Construct DecimalConstantAttribute !");
- retVal = false;
- }
-
- myDAttribute = new DecimalConstantAttribute(28, 0, 0x00000000, 0x00000000, 0x00000001);
-
- if (myDAttribute == null)
- {
- TestLibrary.TestFramework.LogError("001.3", "Occurs error when Construct DecimalConstantAttribute !");
- retVal = false;
- }
-
- myDAttribute = new DecimalConstantAttribute(28, 1, 0x00000000, 0x00000000, 0x00000001);
-
- if (myDAttribute == null)
- {
- TestLibrary.TestFramework.LogError("001.4", "Occurs error when Construct DecimalConstantAttribute !");
- retVal = false;
- }
-
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.0", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest1: scale > 28.");
-
- try
- {
- DecimalConstantAttribute myDAttribute = new DecimalConstantAttribute(29, 0, 0x00000000, 0x00000000, 0x00000000);
- TestLibrary.TestFramework.LogError("101.1", "ArgumentOutOfRangeException should be caught.");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("101.0", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-// 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.CompilerServices;
-
-/// <summary>
-/// Value
-/// </summary>
-public class DecimalConstantAttributeValue
-{
-
-
- public static int Main(string[] args)
- {
- DecimalConstantAttributeValue DecimalConstantAttributeValue = new DecimalConstantAttributeValue();
- TestLibrary.TestFramework.BeginTestCase("DecimalConstantAttributeValue");
-
- if (DecimalConstantAttributeValue.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: Get the DecimalConstantAttribute Value.");
-
- try
- {
- DecimalConstantAttribute myDAttribute = new DecimalConstantAttribute(0, 0, 0x00000000, 0x00000000, 0x00000000);
- decimal expectDecimal = 0;
- if (myDAttribute.Value != expectDecimal)
- {
- TestLibrary.TestFramework.LogError("001.1", "Occurs error when Construct DecimalConstantAttribute !");
- retVal = false;
- }
-
- myDAttribute = new DecimalConstantAttribute(28, 1, 0x00000000, 0x00000000, 0x00000000);
- expectDecimal = 0;
- if (myDAttribute.Value != expectDecimal)
- {
- TestLibrary.TestFramework.LogError("001.2", "Occurs error when Construct DecimalConstantAttribute,should return " + expectDecimal);
- retVal = false;
- }
-
- myDAttribute = new DecimalConstantAttribute(28, 0, 0x00000000, 0x00000000, 0x00000001);
- expectDecimal = 1e-28m;
- if (myDAttribute.Value != expectDecimal)
- {
- TestLibrary.TestFramework.LogError("001.3", "Occurs error when Construct DecimalConstantAttribute ,should return " + expectDecimal);
- retVal = false;
- }
-
- myDAttribute = new DecimalConstantAttribute(28, 1, 0x00000000, 0x00000000, 0x00000001);
- expectDecimal = -(1e-28m);
- if (myDAttribute.Value != expectDecimal)
- {
- TestLibrary.TestFramework.LogError("001.4", "Occurs error when Construct DecimalConstantAttribute ,should return " + expectDecimal);
- retVal = false;
- }
- myDAttribute = new DecimalConstantAttribute(28, 1, 0x00000001, 0x00000001, 0x00000001);
- expectDecimal = -0.0000000018446744078004518913m;
- if (myDAttribute.Value != expectDecimal)
- {
- TestLibrary.TestFramework.LogError("001.5", "Occurs error when Construct DecimalConstantAttribute ,should return " + expectDecimal);
- retVal = false;
- }
-
- myDAttribute = new DecimalConstantAttribute(28, 100, 0x00000001, 0x00000001, 0x00000001);
- expectDecimal = -0.0000000018446744078004518913m;
- if (myDAttribute.Value != expectDecimal)
- {
- TestLibrary.TestFramework.LogError("001.6", "Occurs error when Construct DecimalConstantAttribute ,should return " + expectDecimal);
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.0", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
-
-}
+++ /dev/null
-<?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="fixedbufferattributector.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>
+++ /dev/null
-<?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="fixedbufferattributeelementtype.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>
+++ /dev/null
-<?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="fixedbufferattributelength.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>
+++ /dev/null
-// 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.CompilerServices;
-/// <summary>
-///ctor(System.Type,System.Int32)
-/// </summary>
-public class FixedBufferAttributeCtor
-{
- #region const
- int c_LENGTH = 1024;
- #endregion
- public static int Main(string[] args)
- {
- FixedBufferAttributeCtor FixedBufferAttributeCtor = new FixedBufferAttributeCtor();
- TestLibrary.TestFramework.BeginTestCase("FixedBufferAttributeCtor");
-
- if (FixedBufferAttributeCtor.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: Create a new FixedBufferAttribute instance.");
-
- try
- {
- retVal = VerificationHelper(typeof(string), c_LENGTH, "001.1") && retVal;
- retVal = VerificationHelper(typeof(int), c_LENGTH + c_LENGTH, "001.2") && retVal;
- retVal = VerificationHelper(typeof(object), c_LENGTH * 3, "001.3") && retVal;
- retVal = VerificationHelper(typeof(object), Int32.MaxValue, "001.4") && retVal;
- retVal = VerificationHelper(typeof(object), Int32.MinValue, "001.5") && retVal;
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.0", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #region private method
- private bool VerificationHelper(Type elementType, int length, string errorNO)
- {
- bool retVal = true;
- try
- {
- FixedBufferAttribute myDAttribute = new FixedBufferAttribute(elementType, length);
-
- if (myDAttribute == null)
- {
- TestLibrary.TestFramework.LogError(errorNO + ".1", "Occurs error when Construct FixedBufferAttribute instance !");
- retVal = false;
- }
- if (myDAttribute.ElementType != elementType || myDAttribute.Length != length)
- {
- TestLibrary.TestFramework.LogError(errorNO + ".2", "Construct an error FixedBufferAttribute instance !");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError(errorNO + ".0", "Unexpected exception occurs: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-
-}
+++ /dev/null
-// 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.CompilerServices;
-/// <summary>
-///ElementType
-/// </summary>
-public class FixedBufferAttributeElementType
-{
- #region const
- int c_LENGTH = 1024;
- #endregion
- public static int Main(string[] args)
- {
- FixedBufferAttributeElementType FixedBufferAttributeElementType = new FixedBufferAttributeElementType();
- TestLibrary.TestFramework.BeginTestCase("FixedBufferAttributeElementType");
-
- if (FixedBufferAttributeElementType.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: Getting ElementType.");
-
- try
- {
- retVal = VerificationHelper(typeof(string), c_LENGTH,"001.1") && retVal;
- retVal = VerificationHelper(typeof(int), c_LENGTH + c_LENGTH, "001.2") && retVal;
- retVal = VerificationHelper(typeof(object), c_LENGTH * 3, "001.3") && retVal;
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.0", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #region private method
- private bool VerificationHelper(Type elementType,int length,string errorNO)
- {
- bool retVal = true;
- try
- {
- FixedBufferAttribute myDAttribute = new FixedBufferAttribute(elementType, length);
-
- if (myDAttribute.ElementType != elementType )
- {
- TestLibrary.TestFramework.LogError(errorNO, "Getting ElementType has an error occured");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError(errorNO+".0", "Unexpected exception occurs: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-
-}
+++ /dev/null
-// 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.CompilerServices;
-/// <summary>
-///Length
-/// </summary>
-public class FixedBufferAttributeLength
-{
- #region const
- int c_LENGTH = 1024;
- #endregion
- public static int Main(string[] args)
- {
- FixedBufferAttributeLength FixedBufferAttributeLength = new FixedBufferAttributeLength();
- TestLibrary.TestFramework.BeginTestCase("FixedBufferAttributeLength");
-
- if (FixedBufferAttributeLength.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: Getting Length.");
-
- try
- {
- retVal = VerificationHelper(typeof(string), c_LENGTH, "001.1") && retVal;
- retVal = VerificationHelper(typeof(int), c_LENGTH + c_LENGTH, "001.2") && retVal;
- retVal = VerificationHelper(typeof(object), c_LENGTH * 3, "001.3") && retVal;
- retVal = VerificationHelper(typeof(int), int.MaxValue, "001.4") && retVal;
- retVal = VerificationHelper(typeof(object), int.MinValue, "001.5") && retVal;
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.0", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #region private method
- private bool VerificationHelper(Type elementType, int length, string errorNO)
- {
- bool retVal = true;
- try
- {
- FixedBufferAttribute myDAttribute = new FixedBufferAttribute(elementType, length);
-
- if (myDAttribute.Length != length)
- {
- TestLibrary.TestFramework.LogError(errorNO, "an error occurs when get Length. !");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError(errorNO + ".0", "Unexpected exception occurs: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-
-}
+++ /dev/null
-<?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="dllimporttest.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
+++ /dev/null
-// 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>
-/// This namespace and class were created for the DllImport CTI tests
-/// </summary>
-namespace DllImportTest
-{
- /// <summary>
- /// Simple static class containing a DllImport to be used in CoreMangLib\CTI\System\Runtime\InteropServices\DllImportAttribute tests
- /// Since the tests aren't actually calling anything referenced by the DllImport, the imported dll and the function can be fake.
- /// </summary>
- public static class DllImportTestClass
- {
-
- [DllImport("DllFakeImport.dll")]
- public static extern int BogusFunction();
-
- }
-}
\ No newline at end of file
+++ /dev/null
-<?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="fieldoffsetattributector.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>
+++ /dev/null
-<?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="fieldoffsetattributevalue.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>
+++ /dev/null
-// 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>
-/// FieldOffsetAttribute.ctor(Int32) [v-minch]
-/// </summary>
-public class FieldOffsetAttributeCtor
-{
- public static int Main()
- {
- FieldOffsetAttributeCtor test = new FieldOffsetAttributeCtor();
- TestLibrary.TestFramework.BeginTestCase("FieldOffsetAttribute.Ctor");
- 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;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:Initialize a new instance of the FieldOffsetAttribute class with the offset in the structure to the beginning of the field 1");
- try
- {
- int offset = Int32.MaxValue;
- FieldOffsetAttribute myFieldOffsetAttribute = new FieldOffsetAttribute(offset);
- if (myFieldOffsetAttribute == null || myFieldOffsetAttribute.Value != offset)
- {
- TestLibrary.TestFramework.LogError("001", "the initialized FieldOffsetAttribute ExpectedValue is " + offset + " but the ActualValue is " + myFieldOffsetAttribute.Value.ToString());
- 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:Initialize a new instance of the FieldOffsetAttribute class with the offset in the structure to the beginning of the field 2");
- try
- {
- int offset = 0;
- FieldOffsetAttribute myFieldOffsetAttribute = new FieldOffsetAttribute(offset);
- if (myFieldOffsetAttribute == null || myFieldOffsetAttribute.Value != offset)
- {
- TestLibrary.TestFramework.LogError("003", "the initialized FieldOffsetAttribute ExpectedValue is " + offset + " but the ActualValue is " + myFieldOffsetAttribute.Value.ToString());
- 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:Initialize a new instance of the FieldOffsetAttribute class with the offset in the structure to the beginning of the field 3");
- try
- {
- int offset = TestLibrary.Generator.GetInt32(-55);
- FieldOffsetAttribute myFieldOffsetAttribute = new FieldOffsetAttribute(offset);
- if (myFieldOffsetAttribute == null || myFieldOffsetAttribute.Value != offset)
- {
- TestLibrary.TestFramework.LogError("005", "the initialized FieldOffsetAttribute ExpectedValue is " + offset + " but the ActualValue is " + myFieldOffsetAttribute.Value.ToString());
- 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:Initialize a new instance of the FieldOffsetAttribute class with the offset in the structure to the beginning of the field 4");
- try
- {
- int offset = Int32.MinValue;
- FieldOffsetAttribute myFieldOffsetAttribute = new FieldOffsetAttribute(offset);
- if (myFieldOffsetAttribute == null || myFieldOffsetAttribute.Value != offset)
- {
- TestLibrary.TestFramework.LogError("007", "the initialized FieldOffsetAttribute ExpectedValue is " + offset + " but the ActualValue is " + myFieldOffsetAttribute.Value.ToString());
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-// 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>
-/// FieldOffsetAttribute.Value [v-minch]
-/// </summary>
-public class FieldOffsetAttributeValue
-{
- public static int Main()
- {
- FieldOffsetAttributeValue test = new FieldOffsetAttributeValue();
- TestLibrary.TestFramework.BeginTestCase("FieldOffsetAttribute.Value");
- 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;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:Verify the value of initialized instance of the FieldOffsetAttribute 1");
- try
- {
- int offset = Int32.MaxValue;
- FieldOffsetAttribute myFieldOffsetAttribute = new FieldOffsetAttribute(offset);
- if (myFieldOffsetAttribute.Value != offset)
- {
- TestLibrary.TestFramework.LogError("001", "the initialized FieldOffsetAttribute ExpectedValue is " + offset + " but the ActualValue is " + myFieldOffsetAttribute.Value.ToString());
- 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:Verify the value of initialized instance of the FieldOffsetAttribute 2");
- try
- {
- int offset = 0;
- FieldOffsetAttribute myFieldOffsetAttribute = new FieldOffsetAttribute(offset);
- if (myFieldOffsetAttribute.Value != offset)
- {
- TestLibrary.TestFramework.LogError("003", "the initialized FieldOffsetAttribute ExpectedValue is " + offset + " but the ActualValue is " + myFieldOffsetAttribute.Value.ToString());
- 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:Verify the value of initialized instance of the FieldOffsetAttribute 3");
- try
- {
- int offset = TestLibrary.Generator.GetInt32(-55);
- FieldOffsetAttribute myFieldOffsetAttribute = new FieldOffsetAttribute(offset);
- if (myFieldOffsetAttribute.Value != offset)
- {
- TestLibrary.TestFramework.LogError("005", "the initialized FieldOffsetAttribute ExpectedValue is " + offset + " but the ActualValue is " + myFieldOffsetAttribute.Value.ToString());
- 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:Verify the value of initialized instance of the FieldOffsetAttribute 4");
- try
- {
- int offset = Int32.MinValue;
- FieldOffsetAttribute myFieldOffsetAttribute = new FieldOffsetAttribute(offset);
- if (myFieldOffsetAttribute.Value != offset)
- {
- TestLibrary.TestFramework.LogError("007", "the initialized FieldOffsetAttribute ExpectedValue is " + offset + " but the ActualValue is " + myFieldOffsetAttribute.Value.ToString());
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-<?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="gchandleaddrofpinnedobject.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>
+++ /dev/null
-<?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="gchandlealloc1.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>
+++ /dev/null
-<?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="gchandlefree.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>
+++ /dev/null
-<?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="gchandletarget.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>
+++ /dev/null
-// 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.Security;
-using System;
-using System.Runtime.InteropServices;
-
-
-[SecuritySafeCritical]
-/// <summary>
-/// AddrOfPinnedObject
-/// </summary>
-public class GCHandleAddrOfPinnedObject
-{
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && 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 AddrOfPinnedObject to get address of Pinned object");
-
- try
- {
- GCHandle handle = GCHandle.Alloc(TestLibrary.Generator.GetInt32(-55), GCHandleType.Pinned);
-
- IntPtr ptr = handle.AddrOfPinnedObject();
-
- if (ptr == IntPtr.Zero)
- {
- TestLibrary.TestFramework.LogError("001.1", "Call AddrOfPinnedObject to get address of Pinned object returns NULL");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.0", "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: InvalidOperationException should be thrown when The handle is any type other than Pinned. ");
-
- try
- {
- GCHandle handle = GCHandle.Alloc(TestLibrary.Generator.GetInt32(-55), GCHandleType.Normal);
-
- IntPtr ptr = handle.AddrOfPinnedObject();
-
- TestLibrary.TestFramework.LogError("001.1", "InvalidOperationException is not thrown when The handle is any type other than Pinned. ");
- retVal = false;
- }
- catch (InvalidOperationException)
- {
- }
- 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()
- {
- GCHandleAddrOfPinnedObject test = new GCHandleAddrOfPinnedObject();
-
- TestLibrary.TestFramework.BeginTestCase("GCHandleAddrOfPinnedObject");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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.Security;
-using System;
-using System.Runtime.InteropServices;
-
-
-[SecuritySafeCritical]
-public class TestNonBittableClass
-{
- public Object m_Object;
- public string m_String;
-}
-
-
-[SecuritySafeCritical]
-public class TestBittableClass
-{
- public int m_TestInt;
-}
-
-/// <summary>
-/// Alloc(System.Object)
-/// </summary>
-
-[SecuritySafeCritical]
-public class GCHandleAlloc1
-{
- #region Private Fields
- private const int c_ARRAY_SIZE = 256;
- #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: Call Alloc to alloc memory for a value type instance");
-
- try
- {
- retVal = VerificationHelper(TestLibrary.Generator.GetInt32(-55), "001.1") && retVal;
- retVal = VerificationHelper(TestLibrary.Generator.GetInt64(-55), "001.2") && retVal;
- retVal = VerificationHelper(TestLibrary.Generator.GetDouble(-55), "001.3") && retVal;
- retVal = VerificationHelper(TestLibrary.Generator.GetChar(-55), "001.4") && retVal;
- retVal = VerificationHelper(TestLibrary.Generator.GetByte(-55), "001.5") && retVal;
- retVal = VerificationHelper(TestLibrary.Generator.GetSingle(-55), "001.6") && retVal;
-
- byte[] bytes = new byte[c_ARRAY_SIZE];
- TestLibrary.Generator.GetBytes(-55, bytes);
- retVal = VerificationHelper(bytes, "001.7") && retVal;
- }
- 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 Alloc to alloc memory for a class contains value type only instance");
-
- try
- {
- Object obj = new TestBittableClass();
- retVal = VerificationHelper(obj, "002.1") && retVal;
- }
- 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 Alloc to alloc memory for a non blittable type instance");
-
- try
- {
- string randValue = TestLibrary.Generator.GetString(-55, false, 1, c_ARRAY_SIZE);
- TestNonBittableClass obj = new TestNonBittableClass();
- obj.m_Object = new Object();
- obj.m_String = randValue;
-
- retVal = VerificationHelper(new Object(), "003.1") && retVal;
- retVal = VerificationHelper(randValue, "003.2") && retVal;
- retVal = VerificationHelper(obj, "003.3") && retVal;
- }
- 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()
- {
- GCHandleAlloc1 test = new GCHandleAlloc1();
-
- TestLibrary.TestFramework.BeginTestCase("GCHandleAlloc1");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
- #region Private Methods
-
- private bool VerificationHelper(object obj, string errorNo)
- {
- bool retVal = true;
-
- GCHandle handle = GCHandle.Alloc(obj);
- if (!handle.IsAllocated)
- {
- TestLibrary.TestFramework.LogError(errorNo, "IsAllocated return false after GCHandle.Alloc is called");
- retVal = false;
- }
-
- handle.Free();
-
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-// 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.Security;
-using System;
-using System.Runtime.InteropServices;
-
-
-[SecuritySafeCritical]
-public class TestNonBittableClass
-{
- public Object m_Object;
- public string m_String;
-}
-
-
-[SecuritySafeCritical]
-public class TestBittableClass
-{
- public int m_TestInt;
-}
-
-
-/// <summary>
-/// Free
-/// </summary>
-
-[SecuritySafeCritical]
-public class GCHandleFree
-{
- #region Private Fields
- private const int c_ARRAY_SIZE = 256;
- #endregion
-
- #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;
-
- return retVal;
- }
-
- #region Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Call Free to free allocated handle");
-
- try
- {
- retVal = VerificationHelper(TestLibrary.Generator.GetInt32(-55), "001.1") && retVal;
- retVal = VerificationHelper(TestLibrary.Generator.GetInt64(-55), "001.2") && retVal;
- retVal = VerificationHelper(TestLibrary.Generator.GetDouble(-55), "001.3") && retVal;
- retVal = VerificationHelper(TestLibrary.Generator.GetByte(-55), "001.4") && retVal;
- retVal = VerificationHelper(TestLibrary.Generator.GetSingle(-55), "001.5") && retVal;
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Call Free to free allocated handle");
-
- try
- {
- string randValue = TestLibrary.Generator.GetString(-55, false, 1, c_ARRAY_SIZE);
- TestNonBittableClass obj = new TestNonBittableClass();
- obj.m_Object = new Object();
- obj.m_String = randValue;
-
- retVal = VerificationHelper(new TestBittableClass(), "002.1") && retVal;
- retVal = VerificationHelper(new Object(), "002.2") && retVal;
- retVal = VerificationHelper(randValue, "002.3") && retVal;
- retVal = VerificationHelper(obj, "002.4") && retVal;
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "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: InvalidOperationException should be thrown when The handle was freed.");
-
- try
- {
- GCHandle handle = GCHandle.Alloc(new Object());
- handle.Free();
-
- handle.Free();
-
- TestLibrary.TestFramework.LogError("101.1", "InvalidOperationException is not thrown when The handle was freed.");
- retVal = false;
- }
- catch (InvalidOperationException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("101.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: InvalidOperationException should be thrown when The handle was never initialized.");
-
- try
- {
- GCHandle handle = (GCHandle)IntPtr.Zero;
- handle.Free();
-
- TestLibrary.TestFramework.LogError("102.1", "InvalidOperationException is not thrown when The handle was never initialized.");
- retVal = false;
- }
- catch (InvalidOperationException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- GCHandleFree test = new GCHandleFree();
-
- TestLibrary.TestFramework.BeginTestCase("GCHandleFree");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
- #region Private Methods
- private bool VerificationHelper(object obj, string errorNo)
- {
- bool retVal = true;
-
- GCHandle handle = GCHandle.Alloc(obj);
- handle.Free();
-
- if (handle.IsAllocated)
- {
- TestLibrary.TestFramework.LogError(errorNo, "IsAllocated return true after GCHandle.Free is called");
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-// 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.Security;
-using System;
-using System.Runtime.InteropServices;
-
-[SecuritySafeCritical]
-/// <summary>
-/// Target
-/// </summary>
-public class GCHandleTarget
-{
- #region Private Fields
- private const int c_SIZE_OF_ARRAY = 256;
- #endregion
-
- #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: Target should return correct object value passed to handle for blittable types");
-
- try
- {
- retVal = VerificationHelper(TestLibrary.Generator.GetByte(-55), "001.1") && retVal;
- retVal = VerificationHelper(TestLibrary.Generator.GetDouble(-55), "001.2") && retVal;
- retVal = VerificationHelper(TestLibrary.Generator.GetInt16(-55), "001.3") && retVal;
- retVal = VerificationHelper(TestLibrary.Generator.GetInt32(-55), "001.4") && retVal;
- retVal = VerificationHelper(TestLibrary.Generator.GetInt64(-55), "001.5") && retVal;
- retVal = VerificationHelper(TestLibrary.Generator.GetSingle(-55), "001.6") && retVal;
- }
- 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: Target should return correct object value passed to handle for blittable types");
-
- try
- {
- retVal = VerificationHelper(TestLibrary.Generator.GetChar(-55), "002.1") && retVal;
- retVal = VerificationHelper(TestLibrary.Generator.GetString(-55, false, 1, c_SIZE_OF_ARRAY), "002.2") && retVal;
- }
- 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: Target should return correct object value passed to handle for blittable types");
-
- try
- {
- byte[] bytes = new byte[c_SIZE_OF_ARRAY];
- double[] doubles = new double[c_SIZE_OF_ARRAY];
- short[] shorts = new short[c_SIZE_OF_ARRAY];
- int[] ints = new int[c_SIZE_OF_ARRAY];
- long[] longs = new long[c_SIZE_OF_ARRAY];
- float[] floats = new float[c_SIZE_OF_ARRAY];
-
- TestLibrary.Generator.GetBytes(-55, bytes);
- for (int i = 0; i < doubles.Length; ++i)
- {
- doubles[i] = TestLibrary.Generator.GetDouble(-55);
- }
- for (int i = 0; i < shorts.Length; ++i)
- {
- shorts[i] = TestLibrary.Generator.GetInt16(-55);
- }
- for (int i = 0; i < ints.Length; ++i)
- {
- ints[i] = TestLibrary.Generator.GetInt32(-55);
- }
- for (int i = 0; i < longs.Length; ++i)
- {
- longs[i] = TestLibrary.Generator.GetInt64(-55);
- }
- for (int i = 0; i < floats.Length; ++i)
- {
- floats[i] = TestLibrary.Generator.GetSingle(-55);
- }
-
- retVal = VerificationHelper<byte>(bytes, "003.1") && retVal;
- retVal = VerificationHelper<double>(doubles, "003.2") && retVal;
- retVal = VerificationHelper<short>(shorts, "003.3") && retVal;
- retVal = VerificationHelper<int>(ints, "003.4") && retVal;
- retVal = VerificationHelper<long>(longs, "003.5") && retVal;
- retVal = VerificationHelper<float>(floats, "003.6") && retVal;
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.0", "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: InvalidOperationException should be thrown when The handle was freed.");
-
- try
- {
- GCHandle handle = GCHandle.Alloc(TestLibrary.Generator.GetInt32(-55));
- handle.Free();
-
- object target = handle.Target;
- TestLibrary.TestFramework.LogError("101.1", "InvalidOperationException is not thrown when The handle was freed.");
- retVal = false;
- }
- catch (InvalidOperationException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("101.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: InvalidOperationException should be thrown when The handle was never initialized.");
-
- try
- {
- GCHandle handle = (GCHandle)IntPtr.Zero;
-
- object target = handle.Target;
- TestLibrary.TestFramework.LogError("102.1", "InvalidOperationException is not thrown when The handle was never initialized.");
- retVal = false;
- }
- catch (InvalidOperationException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- GCHandleTarget test = new GCHandleTarget();
-
- TestLibrary.TestFramework.BeginTestCase("GCHandleTarget");
-
- 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 VerificationHelper(object obj, string errorNo)
- {
- bool retVal = true;
-
- GCHandle handle = GCHandle.Alloc(obj);
-
- if (handle.Target == null)
- {
- TestLibrary.TestFramework.LogError(errorNo, "Target returns null for valid GCHandle");
- retVal = false;
- }
- else
- {
- if (!obj.Equals(handle.Target))
- {
- TestLibrary.TestFramework.LogError(errorNo, "Target returns from valid GCHandle is wrong");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] obj = " + obj + ", handle.Target = " + handle.Target);
- retVal = false;
- }
- }
- handle.Free();
-
- return retVal;
- }
-
- private bool VerificationHelper<T>(T[] obj, string errorNo)
- {
- bool retVal = true;
-
- GCHandle handle = GCHandle.Alloc(obj);
-
- T[] actual = handle.Target as T[];
- if (actual == null)
- {
- TestLibrary.TestFramework.LogError(errorNo, "Target returns null for valid GCHandle");
- retVal = false;
- }
- else if (actual.Length != obj.Length)
- {
- TestLibrary.TestFramework.LogError(errorNo, "Target returns wrong array for valid GCHandle for object array");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] obj.Length = " + obj.Length + ", actual.Length = " + actual.Length);
- retVal = false;
- }
- else
- {
- for (int i = 0; i < obj.Length; ++i)
- {
- if (!obj[i].Equals(actual[i]))
- {
- TestLibrary.TestFramework.LogError(errorNo, "Target returns from valid GCHandle is wrong");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] obj[i] = " + obj[i] + ", actual[i] = " + actual[i] + ", i = " + i);
- retVal = false;
- }
- }
- }
-
- handle.Free();
-
- return retVal;
- }
- #endregion
-}
+++ /dev/null
-<?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="inattributector.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>
+++ /dev/null
-// 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>
-/// InAttribute.ctor()
-/// </summary>
-public class InAttributeCtor
-{
- public static int Main()
- {
- InAttributeCtor test = new InAttributeCtor();
- TestLibrary.TestFramework.BeginTestCase("InAttribute.Ctor");
- 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: Initialize a instance of InAttribute class");
- try
- {
- InAttribute myInAttribute = new InAttribute();
- if (myInAttribute == null)
- {
- TestLibrary.TestFramework.LogError("001", "Initialize the instance of InAttribute not successfully");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpect exception" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
\ No newline at end of file
+++ /dev/null
-<?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="oleaut32.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>
+++ /dev/null
-// 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;
-
-namespace OleAut32
-{
- [Guid("22F03340-547D-101B-8E65-08002B2BD119")]
- [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public unsafe interface ICreateErrorInfo
- {
- void QueryInterface(ref Guid riid, out IntPtr *ppvObject);
-
- long AddRef();
-
- long Release();
-
- void SetGUID(ref Guid rguid);
-
- void SetSource(string szSource);
-
- void SetDescription(string szDescription);
-
- void SetHelpFile(string szHelpFile);
-
- void SetHelpContext(int dwHelpContext);
- }
-
- [Guid("1CF2B120-547D-101B-8E65-08002B2BD119")]
- [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IErrorInfo
- {
- void GetGUID(IntPtr pGUID);
-
- void GetSource(ref string pBstrSource);
-
- void GetDescription(ref string pBstrDescription);
-
- void GetHelpFile(ref string pBstrHelpFile);
-
- void GetHelpContext(ref int pdwHelpContext);
- }
-}
\ No newline at end of file
+++ /dev/null
-<?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="marshalasattributearraysubtype.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>
+++ /dev/null
-<?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="marshalasattributector1.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>
+++ /dev/null
-<?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="marshalasattributector2.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>
+++ /dev/null
-<?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="marshalasattributemarshalcookie.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>
+++ /dev/null
-<?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="marshalasattributemarshaltype.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>
+++ /dev/null
-<?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="marshalasattributemarshaltyperef.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>
+++ /dev/null
-<?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="marshalasattributesizeconst.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>
+++ /dev/null
-<?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="marshalasattributesizeparamindex.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>
+++ /dev/null
-<?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="marshalasattributevalue.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>
+++ /dev/null
-// 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>
-/// MarshalAsAttribute.ArraySubType [v-minch]
-/// </summary>
-public class MarshalAsAttributeArraySubType
-{
- public static int Main()
- {
- MarshalAsAttributeArraySubType test = new MarshalAsAttributeArraySubType();
- TestLibrary.TestFramework.BeginTestCase("MarshalAsAttribute.ArraySubType");
- 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;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: Return the field ArraySubType in MarshalAsAttribute class 1");
- try
- {
- short unmanagedType = Int16.MaxValue;
- MarshalAsAttribute myMarshalAsAttribute = new MarshalAsAttribute(unmanagedType);
- UnmanagedType myVal = myMarshalAsAttribute.ArraySubType;
- if (myVal != 0)
- {
- TestLibrary.TestFramework.LogError("001", "the ExpectResult is 0 but the ActualResult is " + myVal.ToString());
- 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: Return the field ArraySubType in MarshalAsAttribute class 2");
- try
- {
- MarshalAsAttribute myMarshalAsAttribute = new MarshalAsAttribute(UnmanagedType.ByValArray| UnmanagedType.LPArray);
- UnmanagedType myVal = myMarshalAsAttribute.ArraySubType;
- if (myVal != 0)
- {
- TestLibrary.TestFramework.LogError("003", "the ExpectResult is 0 but the ActualResult is " + myVal.ToString());
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-
-}
\ No newline at end of file
+++ /dev/null
-// 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>
-/// MarshalAsAttribute.ctor(Int16) [v-minch]
-/// </summary>
-public class MarshalAsAttributeCtor1
-{
- public static int Main()
- {
- MarshalAsAttributeCtor1 test = new MarshalAsAttributeCtor1();
- TestLibrary.TestFramework.BeginTestCase("MarshalAsAttribute.ctor(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;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: Initialize a instance of MarshalAsAttribute Class 1");
- try
- {
- short unmanagedType = Int16.MaxValue;
- MarshalAsAttribute myMarshalAsAttribute = new MarshalAsAttribute(unmanagedType);
- if (myMarshalAsAttribute == null || myMarshalAsAttribute.Value != (UnmanagedType)unmanagedType)
- {
- TestLibrary.TestFramework.LogError("001", "the intance should not be null and its value ExpectResult is " + ((UnmanagedType)unmanagedType).ToString() + " but the ActualResult is " + myMarshalAsAttribute.Value.ToString());
- 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: Initialize a instance of MarshalAsAttribute Class 2");
- try
- {
- short unmanagedType = Int16.MinValue;
- MarshalAsAttribute myMarshalAsAttribute = new MarshalAsAttribute(unmanagedType);
- if (myMarshalAsAttribute == null || myMarshalAsAttribute.Value != (UnmanagedType)unmanagedType)
- {
- TestLibrary.TestFramework.LogError("003", "the intance should not be null and its value ExpectResult is " + ((UnmanagedType)unmanagedType).ToString() + " but the ActualResult is " + myMarshalAsAttribute.Value.ToString());
- 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: Initialize a instance of MarshalAsAttribute Class 3");
- try
- {
- short unmanagedType = TestLibrary.Generator.GetInt16(-55);
- MarshalAsAttribute myMarshalAsAttribute = new MarshalAsAttribute(unmanagedType);
- if (myMarshalAsAttribute == null || myMarshalAsAttribute.Value != (UnmanagedType)unmanagedType)
- {
- TestLibrary.TestFramework.LogError("005", "the intance should not be null and its value ExpectResult is " + ((UnmanagedType)unmanagedType).ToString() + " but the ActualResult is " + myMarshalAsAttribute.Value.ToString());
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-
-}
+++ /dev/null
-// 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>
-/// MarshalAsAttribute.ctor(UnmanagedType) [v-minch]
-/// </summary>
-public class MarshalAsAttributeCtor2
-{
- public static int Main()
- {
- MarshalAsAttributeCtor2 test = new MarshalAsAttributeCtor2();
- TestLibrary.TestFramework.BeginTestCase("MarshalAsAttribute.ctor(UnmanagedType)");
- 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;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: Initialize a instance of MarshalAsAttribute Class 1");
- try
- {
- for (int i = 2; i <= 12; i++)
- {
- UnmanagedType unmanagedType = (UnmanagedType)i;
- #region Switch
- switch (unmanagedType)
- {
- case UnmanagedType.Bool:
- MarshalAsAttribute myMarshalAsAttribute1 = new MarshalAsAttribute(unmanagedType);
- if (myMarshalAsAttribute1 == null || myMarshalAsAttribute1.Value != (UnmanagedType)unmanagedType)
- {
- TestLibrary.TestFramework.LogError("001.1", "the intance should not be null and its value ExpectResult is " + ((UnmanagedType)unmanagedType).ToString() + " but the ActualResult is " + myMarshalAsAttribute1.Value.ToString());
- retVal = false;
- }
- break;
- case UnmanagedType.I1:
- MarshalAsAttribute myMarshalAsAttribute2 = new MarshalAsAttribute(unmanagedType);
- if (myMarshalAsAttribute2 == null || myMarshalAsAttribute2.Value != (UnmanagedType)unmanagedType)
- {
- TestLibrary.TestFramework.LogError("001.2", "the intance should not be null and its value ExpectResult is " + ((UnmanagedType)unmanagedType).ToString() + " but the ActualResult is " + myMarshalAsAttribute2.Value.ToString());
- retVal = false;
- }
- break;
- case UnmanagedType.U1:
- MarshalAsAttribute myMarshalAsAttribute3 = new MarshalAsAttribute(unmanagedType);
- if (myMarshalAsAttribute3 == null || myMarshalAsAttribute3.Value != (UnmanagedType)unmanagedType)
- {
- TestLibrary.TestFramework.LogError("001.3", "the intance should not be null and its value ExpectResult is " + ((UnmanagedType)unmanagedType).ToString() + " but the ActualResult is " + myMarshalAsAttribute3.Value.ToString());
- retVal = false;
- }
- break;
- case UnmanagedType.I2:
- MarshalAsAttribute myMarshalAsAttribute4 = new MarshalAsAttribute(unmanagedType);
- if (myMarshalAsAttribute4 == null || myMarshalAsAttribute4.Value != (UnmanagedType)unmanagedType)
- {
- TestLibrary.TestFramework.LogError("001.4", "the intance should not be null and its value ExpectResult is " + ((UnmanagedType)unmanagedType).ToString() + " but the ActualResult is " + myMarshalAsAttribute4.Value.ToString());
- retVal = false;
- }
- break;
- case UnmanagedType.U2:
- MarshalAsAttribute myMarshalAsAttribute5 = new MarshalAsAttribute(unmanagedType);
- if (myMarshalAsAttribute5 == null || myMarshalAsAttribute5.Value != (UnmanagedType)unmanagedType)
- {
- TestLibrary.TestFramework.LogError("001.5", "the intance should not be null and its value ExpectResult is " + ((UnmanagedType)unmanagedType).ToString() + " but the ActualResult is " + myMarshalAsAttribute5.Value.ToString());
- retVal = false;
- }
- break;
- case UnmanagedType.I4:
- MarshalAsAttribute myMarshalAsAttribute6 = new MarshalAsAttribute(unmanagedType);
- if (myMarshalAsAttribute6 == null || myMarshalAsAttribute6.Value != (UnmanagedType)unmanagedType)
- {
- TestLibrary.TestFramework.LogError("001.6", "the intance should not be null and its value ExpectResult is " + ((UnmanagedType)unmanagedType).ToString() + " but the ActualResult is " + myMarshalAsAttribute6.Value.ToString());
- retVal = false;
- }
- break;
- case UnmanagedType.U4:
- MarshalAsAttribute myMarshalAsAttribute7 = new MarshalAsAttribute(unmanagedType);
- if (myMarshalAsAttribute7 == null || myMarshalAsAttribute7.Value != (UnmanagedType)unmanagedType)
- {
- TestLibrary.TestFramework.LogError("001.7", "the intance should not be null and its value ExpectResult is " + ((UnmanagedType)unmanagedType).ToString() + " but the ActualResult is " + myMarshalAsAttribute7.Value.ToString());
- retVal = false;
- }
- break;
- case UnmanagedType.I8:
- MarshalAsAttribute myMarshalAsAttribute8 = new MarshalAsAttribute(unmanagedType);
- if (myMarshalAsAttribute8 == null || myMarshalAsAttribute8.Value != (UnmanagedType)unmanagedType)
- {
- TestLibrary.TestFramework.LogError("001.8", "the intance should not be null and its value ExpectResult is " + ((UnmanagedType)unmanagedType).ToString() + " but the ActualResult is " + myMarshalAsAttribute8.Value.ToString());
- retVal = false;
- }
- break;
- case UnmanagedType.U8:
- MarshalAsAttribute myMarshalAsAttribute9 = new MarshalAsAttribute(unmanagedType);
- if (myMarshalAsAttribute9 == null || myMarshalAsAttribute9.Value != (UnmanagedType)unmanagedType)
- {
- TestLibrary.TestFramework.LogError("001.9", "the intance should not be null and its value ExpectResult is " + ((UnmanagedType)unmanagedType).ToString() + " but the ActualResult is " + myMarshalAsAttribute9.Value.ToString());
- retVal = false;
- }
- break;
- case UnmanagedType.R4:
- MarshalAsAttribute myMarshalAsAttribute10 = new MarshalAsAttribute(unmanagedType);
- if (myMarshalAsAttribute10 == null || myMarshalAsAttribute10.Value != (UnmanagedType)unmanagedType)
- {
- TestLibrary.TestFramework.LogError("001.10", "the intance should not be null and its value ExpectResult is " + ((UnmanagedType)unmanagedType).ToString() + " but the ActualResult is " + myMarshalAsAttribute10.Value.ToString());
- retVal = false;
- }
- break;
- case UnmanagedType.R8:
- MarshalAsAttribute myMarshalAsAttribute11 = new MarshalAsAttribute(unmanagedType);
- if (myMarshalAsAttribute11 == null || myMarshalAsAttribute11.Value != (UnmanagedType)unmanagedType)
- {
- TestLibrary.TestFramework.LogError("001.11", "the intance should not be null and its value ExpectResult is " + ((UnmanagedType)unmanagedType).ToString() + " but the ActualResult is " + myMarshalAsAttribute11.Value.ToString());
- retVal = false;
- }
- break;
- }
- #endregion
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest2: Initialize a instance of MarshalAsAttribute Class 2");
- try
- {
- for (int i = 19; i <= 23; i++)
- {
- UnmanagedType unmanagedType = (UnmanagedType)i;
- #region Switch
- switch (unmanagedType)
- {
-
- case UnmanagedType.LPStr:
- MarshalAsAttribute myMarshalAsAttribute2 = new MarshalAsAttribute(unmanagedType);
- if (myMarshalAsAttribute2 == null || myMarshalAsAttribute2.Value != (UnmanagedType)unmanagedType)
- {
- TestLibrary.TestFramework.LogError("003.2", "the intance should not be null and its value ExpectResult is " + ((UnmanagedType)unmanagedType).ToString() + " but the ActualResult is " + myMarshalAsAttribute2.Value.ToString());
- retVal = false;
- }
- break;
- case UnmanagedType.LPWStr:
- MarshalAsAttribute myMarshalAsAttribute3 = new MarshalAsAttribute(unmanagedType);
- if (myMarshalAsAttribute3 == null || myMarshalAsAttribute3.Value != (UnmanagedType)unmanagedType)
- {
- TestLibrary.TestFramework.LogError("003.3", "the intance should not be null and its value ExpectResult is " + ((UnmanagedType)unmanagedType).ToString() + " but the ActualResult is " + myMarshalAsAttribute3.Value.ToString());
- retVal = false;
- }
- break;
- case UnmanagedType.LPTStr:
- MarshalAsAttribute myMarshalAsAttribute4 = new MarshalAsAttribute(unmanagedType);
- if (myMarshalAsAttribute4 == null || myMarshalAsAttribute4.Value != (UnmanagedType)unmanagedType)
- {
- TestLibrary.TestFramework.LogError("003.4", "the intance should not be null and its value ExpectResult is " + ((UnmanagedType)unmanagedType).ToString() + " but the ActualResult is " + myMarshalAsAttribute4.Value.ToString());
- retVal = false;
- }
- break;
- case UnmanagedType.ByValTStr:
- MarshalAsAttribute myMarshalAsAttribute5 = new MarshalAsAttribute(unmanagedType);
- if (myMarshalAsAttribute5 == null || myMarshalAsAttribute5.Value != (UnmanagedType)unmanagedType)
- {
- TestLibrary.TestFramework.LogError("003.5", "the intance should not be null and its value ExpectResult is " + ((UnmanagedType)unmanagedType).ToString() + " but the ActualResult is " + myMarshalAsAttribute5.Value.ToString());
- retVal = false;
- }
- break;
- }
- #endregion
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest3: Initialize a instance of MarshalAsAttribute Class 3");
- try
- {
- for (int i = 25; i <= 38; i++)
- {
- UnmanagedType unmanagedType = (UnmanagedType)i;
- #region Switch
- switch (unmanagedType)
- {
- case UnmanagedType.IUnknown:
- MarshalAsAttribute myMarshalAsAttribute6 = new MarshalAsAttribute(unmanagedType);
- if (myMarshalAsAttribute6 == null || myMarshalAsAttribute6.Value != (UnmanagedType)unmanagedType)
- {
- TestLibrary.TestFramework.LogError("005.1", "the intance should not be null and its value ExpectResult is " + ((UnmanagedType)unmanagedType).ToString() + " but the ActualResult is " + myMarshalAsAttribute6.Value.ToString());
- retVal = false;
- }
- break;
- case UnmanagedType.Struct:
- MarshalAsAttribute myMarshalAsAttribute8 = new MarshalAsAttribute(unmanagedType);
- if (myMarshalAsAttribute8 == null || myMarshalAsAttribute8.Value != (UnmanagedType)unmanagedType)
- {
- TestLibrary.TestFramework.LogError("005.3", "the intance should not be null and its value ExpectResult is " + ((UnmanagedType)unmanagedType).ToString() + " but the ActualResult is " + myMarshalAsAttribute8.Value.ToString());
- retVal = false;
- }
- break;
- case UnmanagedType.ByValArray:
- MarshalAsAttribute myMarshalAsAttribute11 = new MarshalAsAttribute(unmanagedType);
- if (myMarshalAsAttribute11 == null || myMarshalAsAttribute11.Value != (UnmanagedType)unmanagedType)
- {
- TestLibrary.TestFramework.LogError("005.6", "the intance should not be null and its value ExpectResult is " + ((UnmanagedType)unmanagedType).ToString() + " but the ActualResult is " + myMarshalAsAttribute11.Value.ToString());
- retVal = false;
- }
- break;
- case UnmanagedType.SysInt:
- MarshalAsAttribute myMarshalAsAttribute12 = new MarshalAsAttribute(unmanagedType);
- if (myMarshalAsAttribute12 == null || myMarshalAsAttribute12.Value != (UnmanagedType)unmanagedType)
- {
- TestLibrary.TestFramework.LogError("005.7", "the intance should not be null and its value ExpectResult is " + ((UnmanagedType)unmanagedType).ToString() + " but the ActualResult is " + myMarshalAsAttribute12.Value.ToString());
- retVal = false;
- }
- break;
- case UnmanagedType.SysUInt:
- MarshalAsAttribute myMarshalAsAttribute13 = new MarshalAsAttribute(unmanagedType);
- if (myMarshalAsAttribute13 == null || myMarshalAsAttribute13.Value != (UnmanagedType)unmanagedType)
- {
- TestLibrary.TestFramework.LogError("005.8", "the intance should not be null and its value ExpectResult is " + ((UnmanagedType)unmanagedType).ToString() + " but the ActualResult is " + myMarshalAsAttribute13.Value.ToString());
- retVal = false;
- }
- break;
- case UnmanagedType.FunctionPtr:
- MarshalAsAttribute myMarshalAsAttribute18 = new MarshalAsAttribute(unmanagedType);
- if (myMarshalAsAttribute18 == null || myMarshalAsAttribute18.Value != (UnmanagedType)unmanagedType)
- {
- TestLibrary.TestFramework.LogError("005.13", "the intance should not be null and its value ExpectResult is " + ((UnmanagedType)unmanagedType).ToString() + " but the ActualResult is " + myMarshalAsAttribute18.Value.ToString());
- retVal = false;
- }
- break;
- }
- #endregion
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest4()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest4: Initialize a instance of MarshalAsAttribute Class 4");
- try
- {
- for (int i = 40; i <= 45; i++)
- {
- UnmanagedType unmanagedType = (UnmanagedType)i;
- #region Switch
- switch (unmanagedType)
- {
- case UnmanagedType.AsAny:
- MarshalAsAttribute myMarshalAsAttribute1 = new MarshalAsAttribute(unmanagedType);
- if (myMarshalAsAttribute1 == null || myMarshalAsAttribute1.Value != (UnmanagedType)unmanagedType)
- {
- TestLibrary.TestFramework.LogError("007.1", "the intance should not be null and its value ExpectResult is " + ((UnmanagedType)unmanagedType).ToString() + " but the ActualResult is " + myMarshalAsAttribute1.Value.ToString());
- retVal = false;
- }
- break;
- case UnmanagedType.LPArray:
- MarshalAsAttribute myMarshalAsAttribute2 = new MarshalAsAttribute(unmanagedType);
- if (myMarshalAsAttribute2 == null || myMarshalAsAttribute2.Value != (UnmanagedType)unmanagedType)
- {
- TestLibrary.TestFramework.LogError("007.2", "the intance should not be null and its value ExpectResult is " + ((UnmanagedType)unmanagedType).ToString() + " but the ActualResult is " + myMarshalAsAttribute2.Value.ToString());
- retVal = false;
- }
- break;
- case UnmanagedType.LPStruct:
- MarshalAsAttribute myMarshalAsAttribute3 = new MarshalAsAttribute(unmanagedType);
- if (myMarshalAsAttribute3 == null || myMarshalAsAttribute3.Value != (UnmanagedType)unmanagedType)
- {
- TestLibrary.TestFramework.LogError("007.3", "the intance should not be null and its value ExpectResult is " + ((UnmanagedType)unmanagedType).ToString() + " but the ActualResult is " + myMarshalAsAttribute3.Value.ToString());
- retVal = false;
- }
- break;
- case UnmanagedType.Error:
- MarshalAsAttribute myMarshalAsAttribute5 = new MarshalAsAttribute(unmanagedType);
- if (myMarshalAsAttribute5 == null || myMarshalAsAttribute5.Value != (UnmanagedType)unmanagedType)
- {
- TestLibrary.TestFramework.LogError("007.4", "the intance should not be null and its value ExpectResult is " + ((UnmanagedType)unmanagedType).ToString() + " but the ActualResult is " + myMarshalAsAttribute5.Value.ToString());
- retVal = false;
- }
- break;
- }
- #endregion
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-
-}
\ No newline at end of file
+++ /dev/null
-// 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>
-/// MarshalAsAttribute.MarshalCookie [v-minch]
-/// </summary>
-public class MarshalAsAttributeMarshalCookie
-{
- public static int Main()
- {
- MarshalAsAttributeMarshalCookie test = new MarshalAsAttributeMarshalCookie();
- TestLibrary.TestFramework.BeginTestCase("MarshalAsAttribute.MarshalCookie");
- 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;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: Return the field MarshalCookie in MarshalAsAttribute class 1");
- try
- {
- short unmanagedType = Int16.MaxValue;
- MarshalAsAttribute myMarshalAsAttribute = new MarshalAsAttribute(unmanagedType);
- string myMarshalCookie = myMarshalAsAttribute.MarshalCookie;
- if (myMarshalCookie != null)
- {
- TestLibrary.TestFramework.LogError("001", "the ExpectResult is null but the ActualResult is " + myMarshalCookie );
- 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: Return the field MarshalCookie in MarshalAsAttribute class 2");
- try
- {
- MarshalAsAttribute myMarshalAsAttribute = new MarshalAsAttribute(UnmanagedType.ByValArray | UnmanagedType.LPArray);
- string myMarshalCookie = myMarshalAsAttribute.MarshalCookie;
- if (myMarshalCookie != null)
- {
- TestLibrary.TestFramework.LogError("003", "the ExpectResult is null but the ActualResult is " + myMarshalCookie );
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-
-}
\ No newline at end of file
+++ /dev/null
-// 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>
-/// MarshalAsAttribute.MarshalType [v-minch]
-/// </summary>
-public class MarshalAsAttributeMarshalType
-{
- public static int Main()
- {
- MarshalAsAttributeMarshalType test = new MarshalAsAttributeMarshalType();
- TestLibrary.TestFramework.BeginTestCase("MarshalAsAttribute.MarshalType");
- 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;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: Return the field MarshalType in MarshalAsAttribute class 1");
- try
- {
- short unmanagedType = Int16.MaxValue;
- MarshalAsAttribute myMarshalAsAttribute = new MarshalAsAttribute(unmanagedType);
- string myMarshalType = myMarshalAsAttribute.MarshalType;
- if (myMarshalType != null)
- {
- TestLibrary.TestFramework.LogError("001", "the ExpectResult is null but the ActualResult is " + myMarshalType);
- 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: Return the field MarshalType in MarshalAsAttribute class 2");
- try
- {
- MarshalAsAttribute myMarshalAsAttribute = new MarshalAsAttribute(UnmanagedType.Currency);
- string myMarshalType = myMarshalAsAttribute.MarshalType;
- if (myMarshalType != null)
- {
- TestLibrary.TestFramework.LogError("003", "the ExpectResult is null but the ActualResult is " + myMarshalType);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-
-}
\ No newline at end of file
+++ /dev/null
-// 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>
-/// MarshalAsAttribute.MarshalTypeRef [v-minch]
-/// </summary>
-public class MarshalAsAttributeMarshalTypeRef
-{
- public static int Main()
- {
- MarshalAsAttributeMarshalTypeRef test = new MarshalAsAttributeMarshalTypeRef();
- TestLibrary.TestFramework.BeginTestCase("MarshalAsAttribute.MarshalTypeRef");
- 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;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: Return the field MarshalTypeRef in MarshalAsAttribute class 1");
- try
- {
- short unmanagedType = Int16.MaxValue;
- MarshalAsAttribute myMarshalAsAttribute = new MarshalAsAttribute(unmanagedType);
- Type myMarshalTypeRef = myMarshalAsAttribute.MarshalTypeRef;
- if (myMarshalTypeRef != null)
- {
- TestLibrary.TestFramework.LogError("001", "the ExpectResult is null but the ActualResult is " + myMarshalTypeRef.ToString());
- 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: Return the field MarshalTypeRef in MarshalAsAttribute class 2");
- try
- {
- MarshalAsAttribute myMarshalAsAttribute = new MarshalAsAttribute(UnmanagedType.Bool);
- Type myMarshalTypeRef = myMarshalAsAttribute.MarshalTypeRef;
- if (myMarshalTypeRef != null)
- {
- TestLibrary.TestFramework.LogError("003", "the ExpectResult is null but the ActualResult is " + myMarshalTypeRef.ToString());
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-
-}
\ No newline at end of file
+++ /dev/null
-// 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>
-/// MarshalAsAttribute.SizeConst [v-minch]
-/// </summary>
-public class MarshalAsAttributeSizeConst
-{
- public static int Main()
- {
- MarshalAsAttributeSizeConst test = new MarshalAsAttributeSizeConst();
- TestLibrary.TestFramework.BeginTestCase("MarshalAsAttribute.SizeConst");
- 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;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: Return the field SizeConst in MarshalAsAttribute class 1");
- try
- {
- short unmanagedType = Int16.MaxValue;
- MarshalAsAttribute myMarshalAsAttribute = new MarshalAsAttribute(unmanagedType);
- int mySizeConst = myMarshalAsAttribute.SizeConst;
- if (mySizeConst != 0)
- {
- TestLibrary.TestFramework.LogError("001", "the ExpectResult is 0 but the ActualResult is " + mySizeConst);
- 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: Return the field SizeConst in MarshalAsAttribute class 2");
- try
- {
- MarshalAsAttribute myMarshalAsAttribute = new MarshalAsAttribute(UnmanagedType.Currency);
- int mySizeConst = myMarshalAsAttribute.SizeConst;
- if (mySizeConst != 0)
- {
- TestLibrary.TestFramework.LogError("003", "the ExpectResult is 0 but the ActualResult is " + mySizeConst);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-
-}
\ No newline at end of file
+++ /dev/null
-// 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>
-/// MarshalAsAttribute.SizeParamIndex [v-minch]
-/// </summary>
-public class MarshalAsAttributeSizeParamIndex
-{
- public static int Main()
- {
- MarshalAsAttributeSizeParamIndex test = new MarshalAsAttributeSizeParamIndex();
- TestLibrary.TestFramework.BeginTestCase("MarshalAsAttribute.SizeParamIndex");
- 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;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: Return the field SizeParamIndex in MarshalAsAttribute class 1");
- try
- {
- short unmanagedType = Int16.MaxValue;
- MarshalAsAttribute myMarshalAsAttribute = new MarshalAsAttribute(unmanagedType);
- short mySizeParamIndex = myMarshalAsAttribute.SizeParamIndex;
- if (mySizeParamIndex != 0)
- {
- TestLibrary.TestFramework.LogError("001", "the ExpectResult is 0 but the ActualResult is " + mySizeParamIndex);
- 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: Return the field SizeParamIndex in MarshalAsAttribute class 2");
- try
- {
- MarshalAsAttribute myMarshalAsAttribute = new MarshalAsAttribute(UnmanagedType.Currency);
- short mySizeParamIndex = myMarshalAsAttribute.SizeParamIndex;
- if (mySizeParamIndex != 0)
- {
- TestLibrary.TestFramework.LogError("003", "the ExpectResult is 0 but the ActualResult is " + mySizeParamIndex);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-
-}
\ No newline at end of file
+++ /dev/null
-// 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>
-/// MarshalAsAttribute.Value [v-minch]
-/// </summary>
-public class MarshalAsAttributeValue
-{
- public static int Main()
- {
- MarshalAsAttributeValue test = new MarshalAsAttributeValue();
- TestLibrary.TestFramework.BeginTestCase("MarshalAsAttribute.Value");
- 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;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: Return the property Value in MarshalAsAttribute class 1");
- try
- {
- short unmanagedType = Int16.MaxValue;
- MarshalAsAttribute myMarshalAsAttribute = new MarshalAsAttribute(unmanagedType);
- UnmanagedType myValue = myMarshalAsAttribute.Value;
- if (myValue != (UnmanagedType)unmanagedType)
- {
- TestLibrary.TestFramework.LogError("001", "the ExpectResult is "+ unmanagedType.ToString() +" but the ActualResult is " + myValue.ToString());
- 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: Return the property Value in MarshalAsAttribute class 2");
- try
- {
- MarshalAsAttribute myMarshalAsAttribute = new MarshalAsAttribute(UnmanagedType.Currency);
- UnmanagedType myValue = myMarshalAsAttribute.Value;
- if (myValue != UnmanagedType.Currency)
- {
- TestLibrary.TestFramework.LogError("003", "the ExpectResult is " + UnmanagedType.Currency.ToString() +" but the ActualResult is " + myValue.ToString());
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-
-}
\ No newline at end of file
+++ /dev/null
-<?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="outattributector.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>
+++ /dev/null
-// 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>
-/// OutAttribute.ctor() [v-minch]
-/// </summary>
-public class OutAttributeCtor
-{
- public static int Main()
- {
- OutAttributeCtor test = new OutAttributeCtor();
- TestLibrary.TestFramework.BeginTestCase("OutAttribute.ctor()");
- 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: Initialize a instance of OutAttribute class");
- try
- {
- OutAttribute myInstance = new OutAttribute();
- if (myInstance == null)
- {
- TestLibrary.TestFramework.LogError("001", "the instance of OutAttribute creating failed");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
\ No newline at end of file
+++ /dev/null
-<?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="preservesigattributector.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>
+++ /dev/null
-// 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>
-/// PreserveSigAttribute.ctor() [v-minch]
-/// </summary>
-public class PreserveSigAttributeCtor
-{
- public static int Main()
- {
- PreserveSigAttributeCtor test = new PreserveSigAttributeCtor();
- TestLibrary.TestFramework.BeginTestCase("PreserveSigAttribute.ctor()");
- 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: Initialize a instance of PreserveSigAttribute class");
- try
- {
- PreserveSigAttribute myInstance = new PreserveSigAttribute();
- if (myInstance == null)
- {
- TestLibrary.TestFramework.LogError("001", "the instance of PreserveSigAttribute creating failed");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
\ No newline at end of file
+++ /dev/null
-<?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="structlayoutattributecharset.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>
+++ /dev/null
-<?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="structlayoutattributector.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>
+++ /dev/null
-<?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="structlayoutattributepack.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>
+++ /dev/null
-<?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="structlayoutattributesize.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>
+++ /dev/null
-<?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="structlayoutattributevalue.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>
+++ /dev/null
-// 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>
-/// StructLayoutAttribute.CharSet [v-minch]
-/// </summary>
-public class StructLayoutAttributeCharSet
-{
- public static int Main()
- {
- StructLayoutAttributeCharSet test = new StructLayoutAttributeCharSet();
- TestLibrary.TestFramework.BeginTestCase("StructLayoutAttribute.CharSet()");
- 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;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: Return the field CharSet value in StructLayoutAttribute class 1");
- try
- {
- LayoutKind mylayoutkind = LayoutKind.Auto;
- StructLayoutAttribute myInstance = new StructLayoutAttribute(mylayoutkind);
- if (myInstance.CharSet != 0)
- {
- TestLibrary.TestFramework.LogError("001", "the ExpectResult is 0 but the ActualResult is " + myInstance.CharSet.ToString());
- 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: Return the field CharSet value in StructLayoutAttribute class 2");
- try
- {
- LayoutKind mylayoutkind = LayoutKind.Sequential;
- StructLayoutAttribute myInstance = new StructLayoutAttribute(mylayoutkind);
- if (myInstance.CharSet != 0)
- {
- TestLibrary.TestFramework.LogError("003", "the ExpectResult is 0 but the ActualResult is " + myInstance.CharSet.ToString());
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
\ No newline at end of file
+++ /dev/null
-// 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>
-/// StructLayoutAttribute.ctor(LayoutKind) [v-minch]
-/// </summary>
-public class StructLayoutAttributeCtor
-{
- public static int Main()
- {
- StructLayoutAttributeCtor test = new StructLayoutAttributeCtor();
- TestLibrary.TestFramework.BeginTestCase("StructLayoutAttribute.ctor()");
- 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: Initialize a instance of StructLayoutAttribute class");
- try
- {
- LayoutKind mylayoutkind = LayoutKind.Auto;
- StructLayoutAttribute myInstance = new StructLayoutAttribute(mylayoutkind);
- if (myInstance == null || myInstance.Value != mylayoutkind)
- {
- TestLibrary.TestFramework.LogError("001", "the instance of StructLayoutAttribute creating failed");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
\ No newline at end of file
+++ /dev/null
-// 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>
-/// StructLayoutAttribute.Pack [v-minch]
-/// </summary>
-public class StructLayoutAttributePack
-{
- public static int Main()
- {
- StructLayoutAttributePack test = new StructLayoutAttributePack();
- TestLibrary.TestFramework.BeginTestCase("StructLayoutAttribute.Pack()");
- 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;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: Return the field Pack value in StructLayoutAttribute class 1");
- try
- {
- LayoutKind mylayoutkind = LayoutKind.Auto;
- StructLayoutAttribute myInstance = new StructLayoutAttribute(mylayoutkind);
- if (myInstance.Pack != 0)
- {
- TestLibrary.TestFramework.LogError("001", "the ExpectResult is 0 but the ActualResult is " + myInstance.Pack.ToString());
- 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: Return the field Pack value in StructLayoutAttribute class 2");
- try
- {
- LayoutKind mylayoutkind = LayoutKind.Sequential;
- StructLayoutAttribute myInstance = new StructLayoutAttribute(mylayoutkind);
- if (myInstance.Pack != 0)
- {
- TestLibrary.TestFramework.LogError("003", "the ExpectResult is 0 but the ActualResult is " + myInstance.Pack.ToString());
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
\ No newline at end of file
+++ /dev/null
-// 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>
-/// StructLayoutAttribute.Size [v-minch]
-/// </summary>
-public class StructLayoutAttributeSize
-{
- public static int Main()
- {
- StructLayoutAttributeSize test = new StructLayoutAttributeSize();
- TestLibrary.TestFramework.BeginTestCase("StructLayoutAttribute.Size()");
- 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;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: Return the field Size value in StructLayoutAttribute class 1");
- try
- {
- LayoutKind mylayoutkind = LayoutKind.Auto;
- StructLayoutAttribute myInstance = new StructLayoutAttribute(mylayoutkind);
- if (myInstance.Size != 0)
- {
- TestLibrary.TestFramework.LogError("001", "the ExpectResult is 0 but the ActualResult is " + myInstance.Size.ToString());
- 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: Return the field Size value in StructLayoutAttribute class 2");
- try
- {
- LayoutKind mylayoutkind = LayoutKind.Sequential;
- StructLayoutAttribute myInstance = new StructLayoutAttribute(mylayoutkind);
- if (myInstance.Size != 0)
- {
- TestLibrary.TestFramework.LogError("003", "the ExpectResult is 0 but the ActualResult is " + myInstance.Size.ToString());
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
\ No newline at end of file
+++ /dev/null
-// 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>
-/// StructLayoutAttribute.Value [v-minch]
-/// </summary>
-public class StructLayoutAttributeValue
-{
- public static int Main()
- {
- StructLayoutAttributeValue test = new StructLayoutAttributeValue();
- TestLibrary.TestFramework.BeginTestCase("StructLayoutAttribute.Value()");
- 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;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: Return the Value property in StructLayoutAttribute class 1");
- try
- {
- LayoutKind mylayoutkind = LayoutKind.Auto;
- StructLayoutAttribute myInstance = new StructLayoutAttribute(mylayoutkind);
- if (myInstance.Value != mylayoutkind)
- {
- TestLibrary.TestFramework.LogError("001", "the ExpectResult is " + mylayoutkind.ToString() +" but the ActualResult is " + myInstance.Value.ToString());
- 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: Return the Value property in StructLayoutAttribute class 2");
- try
- {
- LayoutKind mylayoutkind = LayoutKind.Sequential;
- StructLayoutAttribute myInstance = new StructLayoutAttribute(mylayoutkind);
- if (myInstance.Value != mylayoutkind)
- {
- TestLibrary.TestFramework.LogError("003", "the ExpectResult is " + mylayoutkind +" but the ActualResult is " + myInstance.Value.ToString());
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
\ No newline at end of file
+++ /dev/null
-<?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="sbytecompareto2.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>
-
+++ /dev/null
-<?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="sbyteequals1.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>
-
+++ /dev/null
-<?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="sbyteequals2.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>
-
+++ /dev/null
-<?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="sbytegethashcode.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>
-
+++ /dev/null
-<?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="sbyteiconvertibletoboolean.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>
-
+++ /dev/null
-<?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="sbyteiconvertibletobyte.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>
-
+++ /dev/null
-<?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="sbyteiconvertibletochar.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>
-
+++ /dev/null
-<?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="sbyteiconvertibletodecimal.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>
-
+++ /dev/null
-<?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="sbyteiconvertibletodouble.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>
-
+++ /dev/null
-<?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="sbyteiconvertibletoint16.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>
-
+++ /dev/null
-<?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="sbyteiconvertibletoint32.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>
-
+++ /dev/null
-<?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="sbyteiconvertibletoint64.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>
-
+++ /dev/null
-<?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="sbyteiconvertibletouint16.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>
-
+++ /dev/null
-<?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="sbyteiconvertibletouint32.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>
-
+++ /dev/null
-<?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="sbyteiconvertibletouint64.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>
-
+++ /dev/null
-<?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="sbytemaxvalue.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>
-
+++ /dev/null
-<?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="sbyteminvalue.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>
-
+++ /dev/null
-// 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>
-/// SByte.CompareTo(SByte)
-/// </summary>
-public class SByteCompareTo2
-{
- public static int Main()
- {
- SByteCompareTo2 sbyteCT2 = new SByteCompareTo2();
- TestLibrary.TestFramework.BeginTestCase("SByteCompareTo2");
- if (sbyteCT2.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;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: The sbyte compared to is less than the source");
- try
- {
- int intA = this.GetInt32(0, 127) + this.GetInt32(0, 129) * (-1);
- sbyte desByte = (sbyte)intA;
- sbyte sourceByte = sbyte.MaxValue;
- int retInt = sourceByte.CompareTo(desByte);
- if (retInt <= 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: The sbyte compared to is larger than the source");
- try
- {
- int intA = this.GetInt32(0, 127) + this.GetInt32(0, 128) * (-1);
- sbyte desByte = (sbyte)intA;
- sbyte sourceByte = sbyte.MinValue;
- int retInt = sourceByte.CompareTo(desByte);
- if (retInt >= 0)
- {
- 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: The sbyte compared to is equal to the source");
- try
- {
- int intA = this.GetInt32(0, 127) + this.GetInt32(0, 128) * (-1);
- sbyte desByte = (sbyte)intA;
- sbyte sourceByte = (sbyte)intA;
- int retInt = sourceByte.CompareTo(desByte);
- if (retInt != 0)
- {
- 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;
- }
- #endregion
- #region HelpMethod
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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>
-/// SByte.Equals(object)
-/// </summary>
-public class SByteEquals1
-{
- public static int Main()
- {
- SByteEquals1 sbyteEquals1 = new SByteEquals1();
- TestLibrary.TestFramework.BeginTestCase("SByteEquals1");
- if (sbyteEquals1.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: The object compare to the SByte maxValue");
- try
- {
- object objVal = SByte.MaxValue;
- sbyte sourceSByte = sbyte.MaxValue;
- bool retbool = sourceSByte.Equals(objVal);
- if (!retbool)
- {
- 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: The object compare to the SByte minValue");
- try
- {
- object objVal = SByte.MinValue;
- sbyte sourceSByte = sbyte.MinValue;
- bool retbool = sourceSByte.Equals(objVal);
- if (!retbool)
- {
- 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: The object compare to the random sbyte");
- try
- {
- sbyte sbyteVal = (sbyte)(this.GetInt32(0, 128) + this.GetInt32(0, 129) * (-1));
- object objVal = sbyteVal;
- sbyte sourceSByte = sbyteVal;
- bool retbool = sourceSByte.Equals(objVal);
- if (!retbool)
- {
- 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: The sbyte maxValue equals sbyte minValue");
- try
- {
- object objVal = sbyte.MinValue;
- sbyte sourceSByte = sbyte.MaxValue;
- bool retbool = sourceSByte.Equals(objVal);
- if (retbool)
- {
- 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: The random sbyte equals random sbyte");
- try
- {
- sbyte sbyteVal = (sbyte)(this.GetInt32(0, 127) + this.GetInt32(0, 128) * (-1));
- object objVal = sbyteVal;
- sbyte sourceSByte = (sbyte)(sbyteVal + 1);
- bool retbool = sourceSByte.Equals(objVal);
- if (retbool)
- {
- 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: The object is not sbyte");
- try
- {
- object objVal = "helloworld";
- sbyte sourceSByte = (sbyte)(this.GetInt32(0, 128) + this.GetInt32(0, 129) * (-1));
- bool retbool = sourceSByte.Equals(objVal);
- if (retbool)
- {
- 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 HelpMethod
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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>
-/// SByte.Equals(SByte)
-/// </summary>
-public class SByteEquals2
-{
- public static int Main()
- {
- SByteEquals2 sbyteEquals2 = new SByteEquals2();
- TestLibrary.TestFramework.BeginTestCase("SByteEquals2");
- if (sbyteEquals2.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;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: The sbyte equals SByte maxValue");
- try
- {
- sbyte desSByte = SByte.MaxValue;
- sbyte sourceSByte = (sbyte)(this.GetInt32(0,127) + this.GetInt32(0,128)*(-1));
- bool retbool = sourceSByte.Equals(desSByte);
- if (retbool)
- {
- 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: The sbyte equals SByte minValue");
- try
- {
- sbyte desSByte = SByte.MinValue;
- sbyte sourceSByte = (sbyte)(this.GetInt32(0, 127) + this.GetInt32(0, 128) * (-1));
- bool retbool = sourceSByte.Equals(desSByte);
- if (retbool)
- {
- 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: The sbyte maxValue equals SByte minValue");
- try
- {
- sbyte desSByte = SByte.MinValue;
- sbyte sourceSByte = SByte.MaxValue;
- bool retbool = sourceSByte.Equals(desSByte);
- if (retbool)
- {
- 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: The sbyte maxValue equals 127");
- try
- {
- sbyte desSByte = 127;
- sbyte sourceSByte = SByte.MaxValue;
- bool retbool = sourceSByte.Equals(desSByte);
- if (!retbool)
- {
- 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: The sbyte minValue equals -128");
- try
- {
- sbyte desSByte = -128;
- sbyte sourceSByte = SByte.MinValue;
- bool retbool = sourceSByte.Equals(desSByte);
- if (!retbool)
- {
- 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;
- }
- #endregion
- #region HelpMethod
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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>
-/// SByte.GetHashCode()
-/// </summary>
-public class SByteGetHashCode
-{
- private const int midVal1 = (int)sbyte.MaxValue - (int)(sbyte.MinValue) + 2;
- private const int midVal2 = (int)sbyte.MaxValue - (int)(sbyte.MinValue);
- public static int Main()
- {
- SByteGetHashCode sbytehash = new SByteGetHashCode();
- TestLibrary.TestFramework.BeginTestCase("SByteGetHashCode");
- if (sbytehash.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;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: Return the SByte MaxValue hashcode");
- try
- {
- sbyte sourceVal = sbyte.MaxValue;
- int retHashCode = sourceVal.GetHashCode();
- if (retHashCode != midVal1*(int)(sbyte.MaxValue))
- {
- 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: Return the SByte MinValue hashcode");
- try
- {
- sbyte sourceVal = sbyte.MinValue;
- int retHashCode = sourceVal.GetHashCode();
- if (retHashCode != midVal2 * (int)sbyte.MinValue * (-1))
- {
- 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: Return the 0 hashcode");
- try
- {
- sbyte sourceVal = 0;
- int retHashCode = sourceVal.GetHashCode();
- if (retHashCode != 0)
- {
- 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: Return the random sbyte hashcode 1");
- try
- {
- sbyte sourceVal = (sbyte)(this.GetInt32(1, 128));
- int retHashCode = sourceVal.GetHashCode();
- if (retHashCode != midVal1 * (int)(sourceVal))
- {
- 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: Return the random sbyte hashcode 2");
- try
- {
- sbyte sourceVal = (sbyte)(this.GetInt32(1, 129) * (-1));
- int retHashCode = sourceVal.GetHashCode();
- if (retHashCode != midVal2 * (int)(sourceVal)*(-1))
- {
- 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;
- }
- #endregion
- #region HelpMethod
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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;
-/// <summary>
-/// SByte.System.IConvertible.ToBoolean(IFormatProvider)
-/// </summary>
-public class SByteIConvertibleToBoolean
-{
- public static int Main()
- {
- SByteIConvertibleToBoolean sbyteIContBool = new SByteIConvertibleToBoolean();
- TestLibrary.TestFramework.BeginTestCase("SByteIConvertibleToBoolean");
- if (sbyteIContBool.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;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest1:The sbyte MaxValue IConvertible To Boolean");
- try
- {
- sbyte sbyteVal = sbyte.MaxValue;
- IConvertible iConvert = (IConvertible)(sbyteVal);
- bool boolA = iConvert.ToBoolean(provider);
- if (!boolA)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:The sbyte MinValue IConvertible To Boolean");
- try
- {
- sbyte sbyteVal = sbyte.MinValue;
- IConvertible iConvert = (IConvertible)(sbyteVal);
- bool boolA = iConvert.ToBoolean(null);
- if (!boolA)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest3:The random sbyte IConvertible To Boolean 1");
- try
- {
- sbyte sbyteVal = 0;
- IConvertible iConvert = (IConvertible)(sbyteVal);
- bool boolA = iConvert.ToBoolean(null);
- if (boolA)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- 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:The random sbyte IConvertible To Boolean 2");
- try
- {
- sbyte sbyteVal = (sbyte)(this.GetInt32(0, 127));
- IConvertible iConvert = (IConvertible)(sbyteVal);
- bool boolA = iConvert.ToBoolean(null);
- if (sbyteVal == 0)
- {
- if (boolA)
- {
- TestLibrary.TestFramework.LogError("007", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- else
- {
- if (!boolA)
- {
- TestLibrary.TestFramework.LogError("007", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest5()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest5:The random sbyte IConvertible To Boolean 3");
- try
- {
- sbyte sbyteVal = (sbyte)(this.GetInt32(0, 128) * (-1));
- IConvertible iConvert = (IConvertible)(sbyteVal);
- bool boolA = iConvert.ToBoolean(provider);
- if (sbyteVal == 0)
- {
- if (boolA)
- {
- TestLibrary.TestFramework.LogError("009", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- else
- {
- if (!boolA)
- {
- TestLibrary.TestFramework.LogError("009", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region HelpMethod
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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;
-/// <summary>
-/// SByte.System.IConvertible.ToByte(IFormatProvider)
-/// </summary>
-public class SByteIConvertibleToByte
-{
- public static int Main()
- {
- SByteIConvertibleToByte sbyteIConToByte = new SByteIConvertibleToByte();
- TestLibrary.TestFramework.BeginTestCase("SByteIConvertibleToByte");
- if (sbyteIConToByte.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("[Negative]");
- retVal = NegTest1() && retVal;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest1:The sbyte MaxValue IConvertible To Byte");
- try
- {
- sbyte sbyteVal = sbyte.MaxValue;
- IConvertible iConvert = (IConvertible)(sbyteVal);
- byte byteVal = iConvert.ToByte(provider);
- if (byteVal != 127)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:The random sbyte IConvertible To Byte 1");
- try
- {
- sbyte sbyteVal = (sbyte)(this.GetInt32(0, 128));
- IConvertible iConvert = (IConvertible)(sbyteVal);
- byte byteVal = iConvert.ToByte(null);
- if (byteVal != (byte)(sbyteVal))
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest3:The random sbyte IConvertible To Byte 2");
- try
- {
- sbyte sbyteVal = (sbyte)(this.GetInt32(0, 128));
- IConvertible iConvert = (IConvertible)(sbyteVal);
- byte byteVal = iConvert.ToByte(provider);
- if (byteVal != (byte)(sbyteVal))
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("NegTest1:The sbyte which out of byte range IConvertible To Byte");
- try
- {
- sbyte sbyteVal = (sbyte)(this.GetInt32(1, 129) * (-1));
- IConvertible iConvert = (IConvertible)(sbyteVal);
- byte byteVal = iConvert.ToByte(provider);
- TestLibrary.TestFramework.LogError("N001", "The sbyte which out of byte range IConvertible To Byte but not throw exception");
- retVal = false;
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #endregion
- #region HelpMethod
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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;
-/// <summary>
-/// SByte.System.IConvertible.ToChar(IFormatProvider)
-/// </summary>
-public class SByteIConvertibleToChar
-{
- public static int Main()
- {
- SByteIConvertibleToChar sbyteIConToChar = new SByteIConvertibleToChar();
- TestLibrary.TestFramework.BeginTestCase("SByteIConvertibleToChar");
- if (sbyteIConToChar.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("[Negative]");
- retVal = NegTest1() && retVal;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest1:The sbyte MaxValue IConvertible To Char");
- try
- {
- sbyte sbyteVal = sbyte.MaxValue;
- IConvertible iConvert = (IConvertible)(sbyteVal);
- char charVal = iConvert.ToChar(provider);
- if (charVal != 127)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:The random sbyte IConvertible To Char 1");
- try
- {
- sbyte sbyteVal = (sbyte)(this.GetInt32(0, 128));
- IConvertible iConvert = (IConvertible)(sbyteVal);
- char charVal = iConvert.ToChar(null);
- if (charVal != (char)(sbyteVal))
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest3:The random sbyte IConvertible To Char 2");
- try
- {
- sbyte sbyteVal = (sbyte)(this.GetInt32(0, 128));
- IConvertible iConvert = (IConvertible)(sbyteVal);
- char charVal = iConvert.ToChar(provider);
- if (charVal != (char)(sbyteVal))
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("NegTest1:The sbyte which out of char range IConvertible To Char");
- try
- {
- sbyte sbyteVal = (sbyte)(this.GetInt32(1, 129) * (-1));
- IConvertible iConvert = (IConvertible)(sbyteVal);
- char charVal = iConvert.ToChar(provider);
- TestLibrary.TestFramework.LogError("N001", "The sbyte which out of char range IConvertible To Char but not throw exception");
- retVal = false;
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region HelpMethod
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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;
-/// <summary>
-/// SByte.System.IConvertible.ToDecimal(IFormatProvider)
-/// </summary>
-public class SByteIConvertibleToDecimal
-{
- public static int Main()
- {
- SByteIConvertibleToDecimal sbyteIConToDecimal = new SByteIConvertibleToDecimal();
- TestLibrary.TestFramework.BeginTestCase("SByteIConvertibleToDecimal");
- if (sbyteIConToDecimal.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 PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest1:The sbyte MaxValue IConvertible To Decimal");
- try
- {
- sbyte sbyteVal = sbyte.MaxValue;
- IConvertible iConvert = (IConvertible)(sbyteVal);
- decimal decimalVal = iConvert.ToDecimal(provider);
- if (decimalVal != 127)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:The sbyte MinValue IConvertible To Decimal");
- try
- {
- sbyte sbyteVal = sbyte.MinValue;
- IConvertible iConvert = (IConvertible)(sbyteVal);
- decimal decimalVal = iConvert.ToDecimal(null);
- if (decimalVal != -128)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest3:The random sbyte IConvertible To Decimal 1");
- try
- {
- sbyte sbyteVal = (sbyte)(this.GetInt32(0, 128));
- IConvertible iConvert = (IConvertible)(sbyteVal);
- decimal decimalVal = iConvert.ToDecimal(provider);
- if (decimalVal != (decimal)sbyteVal)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- 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:The random sbyte IConvertible To Decimal 2");
- try
- {
- sbyte sbyteVal = (sbyte)(this.GetInt32(0, 129) * (-1));
- IConvertible iConvert = (IConvertible)(sbyteVal);
- decimal decimalVal = iConvert.ToDecimal(null);
- if (decimalVal != (decimal)sbyteVal)
- {
- TestLibrary.TestFramework.LogError("007", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region HelpMethod
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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;
-/// <summary>
-/// SByte.System.IConvertible.ToDouble(IFormatProvider)
-/// </summary>
-public class SByteIConvertibleToDouble
-{
- public static int Main()
- {
- SByteIConvertibleToDouble sbyteIConToDouble = new SByteIConvertibleToDouble();
- TestLibrary.TestFramework.BeginTestCase("SByteIConvertibleToDouble");
- if (sbyteIConToDouble.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 PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest1:The sbyte MaxValue IConvertible To Double");
- try
- {
- sbyte sbyteVal = sbyte.MaxValue;
- IConvertible iConvert = (IConvertible)(sbyteVal);
- double doubleVal = iConvert.ToDouble(provider);
- if (doubleVal != 127.0)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("el-GR");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest2:The sbyte MinValue IConvertible To Double");
- try
- {
- sbyte sbyteVal = sbyte.MinValue;
- IConvertible iConvert = (IConvertible)(sbyteVal);
- double doubleVal = iConvert.ToDouble(provider);
- if (doubleVal != -128.0)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("el-GR");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest3:The random sbyte IConvertible To Double 1");
- try
- {
- sbyte sbyteVal = (sbyte)(this.GetInt32(0, 128));
- IConvertible iConvert = (IConvertible)(sbyteVal);
- double doubleVal = iConvert.ToDouble(provider);
- if (doubleVal != (double)(sbyteVal))
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest4()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest4:The random sbyte IConvertible To Double 2");
- try
- {
- sbyte sbyteVal = (sbyte)(this.GetInt32(0, 129) * (-1));
- IConvertible iConvert = (IConvertible)(sbyteVal);
- double doubleVal = iConvert.ToDouble(provider);
- if (doubleVal != (double)(sbyteVal))
- {
- TestLibrary.TestFramework.LogError("007", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region HelpMethod
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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;
-/// <summary>
-/// SByte.System.IConvertible.ToInt16(IFormatProvider)
-/// </summary>
-public class SByteIConvertibleToInt16
-{
- public static int Main()
- {
- SByteIConvertibleToInt16 sbyteIConToInt16 = new SByteIConvertibleToInt16();
- TestLibrary.TestFramework.BeginTestCase("SByteIConvertibleToInt16");
- if (sbyteIConToInt16.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 PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest1:The sbyte MaxValue IConvertible To Int16");
- try
- {
- sbyte sbyteVal = sbyte.MaxValue;
- IConvertible iConvert = (IConvertible)(sbyteVal);
- Int16 Int16Val = iConvert.ToInt16(provider);
- if (Int16Val != 127)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("el-GR");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest2:The sbyte MinValue IConvertible To Int16");
- try
- {
- sbyte sbyteVal = sbyte.MinValue;
- IConvertible iConvert = (IConvertible)(sbyteVal);
- Int16 Int16Val = iConvert.ToInt16(provider);
- if (Int16Val != -128)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("el-GR");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest3:The random sbyte IConvertible To Int16 1");
- try
- {
- sbyte sbyteVal = (sbyte)(this.GetInt32(0, 128));
- IConvertible iConvert = (IConvertible)(sbyteVal);
- Int16 Int16Val = iConvert.ToInt16(provider);
- if (Int16Val != (Int16)(sbyteVal))
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest4()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest4:The random sbyte IConvertible To Int16 2");
- try
- {
- sbyte sbyteVal = (sbyte)(this.GetInt32(0, 129) * (-1));
- IConvertible iConvert = (IConvertible)(sbyteVal);
- Int16 Int16Val = iConvert.ToInt16(provider);
- if (Int16Val != (Int16)(sbyteVal))
- {
- TestLibrary.TestFramework.LogError("007", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region HelpMethod
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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;
-/// <summary>
-/// SByte.System.IConvertible.ToInt32(IFormatProvider)
-/// </summary>
-public class SByteIConvertibleToInt32
-{
- public static int Main()
- {
- SByteIConvertibleToInt32 sbyteIConToInt32 = new SByteIConvertibleToInt32();
- TestLibrary.TestFramework.BeginTestCase("SByteIConvertibleToInt32");
- if (sbyteIConToInt32.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 PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest1:The sbyte MaxValue IConvertible To Int32");
- try
- {
- sbyte sbyteVal = sbyte.MaxValue;
- IConvertible iConvert = (IConvertible)(sbyteVal);
- Int32 Int32Val = iConvert.ToInt32(provider);
- if (Int32Val != 127)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("el-GR");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest2:The sbyte MinValue IConvertible To Int32");
- try
- {
- sbyte sbyteVal = sbyte.MinValue;
- IConvertible iConvert = (IConvertible)(sbyteVal);
- Int32 Int32Val = iConvert.ToInt32(provider);
- if (Int32Val != -128)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("el-GR");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest3:The random sbyte IConvertible To Int32 1");
- try
- {
- sbyte sbyteVal = (sbyte)(this.GetInt32(0, 128));
- IConvertible iConvert = (IConvertible)(sbyteVal);
- Int32 Int32Val = iConvert.ToInt32(provider);
- if (Int32Val != (Int32)(sbyteVal))
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest4()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest4:The random sbyte IConvertible To Int32 2");
- try
- {
- sbyte sbyteVal = (sbyte)(this.GetInt32(0, 129) * (-1));
- IConvertible iConvert = (IConvertible)(sbyteVal);
- Int32 Int32Val = iConvert.ToInt32(provider);
- if (Int32Val != (Int32)(sbyteVal))
- {
- TestLibrary.TestFramework.LogError("007", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region HelpMethod
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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;
-/// <summary>
-/// SByte.System.IConvertible.ToInt64(IFormatProvider)
-/// </summary>
-public class SByteIConvertibleToInt64
-{
- public static int Main()
- {
- SByteIConvertibleToInt64 sbyteIConToInt64 = new SByteIConvertibleToInt64();
- TestLibrary.TestFramework.BeginTestCase("SByteIConvertibleToInt64");
- if (sbyteIConToInt64.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 PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest1:The sbyte MaxValue IConvertible To Int64");
- try
- {
- sbyte sbyteVal = sbyte.MaxValue;
- IConvertible iConvert = (IConvertible)(sbyteVal);
- Int64 Int64Val = iConvert.ToInt64(provider);
- if (Int64Val != 127)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("el-GR");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest2:The sbyte MinValue IConvertible To Int64");
- try
- {
- sbyte sbyteVal = sbyte.MinValue;
- IConvertible iConvert = (IConvertible)(sbyteVal);
- Int64 Int64Val = iConvert.ToInt64(provider);
- if (Int64Val != -128)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("el-GR");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest3:The random sbyte IConvertible To Int64 1");
- try
- {
- sbyte sbyteVal = (sbyte)(this.GetInt32(0, 128));
- IConvertible iConvert = (IConvertible)(sbyteVal);
- Int64 Int64Val = iConvert.ToInt64(provider);
- if (Int64Val != (Int64)(sbyteVal))
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest4()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest4:The random sbyte IConvertible To Int64 2");
- try
- {
- sbyte sbyteVal = (sbyte)(this.GetInt32(0, 129) * (-1));
- IConvertible iConvert = (IConvertible)(sbyteVal);
- Int64 Int64Val = iConvert.ToInt64(provider);
- if (Int64Val != (Int64)(sbyteVal))
- {
- TestLibrary.TestFramework.LogError("007", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region HelpMethod
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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;
-/// <summary>
-/// SByte.System.IConvertible.ToUInt16(IFormatProvider)
-/// </summary>
-public class SByteIConvertibleToUInt16
-{
- public static int Main()
- {
- SByteIConvertibleToUInt16 sbyteIConToUInt16 = new SByteIConvertibleToUInt16();
- TestLibrary.TestFramework.BeginTestCase("SByteIConvertibleToUInt16");
- if (sbyteIConToUInt16.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("[Negative]");
- retVal = NegTest1() && retVal;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest1:The sbyte MaxValue IConvertible To UInt16");
- try
- {
- sbyte sbyteVal = sbyte.MaxValue;
- IConvertible iConvert = (IConvertible)(sbyteVal);
- UInt16 UInt16Val = iConvert.ToUInt16(provider);
- if (UInt16Val != 127)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:The random sbyte IConvertible To UInt16 1");
- try
- {
- sbyte sbyteVal = (sbyte)(this.GetInt32(0, 128));
- IConvertible iConvert = (IConvertible)(sbyteVal);
- UInt16 UInt16Val = iConvert.ToUInt16(null);
- if (UInt16Val != (UInt16)(sbyteVal))
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest3:The random sbyte IConvertible To UInt16 2");
- try
- {
- sbyte sbyteVal = (sbyte)(this.GetInt32(0, 128));
- IConvertible iConvert = (IConvertible)(sbyteVal);
- UInt16 UInt16Val = iConvert.ToUInt16(provider);
- if (UInt16Val != (UInt16)(sbyteVal))
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("NegTest1:The sbyte which out of UInt16 range IConvertible To UInt16");
- try
- {
- sbyte sbyteVal = (sbyte)(this.GetInt32(1, 129) * (-1));
- IConvertible iConvert = (IConvertible)(sbyteVal);
- UInt16 UInt16Val = iConvert.ToUInt16(provider);
- TestLibrary.TestFramework.LogError("N001", "The sbyte which out of UInt16 range IConvertible To UInt16 but not throw exception");
- retVal = false;
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region HelpMethod
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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;
-/// <summary>
-/// SByte.System.IConvertible.ToUInt32(IFormatProvider)
-/// </summary>
-public class SByteIConvertibleToUInt32
-{
- public static int Main()
- {
- SByteIConvertibleToUInt32 sbyteIConToUInt32 = new SByteIConvertibleToUInt32();
- TestLibrary.TestFramework.BeginTestCase("SByteIConvertibleToUInt32");
- if (sbyteIConToUInt32.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("[Negative]");
- retVal = NegTest1() && retVal;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest1:The sbyte MaxValue IConvertible To UInt32");
- try
- {
- sbyte sbyteVal = sbyte.MaxValue;
- IConvertible iConvert = (IConvertible)(sbyteVal);
- UInt32 UInt32Val = iConvert.ToUInt32(provider);
- if (UInt32Val != 127)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:The random sbyte IConvertible To UInt32 1");
- try
- {
- sbyte sbyteVal = (sbyte)(this.GetInt32(0, 128));
- IConvertible iConvert = (IConvertible)(sbyteVal);
- UInt32 UInt32Val = iConvert.ToUInt32(null);
- if (UInt32Val != (UInt32)(sbyteVal))
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest3:The random sbyte IConvertible To UInt32 2");
- try
- {
- sbyte sbyteVal = (sbyte)(this.GetInt32(0, 128));
- IConvertible iConvert = (IConvertible)(sbyteVal);
- UInt32 UInt32Val = iConvert.ToUInt32(provider);
- if (UInt32Val != (UInt32)(sbyteVal))
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("NegTest1:The sbyte which out of UInt32 range IConvertible To UInt32");
- try
- {
- sbyte sbyteVal = (sbyte)(this.GetInt32(1, 129) * (-1));
- IConvertible iConvert = (IConvertible)(sbyteVal);
- UInt32 UInt32Val = iConvert.ToUInt32(provider);
- TestLibrary.TestFramework.LogError("N001", "The sbyte which out of UInt32 range IConvertible To UInt32 but not throw exception");
- retVal = false;
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region HelpMethod
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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;
-/// <summary>
-/// SByte.System.IConvertible.ToUInt64(IFormatProvider)
-/// </summary>
-public class SByteIConvertibleToUInt64
-{
- public static int Main()
- {
- SByteIConvertibleToUInt64 sbyteIConToUInt64 = new SByteIConvertibleToUInt64();
- TestLibrary.TestFramework.BeginTestCase("SByteIConvertibleToUInt64");
- if (sbyteIConToUInt64.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("[Negative]");
- retVal = NegTest1() && retVal;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest1:The sbyte MaxValue IConvertible To UInt64");
- try
- {
- sbyte sbyteVal = sbyte.MaxValue;
- IConvertible iConvert = (IConvertible)(sbyteVal);
- UInt64 UInt64Val = iConvert.ToUInt64(provider);
- if (UInt64Val != 127)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:The random sbyte IConvertible To UInt64 1");
- try
- {
- sbyte sbyteVal = (sbyte)(this.GetInt32(0, 128));
- IConvertible iConvert = (IConvertible)(sbyteVal);
- UInt64 UInt64Val = iConvert.ToUInt64(null);
- if (UInt64Val != (UInt64)(sbyteVal))
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("PosTest3:The random sbyte IConvertible To UInt64 2");
- try
- {
- sbyte sbyteVal = (sbyte)(this.GetInt32(0, 128));
- IConvertible iConvert = (IConvertible)(sbyteVal);
- UInt64 UInt64Val = iConvert.ToUInt64(provider);
- if (UInt64Val != (UInt64)(sbyteVal))
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- CultureInfo myculture = new CultureInfo("en-us");
- IFormatProvider provider = myculture.NumberFormat;
- TestLibrary.TestFramework.BeginScenario("NegTest1:The sbyte which out of UInt64 range IConvertible To UInt64");
- try
- {
- sbyte sbyteVal = (sbyte)(this.GetInt32(1, 129) * (-1));
- IConvertible iConvert = (IConvertible)(sbyteVal);
- UInt64 UInt64Val = iConvert.ToUInt64(provider);
- TestLibrary.TestFramework.LogError("N001", "The sbyte which out of UInt64 range IConvertible To UInt64 but not throw exception");
- retVal = false;
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region HelpMethod
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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>
-/// SByte.MaxValue
-/// </summary>
-public class SByteMaxValue
-{
- public static int Main()
- {
- SByteMaxValue sbyteMax = new SByteMaxValue();
- TestLibrary.TestFramework.BeginTestCase("SByteMaxValue");
- if (sbyteMax.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 PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:Return the SByte MaxValue 1");
- try
- {
- sbyte sbMaxVal = SByte.MaxValue;
- if (sbMaxVal != 127)
- {
- 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:Return the SByte MaxValue 2");
- try
- {
- sbyte sbMaxVal = SByte.MaxValue;
- if (sbMaxVal != 0x7F)
- {
- 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;
- }
- #endregion
-}
\ No newline at end of file
+++ /dev/null
-// 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>
-/// SByte.MinValue
-/// </summary>
-public class SByteMinValue
-{
- public static int Main()
- {
- SByteMinValue sbyteMin = new SByteMinValue();
- TestLibrary.TestFramework.BeginTestCase("SByteMinValue");
- if (sbyteMin.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:Return the SByte MinValue 1");
- try
- {
- sbyte sbMaxVal = SByte.MinValue;
- if (sbMaxVal != -128)
- {
- 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
-
-}
\ No newline at end of file
+++ /dev/null
-<?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="singleepsilon.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>
-
+++ /dev/null
-<?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="singleisinfinity.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>
-
+++ /dev/null
-<?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="singleisnan.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>
-
+++ /dev/null
-<?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="singleisnegativeinfinity.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>
-
+++ /dev/null
-<?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="singleispositiveinfinity.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>
-
+++ /dev/null
-<?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="singlemaxvalue.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>
-
+++ /dev/null
-<?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="singleminvalue.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>
-
+++ /dev/null
-<?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="singlenan.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>
-
+++ /dev/null
-<?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="singletoboolean.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>
-
+++ /dev/null
-<?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="singletobyte.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>
-
+++ /dev/null
-<?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="singletochar.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>
-
+++ /dev/null
-<?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="singletodatetime.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>
-
+++ /dev/null
-<?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="singletodecimal.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>
-
+++ /dev/null
-<?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="singletodouble.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>
-
+++ /dev/null
-<?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="singletoint16.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>
-
+++ /dev/null
-<?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="singletoint32.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>
-
+++ /dev/null
-<?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="singletoint64.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>
-
+++ /dev/null
-<?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="singletosbyte.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>
-
+++ /dev/null
-<?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="singletosingle.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>
-
+++ /dev/null
-<?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="singletouint16.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>
-
+++ /dev/null
-<?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="singletouint32.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>
-
+++ /dev/null
-<?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="singletouint64.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>
-
+++ /dev/null
-// 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>
-/// IsInfinity(System.Single)
-/// </summary>
-public class SingleIsInfinity
-{
- #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: check a random Single,isInfinity return false.");
-
- try
- {
- Single i1 = TestLibrary.Generator.GetSingle(-55);
- if (Single.IsInfinity(i1))
- {
- TestLibrary.TestFramework.LogError("001.1", "IsInfinity should return false. ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: check value which is not a number, has a correct IsInfinity return value.");
-
- try
- {
- Single i1 = Single.NaN;
- if (Single.IsInfinity(i1))
- {
- TestLibrary.TestFramework.LogError("002.1", "IsInfinity should return false. ");
- retVal = false;
- }
- i1 = Single.NegativeInfinity;
- if (!Single.IsInfinity(i1))
- {
- TestLibrary.TestFramework.LogError("002.2", "IsInfinity should return true. ");
- retVal = false;
- }
- i1 = Single.PositiveInfinity;
- if (!Single.IsInfinity(i1))
- {
- TestLibrary.TestFramework.LogError("002.3", "IsInfinity should return true. ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.4", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #endregion
-
- public static int Main()
- {
- SingleIsInfinity test = new SingleIsInfinity();
-
- TestLibrary.TestFramework.BeginTestCase("SingleIsInfinity");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-}
+++ /dev/null
-// 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>
-/// IsNaN(System.Single)
-/// </summary>
-public class SingleIsNaN
-{
- #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: check a random Single,IsNaN return false.");
-
- try
- {
- Single i1 = TestLibrary.Generator.GetSingle(-55);
- if (Single.IsNaN(i1))
- {
- TestLibrary.TestFramework.LogError("001.1", "IsNaN should return false. ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: check value which is not a number, has a correct IsNaN return value.");
-
- try
- {
- Single i1 = Single.NaN;
- if (!Single.IsNaN(i1))
- {
- TestLibrary.TestFramework.LogError("002.1", "IsNaN should return true. ");
- retVal = false;
- }
- i1 = Single.NegativeInfinity;
- if (Single.IsNaN(i1))
- {
- TestLibrary.TestFramework.LogError("002.2", "IsNaN should return false. ");
- retVal = false;
- }
- i1 = Single.PositiveInfinity;
- if (Single.IsNaN(i1))
- {
- TestLibrary.TestFramework.LogError("002.3", "IsNaN should return false. ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.4", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #endregion
-
- public static int Main()
- {
- SingleIsNaN test = new SingleIsNaN();
-
- TestLibrary.TestFramework.BeginTestCase("SingleIsNaN");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-}
+++ /dev/null
-// 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>
-/// IsNegativeInfinity(System.Single)
-/// </summary>
-public class SingleIsNegativeInfinity
-{
- #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: check a random Single,IsNegativeInfinity return false.");
-
- try
- {
- Single i1 = TestLibrary.Generator.GetSingle(-55);
- if (Single.IsNegativeInfinity(i1))
- {
- TestLibrary.TestFramework.LogError("001.1", "IsNegativeInfinity should return false. ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: check value which is not a number, has a correct IsNegativeInfinity return value.");
-
- try
- {
- Single i1 = Single.NaN;
- if (Single.IsNegativeInfinity(i1))
- {
- TestLibrary.TestFramework.LogError("002.1", "IsNegativeInfinity should return false. ");
- retVal = false;
- }
- i1 = Single.NegativeInfinity;
- if (!Single.IsNegativeInfinity(i1))
- {
- TestLibrary.TestFramework.LogError("002.2", "IsNegativeInfinity should return true. ");
- retVal = false;
- }
- i1 = Single.PositiveInfinity;
- if (Single.IsNegativeInfinity(i1))
- {
- TestLibrary.TestFramework.LogError("002.3", "IsNegativeInfinity should return false. ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.4", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #endregion
-
- public static int Main()
- {
- SingleIsNegativeInfinity test = new SingleIsNegativeInfinity();
-
- TestLibrary.TestFramework.BeginTestCase("SingleIsNegativeInfinity");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-}
+++ /dev/null
-// 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>
-/// IsPositiveInfinity(System.Single)
-/// </summary>
-public class SingleIsPositiveInfinity
-{
- #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: check a random Single,IsPositiveInfinity return false.");
-
- try
- {
- Single i1 = TestLibrary.Generator.GetSingle(-55);
- if (Single.IsPositiveInfinity(i1))
- {
- TestLibrary.TestFramework.LogError("001.1", "IsPositiveInfinity should return false. ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: check value which is not a number, has a correct IsPositiveInfinity return value.");
-
- try
- {
- Single i1 = Single.NaN;
- if (Single.IsPositiveInfinity(i1))
- {
- TestLibrary.TestFramework.LogError("002.1", "IsPositiveInfinity should return false. ");
- retVal = false;
- }
- i1 = Single.NegativeInfinity;
- if (Single.IsPositiveInfinity(i1))
- {
- TestLibrary.TestFramework.LogError("002.2", "IsPositiveInfinity should return false. ");
- retVal = false;
- }
- i1 = Single.PositiveInfinity;
- if (!Single.IsPositiveInfinity(i1))
- {
- TestLibrary.TestFramework.LogError("002.3", "IsPositiveInfinity should return true. ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.4", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #endregion
-
- public static int Main()
- {
- SingleIsPositiveInfinity test = new SingleIsPositiveInfinity();
-
- TestLibrary.TestFramework.BeginTestCase("SingleIsPositiveInfinity");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-}
+++ /dev/null
-// 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;
-/// <summary>
-///System.IConvertible.ToBoolean(System.IFormatProvider)
-/// </summary>
-public class SingleToBoolean
-{
- #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;
- return retVal;
- }
-
- #region Positive Test Cases
- //CultureInfo.GetCultureInfo has been removed. Replaced by CultureInfo ctor.
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Check a random single.");
-
- try
- {
- Single i1 = TestLibrary.Generator.GetSingle(-55);
- CultureInfo myCulture = new CultureInfo("en-us");
- bool actualValue = ((IConvertible)i1).ToBoolean(myCulture);
- if (!actualValue)
- {
- TestLibrary.TestFramework.LogError("001.1", "ToBoolean return failed. ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: check Single which is not a number .");
-
- try
- {
- Single i1 = Single.NaN;
- CultureInfo myCulture = new CultureInfo("en-us");
- bool actualValue = ((IConvertible)i1).ToBoolean(myCulture);
- if (!actualValue)
- {
- TestLibrary.TestFramework.LogError("002.1", "ToBoolean return failed. ");
- retVal = false;
- }
- i1 = Single.NegativeInfinity;
- actualValue = ((IConvertible)i1).ToBoolean(myCulture);
- if (!actualValue)
- {
- TestLibrary.TestFramework.LogError("002.2", "ToBoolean return failed.");
- retVal = false;
- }
- i1 = Single.PositiveInfinity;
- actualValue = ((IConvertible)i1).ToBoolean(myCulture);
- if (!actualValue)
- {
- TestLibrary.TestFramework.LogError("002.3", "ToBoolean return failed. ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.4", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Check a single which is -123456789.");
-
- try
- {
- Single i1 = -123456789;
- CultureInfo myCulture = new CultureInfo("en-us");
- bool actualValue = ((IConvertible)i1).ToBoolean(myCulture);
- if (!actualValue)
- {
- TestLibrary.TestFramework.LogError("003.1", "ToBoolean return failed. ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool PosTest4()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: Check a single which is 123.45e+6.");
-
- try
- {
- Single i1 = (Single)123.45e+6;
- CultureInfo myCulture = new CultureInfo("en-us");
- bool actualValue = ((IConvertible)i1).ToBoolean(myCulture);
- if (!actualValue)
- {
- TestLibrary.TestFramework.LogError("004.1", "ToBoolean return failed. ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool PosTest5()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest5: Check a single which is -.123.");
-
- try
- {
- Single i1 = (Single)(-.123);
- CultureInfo myCulture = new CultureInfo("en-us");
- bool actualValue = ((IConvertible)i1).ToBoolean(myCulture);
- if (!actualValue)
- {
- TestLibrary.TestFramework.LogError("005.1", "ToBoolean return failed. ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("005.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest6()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest6: Check a single which is +123.");
-
- try
- {
- Single i1 = (Single)(+123);
- CultureInfo myCulture = new CultureInfo("en-us");
- bool actualValue = ((IConvertible)i1).ToBoolean(myCulture);
- if (!actualValue)
- {
- TestLibrary.TestFramework.LogError("006.1", "ToBoolean return failed. ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #endregion
-
- public static int Main()
- {
- SingleToBoolean test = new SingleToBoolean();
-
- TestLibrary.TestFramework.BeginTestCase("SingleToBoolean");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-}
+++ /dev/null
-// 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;
-/// <summary>
-///System.IConvertible.ToByte(System.IFormatProvider)
-/// </summary>
-public class SingleToByte
-{
- #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
- //CultureInfo.GetCultureInfo has been removed. Replaced by CultureInfo ctor.
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Check a random single.");
-
- try
- {
- Single i1 = TestLibrary.Generator.GetSingle(-55);
- CultureInfo myCulture = new CultureInfo("en-us");
- byte expectVaule;
- if (i1 > 0.5)
- expectVaule = 1;
- else
- expectVaule = 0;
- byte actualValue = ((IConvertible)i1).ToByte(myCulture);
- if (actualValue != expectVaule)
- {
- TestLibrary.TestFramework.LogError("001.1", "ToByte return failed. ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Check a single which is -.123.");
-
- try
- {
- Single i1 = (Single)(-.123);
- CultureInfo myCulture = new CultureInfo("en-us");
- byte actualValue = ((IConvertible)i1).ToByte(myCulture);
- if (actualValue != 0)
- {
- TestLibrary.TestFramework.LogError("002.1", "ToByte return failed. ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
-
- #endregion
-
- #endregion
-
- public static int Main()
- {
- SingleToByte test = new SingleToByte();
-
- TestLibrary.TestFramework.BeginTestCase("SingleToByte");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-}
+++ /dev/null
-// 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;
-/// <summary>
-///System.IConvertible.ToDecimal(System.IFormatProvider)
-/// </summary>
-public class SingleToDecimal
-{
- #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
- //CultureInfo.GetCultureInfo has been removed. Replaced by CultureInfo ctor.
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Check a random single.");
-
- try
- {
- Single i1 = TestLibrary.Generator.GetSingle(-55);
- CultureInfo myCulture = new CultureInfo("en-us");
- Decimal actualValue = ((IConvertible)i1).ToDecimal(myCulture);
- if (actualValue.ToString() != i1.ToString())
- {
- TestLibrary.TestFramework.LogError("001.1", "ToDecimal return failed. ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Check a single which is -.123.");
-
- try
- {
- Single i1 = (Single)(-.123);
- CultureInfo myCulture = new CultureInfo("en-us");
- Decimal actualValue = ((IConvertible)i1).ToDecimal(myCulture);
- if (actualValue!= (Decimal)(-0.123))
- {
- TestLibrary.TestFramework.LogError("002.1", "ToDecimal return failed. ");
- retVal = false;
- }
-
- }
-
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Check a single which is +.123.");
-
- try
- {
- Single i1 = (Single)(+.123);
- CultureInfo myCulture = new CultureInfo("en-us");
- Decimal actualValue = ((IConvertible)i1).ToDecimal(myCulture);
- if (actualValue != (Decimal)(+0.123))
- {
- TestLibrary.TestFramework.LogError("003.1", "ToDecimal return failed. ");
- retVal = false;
- }
-
- }
-
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #endregion
-
- public static int Main()
- {
- SingleToDecimal test = new SingleToDecimal();
-
- TestLibrary.TestFramework.BeginTestCase("SingleToDecimal");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-}
+++ /dev/null
-// 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;
-/// <summary>
-///System.IConvertible.ToDouble(System.IFormatProvider)
-/// </summary>
-public class SingleToDouble
-{
- #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
- //CultureInfo.GetCultureInfo has been removed. Replaced by CultureInfo ctor.
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Check a random single.");
-
- try
- {
- Single i1 = TestLibrary.Generator.GetSingle(-55);
- CultureInfo myCulture = new CultureInfo("en-us");
- double actualValue = ((IConvertible)i1).ToDouble(myCulture);
- if (actualValue.ToString("G9") != i1.ToString("G9"))
- {
- TestLibrary.TestFramework.LogError("001.1", "ToDouble return failed. ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Check a single which is -.12300000339746475.");
-
- try
- {
- Single i1 = (Single)(-.12300000339746475);
- CultureInfo myCulture = new CultureInfo("en-us");
- Double actualValue = ((IConvertible)i1).ToDouble(myCulture);
- if (actualValue != (Double)(-.12300000339746475))
- {
- TestLibrary.TestFramework.LogError("002.1", "ToDouble return failed. ");
- retVal = false;
- }
-
- }
-
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Check a single which is +.12300000339746475.");
-
- try
- {
- Single i1 = (Single)(+.12300000339746475);
- CultureInfo myCulture = new CultureInfo("en-us");
- Double actualValue = ((IConvertible)i1).ToDouble(myCulture);
- if (actualValue != (Double)(+0.12300000339746475))
- {
- TestLibrary.TestFramework.LogError("003.1", "ToDouble return failed. ");
- retVal = false;
- }
-
- }
-
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #endregion
-
- public static int Main()
- {
- SingleToDouble test = new SingleToDouble();
-
- TestLibrary.TestFramework.BeginTestCase("SingleToDouble");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-}
+++ /dev/null
-// 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;
-/// <summary>
-///System.IConvertible.ToInt16(System.IFormatProvider)
-/// </summary>
-public class SingleToInt16
-{
- #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("[Negtive]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- return retVal;
- }
-
- #region Positive Test Cases
- //CultureInfo.GetCultureInfo has been removed. Replaced by CultureInfo ctor.
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Check a random single.");
-
- try
- {
- Single i1 = TestLibrary.Generator.GetSingle(-55);
- short expectValue = 0;
- if (i1 > 0.5)
- expectValue = 1;
- else
- expectValue = 0;
- CultureInfo myCulture = new CultureInfo("en-us");
- short actualValue = ((IConvertible)i1).ToInt16(myCulture);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.1", "ToInt16 return failed. ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Check a single which is -123.");
-
- try
- {
- Single i1 = (Single)(-123);
- CultureInfo myCulture = new CultureInfo("en-us");
- short actualValue = ((IConvertible)i1).ToInt16(myCulture);
- if (actualValue != (short)(-123))
- {
- TestLibrary.TestFramework.LogError("002.1", "ToInt16 return failed. ");
- retVal = false;
- }
-
- }
-
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Check a single which is +123.");
-
- try
- {
- Single i1 = (Single)(+123);
- CultureInfo myCulture = new CultureInfo("en-us");
- short actualValue = ((IConvertible)i1).ToInt16(myCulture);
- if (actualValue != (Double)(+123))
- {
- TestLibrary.TestFramework.LogError("003.1", "ToInt16 return failed. ");
- retVal = false;
- }
-
- }
-
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool NegTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: Check a single which is >Int16.MaxValue.");
-
- try
- {
- Single i1 = (Single)(Int16.MaxValue + 1);
- CultureInfo myCulture = new CultureInfo("en-us");
- short actualValue = ((IConvertible)i1).ToInt16(myCulture);
- TestLibrary.TestFramework.LogError("101.1", "ToInt16 return failed. ");
- retVal = false;
-
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("101.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: Check a single which is <Int16.MinValue.");
-
- try
- {
- Single i1 = (Single)(Int16.MinValue - 1);
- CultureInfo myCulture = new CultureInfo("en-us");
- short actualValue = ((IConvertible)i1).ToInt16(myCulture);
- TestLibrary.TestFramework.LogError("102.1", "ToInt16 return failed. ");
- retVal = false;
-
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #endregion
-
- public static int Main()
- {
- SingleToInt16 test = new SingleToInt16();
-
- TestLibrary.TestFramework.BeginTestCase("SingleToInt16");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-}
+++ /dev/null
-// 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;
-/// <summary>
-///System.IConvertible.ToInt32(System.IFormatProvider)
-/// </summary>
-public class SingleToInt32
-{
- #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("[Negtive]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- return retVal;
- }
-
- #region Positive Test Cases
- //CultureInfo.GetCultureInfo has been removed. Replaced by CultureInfo ctor.
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Check a random single.");
-
- try
- {
- Single i1 = TestLibrary.Generator.GetSingle(-55);
- int expectValue = 0;
- if (i1 > 0.5)
- expectValue = 1;
- else
- expectValue = 0;
- CultureInfo myCulture = new CultureInfo("en-us");
- int actualValue = ((IConvertible)i1).ToInt32(myCulture);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.1", "ToInt32 return failed. ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Check a single which is -123.");
-
- try
- {
- Single i1 = (Single)(-123);
- CultureInfo myCulture = new CultureInfo("en-us");
- int actualValue = ((IConvertible)i1).ToInt32(myCulture);
- if (actualValue != (int)(-123))
- {
- TestLibrary.TestFramework.LogError("002.1", "ToInt32 return failed. ");
- retVal = false;
- }
-
- }
-
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Check a single which is +123.");
-
- try
- {
- Single i1 = (Single)(+123);
- CultureInfo myCulture = new CultureInfo("en-us");
- int actualValue = ((IConvertible)i1).ToInt32(myCulture);
- if (actualValue != (Double)(+123))
- {
- TestLibrary.TestFramework.LogError("003.1", "ToInt32 return failed. ");
- retVal = false;
- }
-
- }
-
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool NegTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: Check a single which is >Int32.MaxValue.");
-
- try
- {
-
- Single i1 = (float)Int32.MaxValue + 1.0f;
- CultureInfo myCulture = new CultureInfo("en-us");
- int actualValue = ((IConvertible)i1).ToInt32(myCulture);
- TestLibrary.TestFramework.LogError("101.1", "ToInt32 return failed. ");
- retVal = false;
-
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("101.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: Check a single which is <Int32.MinValue.");
-
- try
- {
- Single i1 = (float)Int32.MaxValue - 1.0f;
- CultureInfo myCulture = new CultureInfo("en-us");
- int actualValue = ((IConvertible)i1).ToInt32(myCulture);
- TestLibrary.TestFramework.LogError("102.1", "ToInt32 return failed. ");
- retVal = false;
-
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #endregion
-
- public static int Main()
- {
- SingleToInt32 test = new SingleToInt32();
-
- TestLibrary.TestFramework.BeginTestCase("SingleToInt32");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-}
+++ /dev/null
-// 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;
-/// <summary>
-///System.IConvertible.ToInt64(System.IFormatProvider)
-/// </summary>
-public class SingleToInt64
-{
- #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("[Negtive]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- return retVal;
- }
-
- #region Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Check a random single.");
-
- try
- {
- Single i1 = TestLibrary.Generator.GetSingle(-55);
- int expectValue = 0;
- if (i1 > 0.5)
- expectValue = 1;
- else
- expectValue = 0;
- CultureInfo myCulture = new CultureInfo("en-US");
- long actualValue = ((IConvertible)i1).ToInt64(myCulture);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.1", "ToInt64 return failed. ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Check a single which is -123.");
-
- try
- {
- Single i1 = (Single)(-123);
- CultureInfo myCulture = new CultureInfo("en-US");
- long actualValue = ((IConvertible)i1).ToInt64(myCulture);
- if (actualValue != (long)(-123))
- {
- TestLibrary.TestFramework.LogError("002.1", "ToInt64 return failed. ");
- retVal = false;
- }
-
- }
-
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Check a single which is +123.");
-
- try
- {
- Single i1 = (Single)(+123);
- CultureInfo myCulture = new CultureInfo("en-US");
- long actualValue = ((IConvertible)i1).ToInt64(myCulture);
- if (actualValue != (long)(+123))
- {
- TestLibrary.TestFramework.LogError("003.1", "ToInt64 return failed. ");
- retVal = false;
- }
-
- }
-
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool NegTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: Check a single which is >Int64.MaxValue.");
-
- try
- {
-
- Single i1 = (float)Int64.MaxValue + 1.0f;
- CultureInfo myCulture = new CultureInfo("en-US");
- long actualValue = ((IConvertible)i1).ToInt64(myCulture);
- TestLibrary.TestFramework.LogError("101.1", "ToInt64 return failed. ");
- retVal = false;
-
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("101.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: Check a single which is <Int64.MinValue.");
-
- try
- {
- Single i1 = (float)Int64.MinValue - (float)Int64.MaxValue;
- CultureInfo myCulture = new CultureInfo("en-US");
- long actualValue = ((IConvertible)i1).ToInt64(myCulture);
- TestLibrary.TestFramework.LogError("102.1", "ToInt64 return failed. ");
- retVal = false;
-
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #endregion
-
- public static int Main()
- {
- SingleToInt64 test = new SingleToInt64();
-
- TestLibrary.TestFramework.BeginTestCase("SingleToInt64");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-}
+++ /dev/null
-// 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;
-/// <summary>
-///System.IConvertible.ToSByte(System.IFormatProvider)
-/// </summary>
-public class SingleToSByte
-{
- #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("[Negtive]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- return retVal;
- }
-
- #region Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Check a random single.");
-
- try
- {
- Single i1 = TestLibrary.Generator.GetSingle(-55);
- int expectValue = 0;
- if (i1 > 0.5)
- expectValue = 1;
- else
- expectValue = 0;
- CultureInfo myCulture = new CultureInfo("en-US");
- sbyte actualValue = ((IConvertible)i1).ToSByte(myCulture);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.1", "ToSByte return failed. ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Check a single which is -123.");
-
- try
- {
- Single i1 = (Single)(-123);
- CultureInfo myCulture = new CultureInfo("en-US");
- sbyte actualValue = ((IConvertible)i1).ToSByte(myCulture);
- if (actualValue != (sbyte)(-123))
- {
- TestLibrary.TestFramework.LogError("002.1", "ToSByte return failed. ");
- retVal = false;
- }
-
- }
-
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Check a single which is +123.");
-
- try
- {
- Single i1 = (Single)(+123);
- CultureInfo myCulture = new CultureInfo("en-US");
- sbyte actualValue = ((IConvertible)i1).ToSByte(myCulture);
- if (actualValue != (sbyte)(+123))
- {
- TestLibrary.TestFramework.LogError("003.1", "ToSByte return failed. ");
- retVal = false;
- }
-
- }
-
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool NegTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: Check a single which is >SByte.MaxValue.");
-
- try
- {
-
- Single i1 = (float)SByte.MaxValue + 1.0f;
- CultureInfo myCulture = new CultureInfo("en-US");
- sbyte actualValue = ((IConvertible)i1).ToSByte(myCulture);
- TestLibrary.TestFramework.LogError("101.1", "ToSByte return failed. ");
- retVal = false;
-
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("101.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: Check a single which is <SByte.MinValue.");
-
- try
- {
- Single i1 = (float)SByte.MinValue - 1.0f;
- CultureInfo myCulture = new CultureInfo("en-US");
- sbyte actualValue = ((IConvertible)i1).ToSByte(myCulture);
- TestLibrary.TestFramework.LogError("102.1", "ToSByte return failed. ");
- retVal = false;
-
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #endregion
-
- public static int Main()
- {
- SingleToSByte test = new SingleToSByte();
-
- TestLibrary.TestFramework.BeginTestCase("SingleToSByte");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-}
+++ /dev/null
-// 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;
-/// <summary>
-///System.IConvertible.ToSingle(System.IFormatProvider)
-/// </summary>
-public class SingleToSingle
-{
- #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: Check a random single.");
-
- try
- {
- Single i1 = TestLibrary.Generator.GetSingle(-55);
-
- CultureInfo myCulture = new CultureInfo("en-US");
- Single actualValue = ((IConvertible)i1).ToSingle(myCulture);
- if (actualValue != i1)
- {
- TestLibrary.TestFramework.LogError("001.1", "ToSingle return failed. ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Check a single which is -123.");
-
- try
- {
- Single i1 = (Single)(-123);
- CultureInfo myCulture = new CultureInfo("en-US");
- Single actualValue = ((IConvertible)i1).ToSingle(myCulture);
- if (actualValue != i1)
- {
- TestLibrary.TestFramework.LogError("002.1", "ToSingle return failed. ");
- retVal = false;
- }
-
- }
-
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Check a single which is +123.");
-
- try
- {
- Single i1 = (Single)(+123);
- CultureInfo myCulture = new CultureInfo("en-US");
- Single actualValue = ((IConvertible)i1).ToSingle(myCulture);
- if (actualValue != i1)
- {
- TestLibrary.TestFramework.LogError("003.1", "ToSingle return failed. ");
- retVal = false;
- }
-
- }
-
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: check a single which is not a number .");
-
- try
- {
- Single i1 = Single.NaN;
- CultureInfo myCulture = new CultureInfo("en-US");
- Single actualValue = ((IConvertible)i1).ToSingle(myCulture);
- if (!Single.IsNaN(actualValue))
- {
- TestLibrary.TestFramework.LogError("004.1", "ToSingle return failed. ");
- retVal = false;
- }
- i1 = Single.NegativeInfinity;
- myCulture = new CultureInfo("en-US");
- actualValue = ((IConvertible)i1).ToSingle(myCulture);
- if (!Single.IsNegativeInfinity(actualValue))
- {
- TestLibrary.TestFramework.LogError("004.2", "ToSingle return failed. ");
- retVal = false;
- }
- i1 = Single.PositiveInfinity;
- myCulture = new CultureInfo("en-US");
- actualValue = ((IConvertible)i1).ToSingle(myCulture);
- if (!Single.IsPositiveInfinity(actualValue))
- {
- TestLibrary.TestFramework.LogError("004.3", "ToSingle return failed. ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.0", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #endregion
-
- public static int Main()
- {
- SingleToSingle test = new SingleToSingle();
-
- TestLibrary.TestFramework.BeginTestCase("SingleToSingle");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-}
+++ /dev/null
-// 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;
-/// <summary>
-///System.IConvertible.ToUInt16(System.IFormatProvider)
-/// </summary>
-public class SingleToUInt16
-{
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
-
- TestLibrary.TestFramework.LogInformation("[Negtive]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- return retVal;
- }
-
- #region Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Check a random single.");
-
- try
- {
- Single i1 = TestLibrary.Generator.GetSingle(-55);
- short expectValue = 0;
- if (i1 > 0.5)
- expectValue = 1;
- else
- expectValue = 0;
- CultureInfo myCulture = new CultureInfo("en-US");
- ushort actualValue = ((IConvertible)i1).ToUInt16(myCulture);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.1", "ToUInt16 return failed. ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
-
- public bool NegTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: Check a single which is >UInt16.MaxValue.");
-
- try
- {
- Single i1 = (Single)(UInt16.MaxValue + 1);
- CultureInfo myCulture = new CultureInfo("en-US");
- ushort actualValue = ((IConvertible)i1).ToUInt16(myCulture);
- TestLibrary.TestFramework.LogError("101.1", "ToUInt16 return failed. ");
- retVal = false;
-
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("101.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: Check a single which is <UInt16.MinValue.");
-
- try
- {
- Single i1 = (Single)(UInt16.MinValue - 1);
- CultureInfo myCulture = new CultureInfo("en-US");
- ushort actualValue = ((IConvertible)i1).ToUInt16(myCulture);
- TestLibrary.TestFramework.LogError("102.1", "ToUInt16 return failed. ");
- retVal = false;
-
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #endregion
-
- public static int Main()
- {
- SingleToUInt16 test = new SingleToUInt16();
-
- TestLibrary.TestFramework.BeginTestCase("SingleToUInt16");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-}
+++ /dev/null
-// 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;
-/// <summary>
-///System.IConvertible.ToUInt32(System.IFormatProvider)
-/// </summary>
-public class SingleToUInt32
-{
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
-
- TestLibrary.TestFramework.LogInformation("[Negtive]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- return retVal;
- }
-
- #region Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Check a random single.");
-
- try
- {
- Single i1 = TestLibrary.Generator.GetSingle(-55);
- short expectValue = 0;
- if (i1 > 0.5)
- expectValue = 1;
- else
- expectValue = 0;
- CultureInfo myCulture = new CultureInfo("en-US");
- uint actualValue = ((IConvertible)i1).ToUInt32(myCulture);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.1", "ToUInt32 return failed. ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
-
- public bool NegTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: Check a single which is >UInt32.MaxValue.");
-
- try
- {
- Single i1 = (float)UInt32.MaxValue + 1.0f;
- CultureInfo myCulture = new CultureInfo("en-US");
- uint actualValue = ((IConvertible)i1).ToUInt32(myCulture);
- TestLibrary.TestFramework.LogError("101.1", "ToUInt32 return failed. ");
- retVal = false;
-
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("101.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: Check a single which is <UInt32.MinValue.");
-
- try
- {
- Single i1 = (float)UInt32.MinValue - 1.0f;
- CultureInfo myCulture = new CultureInfo("en-US");
- uint actualValue = ((IConvertible)i1).ToUInt32(myCulture);
- TestLibrary.TestFramework.LogError("102.1", "ToUInt32 return failed. ");
- retVal = false;
-
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #endregion
-
- public static int Main()
- {
- SingleToUInt32 test = new SingleToUInt32();
-
- TestLibrary.TestFramework.BeginTestCase("SingleToUInt32");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-}
+++ /dev/null
-// 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;
-/// <summary>
-///System.IConvertible.ToUInt64(System.IFormatProvider)
-/// </summary>
-public class SingleToUInt64
-{
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
-
- TestLibrary.TestFramework.LogInformation("[Negtive]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- return retVal;
- }
-
- #region Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Check a random single.");
-
- try
- {
- Single i1 = TestLibrary.Generator.GetSingle(-55);
- ulong expectValue = 0;
- if (i1 > 0.5)
- expectValue = 1;
- else
- expectValue = 0;
- CultureInfo myCulture = new CultureInfo("en-US");
- ulong actualValue = ((IConvertible)i1).ToUInt64(myCulture);
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.1", "ToUInt64 return failed. ");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
-
- public bool NegTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: Check a single which is >UInt64.MaxValue.");
-
- try
- {
- Single i1 = (float)UInt64.MaxValue + 1.0f;
- CultureInfo myCulture = new CultureInfo("en-US");
- ulong actualValue = ((IConvertible)i1).ToUInt64(myCulture);
- TestLibrary.TestFramework.LogError("101.1", "ToUInt64 return failed. ");
- retVal = false;
-
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("101.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: Check a single which is <UInt64.MinValue.");
-
- try
- {
- Single i1 = (float)UInt64.MinValue - 1.0f;
- CultureInfo myCulture = new CultureInfo("en-US");
- ulong actualValue = ((IConvertible)i1).ToUInt64(myCulture);
- TestLibrary.TestFramework.LogError("102.1", "ToUInt64 return failed. ");
- retVal = false;
-
-
- }
- catch (OverflowException)
- {
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102.2", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #endregion
-
- public static int Main()
- {
- SingleToUInt64 test = new SingleToUInt64();
-
- TestLibrary.TestFramework.BeginTestCase("SingleToUInt64");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-}
+++ /dev/null
-<?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="stringchars.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>
-
+++ /dev/null
-<?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="stringcompare9.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>
-
+++ /dev/null
-<?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="stringcompareordinal1.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>
-
+++ /dev/null
-<?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="stringcompareordinal2.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>
-
+++ /dev/null
-<?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="stringconcat1.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>
-
+++ /dev/null
-<?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="stringconcat2.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>
-
+++ /dev/null
-<?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="stringconcat3.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>
-
+++ /dev/null
-<?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="stringconcat4.cs" />
- </ItemGroup>
- <PropertyGroup>
- <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_FastGCStress=1
-]]></CLRTestBatchPreCommands>
- <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_FastGCStress=1
-]]></BashCLRTestPreCommands>
- </PropertyGroup>
- <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>
-
+++ /dev/null
-<?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="stringconcat5.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>
-
+++ /dev/null
-<?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="stringconcat6.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>
-
+++ /dev/null
-<?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="stringconcat7.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>
-
+++ /dev/null
-<?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="stringconcat8.cs" />
- </ItemGroup>
- <PropertyGroup>
- <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_FastGCStress=1
-]]></CLRTestBatchPreCommands>
- <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_FastGCStress=1
-]]></BashCLRTestPreCommands>
- </PropertyGroup>
- <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>
-
+++ /dev/null
-<?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="stringcopyto.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>
-
+++ /dev/null
-<?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="stringctor5.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>
-
+++ /dev/null
-<?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="stringctorchar.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>
-
+++ /dev/null
-<?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="stringempty.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>
-
+++ /dev/null
-<?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="stringequals1.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>
-
+++ /dev/null
-<?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="stringequals2.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>
-
+++ /dev/null
-<?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="stringequals3.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>
-
+++ /dev/null
-<?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="stringequals6.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>
-
+++ /dev/null
-<?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="stringformat1.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>
-
+++ /dev/null
-<?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="stringformat2.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>
-
+++ /dev/null
-<?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="stringgetenumerator.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>
-
+++ /dev/null
-<?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="stringgethashcode.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>
-
+++ /dev/null
-<?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="stringiconvertibletoboolean.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>
-
+++ /dev/null
-<?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="stringiconvertibletobyte.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>
-
+++ /dev/null
-<?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="stringiconvertibletochar.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>
-
+++ /dev/null
-<?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="stringiconvertibletoint16.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>
-
+++ /dev/null
-<?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="stringiconvertibletoint32.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>
-
+++ /dev/null
-<?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="stringiconvertibletoint64.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>
-
+++ /dev/null
-<?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="stringiconvertibletosbyte.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>
-
+++ /dev/null
-<?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="stringiconvertibletouint16.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>
-
+++ /dev/null
-<?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="stringiconvertibletouint32.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>
-
+++ /dev/null
-<?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="stringiconvertibletouint64.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>
-
+++ /dev/null
-<?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="stringienumerablegetenumerator.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>
-
+++ /dev/null
-<?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="stringindexof10.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>
-
+++ /dev/null
-<?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="stringinsert.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>
-
+++ /dev/null
-<?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="stringisnullorempty.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>
-
+++ /dev/null
-<?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="stringjoin.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>
-
+++ /dev/null
-<?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="stringjoin1.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>
-
+++ /dev/null
-<?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="stringjoin2.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>
-
+++ /dev/null
-<?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="stringlength.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>
-
+++ /dev/null
-<?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="stringpadleft.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>
-
+++ /dev/null
-<?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="stringpadleft1.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>
-
+++ /dev/null
-<?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="stringpadleft2.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>
-
+++ /dev/null
-<?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="stringpadright.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>
-
+++ /dev/null
-<?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="stringpadright1.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>
-
+++ /dev/null
-<?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="stringpadright2.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>
-
+++ /dev/null
-<?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="stringremove1.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>
-
+++ /dev/null
-<?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="stringremove2.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>
-
+++ /dev/null
-<?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="stringreplace1.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>
-
+++ /dev/null
-<?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="stringreplace2.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>
-
+++ /dev/null
-<?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-4AC1-495E-87D7-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>
- <ReferenceSystemPrivateCoreLib>true</ReferenceSystemPrivateCoreLib>
- </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>
- <Compile Include="stringreplace3.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "></PropertyGroup>
-</Project>
\ No newline at end of file
+++ /dev/null
-<?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="stringsplit1.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>
-
+++ /dev/null
-<?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="stringsubstring1.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>
-
+++ /dev/null
-<?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="stringsubstring2.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>
-
+++ /dev/null
-<?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="stringtochararray.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>
-
+++ /dev/null
-<?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="stringtostring1.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>
-
+++ /dev/null
-<?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="stringtrim1.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>
-
+++ /dev/null
-<?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="stringtrim1b.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>
-
+++ /dev/null
-<?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="stringtrim2.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>
-
+++ /dev/null
-<?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="stringtrim3.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>
-
+++ /dev/null
-<?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="stringtrim4.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>
-
+++ /dev/null
-// 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;
-
-/// <summary>
-/// String.chars
-/// </summary>
-public class StringChars
-{
- private int c_MINI_STRING_LENGTH = 8;
- private int c_MAX_STRING_LENGTH = 256;
- public static int Main()
- {
- StringChars sc = new StringChars();
- TestLibrary.TestFramework.BeginTestCase("StringChars");
-
- if (sc.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;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
- return retVal;
- }
-
- #region PositiveTesting
- public bool PosTest1()
- {
- bool retVal = true;
- string strA;
- char ActualResult1;
- char ActualResult2;
- TestLibrary.TestFramework.BeginScenario("PosTest1: string's chars one");
- try
- {
- strA = "Hello\u0009 World";
- ActualResult1 = strA[5];
- ActualResult2 = strA[6];
- if (ActualResult1 != '\t' || ActualResult2 !='\u0020')
- {
- TestLibrary.TestFramework.LogError("001", "string's chars one ActualResult is not the ExpectResult");
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
- string strA;
- char ActualResult;
- TestLibrary.TestFramework.BeginScenario("PosTest2: string's chars two");
- try
- {
- strA = this.GetString(false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- char charA = this.GetChar(0, c_MINI_STRING_LENGTH);
- int Insert = this.GetInt32(0, strA.Length + 1);
- string strA1 = strA.Insert(Insert, charA.ToString());
- ActualResult = strA1[Insert];
- if (ActualResult!= charA)
- {
- TestLibrary.TestFramework.LogError("003", "string's chars two ActualResult is not the ExpectResult");
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region NegativeTesting
- public bool NegTest1()
- {
- bool retVal = true;
- string strA;
- char ActualResult;
- TestLibrary.TestFramework.BeginScenario("NegTest1: index is equel string's length");
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- ActualResult = strA[strA.Length];
- retVal = false;
- }
- catch (IndexOutOfRangeException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N001", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool NegTest2()
- {
- bool retVal = true;
- string strA;
- char ActualResult;
- TestLibrary.TestFramework.BeginScenario("NegTest2: index is greater than string's length");
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- ActualResult = strA[this.GetInt32(strA.Length + 1,Int32.MaxValue)];
- retVal = false;
- }
- catch (IndexOutOfRangeException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N002", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool NegTest3()
- {
- bool retVal = true;
- string strA;
- char ActualResult;
- TestLibrary.TestFramework.BeginScenario("NegTest3: index is less than 0");
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- ActualResult = strA[this.GetInt32(1,strA.Length)*(-1)];
- retVal = false;
- }
- catch (IndexOutOfRangeException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N003", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region Help method for geting test data
- private Int32 GetInt32(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;
- }
- private Char GetChar(Int32 minValue, Int32 maxValue)
- {
- try
- {
- if (minValue == maxValue)
- {
- return Convert.ToChar(minValue);
- }
- if (minValue < maxValue)
- {
- return Convert.ToChar(Convert.ToInt32(TestLibrary.Generator.GetChar(-55)) % (maxValue - minValue) + minValue);
- }
- }
- catch
- {
- throw;
- }
- return Convert.ToChar(minValue);
- }
- private string GetString(bool ValidPath, Int32 minValue, Int32 maxValue)
- {
- StringBuilder sVal = new StringBuilder();
- string s;
-
- if (0 == minValue && 0 == maxValue) return String.Empty;
- if (minValue > maxValue) return null;
-
- if (ValidPath)
- {
- return TestLibrary.Generator.GetString(-55, ValidPath, minValue, maxValue);
- }
- else
- {
- int length = this.GetInt32(minValue, maxValue);
- for (int i = 0; length > i; i++)
- {
- char c = this.GetChar(minValue, maxValue);
- sVal.Append(c);
- }
- s = sVal.ToString();
- return s;
- }
-
-
- }
- #endregion
-}
-
+++ /dev/null
-// 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.Text;
-using System.Globalization;
-using TestLibrary;
-
-public class StringCompare
-{
- public static string[] InterestingStrings = new string[] { null, "", "a", "1", "-", "A", "!", "abc", "aBc", "a\u0400Bc", "I", "i", "\u0130", "\u0131", "A", "\uFF21", "\uFE57"};
-
- 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: Compare interesting strings ordinally");
-
- try
- {
- foreach (string s in InterestingStrings)
- {
- foreach (string r in InterestingStrings)
- {
- retVal &= TestStrings(s, r);
- }
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Compare many characters");
-
- try
- {
- for (int i = 0; i < 40; i++) // Ok, 40 isn't that many... but this takes way too long
- {
- char c = Generator.GetChar(-55);
- if (string.Compare(new string(new char[] { c }), new string(new char[] { c }), StringComparison.Ordinal) != 0)
- {
- TestLibrary.TestFramework.LogError("002.1", "Character " + i.ToString() + " is not equal to itself ordinally!");
- retVal = false;
- }
-
- for (int j = 0; j < (int)c; j++)
- {
- int compareResult = string.Compare(new string(new char[] { c }), new string(new char[] { (char)j }), StringComparison.Ordinal);
- if (compareResult != 0) compareResult = compareResult / Math.Abs(compareResult);
- if (compareResult != 1)
- {
- TestLibrary.TestFramework.LogError("002.2", "Character " + ((int)c).ToString() + " is not greater than character " + j.ToString() + ", Compare result: " + compareResult.ToString());
- retVal = false;
- }
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.4", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Compare many strings");
-
- try
- {
- for (int i = 0; i < 1000; i++)
- {
- string str1 = Generator.GetString(-55, false, 5, 20);
- string str2 = Generator.GetString(-55, false, 5, 20);
- if (string.Compare(str1, str1, StringComparison.Ordinal) != 0)
- {
- TestLibrary.TestFramework.LogError("003.1", "Comparison not as expected! Actual result: " + string.Compare(str1, str1, StringComparison.Ordinal).ToString() + ", Expected result: 0");
- TestLibrary.TestFramework.LogInformation("String 1: <" + str1 + "> : " + BytesFromString(str1) + "\nString 2: <" + str1 + "> : " + BytesFromString(str1));
- retVal = false;
- }
- if (string.Compare(str2, str2, StringComparison.Ordinal) != 0)
- {
- TestLibrary.TestFramework.LogError("003.2", "Comparison not as expected! Actual result: " + string.Compare(str2, str2, StringComparison.Ordinal).ToString() + ", Expected result: 0");
- TestLibrary.TestFramework.LogInformation("String 1: <" + str2 + "> : " + BytesFromString(str2) + "\nString 2: <" + str2 + "> : " + BytesFromString(str2));
- retVal = false;
- }
- TestStrings(str1, str2);
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.4", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: Specific regression cases");
-
- try
- {
- CultureInfo oldCi = TestLibrary.Utilities.CurrentCulture;
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("hu-HU");
- retVal &= TestStrings("dzsdzs", "ddzs");
- TestLibrary.Utilities.CurrentCulture = oldCi;
-
- retVal &= TestStrings("\u00C0nimal", "A\u0300nimal");
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004.2", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public static int Main()
- {
- StringCompare test = new StringCompare();
-
- TestLibrary.TestFramework.BeginTestCase("StringCompare");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
- private bool TestStrings(string str1, string str2)
- {
- bool retVal = true;
-
- int expectValue = PredictValue(str1, str2);
- int actualValue = String.Compare(str1, str2, StringComparison.Ordinal);
- if (expectValue != 0) expectValue = expectValue / Math.Abs(expectValue);
- if (actualValue != 0) actualValue = actualValue / Math.Abs(actualValue);
-
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.1", "Comparison not as expected! Actual result: " + actualValue + ", Expected result: " + expectValue);
- TestLibrary.TestFramework.LogInformation("String 1: <" + str1 + "> : " + BytesFromString(str1) + "\nString 2: <" + str2 + "> : " + BytesFromString(str2));
- retVal = false;
- }
-
- return retVal;
- }
-
- int PredictValue(string str1, string str2)
- {
- if (str1 == null)
- {
- if (str2 == null) return 0;
- else return -1;
- }
- if (str2 == null) return 1;
-
- for (int i = 0; i < str1.Length; i++)
- {
- if (i >= str2.Length) return 1;
- if ((int)str1[i] > (int)str2[i]) return 1;
- if ((int)str1[i] < (int)str2[i]) return -1;
- }
-
- if (str2.Length > str1.Length) return -1;
-
- return 0;
- }
-
- private static string BytesFromString(string str)
- {
- if (str == null) return string.Empty;
- StringBuilder output = new StringBuilder();
- for (int i = 0; i < str.Length; i++)
- {
- output.Append(TestLibrary.Utilities.ByteArrayToString(BitConverter.GetBytes(str[i])));
- if (i != (str.Length - 1)) output.Append(", ");
- }
- return output.ToString();
- }
-}
+++ /dev/null
-// 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.Collections;
-using System.Text;
-using TestLibrary;
-
-public class StringCompareOrdinal1
-{
- private const int c_MINI_STRINF_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- public static int Main()
- {
- StringCompareOrdinal1 sco1 = new StringCompareOrdinal1();
-
- TestLibrary.TestFramework.BeginScenario("StringCompareOrdinal1");
-
- if (sco1.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;
- retVal = PosTest12() && retVal;
- retVal = PosTest13() && retVal;
- retVal = PosTest14() && retVal;
- retVal = PosTest15() && retVal;
- retVal = PosTest16() && retVal;
- retVal = PosTest17() && retVal;
- retVal = PosTest18() && retVal;
- return retVal;
- }
- #region Positive Testing
- public bool PosTest1()
- {
- string strA;
- string strB;
- int ActualResult;
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Two Null CompareOrdinal");
-
- try
- {
- strA = null;
- strB = null;
- ActualResult = string.CompareOrdinal(strA, strB);
- if (ActualResult != 0)
- {
- TestLibrary.TestFramework.LogError("001", "Two Null CompareOrdinal Expected Result is equel 0,Actual Result is ( " + ActualResult + ")");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- string strA;
- string strB;
- int ActualResult;
- TestLibrary.TestFramework.BeginScenario("PosTest2: Null and null string CompareOrdinal");
-
- try
- {
- strA = null;
- strB = "";
- ActualResult = string.CompareOrdinal(strA, strB);
- if (ActualResult >= 0)
- {
- TestLibrary.TestFramework.LogError("003", "Null and null string CompareOrdinal Expected Result is less 0,Actual Result is ( " + ActualResult + ")");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- string strA;
- string strB;
- int ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Null and space string CompareOrdinal");
-
- try
- {
- strA = null;
- strB = " ";
- ActualResult = string.CompareOrdinal(strA, strB);
- if (ActualResult >= 0 )
- {
- TestLibrary.TestFramework.LogError("005", "Null and space string CompareOrdinal Expected Result is less 0,Actual Result is ( " + ActualResult + ")");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
- string strA;
- string strB;
- int ActualResult;
- int ExpectResult = 0;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: Null string and a space strings CompareOrdinal");
-
- try
- {
- strA = "";
- strB = " ";
- ActualResult = string.CompareOrdinal(strA, strB);
- if (ActualResult >= ExpectResult)
- {
- TestLibrary.TestFramework.LogError("007", "Null string and a space strings CompareOrdinal Expected Result is less 0;Actual Result is ( " + ActualResult + ")");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
- string strA;
- string strB;
- string strBasic;
- Random rand = new Random(-55);
- int ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest5: Two like strings embedded different tabs CompareOrdinal");
-
- try
- {
- char CharTab = '\t';
- strBasic = TestLibrary.Generator.GetString(-55, false, c_MINI_STRINF_LEN, c_MAX_STRING_LEN);
- strA = strBasic + new string(CharTab, rand.Next(1, 10));
- strB = strBasic + new string(CharTab, rand.Next(11, 20));
- ActualResult = string.CompareOrdinal(strA, strB);
- if (ActualResult >= 0)
- {
- TestLibrary.TestFramework.LogError("009", "Two like strings embedded different tabs CompareOrdinal Expected Result is less 0,Actual Result is ( " + ActualResult + ")");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest6()
- {
- bool retVal = true;
- string strA;
- string strB;
- int ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest6: Two like strings embedded the same tab but differet location CompareOrdinal");
-
- try
- {
- strA = "hello"+"\t"+"world";
- strB = "\t"+"helloworl"+ "d";
- ActualResult = string.CompareOrdinal(strA, strB);
- if (ActualResult <= 0)
- {
- TestLibrary.TestFramework.LogError("011", "Two like strings embedded the same tab but differet location CompareOrdinal: Expected Result is greater 0,Actual Result is ( " + ActualResult + ")");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest7()
- {
- bool retVal = true;
- string strA;
- string strB;
- int ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest7: String with upper chars and one with lower chars CompareOrdinal");
-
- try
- {
- strA = "HELLOWORD";
- strB = "helloword";
- ActualResult = string.CompareOrdinal(strA, strB);
- if (ActualResult >= 0 )
- {
- TestLibrary.TestFramework.LogError("013", "String with upper chars and one with lower chars CompareOrdinal Expected Result is equel 0,Actual Result is ( " + ActualResult + ")");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("014", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest8()
- {
- bool retVal = true;
- string strA;
- string strB;
- int ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest8: Two strings with ignorecase same char CompareOrdinal");
-
- try
- {
- strA = "helloword";
- strB = "heLLoword";
- ActualResult = string.CompareOrdinal(strA, strB);
- if (ActualResult <= 0 )
- {
- TestLibrary.TestFramework.LogError("015", " Two strings with ignorecase same char CompareOrdinal Expected Result is greate 0,Actual Result is ( " + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("016", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest9()
- {
- bool retVal = true;
- string strA;
- string strB;
- int ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest9: Two not null strings CompareOrdinal one");
-
- try
- {
- strA = "hello-word";
- strB = "helloword";
- ActualResult = string.CompareOrdinal(strA, strB);
- if (ActualResult >= 0)
- {
- TestLibrary.TestFramework.LogError("017", "Two not null strings CompareOrdinal one Expected Result is less 0,Actual Result is ( " + ActualResult + ")");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("018", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest10()
- {
- bool retVal = true;
- string strA;
- string strB;
- int ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest10: Two not null strings CompareOrdinal two");
-
- try
- {
- strA = "helloword";
- strB = "hello\nword";
- ActualResult = string.CompareOrdinal(strA, strB);
- if (ActualResult <= 0)
- {
- TestLibrary.TestFramework.LogError("019", " Two not null strings CompareOrdinal two Expected Result is larger 0,Actual Result is ( " + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("020", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest11()
- {
- bool retVal = true;
- string strA;
- string strB;
- int ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest11: Two not null strings CompareOrdinal three");
-
- try
- {
- strA = "helloword";
- strB = "helloword\n";
- ActualResult = string.CompareOrdinal(strA, strB);
- if (ActualResult >= 0)
- {
- TestLibrary.TestFramework.LogError("021", " Two not null strings CompareOrdinal three Expected Result is less 0,Actual Result is ( " + ActualResult + ")");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("022", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest12()
- {
- bool retVal = true;
- string strA;
- string strB;
- int ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest12: Two like not null strings CompareOrdinal four");
-
- try
- {
- strA = "helloword";
- strB = "helloword";
- ActualResult = string.CompareOrdinal(strA, strB);
- if (ActualResult != 0)
- {
- TestLibrary.TestFramework.LogError("023", " Two not null strings CompareOrdinal four Expected Result is equel 0,Actual Result is ( " + ActualResult + ")");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("024", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest13()
- {
- bool retVal = true;
- string strA;
- string strB;
- int ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest13: Two not null strings CompareOrdinal five");
-
- try
- {
- strA = "\uFF21";
- strB = "A";
- ActualResult = string.CompareOrdinal(strA, strB);
- if (ActualResult <= 0 )
- {
- TestLibrary.TestFramework.LogError("025", " Two not null strings CompareOrdinal five Expected Result is greater 0,Actual Result is ( " + ActualResult + ")");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("026", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest14()
- {
- bool retVal = true;
- string strA;
- string strB;
- int ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest14: Two not null strings CompareOrdinal six");
-
- try
- {
- strA = "\uD801\uDc00";
- strB = "\uD801\uDc28";
- ActualResult = string.CompareOrdinal(strA, strB);
- if (ActualResult >= 0)
- {
- TestLibrary.TestFramework.LogError("027", " Two not null strings CompareOrdinal six Expected Result is less 0,Actual Result is ( " + ActualResult + ")");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("028", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest15()
- {
- bool retVal = true;
- string strA;
- string strB;
- int ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest15: Two not null strings CompareOrdinal seven");
-
- try
- {
- strA = "\x200b";
- strB = "\uFEFF";
- ActualResult = string.CompareOrdinal(strA, strB);
- if (ActualResult >= 0)
- {
- TestLibrary.TestFramework.LogError("029", " Two not null strings CompareOrdinal seven Expected Result is less 0,Actual Result is ( " + ActualResult + ")");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("030", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest16()
- {
- bool retVal = true;
- string strA;
- string strB;
- int ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest16: Two not null strings CompareOrdinal eight");
-
- try
- {
- strA = "A`";
- strB = "\u00c0";
- ActualResult = string.CompareOrdinal(strA, strB);
- if (ActualResult >= 0)
- {
- TestLibrary.TestFramework.LogError("031", " Two not null strings CompareOrdinal nine Expected Result is less 0,Actual Result is ( " + ActualResult + ")");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("032", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest17()
- {
- bool retVal = true;
- string strA;
- string strB;
- int ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest17: Two not null strings CompareOrdinal nine");
-
- try
- {
- strA = "\\\\my documents\\my files\\";
- strB = @"\\my documents\my files\";
- ActualResult = string.CompareOrdinal(strA, strB);
- if (ActualResult != 0)
- {
- TestLibrary.TestFramework.LogError("033", " Two not null strings CompareOrdinal nine Expected Result is equel 0,Actual Result is ( " + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("034", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest18()
- {
- bool retVal = true;
- string strA;
- string strB;
- int ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest18: tab and fout spaces CompareOrdinal");
-
- try
- {
- strA = "\t";
- strB = " ";
- ActualResult = string.CompareOrdinal(strA, strB);
- if (ActualResult >= 0)
- {
- TestLibrary.TestFramework.LogError("035", " tab and fout spaces CompareOrdinal Expected Result is greater 0,Actual Result is ( " + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("036", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- #endregion
-
-
-
-}
-
+++ /dev/null
-using System;
-using System.Collections.Generic;
-using System.Text;
-using TestLibrary;
-
-
-public class StringCompareOrdinal2
-{
- private const int c_MINI_STRINF_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- private string strA;
- private int indexA;
- private string strB;
- private int indexB;
- private int length;
-
- public static int Main()
- {
- StringCompareOrdinal2 sco2 = new StringCompareOrdinal2();
- TestLibrary.TestFramework.BeginTestCase("StringCompareOrdinal2");
- TestLibrary.TestFramework.BeginScenario("StringCompareOrdinal2");
-
- if (sco2.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;
- retVal = PosTest12() && retVal;
- retVal = PosTest13() && retVal;
- retVal = PosTest14() && retVal;
- retVal = PosTest15() && retVal;
- retVal = PosTest16() && retVal;
- retVal = PosTest17() && retVal;
- retVal = PosTest18() && retVal;
- retVal = PosTest19() && retVal;
- retVal = PosTest20() && 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;
- retVal = NegTest11() && retVal;
- retVal = NegTest12() && retVal;
- retVal = NegTest13() && retVal;
- retVal = NegTest14() && retVal;
- retVal = NegTest15() && retVal;
- retVal = NegTest16() && retVal;
- retVal = NegTest17() && retVal;
-
- return retVal;
- }
-
- #region Positive Testing
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:Two empty Strings CompareOrdinal");
-
- try
- {
- strA = String.Empty;
- strB = String.Empty;
- indexA = 0;
- indexB = 0;
- length = 0;
- int ExpectResult = 0;
-
- int ActualResult = string.CompareOrdinal(strA, indexA, strB, indexB, length);
- if (ActualResult != ExpectResult)
- {
- TestLibrary.TestFramework.LogError("001", "Null Strings CompareOrdinal Expected Result is (" + ExpectResult + ");Actual Result is ( " + ActualResult + ")");
- 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:NullString and not nullString CompareOrdinal");
- Random rand = new Random(-55);
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, 0, 0);
- strB = TestLibrary.Generator.GetString(-55, false, c_MINI_STRINF_LEN, c_MAX_STRING_LEN);
- indexA = rand.Next(0, strA.Length);
- indexB = rand.Next(0, strB.Length);
- length = rand.Next();
- if (indexA == 0 && indexB >= 0 && indexB <= strB.Length && length >= 0)
- {
- int ActualResult = string.CompareOrdinal(strA, indexA, strB, indexB, length);
- if (ActualResult > 0 || ActualResult == 0)
- {
- TestLibrary.TestFramework.LogError("003", "Null string and not null string CompareOrdinal Expected Result is less 0£¬Actual Result is ( " + ActualResult + ")");
- retVal = false;
- }
- }
- else
- TestLibrary.TestFramework.LogError("003", "Index or Length Number is out of range");
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest3:Not nullString and nullString CompareOrdinal");
- Random rand = new Random(-55);
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRINF_LEN, c_MAX_STRING_LEN);
- strB = TestLibrary.Generator.GetString(-55, false, 0, 0);
- indexA = rand.Next(0, strA.Length);
- indexB = rand.Next(0, strB.Length);
- length = rand.Next();
- if (indexB == 0 && indexA >= 0 && indexA <= strA.Length && length >= 0)
- {
- int ActualResult = string.CompareOrdinal(strA, indexA, strB, indexB, length);
- if (ActualResult < 0 || ActualResult == 0)
- {
- TestLibrary.TestFramework.LogError("005", "Null string and not null string CompareOrdinal Expected Result is less 0,Actual Result is ( " + ActualResult + ")");
- retVal = false;
- }
- }
- else
- TestLibrary.TestFramework.LogError("005", "Index or Length Number is out of range");
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest4:Two like not NullStrings CompareOrdinal one");
- Random rand = new Random(-55);
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRINF_LEN, c_MAX_STRING_LEN);
- strB = strA.ToString();
- indexA = rand.Next(0, strA.Length);
- indexB = indexA;
- length = rand.Next();
-
- int ActualResult = string.CompareOrdinal(strA, indexA, strB, indexB, length);
- if (ActualResult != 0)
- {
- TestLibrary.TestFramework.LogError("007", "Two like not NullStrings CompareOrdinal one ExpectResult is 0,ActualResult is (" + ActualResult + ")");
- 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:Two like not NullStrings CompareOrdinal eighteen");
- Random rand = new Random(-55);
- try
- {
- strA = "heloredmon!";
- strB = strA.ToString();
- indexA = 3;
- indexB = 4;
- length = 2;
-
- int ActualResult = string.CompareOrdinal(strA, indexA, strB, indexB, length);
- if (ActualResult >= 0)
- {
- TestLibrary.TestFramework.LogError("026", "Two like not NullStrings CompareOrdinal eighteen ExpectResult is less 0,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("027", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest6()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest6:Two like not NullStrings CompareOrdinal nineteen");
- Random rand = new Random(-55);
- try
- {
- strA = "This\0string\0js\0validghjgj";
- strB = "This\0string\0is\0valid";
- indexA = 0;
- indexB = 0;
- length = 13;
-
- int ActualResult = string.CompareOrdinal(strA, indexA, strB, indexB, length);
- if (ActualResult <= 0)
- {
- TestLibrary.TestFramework.LogError("026", "Two like not NullStrings CompareOrdinal eighteen ExpectResult is less 0,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("027", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest7()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest7:Two like not NullStrings CompareOrdinal twenty");
- Random rand = new Random(-55);
- try
- {
- strA = "abccde";
- strB = "abcccde";
- indexA = 3;//strA.Length - indexA = 2
- indexB = 4;//strB.Length - indexB = 3
- length = 4;//length = 4
-
- int ActualResult = string.CompareOrdinal(strA, indexA, strB, indexB, length);
- if (ActualResult != 0)
- {
- TestLibrary.TestFramework.LogError("028", "Two like not NullStrings CompareOrdinal eighteen ExpectResult is equel 0,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("029", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest8()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest8:Two like not NullStrings CompareOrdinal twentyone");
- Random rand = new Random(-55);
- try
- {
- strA = "adsfasd";
- strB = "ADSFASD";
- indexA = 3;
- indexB = 4;
- length = 0;
-
- int ActualResult = string.CompareOrdinal(strA, indexA, strB, indexB, length);
- if (ActualResult != 0)
- {
- TestLibrary.TestFramework.LogError("030", "Two like not NullStrings CompareOrdinal eighteen ExpectResult is equel 0,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("031", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest9()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest9:Two like not NullStrings CompareOrdinal twentytwo");
- Random rand = new Random(-55);
- try
- {
- strA = null;
- strB = null;
- indexA = rand.Next();
- indexB = rand.Next();
- length = rand.Next();
-
- int ActualResult = string.CompareOrdinal(strA, indexA, strB, indexB, length);
- if (ActualResult != 0)
- {
- TestLibrary.TestFramework.LogError("031", "Two like not NullStrings CompareOrdinal eighteen ExpectResult is equel 0,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("032", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest10()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest10:Two like not NullStrings CompareOrdinal twentythree");
- Random rand = new Random(-55);
- try
- {
- strA = null;
- strB = "asdfasdf";
- indexA = rand.Next();
- indexB = rand.Next(0, strB.Length);
- length = rand.Next();
-
- int ActualResult = string.CompareOrdinal(strA, indexA, strB, indexB, length);
- if (ActualResult >= 0)
- {
- TestLibrary.TestFramework.LogError("033", "Two like not NullStrings CompareOrdinal eighteen ExpectResult is less 0,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("034", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest11()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest11:Two like not NullStrings CompareOrdinal twentyfour");
- Random rand = new Random(-55);
- try
- {
- strA = null;
- strB = "asdfasdf";
- indexA = rand.Next();
- indexB = rand.Next(strB.Length, strB.Length + 10);
- length = rand.Next();
-
- int ActualResult = string.CompareOrdinal(strA, indexA, strB, indexB, length);
- if (ActualResult >= 0)
- {
- TestLibrary.TestFramework.LogError("035", "Two like not NullStrings CompareOrdinal eighteen ExpectResult is less 0,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("036", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest12()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest12:Two like not NullStrings CompareOrdinal twentyfive");
- Random rand = new Random(-55);
- try
- {
- strA = null;
- strB = "";
- indexA = rand.Next();
- indexB = rand.Next();
- length = rand.Next();
-
- int ActualResult = string.CompareOrdinal(strA, indexA, strB, indexB, length);
- if (ActualResult >= 0)
- {
- TestLibrary.TestFramework.LogError("038", "Two like not NullStrings CompareOrdinal eighteen ExpectResult is greater 0,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("039", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest13()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest13:Two like not NullStrings CompareOrdinal twentyseven");
- Random rand = new Random(-55);
- try
- {
- strA = " "; //four spaces
- strB = " "; //one tab
- indexA = rand.Next(0, strA.Length);
- indexB = indexA;
- length = rand.Next();
-
- int ActualResult = string.CompareOrdinal(strA, indexA, strB, indexB, length);
- if (ActualResult != 0)
- {
- TestLibrary.TestFramework.LogError("040", "Two like not NullStrings CompareOrdinal eighteen ExpectResult is equel 0,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("041", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest14()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest14:Two like not NullStrings CompareOrdinal twentyeight");
- Random rand = new Random(-55);
- try
- {
- strA = " "; //four spaces
- strB = " "; //one tab
- indexA = rand.Next(0, strA.Length);
- indexB = indexA + 1;
- length = rand.Next();
-
- int ActualResult = string.CompareOrdinal(strA, indexA, strB, indexB, length);
- if (ActualResult <= 0)
- {
- TestLibrary.TestFramework.LogError("042", "Two like not NullStrings CompareOrdinal eighteen ExpectResult is greater 0,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("043", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest15()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest15:Two like not NullStrings CompareOrdinal twentynine");
- Random rand = new Random(-55);
- try
- {
- strA = " "; //four spaces
- strB = " "; //one tab
- indexB = rand.Next(0, strB.Length);
- indexA = indexB + 1;
- length = rand.Next();
-
- int ActualResult = string.CompareOrdinal(strA, indexA, strB, indexB, length);
- if (ActualResult >= 0)
- {
- TestLibrary.TestFramework.LogError("044", "Two like not NullStrings CompareOrdinal eighteen ExpectResult is less 0,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("045", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
-
- public bool PosTest16()
- {
- bool retVal = true;
- int ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest16: Two not null strings CompareOrdinal eight");
-
- try
- {
- strA = "\\\\my documents\\my files\\";
- strB = @"\\my documents\my files\";
- indexA = 0;
- indexB = 0;
- length = 10;
- ActualResult = string.CompareOrdinal(strA, strB);
- if (ActualResult != 0)
- {
- TestLibrary.TestFramework.LogError("046", " Two not null strings CompareOrdinal seven Expected Result is equel 0,Actual Result is ( " + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("047", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest17()
- {
- bool retVal = true;
- string strA;
- string strB;
- int ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest17: Two not null strings CompareOrdinal six");
-
- try
- {
- strA = "\uD801\uDc00";
- strB = "\uD801\uDc28";
- ActualResult = string.CompareOrdinal(strA, strB);
- if (ActualResult >= 0)
- {
- TestLibrary.TestFramework.LogError("048", " Two not null strings CompareOrdinal six Expected Result is less 0,Actual Result is ( " + ActualResult + ")");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("049", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest18()
- {
- bool retVal = true;
- string strA;
- string strB;
- int ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest18: Two not null strings CompareOrdinal seven");
-
- try
- {
- strA = "\x200b";
- strB = "\uFEFF";
- ActualResult = string.CompareOrdinal(strA, strB);
- if (ActualResult >= 0)
- {
- TestLibrary.TestFramework.LogError("050", " Two not null strings CompareOrdinal seven Expected Result is less 0,Actual Result is ( " + ActualResult + ")");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("051", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest19()
- {
- bool retVal = true;
- string strA;
- string strB;
- int ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest19: Two not null strings CompareOrdinal five");
-
- try
- {
- strA = "\uFF21";
- strB = "A";
- ActualResult = string.CompareOrdinal(strA, strB);
- if (ActualResult <= 0)
- {
- TestLibrary.TestFramework.LogError("052", " Two not null strings CompareOrdinal five Expected Result is greater 0,Actual Result is ( " + ActualResult + ")");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("053", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest20()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest0:Two like not NullStrings CompareOrdinal thirty");
- Random rand = new Random(-55);
- try
- {
- strA = "ABCDE";
- strB = "abcde";
- indexA = strA.Length;
- indexB = strB.Length;
- length = rand.Next();
-
- int ActualResult = string.CompareOrdinal(strA, indexA, strB, indexB, length);
- if (ActualResult != 0)
- {
- TestLibrary.TestFramework.LogError("N001", "ExpectResult is 0,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N002", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
-
- }
-
-
- #endregion
-
-
- #region Negative Testing
- /// <summary>
- /// indexA>strA.Length,indexB normal and length normal
- /// </summary>
- /// <returns></returns>
- public bool NegTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest1:Two like not NullStrings CompareOrdinal two");
- Random rand = new Random(-55);
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRINF_LEN, c_MAX_STRING_LEN);
- strB = strA.ToString();
- indexA = rand.Next(strA.Length + 1, strA.Length + 10);
- indexB = rand.Next(0, strB.Length);
- length = rand.Next();
-
- int ActualResult = string.CompareOrdinal(strA, indexA, strB, indexB, length);
- TestLibrary.TestFramework.LogError("N00A", "Expected exception did not occur. Expected ArgumentOutOfRangeExeption");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException e)
- {
- TestLibrary.TestFramework.LogInformation("It occurred an expect exception:" + e);
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N003", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- /// <summary>
- /// indexA<0,indexB normal and length normal
- /// </summary>
- /// <returns></returns>
- public bool NegTest2()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest2:Two like not NullStrings CompareOrdinal three");
- Random rand = new Random(-55);
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRINF_LEN, c_MAX_STRING_LEN);
- strB = strA.ToString();
- indexA = (1 + rand.Next()) * (-1);
- indexB = rand.Next(0, strB.Length);
- length = rand.Next();
-
- int ActualResult = string.CompareOrdinal(strA, indexA, strB, indexB, length);
- TestLibrary.TestFramework.LogError("N00B", "Expected exception did not occur. Expected ArgumentOutOfRangeExeption");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException e)
- {
- TestLibrary.TestFramework.LogInformation("It occurred an expect exception:" + e);
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N005", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- /// <summary>
- /// indexA normal, indexB>strB.length and length normal
- /// </summary>
- /// <returns></returns>
- public bool NegTest3()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest3:Two like not NullStrings CompareOrdinal four");
- Random rand = new Random(-55);
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRINF_LEN, c_MAX_STRING_LEN);
- strB = strA.ToString();
- indexA = rand.Next(0, strA.Length);
- indexB = rand.Next(strB.Length + 1, strB.Length + 10);
- length = rand.Next();
-
- int ActualResult = string.CompareOrdinal(strA, indexA, strB, indexB, length);
- TestLibrary.TestFramework.LogError("N00C", "Expected exception did not occur. Expected ArgumentOutOfRangeExeption");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException e)
- {
- TestLibrary.TestFramework.LogInformation("It occurred an expect exception:" + e);
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N007", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- /// <summary>
- /// indexA normal,indexB<0 and length normal
- /// </summary>
- /// <returns></returns>
- public bool NegTest4()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest4:Two like not NullStrings CompareOrdinal five");
- Random rand = new Random(-55);
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRINF_LEN, c_MAX_STRING_LEN);
- strB = strA.ToString();
- indexA = rand.Next(0, strA.Length);
- indexB = rand.Next(1, strB.Length) * (-1);
- length = rand.Next();
-
- int ActualResult = string.CompareOrdinal(strA, indexA, strB, indexB, length);
- TestLibrary.TestFramework.LogError("N00D", "Expected exception did not occur. Expected ArgumentOutOfRangeExeption");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException e)
- {
- TestLibrary.TestFramework.LogInformation("It occurred an expect exception:" + e);
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N009", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- /// <summary>
- /// indexA normal, indexB normal and length<0
- /// </summary>
- /// <returns></returns>
- public bool NegTest5()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest5:Two like not NullStrings CompareOrdinal six");
- Random rand = new Random(-55);
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRINF_LEN, c_MAX_STRING_LEN);
- strB = strA.ToString();
- indexA = rand.Next(0, strA.Length);
- indexB = rand.Next(0, strB.Length);
- length = (1 + rand.Next()) * (-1);
-
- int ActualResult = string.CompareOrdinal(strA, indexA, strB, indexB, length);
- TestLibrary.TestFramework.LogError("N00E", "Expected exception did not occur. Expected ArgumentOutOfRangeExeption");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException e)
- {
- TestLibrary.TestFramework.LogInformation("It occurred an expect exception:" + e);
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N011", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- /// <summary>
- /// indexA>strA.Length,indexB<0,length normal
- /// </summary>
- /// <returns></returns>
- public bool NegTest6()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest6:Two like not NullStrings CompareOrdinal seven");
- Random rand = new Random(-55);
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRINF_LEN, c_MAX_STRING_LEN);
- strB = strA.ToString();
- indexA = rand.Next(strA.Length + 1, strA.Length + 10);
- indexB = rand.Next(1, strB.Length) * (-1);
- length = rand.Next();
-
- int ActualResult = string.CompareOrdinal(strA, indexA, strB, indexB, length);
- TestLibrary.TestFramework.LogError("N00F", "Expected exception did not occur. Expected ArgumentOutOfRangeExeption");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException e)
- {
- TestLibrary.TestFramework.LogInformation("It occurred an expect exception:" + e);
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N013", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- /// <summary>
- /// IndexA>strA.Length,indexB normal and length<0
- /// </summary>
- /// <returns></returns>
- public bool NegTest7()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest7:Two like not NullStrings CompareOrdinal eight");
- Random rand = new Random(-55);
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRINF_LEN, c_MAX_STRING_LEN);
- strB = strA.ToString();
- indexA = rand.Next(strA.Length + 1, strA.Length + 10);
- indexB = rand.Next(0, strB.Length);
- length = (1 + rand.Next()) * (-1);
-
- int ActualResult = string.CompareOrdinal(strA, indexA, strB, indexB, length);
- TestLibrary.TestFramework.LogError("N00G", "Expected exception did not occur. Expected ArgumentOutOfRangeExeption");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException e)
- {
- TestLibrary.TestFramework.LogInformation("It occurred an expect exception:" + e);
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N015", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- /// <summary>
- /// indexA<0,indexB normal and length<0
- /// </summary>
- /// <returns></returns>
- public bool NegTest8()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest8:Two like not NullStrings CompareOrdinal nine");
- Random rand = new Random(-55);
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRINF_LEN, c_MAX_STRING_LEN);
- strB = strA.ToString();
- indexA = rand.Next(1, strA.Length) * (-1);
- indexB = rand.Next(0, strB.Length);
- length = (1 + rand.Next()) * (-1);
-
- int ActualResult = string.CompareOrdinal(strA, indexA, strB, indexB, length);
- TestLibrary.TestFramework.LogError("N00H", "Expected exception did not occur. Expected ArgumentOutOfRangeExeption");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException e)
- {
- TestLibrary.TestFramework.LogInformation("It occurred an expect exception:" + e);
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N017", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- /// <summary>
- /// indexA<0,indexB<0 and length normal
- /// </summary>
- /// <returns></returns>
- public bool NegTest9()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest9:Two like not NullStrings CompareOrdinal nine");
- Random rand = new Random(-55);
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRINF_LEN, c_MAX_STRING_LEN);
- strB = strA.ToString();
- indexA = rand.Next(1, strA.Length) * (-1);
- indexB = rand.Next(1, strB.Length) * (-1);
- length = rand.Next();
-
- int ActualResult = string.CompareOrdinal(strA, indexA, strB, indexB, length);
- TestLibrary.TestFramework.LogError("N00I", "Expected exception did not occur. Expected ArgumentOutOfRangeExeption");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException e)
- {
- TestLibrary.TestFramework.LogInformation("It occurred an expect exception:" + e);
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N019", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- /// <summary>
- /// indexA normal,indexB<0 and length<0
- /// </summary>
- /// <returns></returns>
- public bool NegTest10()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest10:Two like not NullStrings CompareOrdinal ten");
- Random rand = new Random(-55);
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRINF_LEN, c_MAX_STRING_LEN);
- strB = strA.ToString();
- indexA = rand.Next(0, strA.Length);
- indexB = rand.Next(1, strB.Length) * (-1);
- length = (1 + rand.Next()) * (-1);
-
- int ActualResult = string.CompareOrdinal(strA, indexA, strB, indexB, length);
- TestLibrary.TestFramework.LogError("N00J", "Expected exception did not occur. Expected ArgumentOutOfRangeExeption");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException e)
- {
- TestLibrary.TestFramework.LogInformation("It occurred an expect exception:" + e);
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N021", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- /// <summary>
- /// indexA normal,indexB>strB.Length and length<0
- /// </summary>
- /// <returns></returns>
- public bool NegTest11()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest11:Two like not NullStrings CompareOrdinal eleven");
- Random rand = new Random(-55);
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRINF_LEN, c_MAX_STRING_LEN);
- strB = strA.ToString();
- indexA = rand.Next(0, strA.Length);
- indexB = rand.Next(strB.Length + 1, strB.Length + 10);
- length = (1 + rand.Next()) * (-1);
-
- int ActualResult = string.CompareOrdinal(strA, indexA, strB, indexB, length);
- TestLibrary.TestFramework.LogError("N00K", "Expected exception did not occur. Expected ArgumentOutOfRangeExeption");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException e)
- {
- TestLibrary.TestFramework.LogInformation("It occurred an expect exception:" + e);
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N023", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- /// <summary>
- /// indexA<0,indexB<0 and length <0
- /// </summary>
- /// <returns></returns>
- public bool NegTest12()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest12:Two like not NullStrings CompareOrdinal twelve");
- Random rand = new Random(-55);
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRINF_LEN, c_MAX_STRING_LEN);
- strB = strA.ToString();
- indexA = rand.Next(1, strA.Length) * (-1);
- indexB = rand.Next(1, strB.Length) * (-1);
- length = rand.Next() * (-1);
-
- int ActualResult = string.CompareOrdinal(strA, indexA, strB, indexB, length);
- TestLibrary.TestFramework.LogError("N00L", "Expected exception did not occur. Expected ArgumentOutOfRangeExeption");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException e)
- {
- TestLibrary.TestFramework.LogInformation("It occurred an expect exception:" + e);
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N025", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- /// <summary>
- /// indexA>strA.Length,indexB>strB.Length and length <0
- /// </summary>
- /// <returns></returns>
- public bool NegTest13()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest13:Two like not NullStrings CompareOrdinal thirteen");
- Random rand = new Random(-55);
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRINF_LEN, c_MAX_STRING_LEN);
- strB = strA.ToString();
- indexA = rand.Next(strA.Length + 1, strA.Length + 10);
- indexB = rand.Next(strB.Length + 1, strB.Length + 10);
- length = (1 + rand.Next()) * (-1);
- int ActualResult = string.CompareOrdinal(strA, indexA, strB, indexB, length);
- TestLibrary.TestFramework.LogError("N00M", "Expected exception did not occur. Expected ArgumentOutOfRangeExeption");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException e)
- {
- TestLibrary.TestFramework.LogInformation("It occurred an expect exception:" + e);
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N027", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- /// <summary>
- /// indexA>strA.Length indexB>strB.Length and length normal
- /// </summary>
- /// <returns></returns>
- public bool NegTest14()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest14:Two like not NullStrings CompareOrdinal fourteen");
- Random rand = new Random(-55);
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRINF_LEN, c_MAX_STRING_LEN);
- strB = strA.ToString();
- indexA = rand.Next(strA.Length + 1, strA.Length + 10);
- indexB = rand.Next(strB.Length + 1, strB.Length + 10);
- length = rand.Next();
-
- int ActualResult = string.CompareOrdinal(strA, indexA, strB, indexB, length);
- TestLibrary.TestFramework.LogError("N00N", "Expected exception did not occur. Expected ArgumentOutOfRangeExeption");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException e)
- {
- TestLibrary.TestFramework.LogInformation("It occurred an expect exception:" + e);
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N029", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- /// <summary>
- /// indexA<0,indexB<strB.Length and length normal
- /// </summary>
- /// <returns></returns>
- public bool NegTest15()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest15:Two like not NullStrings CompareOrdinal fifteen");
- Random rand = new Random(-55);
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRINF_LEN, c_MAX_STRING_LEN);
- strB = strA.ToString();
- indexA = rand.Next(1, strA.Length) * (-1);
- indexB = rand.Next(strB.Length + 1, strB.Length + 10);
- length = rand.Next();
-
- int ActualResult = string.CompareOrdinal(strA, indexA, strB, indexB, length);
- TestLibrary.TestFramework.LogError("N00O", "Expected exception did not occur. Expected ArgumentOutOfRangeExeption");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException e)
- {
- TestLibrary.TestFramework.LogInformation("It occurred an expect exception:" + e);
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N031", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- /// <summary>
- /// indexA <0,indexB>strB.Length and length<0
- /// </summary>
- /// <returns></returns>
- public bool NegTest16()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest16:Two like not NullStrings CompareOrdinal sixteen");
- Random rand = new Random(-55);
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRINF_LEN, c_MAX_STRING_LEN);
- strB = strA.ToString();
- indexA = rand.Next(1, strA.Length) * (-1);
- indexB = rand.Next(strB.Length + 1, strB.Length + 10);
- length = (1 + rand.Next()) * (-1);
-
- int ActualResult = string.CompareOrdinal(strA, indexA, strB, indexB, length);
- TestLibrary.TestFramework.LogError("N00P", "Expected exception did not occur. Expected ArgumentOutOfRangeExeption");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException e)
- {
- TestLibrary.TestFramework.LogInformation("It occurred an expect exception:" + e);
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N033", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- /// <summary>
- /// indexA>strA.Length,indexB<0 and length<0
- /// </summary>
- /// <returns></returns>
- public bool NegTest17()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest17:Two like not NullStrings CompareOrdinal seventeen");
- Random rand = new Random(-55);
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRINF_LEN, c_MAX_STRING_LEN);
- strB = strA.ToString();
- indexA = rand.Next(strA.Length + 1, strA.Length + 10);
- indexB = rand.Next(1, strB.Length) * (-1);
- length = (1 + rand.Next()) * (-1);
-
- int ActualResult = string.CompareOrdinal(strA, indexA, strB, indexB, length);
- TestLibrary.TestFramework.LogError("N00Q", "Expected exception did not occur. Expected ArgumentOutOfRangeExeption");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException e)
- {
- TestLibrary.TestFramework.LogInformation("It occurred an expect exception:" + e);
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N035", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-
-}
-
+++ /dev/null
-// 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;
-using TestLibrary;
-
-
-public class StringConcat1
-{
- public static int Main()
- {
- StringConcat1 sc1 = new StringConcat1();
-
- TestLibrary.TestFramework.BeginTestCase("StringConcat1");
-
- if (sc1.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;
- retVal = PosTest12() && retVal;
- retVal = PosTest13() && retVal;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
-
- TestLibrary.TestFramework.BeginScenario("PostTest1:Concat a random object");
- try
- {
- ObjA = new object();
- ActualResult = string.Concat(ObjA);
- if (ActualResult != ObjA.ToString())
- {
- TestLibrary.TestFramework.LogError("001", "Concat a random object ExpectResult is" +ObjA.ToString()+ ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
-
- TestLibrary.TestFramework.BeginScenario("PostTest2:Concat an object of null");
- try
- {
- ObjA = null;
- ActualResult = string.Concat(ObjA);
- if (ActualResult != string.Empty)
- {
- TestLibrary.TestFramework.LogError("003", "Concat an object of null ExpectResult is" +string.Empty+" ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- TestLibrary.TestFramework.BeginScenario("PosTest3:Concat an object of empty");
- try
- {
- ObjA = "";
- ActualResult = string.Concat(ObjA);
- if (ActualResult != ObjA.ToString())
- {
- TestLibrary.TestFramework.LogError("005", "Concat an object of empty ExpectResult is equel" +ObjA.ToString()+ ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
- string ActualResult;
- string ObjA;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: Concat an object of two tab");
- try
- {
- ObjA = new string('\t', 2);
- ActualResult = string.Concat(ObjA);
- if (ActualResult != ObjA.ToString())
- {
- TestLibrary.TestFramework.LogError("007", "Concat an object of two tab ExpectResult is" +ObjA.ToString()+" ,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- TestLibrary.TestFramework.BeginScenario("PosTest5:Concat an object of int");
- try
- {
- ObjA = new int();
- ActualResult = string.Concat(ObjA);
- if (ActualResult != ObjA.ToString())
- {
- TestLibrary.TestFramework.LogError("009", "Concat an object of int ExpectResult is equel" +ObjA.ToString()+" ,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest6()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- TestLibrary.TestFramework.BeginScenario("PosTest6: Concat an object of datetime");
- try
- {
- ObjA = new DateTime();
- ActualResult = string.Concat(ObjA);
- if (ActualResult != ObjA.ToString())
- {
- TestLibrary.TestFramework.LogError("011", " ExpectResult is equel" +ObjA.ToString()+ ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest7()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- TestLibrary.TestFramework.BeginScenario("PosTest7: Concat an object of bool");
- try
- {
- ObjA = new bool();
- ActualResult = string.Concat(ObjA);
- if (ActualResult != ObjA.ToString())
- {
- TestLibrary.TestFramework.LogError("013", "Concat an object of bool ExpectResult is equel" +ObjA.ToString()+",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("014", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest8()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- TestLibrary.TestFramework.BeginScenario("PosTest8:Concat an object of random class instance ");
- try
- {
- ObjA = new StringConcat1();
- ActualResult = string.Concat(ObjA);
- if (ActualResult != ObjA.ToString())
- {
- TestLibrary.TestFramework.LogError("015", "Concat an object of random class instance ExpectResult is equel" +ObjA.ToString()+" ,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("016", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest9()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- TestLibrary.TestFramework.BeginScenario("PosTest9: Concat an object of Guid");
- try
- {
- ObjA = new Guid();
- ActualResult = string.Concat(ObjA);
- if (ActualResult != ObjA.ToString())
- {
- TestLibrary.TestFramework.LogError("017", "Concat an object of Guid ExpectResult is equel"+ ObjA.ToString()+",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("018", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest10()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- TestLibrary.TestFramework.BeginScenario("PosTest10:Concat an object of Random ");
- try
- {
- ObjA = new Random(-55);
- ActualResult = string.Concat(ObjA);
- if (ActualResult != ObjA.ToString())
- {
- TestLibrary.TestFramework.LogError("019", "Concat an object of Random ExpectResult is equel" + ObjA.ToString() +",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("020", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest11()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- TestLibrary.TestFramework.BeginScenario("PosTest11: Concat an object of float");
- try
- {
- ObjA = new float();
- ActualResult = string.Concat(ObjA);
- if (ActualResult != ObjA.ToString())
- {
- TestLibrary.TestFramework.LogError("021", "Concat an object of float ExpectResult is equel" +ObjA.ToString()+" ,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("022", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest12()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- TestLibrary.TestFramework.BeginScenario("PosTest12:Concat an object of SByte");
- try
- {
- ObjA = new SByte();
- ActualResult = string.Concat(ObjA);
- if (ActualResult != ObjA.ToString())
- {
- TestLibrary.TestFramework.LogError("023", "Concat an object of SByte ExpectResult is equel" + ObjA.ToString()+ ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("024", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest13()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- TestLibrary.TestFramework.BeginScenario("PosTest13:Concat an object of number of less than 0");
- try
- {
- ObjA = -123;
- ActualResult = string.Concat(ObjA);
- if (ActualResult != ObjA.ToString())
- {
- TestLibrary.TestFramework.LogError("025", "Concat an object of number of less than 0 ExpectResult is equel" + ObjA.ToString() + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("026", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
-
-
-}
-
+++ /dev/null
-// 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;
-using TestLibrary;
-
-public class StringConcat2
-{
- public static int Main()
- {
- StringConcat2 sc2 = new StringConcat2();
-
- TestLibrary.TestFramework.BeginTestCase("StringConcat2");
-
- if (sc2.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;
- retVal = PosTest12() && retVal;
- retVal = PosTest13() && retVal;
- retVal = PosTest14() && retVal;
- retVal = PosTest15() && retVal;
- retVal = PosTest16() && retVal;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- object ObjB;
-
- TestLibrary.TestFramework.BeginScenario("PostTest1:Concat two objects of object ");
- try
- {
- ObjA = new object();
- ObjB = new object();
- ActualResult = string.Concat(ObjA,ObjB);
- if (ActualResult != ObjA.ToString() + ObjB.ToString())
- {
- TestLibrary.TestFramework.LogError("001", "Concat a random object ExpectResult is" + ObjA.ToString() + ObjB.ToString()+ ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- object ObjB;
-
- TestLibrary.TestFramework.BeginScenario("PostTest2:Concat null object and null object");
- try
- {
- ObjA = null;
- ObjB = null;
- ActualResult = string.Concat(ObjA,ObjB);
- if (ActualResult != string.Empty)
- {
- TestLibrary.TestFramework.LogError("003", "Concat null object and null object ExpectResult is" + string.Empty + " ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- object ObjB;
- TestLibrary.TestFramework.BeginScenario("PosTest3:Concat null object and empty");
- try
- {
- ObjA = null;
- ObjB = "";
- ActualResult = string.Concat(ObjA,ObjB);
- if (ActualResult != string.Empty)
- {
- TestLibrary.TestFramework.LogError("005", "Concat null object and empty ExpectResult is equel" + string.Empty + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
- string ActualResult;
- string ObjA;
- object ObjB;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: Concat null and two tabs");
- try
- {
- ObjB = null;
- ObjA = new string('\t', 2);
- ActualResult = string.Concat(ObjB,ObjA);
- if (ActualResult != ObjA.ToString())
- {
- TestLibrary.TestFramework.LogError("007", "Concat null and two tabs ExpectResult is" +ObjA.ToString() + " ,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- object ObjB;
- TestLibrary.TestFramework.BeginScenario("PosTest5:Concat null and an object of int");
- try
- {
- ObjA = null;
- ObjB = new int();
- ActualResult = string.Concat(ObjA, ObjB);
- if (ActualResult != ObjB.ToString())
- {
- TestLibrary.TestFramework.LogError("009", "Concat null and an object of int ExpectResult is equel" +ObjB.ToString() + " ,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest6()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- object ObjB;
- TestLibrary.TestFramework.BeginScenario("PosTest6: Concat null and an object of datetime");
- try
- {
- ObjA = null;
- ObjB = new DateTime();
- ActualResult = string.Concat(ObjA,ObjB);
- if (ActualResult != ObjB.ToString())
- {
- TestLibrary.TestFramework.LogError("011", "Concat null and an object of datetime ExpectResult is equel" + ObjB.ToString() + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest7()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- object ObjB;
- TestLibrary.TestFramework.BeginScenario("PosTest7: Concat null and an object of bool");
- try
- {
- ObjA = null;
- ObjB = new bool();
- ActualResult = string.Concat(ObjA, ObjB);
- if (ActualResult != ObjB.ToString())
- {
- TestLibrary.TestFramework.LogError("013", "Concat nulland an object of bool ExpectResult is equel" +ObjB.ToString() + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("014", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest8()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- object ObjB;
- TestLibrary.TestFramework.BeginScenario("PosTest8:Concat null and an object of random class instance");
- try
- {
- ObjA = null;
- ObjB = new StringConcat2();
- ActualResult = string.Concat(ObjA, ObjB);
- if (ActualResult != ObjB.ToString())
- {
- TestLibrary.TestFramework.LogError("015", "Concat null and an object of random class instance ExpectResult is equel"+ ObjB.ToString() + " ,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("016", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest9()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- object ObjB;
- TestLibrary.TestFramework.BeginScenario("PosTest9: Concat null and an object of Guid");
- try
- {
- ObjA = null;
- ObjB = new Guid();
- ActualResult = string.Concat(ObjA,ObjB);
- if (ActualResult != ObjB.ToString())
- {
- TestLibrary.TestFramework.LogError("017", "Concat null and an object of Guid ExpectResult is equel" + ObjB.ToString() + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("018", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest10()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- object ObjB;
- TestLibrary.TestFramework.BeginScenario("PosTest10:Concat null and an object of Random ");
- try
- {
- ObjA = null;
- ObjB = new Random(-55);
- ActualResult = string.Concat(ObjA,ObjB);
- if (ActualResult != ObjB.ToString())
- {
- TestLibrary.TestFramework.LogError("019", "Concat null and an object of Random ExpectResult is equel" + ObjB.ToString() + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("020", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest11()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- object ObjB;
- TestLibrary.TestFramework.BeginScenario("PosTest11:Concat an object and null ");
- try
- {
- ObjA = new object();
- ObjB = null;
- ActualResult = string.Concat(ObjA, ObjB);
- if (ActualResult != ObjA.ToString())
- {
- TestLibrary.TestFramework.LogError("021", "Concat an object and null ExpectResult is equel" + ObjA.ToString() + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("022", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest12()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- object ObjB;
- TestLibrary.TestFramework.BeginScenario("PosTest12:Concat an object of Guid and null ");
- try
- {
- ObjA = new Guid();
- ObjB = null;
- ActualResult = string.Concat(ObjA, ObjB);
- if (ActualResult != ObjA.ToString())
- {
- TestLibrary.TestFramework.LogError("023", "Concat an object of Guid and null ExpectResult is equel" + ObjA.ToString() + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("024", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest13()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- object ObjB;
- TestLibrary.TestFramework.BeginScenario("PosTest13:Concat an object of Guid and an object ");
- try
- {
- ObjA = new Guid();
- ObjB = new object();
- ActualResult = string.Concat(ObjA, ObjB);
- if (ActualResult != ObjA.ToString() + ObjB.ToString())
- {
- TestLibrary.TestFramework.LogError("025", "Concat an object of Guid and null ExpectResult is equel" + ObjA.ToString() + ObjB.ToString() + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("026", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest14()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- object ObjB;
- TestLibrary.TestFramework.BeginScenario("PosTest14:Concat an objec and an object of datetime");
- try
- {
- ObjA = new object();
- ObjB = new DateTime();
- ActualResult = string.Concat(ObjA, ObjB);
- if (ActualResult != ObjA.ToString() + ObjB.ToString())
- {
- TestLibrary.TestFramework.LogError("027", "Concat an object and an object of datetime ExpectResult is equel" + ObjA.ToString() + ObjB.ToString() + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("028", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest15()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- object ObjB;
- TestLibrary.TestFramework.BeginScenario("PosTest15:Concat an object of datetime and an object of bool");
- try
- {
- ObjA = new DateTime();
- ObjB = new bool();
- ActualResult = string.Concat(ObjA, ObjB);
- if (ActualResult != ObjA.ToString() + ObjB.ToString())
- {
- TestLibrary.TestFramework.LogError("029", "Concat an object of datetime and an object of bool ExpectResult is equel" + ObjA.ToString() + ObjB.ToString() + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("030", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest16()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- object ObjB;
- TestLibrary.TestFramework.BeginScenario("PosTest16:Concat object of two number of less than 0");
- try
- {
- ObjA = -123;
- ObjB = -132;
- ActualResult = string.Concat(ObjA, ObjB);
- if (ActualResult != ObjA.ToString() + ObjB.ToString())
- {
- TestLibrary.TestFramework.LogError("031", "Concat object of two number of less than 0 ExpectResult is equel" + ObjA.ToString() + ObjB.ToString() + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("032", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-}
-
+++ /dev/null
-// 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;
-using TestLibrary;
-
-public class StringConcat3
-{
- public static int Main()
- {
- StringConcat3 sc3 = new StringConcat3();
-
- TestLibrary.TestFramework.BeginTestCase("StringConcat3");
-
- if (sc3.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;
- retVal = PosTest12() && retVal;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- object ObjB;
- object ObjC;
-
- TestLibrary.TestFramework.BeginScenario("PostTest1:Concat three objects of object ");
- try
- {
- ObjA = new object();
- ObjB = new object();
- ObjC = new object();
- ActualResult = string.Concat(ObjA, ObjB,ObjC);
- if (ActualResult != ObjA.ToString() +ObjB.ToString() +ObjC.ToString())
- {
- TestLibrary.TestFramework.LogError("001", "Concat three objects ExpectResult is" + ObjA.ToString() + ObjB.ToString() + ObjC.ToString() + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- object ObjB;
- object ObjC;
-
- TestLibrary.TestFramework.BeginScenario("PostTest2:Concat three null objects");
- try
- {
- ObjA = null;
- ObjB = null;
- ObjC = null;
- ActualResult = string.Concat(ObjA, ObjB,ObjC);
- if (ActualResult != string.Empty)
- {
- TestLibrary.TestFramework.LogError("003", "Concat three null objects ExpectResult is" + string.Empty+ " ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- object ObjB;
- object ObjC;
- TestLibrary.TestFramework.BeginScenario("PosTest3:Concat two null objects and a number of less than 0");
- try
- {
- ObjA = null;
- ObjB = null;
- ObjC = -12314124;
- ActualResult = string.Concat(ObjA, ObjB,ObjC);
- if (ActualResult != ObjC.ToString())
- {
- TestLibrary.TestFramework.LogError("005", "Concat two null objects and a number of less than 0 ExpectResult is equel" + ObjC.ToString() + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- object ObjB;
- object ObjC;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: Concat three special strings");
- try
- {
- ObjA = new string('\t', 2);
- ObjB = "\n";
- ObjC = "\t";
- ActualResult = string.Concat(ObjA, ObjB, ObjC);
- if (ActualResult != ObjA.ToString() + ObjB.ToString() + ObjC.ToString())
- {
- TestLibrary.TestFramework.LogError("007", "Concat three special strings ExpectResult is" + ObjB.ToString() + ObjA.ToString() + ObjC.ToString() + " ,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- object ObjB;
- object ObjC;
- TestLibrary.TestFramework.BeginScenario("PosTest5:Concat three numbers of less than 0");
- try
- {
- ObjA = -123;
- ObjB = -123;
- ObjC = -123;
- ActualResult = string.Concat(ObjA, ObjB,ObjC);
- if (ActualResult != ObjA.ToString() + ObjB.ToString() + ObjC.ToString())
- {
- TestLibrary.TestFramework.LogError("009", "Concat three numbers of less than 0 ExpectResult is equel" + ObjA.ToString() + ObjB.ToString() + " ,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest6()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- object ObjB;
- object ObjC;
- TestLibrary.TestFramework.BeginScenario("PosTest6: Concat two nulls and an object of datetime");
- try
- {
- ObjA = null;
- ObjB = new DateTime();
- ObjC = null;
- ActualResult = string.Concat(ObjA, ObjB,ObjC);
- if (ActualResult != ObjB.ToString())
- {
- TestLibrary.TestFramework.LogError("011", "Concat two nulls and an object of datetime ExpectResult is equel" + ObjB.ToString() + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest7()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- object ObjB;
- object ObjC;
- TestLibrary.TestFramework.BeginScenario("PosTest7: Concat null and an object of datetime and one space");
- try
- {
- ObjA = null;
- ObjB = new DateTime();
- ObjC = " ";
- ActualResult = string.Concat(ObjA, ObjB,ObjC);
- if (ActualResult != ObjB.ToString() +ObjC.ToString())
- {
- TestLibrary.TestFramework.LogError("013", "Concat null and an object of datetime and one space ExpectResult is equel"+ ObjB.ToString() + ObjC.ToString() +",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("014", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest8()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- object ObjB;
- object ObjC;
- TestLibrary.TestFramework.BeginScenario("PosTest8:Concat null and an object of random class instance and bool object");
- try
- {
- ObjA = null;
- ObjB = new StringConcat3();
- ObjC = new bool();
- ActualResult = string.Concat(ObjA, ObjB,ObjC);
- if (ActualResult != ObjB.ToString() + ObjC.ToString())
- {
- TestLibrary.TestFramework.LogError("015", "Concat null and an object of random class instance and bool object ExpectResult is equel" + ObjB.ToString() + " ,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("016", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest9()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- object ObjB;
- object ObjC;
- TestLibrary.TestFramework.BeginScenario("PosTest9: Concat int and special symbol and an object of Guid");
- try
- {
- ObjA = 123;
- ObjB = "\n";
- ObjC = new Guid();
- ActualResult = string.Concat(ObjA, ObjB,ObjC);
- if (ActualResult != ObjA.ToString() + ObjB.ToString() + ObjC.ToString())
- {
- TestLibrary.TestFramework.LogError("017", "Concat int and special symbol and an object of Guid ExpectResult is equel" + ObjA.ToString() + ObjB.ToString() + ObjC.ToString() + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("018", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest10()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- object ObjB;
- object ObjC;
- TestLibrary.TestFramework.BeginScenario("PosTest10:Concat two guids with a \n string in middle");
- try
- {
- ObjA = new Guid();
- ObjB = "\n";
- ObjC = new Guid();
- ActualResult = string.Concat(ObjA, ObjB,ObjC);
- if (ActualResult != ObjA.ToString() + ObjB.ToString() + ObjC.ToString())
- {
- TestLibrary.TestFramework.LogError("019", "Concat two guids with a \n string in middle ExpectResult is equel" + ObjA.ToString() + ObjB.ToString() + ObjC.ToString() + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("020", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest11()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- object ObjB;
- object ObjC;
- TestLibrary.TestFramework.BeginScenario("PosTest11:Concat three guids");
- try
- {
- ObjA = new Guid();
- ObjB = new Guid();
- ObjC = new Guid();
- ActualResult = string.Concat(ObjA, ObjB, ObjC);
- if (ActualResult != ObjA.ToString() + ObjB.ToString() + ObjC.ToString())
- {
- TestLibrary.TestFramework.LogError("021", "Concat three guids ExpectResult is equel" + ObjA.ToString() + ObjB.ToString() + ObjC.ToString() + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("022", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest12()
- {
- bool retVal = true;
- string ActualResult;
- object ObjA;
- object ObjB;
- object ObjC;
- TestLibrary.TestFramework.BeginScenario("PosTest11:Concat guid,datetime and bool");
- try
- {
- ObjA = new Guid();
- ObjB = new bool();
- ObjC = new DateTime();
- ActualResult = string.Concat(ObjA, ObjB, ObjC);
- if (ActualResult != ObjA.ToString() + ObjB.ToString() + ObjC.ToString())
- {
- TestLibrary.TestFramework.LogError("023", "Concat guid,datetiem and bool ExpectResult is equel" + ObjA.ToString() + ObjB.ToString() + ObjC.ToString() + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("024", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
-
-
-}
-
+++ /dev/null
-// 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;
-using TestLibrary;
-
-public class StringConcat4
-{
- private int c_MAX_STRING_LENGTH = 256;
- private int c_MINI_STRING_LENGTH = 8;
-
- public static int Main()
- {
- StringConcat4 sc4 = new StringConcat4();
-
- TestLibrary.TestFramework.BeginTestCase("StringConcat4");
-
- if (sc4.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("[Negative]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
-
- return retVal;
- }
-
- #region PositiveTesting
- public bool PosTest1()
- {
- bool retVal = true;
- Random rand = new Random(-55);
- string ActualResult;
- object[] ObjA = new object[rand.Next(c_MINI_STRING_LENGTH,c_MAX_STRING_LENGTH)];
-
- TestLibrary.TestFramework.BeginScenario("PostTest1:Concat object Array with all null member");
- try
- {
- for (int i = 0; i < ObjA.Length; i++)
- {
- ObjA[i] = null;
- }
- ActualResult = string.Concat(ObjA);
- if (ActualResult != MergeStrings(ObjA))
- {
- TestLibrary.TestFramework.LogError("001", "Concat object Array with all null member ExpectResult is" + MergeStrings(ObjA) + "ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- Random rand = new Random(-55);
- string ActualResult;
- object[] ObjA = new object[rand.Next(c_MINI_STRING_LENGTH,c_MAX_STRING_LENGTH)];
-
- TestLibrary.TestFramework.BeginScenario("PostTest2:Concat object Array with empty member");
- try
- {
- for (int i = 0; i < ObjA.Length; i++)
- {
- ObjA[i] = "";
- }
- ActualResult = string.Concat(ObjA);
- if (ActualResult != MergeStrings(ObjA))
- {
- TestLibrary.TestFramework.LogError("003", "Concat object Array with empty member ExpectResult is" + MergeStrings(ObjA) + " ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- string ActualResult;
- object[] ObjA;
- TestLibrary.TestFramework.BeginScenario("PosTest3:Concat object Array with null and empty member");
- try
- {
- ObjA = new object[]{ null, "", null, "", null, "" };
- ActualResult = string.Concat(ObjA);
- if (ActualResult != MergeStrings(ObjA))
- {
- TestLibrary.TestFramework.LogError("005", "Concat object Array with null and empty member ExpectResult is equel" + MergeStrings(ObjA) + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
- string ActualResult;
- object[] ObjA;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: Concat object Array with null,empty and space member");
- try
- {
- ObjA = new object[] {" ",null,""," "};
- ActualResult = string.Concat(ObjA);
- if (ActualResult != MergeStrings(ObjA))
- {
- TestLibrary.TestFramework.LogError("007", "Concat object Array with null,empty and space member ExpectResult is" + MergeStrings(ObjA) + " ,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
- string ActualResult;
- object[] ObjA;
- TestLibrary.TestFramework.BeginScenario("PosTest5:Concat object Array with int,datetime,bool and class instance member");
- try
- {
- object obj1 = -123;
- object obj2 = new DateTime();
- object obj3 = new bool();
- object obj4 = new StringConcat4();
- ObjA = new object[] { obj1, obj2, obj3, obj4 };
- ActualResult = string.Concat(ObjA);
- if (ActualResult != MergeStrings(ObjA))
- {
- TestLibrary.TestFramework.LogError("009", "Concat an object of int ExpectResult is equel" + MergeStrings(ObjA) + " ,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest6()
- {
- bool retVal = true;
- string ActualResult;
- object[] ObjA;
- TestLibrary.TestFramework.BeginScenario("PosTest6: Concat object Array with guid and some special symbols member");
- try
- {
- object obj1 = new Guid();
- object obj2 = "\n";
- object obj3 = "\t";
- object obj4 = "\u0041";
- ObjA = new object[] { obj1, obj2, obj3, obj4};
- ActualResult = string.Concat(ObjA);
- if (ActualResult != MergeStrings(ObjA))
- {
- TestLibrary.TestFramework.LogError("011", "Concat object Array with guid and some special symbols member ExpectResult is equel" + MergeStrings(ObjA) + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest7()
- {
- bool retVal = true;
- string ActualResult;
- object[] ObjA;
- TestLibrary.TestFramework.BeginScenario("PosTest7: Concat object Array with some strings and symbols member");
- try
- {
- object obj1 = "hello";
- object obj2 = "\0";
- object obj3 = "World";
- object obj4 = "\u0020";
- object obj5 = "!";
- ObjA = new object[] { obj1, obj2, obj3, obj4, obj5 };
- ActualResult = string.Concat(ObjA);
- if (ActualResult != MergeStrings(ObjA))
- {
- TestLibrary.TestFramework.LogError("013", "Concat object Array with some strings and symbols member ExpectResult is equel" + MergeStrings(ObjA) + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("014", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest8()
- {
- bool retVal = true;
- string ActualResult;
- object[] ObjA;
- TestLibrary.TestFramework.BeginScenario("PosTest8:Concat object Array with bool and some strings member");
- try
- {
- object obj1 = true;
- object obj2 = "hello\0world";
- object obj3 = 12;
- object obj4 = "uff21";
- ObjA = new object[] { obj1, obj2, obj3, obj4 };
- ActualResult = string.Concat(ObjA);
- if (ActualResult != MergeStrings(ObjA))
- {
- TestLibrary.TestFramework.LogError("015", "Concat object Array with bool and some strings member ExpectResult is equel" + MergeStrings(ObjA) + " ,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("016", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- #endregion
-
- #region NegativeTesting
- public bool NegTest1()
- {
- bool retVal = true;
- Random rand = new Random(-55);
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: Concat object Array is null");
-
- object[] ObjA = new object[rand.Next(c_MINI_STRING_LENGTH,c_MAX_STRING_LENGTH)];
- string ActualResult;
- try
- {
- ObjA = null;
- ActualResult = string.Concat(ObjA);
- retVal = false;
- }
- catch (ArgumentNullException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
- Random rand = new Random(-55);
- object[] ObjA = new object[50 * 1024 * 1024];
- string ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: Concat object Array with many strings");
-
- int TotalLength = 0;
- try
- {
- for (int i = 0; i < ObjA.Length; i++)
- {
- ObjA[i] = "HelloworldHelloworldHelloworldHelloworld!";
- TotalLength += ObjA[i].ToString().Length;
- }
- ActualResult = string.Concat(ObjA);
- retVal = false;
- }
- catch (OutOfMemoryException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- #region Help method
- private string MergeStrings(object[] ObjS)
- {
- string ResultString ="";
- foreach (object obj in ObjS)
- {
- if (obj == null)
- ResultString += string.Empty;
- else
- ResultString += obj.ToString();
- }
- return ResultString;
- }
-
- #endregion
-
- #endregion
-
-}
-
+++ /dev/null
-// 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;
-using TestLibrary;
-
-
-public class StringConcat5
-{
- private int c_MINI_STRING_LENGTH = 8;
- private int c_MAX_STRING_LENGTH = 256;
- public static int Main()
- {
- StringConcat5 sc5 = new StringConcat5();
-
- TestLibrary.TestFramework.BeginTestCase("StringConcat5");
-
- if (sc5.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;
- retVal = PosTest12() && retVal;
- retVal = PosTest13() && retVal;
- retVal = PosTest14() && retVal;
- retVal = PosTest15() && retVal;
- retVal = PosTest16() && retVal;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
-
- TestLibrary.TestFramework.BeginScenario("PostTest1:Concat two null ");
- try
- {
- strA = null;
- strB = null;
- ActualResult = string.Concat(strA, strB);
- if (ActualResult != MergeString(strA,strB))
- {
- TestLibrary.TestFramework.LogError("001", "Concat two null ExpectResult is" + MergeString(strA,strB) + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
-
- TestLibrary.TestFramework.BeginScenario("PostTest2:Concat null and empty");
- try
- {
- strA = null;
- strB = "";
- ActualResult = string.Concat(strA, strB);
- if (ActualResult != MergeString(strA,strB))
- {
- TestLibrary.TestFramework.LogError("003", "Concat null string and empty ExpectResult is" + MergeString(strA,strB) + " ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
- TestLibrary.TestFramework.BeginScenario("PosTest3:Concat null and space");
- try
- {
- strA = null;
- strB = "\u0020";
- ActualResult = string.Concat(strA, strB);
- if (ActualResult != MergeString(strA,strB))
- {
- TestLibrary.TestFramework.LogError("005", "Concat null and space ExpectResult is equel" + MergeString(strA,strB) + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: Concat empty and space");
- try
- {
- strA = "";
- strB = "\u0020";
- ActualResult = string.Concat(strA,strB);
- if (ActualResult != MergeString(strA,strB))
- {
- TestLibrary.TestFramework.LogError("007", "Concat empty and space ExpectResult is" + MergeString(strA,strB)+ " ,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
- TestLibrary.TestFramework.BeginScenario("PosTest5:Concat \0 and space");
- try
- {
- strA = "\0";
- strB = "u0020";
- ActualResult = string.Concat(strA, strB);
- if (ActualResult != MergeString(strA,strB))
- {
- TestLibrary.TestFramework.LogError("009", "Concat \0 and space ExpectResult is equel" + MergeString(strA,strB) + " ,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest6()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
- TestLibrary.TestFramework.BeginScenario("PosTest6: Concat null and not nullstring");
- try
- {
- strA = null;
- strB = TestLibrary.Generator.GetString(-55, false,c_MINI_STRING_LENGTH,c_MAX_STRING_LENGTH);
- ActualResult = string.Concat(strA, strB);
- if (ActualResult != MergeString(strA,strB))
- {
- TestLibrary.TestFramework.LogError("011", "Concat null and not nullstring ExpectResult is equel" + MergeString(strA,strB) + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest7()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
- TestLibrary.TestFramework.BeginScenario("PosTest7: Concat empty and not nullstring");
- try
- {
- strA = "";
- strB = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- ActualResult = string.Concat(strA, strB);
- if (ActualResult != MergeString(strA,strB))
- {
- TestLibrary.TestFramework.LogError("013", "Concat empty and not nullstring ExpectResult is equel" + MergeString(strA, strB) + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("014", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest8()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
- TestLibrary.TestFramework.BeginScenario("PosTest8:Concat two empty");
- try
- {
- strA = "";
- strB = "";
- ActualResult = string.Concat(strA, strB);
- if (ActualResult != MergeString(strA,strB))
- {
- TestLibrary.TestFramework.LogError("015", "Concat two empty ExpectResult is equel" + MergeString(strA,strB) + " ,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("016", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest9()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
- TestLibrary.TestFramework.BeginScenario("PosTest9: Concat two not nullstrings one");
- try
- {
- string strBasic = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- strA = strBasic + "\n";
- strB = strBasic;
- ActualResult = string.Concat(strA, strB);
- if (ActualResult != MergeString(strA,strB))
- {
- TestLibrary.TestFramework.LogError("017", "Concat two not nullstrings one ExpectResult is equel" + MergeString(strA,strB) + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("018", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest10()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
- TestLibrary.TestFramework.BeginScenario("PosTest10:Concat some special symbols ");
- try
- {
- strA = new string('\t', 2);
- strB = "\uffff";
- ActualResult = string.Concat(strA, strB);
- if (ActualResult != MergeString(strA,strB))
- {
- TestLibrary.TestFramework.LogError("019", "Concat some special symbols ExpectResult is equel" + MergeString(strA,strB) + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("020", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest11()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
- TestLibrary.TestFramework.BeginScenario("PosTest11:Concat tab and space ");
- try
- {
- strA = "\u0009";
- strB = "\u0020";
- ActualResult = string.Concat(strA, strB);
- if (ActualResult != MergeString(strA,strB))
- {
- TestLibrary.TestFramework.LogError("021", "Concat tab and space ExpectResult is equel" + MergeString(strA,strB) + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("022", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest12()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
- TestLibrary.TestFramework.BeginScenario("PosTest12:Concat two not nullstrings two ");
- try
- {
- strA = "Hello\t";
- strB = "World";
- ActualResult = string.Concat(strA, strB);
- if (ActualResult != MergeString(strA,strB))
- {
- TestLibrary.TestFramework.LogError("023", "Concat two not nullstrings two ExpectResult is equel" + MergeString(strA, strB) + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("024", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest13()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
- TestLibrary.TestFramework.BeginScenario("PosTest13:Concat two not nullstrings three");
- try
- {
- strA = "Hello\0";
- strB = "World";
- ActualResult = string.Concat(strA, strB);
- if (ActualResult != MergeString(strA,strB))
- {
- TestLibrary.TestFramework.LogError("025", "Concat two not nullstrings three ExpectResult is equel" + MergeString(strA,strB) + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("026", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest14()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
- TestLibrary.TestFramework.BeginScenario("PosTest14:Concat two not nullstrings four");
- try
- {
- strA = "Hello\nWorld";
- strB = "I am here!";
- ActualResult = string.Concat(strA, strB);
- if (ActualResult !=MergeString(strA,strB))
- {
- TestLibrary.TestFramework.LogError("027", "Concat two not nullstrings four ExpectResult is equel" + MergeString(strA,strB) + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("028", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest15()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
- TestLibrary.TestFramework.BeginScenario("PosTest15:Concat two not nullstrings five");
- try
- {
- strA = "Hello\nWorld\tI am here\0....";
- strB = "Welcome to you!";
- ActualResult = string.Concat(strA, strB);
- if (ActualResult !=MergeString(strA,strB))
- {
- TestLibrary.TestFramework.LogError("029", "Concat two not nullstrings five ExpectResult is equel" + MergeString(strA, strB) + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("030", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest16()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
-
- TestLibrary.TestFramework.BeginScenario("PosTest16:Concat string of two number of less than 0");
- try
- {
- string stra = "hello World! ";
- string strb = "Come here! ";
- strA = stra.Trim();
- strB = strb.Trim();
- ActualResult = string.Concat(strA, strB);
- if (ActualResult != MergeString(strA,strB))
- {
- TestLibrary.TestFramework.LogError("031", "Concat string of two number of less than 0 ExpectResult is equel" + MergeString(strA,strB) + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("032", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- #region Help Method
-
- private string MergeString(string strA, string strB)
- {
- if (strA == null || strA == string.Empty)
- {
- if (strB == null || strB == string.Empty)
- {
- return string.Empty;
- }
- else
- return strB.ToString();
- }
- else
- return strA.ToString() + strB.ToString();
- }
- #endregion
-}
-
+++ /dev/null
-// 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;
-using TestLibrary;
-
-
-public class StringConcat6
-{
- private int c_MINI_STRING_LENGTH = 8;
- private int c_MAX_STRING_LENGTH = 256;
- public static int Main()
- {
- StringConcat6 sc6 = new StringConcat6();
-
- TestLibrary.TestFramework.BeginTestCase("StringConcat6");
-
- if (sc6.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;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
- string strC;
-
- TestLibrary.TestFramework.BeginScenario("PostTest1:Concat three nulls ");
- try
- {
- strA = null;
- strB = null;
- strC = null;
- ActualResult = string.Concat(strA, strB,strC);
- if (ActualResult != MergeString(strA, strB,strC))
- {
- TestLibrary.TestFramework.LogError("001", "Concat three nulls ExpectResult is" + MergeString(strA, strB,strC) + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
- string strC;
-
- TestLibrary.TestFramework.BeginScenario("PostTest2:Concat two nulls and one empty");
- try
- {
- strA = null;
- strB = "";
- strC = null;
- ActualResult = string.Concat(strA, strB,strC);
- if (ActualResult != MergeString(strA,strB,strC))
- {
- TestLibrary.TestFramework.LogError("003", "Concat null string and empty ExpectResult is" + MergeString(strA,strB,strC) + " ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
- string strC;
- TestLibrary.TestFramework.BeginScenario("PosTest3:Concat one null and two empty");
- try
- {
- strA = null;
- strB = "";
- strC = "";
- ActualResult = string.Concat(strA, strB,strC);
- if (ActualResult != MergeString(strA,strB,strC))
- {
- TestLibrary.TestFramework.LogError("005", "Concat one null and two empty ExpectResult is equel" + MergeString(strA,strB,strC) + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
- string strC;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: Concat three empty");
- try
- {
- strA = "";
- strB = "";
- strC = "";
- ActualResult = string.Concat(strA, strB,strC);
- if (ActualResult != MergeString(strA,strB,strC))
- {
- TestLibrary.TestFramework.LogError("007", "Concat three empty ExpectResult is" + MergeString(strA,strB,strC) + " ,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
- string strC;
- TestLibrary.TestFramework.BeginScenario("PosTest5:Concat null,space and empty");
- try
- {
- strA = null;
- strB = "\u0020";
- strC = "";
- ActualResult = string.Concat(strA, strB,strC);
- if (ActualResult != MergeString(strA,strB,strC))
- {
- TestLibrary.TestFramework.LogError("009", "Concat null,space and empty ExpectResult is equel" + MergeString(strA, strB, strC) + " ,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest6()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
- string strC;
- TestLibrary.TestFramework.BeginScenario("PosTest6: Concat null,not nullstring and empty");
- try
- {
- strA = null;
- strB = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- strC = "";
- ActualResult = string.Concat(strA, strB,strC);
- if (ActualResult != MergeString(strA,strB,strC))
- {
- TestLibrary.TestFramework.LogError("011", "Concat null,not nullstring and empty ExpectResult is equel" + MergeString(strA,strB,strC) + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest7()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
- string strC;
- TestLibrary.TestFramework.BeginScenario("PosTest7: Concat empty and not nullstring");
- try
- {
- strA = null;
- strB = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- strC = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- ActualResult = string.Concat(strA, strB,strC);
- if (ActualResult != MergeString(strA,strB,strC))
- {
- TestLibrary.TestFramework.LogError("013", "Concat empty and not nullstring ExpectResult is equel" + MergeString(strA,strB,strC) + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("014", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest8()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
- string strC;
- TestLibrary.TestFramework.BeginScenario("PosTest8:Concat one empty and two not nullstrings");
- try
- {
- strA = "";
- strB = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- strC = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- ActualResult = string.Concat(strA, strB,strC);
- if (ActualResult != MergeString(strA,strB,strC))
- {
- TestLibrary.TestFramework.LogError("015", "Concat one empty and two not nullstrings ExpectResult is equel" + MergeString(strA, strB, strC) + " ,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("016", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest9()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
- string strC;
- TestLibrary.TestFramework.BeginScenario("PosTest9: Concat three not nullstrings one");
- try
- {
- string strBasic = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- strA = strBasic + "\n";
- strB = strBasic + "\t";
- strC = "\0" + strBasic;
- ActualResult = string.Concat(strA, strB,strC);
- if (ActualResult != MergeString(strA,strB,strC))
- {
- TestLibrary.TestFramework.LogError("017", "Concat three not nullstrings one ExpectResult is equel" + MergeString(strA,strB,strC) + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("018", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest10()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
- string strC;
- TestLibrary.TestFramework.BeginScenario("PosTest10:Concat three nullstrings");
- try
- {
- strA = "Hello\0Word!\u0020";
- string strb = "\nhellobeijing!\t";
- string strc = "\u0020HELLOEVERYONE!";
- strB = strb.ToUpper();
- strC = strc.ToLower();
- ActualResult = string.Concat(strA, strB,strC);
- if (ActualResult != MergeString(strA,strB,strC))
- {
- TestLibrary.TestFramework.LogError("019", "Concat three nullstrings ExpectResult is equel" + MergeString(strA,strB,strC) + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("020", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- #region Help Method
- private string MergeString(string strA, string strB,string strC)
- {
- string ResultMerge = "";
- if (strA == null || strA == string.Empty)
- {
- ResultMerge += string.Empty;
- }
- else
- {
- ResultMerge += strA.ToString();
- }
- if (strB == null || strB == string.Empty)
- {
- ResultMerge += string.Empty;
- }
- else
- {
- ResultMerge += strB.ToString();
- }
- if (strC == null || strC == string.Empty)
- {
- ResultMerge += string.Empty;
- }
- else
- {
- ResultMerge += strC.ToString();
- }
-
- return ResultMerge;
- }
- #endregion
-}
+++ /dev/null
-// 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;
-using TestLibrary;
-
-
-public class StringConcat7
-{
- private int c_MINI_STRING_LENGTH = 8;
- private int c_MAX_STRING_LENGTH = 256;
- public static int Main()
- {
- StringConcat7 sc7 = new StringConcat7();
-
- TestLibrary.TestFramework.BeginTestCase("StringConcat7");
-
- if (sc7.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;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
- string strC;
- string strD;
-
- TestLibrary.TestFramework.BeginScenario("PostTest1:Concat four nulls ");
- try
- {
- strA = null;
- strB = null;
- strC = null;
- strD = null;
- ActualResult = string.Concat(strA, strB, strC,strD);
- if (ActualResult != MergeString(strA, strB, strC,strD))
- {
- TestLibrary.TestFramework.LogError("001", "Concat four nulls ExpectResult is" + MergeString(strA, strB, strC,strD) + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
- string strC;
- string strD;
-
- TestLibrary.TestFramework.BeginScenario("PostTest2:Concat three nulls and empty");
- try
- {
- strA = null;
- strB = "";
- strC = null;
- strD = null;
- ActualResult = string.Concat(strA, strB, strC,strD);
- if (ActualResult != MergeString(strA, strB, strC,strD))
- {
- TestLibrary.TestFramework.LogError("003", "Concat three nulls and empty ExpectResult is" + MergeString(strA, strB, strC,strD) + " ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
- string strC;
- string strD;
- TestLibrary.TestFramework.BeginScenario("PosTest3:Concat two nulls and two empty");
- try
- {
- strA = null;
- strB = "";
- strC = "";
- strD = null;
- ActualResult = string.Concat(strA, strB, strC,strD);
- if (ActualResult != MergeString(strA, strB, strC,strD))
- {
- TestLibrary.TestFramework.LogError("005", "Concat two nulls and two empty ExpectResult is equel" + MergeString(strA, strB, strC,strD) + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
- string strC;
- string strD;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: Concat three empty and null");
- try
- {
- strA = "";
- strB = "";
- strC = "";
- strD = null;
- ActualResult = string.Concat(strA, strB, strC,strD);
- if (ActualResult != MergeString(strA, strB, strC,strD))
- {
- TestLibrary.TestFramework.LogError("007", "Concat three empty and null ExpectResult is" + MergeString(strA, strB, strC,strD) + " ,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
- string strC;
- string strD;
- TestLibrary.TestFramework.BeginScenario("PosTest5:Concat four empty");
- try
- {
- strA = "";
- strB = "";
- strC = "";
- strD = "";
- ActualResult = string.Concat(strA, strB, strC,strD);
- if (ActualResult != MergeString(strA, strB, strC,strD))
- {
- TestLibrary.TestFramework.LogError("009", "Concat four empty ExpectResult is equel" + MergeString(strA, strB, strC,strD) + " ,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest6()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
- string strC;
- string strD;
- TestLibrary.TestFramework.BeginScenario("PosTest6: Concat null,not nullstring and empty");
- try
- {
- strA = null;
- strB = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- strC = "";
- strD = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- ActualResult = string.Concat(strA, strB, strC,strD);
- if (ActualResult != MergeString(strA, strB, strC,strD))
- {
- TestLibrary.TestFramework.LogError("011", "Concat null,not nullstring and empty ExpectResult is equel" + MergeString(strA, strB, strC,strD) + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest7()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
- string strC;
- string strD;
- TestLibrary.TestFramework.BeginScenario("PosTest7: Concat two nulls and not nullstring");
- try
- {
- strA = null;
- strB = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- strC = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- strD = null;
- ActualResult = string.Concat(strA, strB, strC,strD);
- if (ActualResult != MergeString(strA, strB, strC,strD))
- {
- TestLibrary.TestFramework.LogError("013", "Concat empty and not nullstring ExpectResult is equel" + MergeString(strA, strB, strC,strD) + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("014", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest8()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
- string strC;
- string strD;
- TestLibrary.TestFramework.BeginScenario("PosTest8:Concat two empty and two not nullstrings");
- try
- {
- strA = "";
- strB = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- strC = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- strD = "";
- ActualResult = string.Concat(strA, strB, strC,strD);
- if (ActualResult != MergeString(strA, strB, strC,strD))
- {
- TestLibrary.TestFramework.LogError("015", "Concat two empty and two not nullstrings ExpectResult is equel" + MergeString(strA, strB, strC,strD) + " ,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("016", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest9()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
- string strC;
- string strD;
- TestLibrary.TestFramework.BeginScenario("PosTest9: Concat three not nullstrings and null");
- try
- {
- string strBasic = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- strA = strBasic + "\n";
- strB = strBasic + "\t";
- strC = "\0" + strBasic;
- strD = null;
- ActualResult = string.Concat(strA, strB, strC,strD);
- if (ActualResult != MergeString(strA, strB, strC,strD))
- {
- TestLibrary.TestFramework.LogError("017", "Concat three not nullstrings and null ExpectResult is equel" + MergeString(strA, strB, strC,strD) + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("018", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest10()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
- string strC;
- string strD;
- TestLibrary.TestFramework.BeginScenario("PosTest10:Concat three not nullstrings and empty");
- try
- {
- strA = "Hello\0Word!\u0020";
- string strb = "\nhellobeijing!\t";
- string strc = "\u0020HELLOEVERYONE!";
- strB = strb.ToUpper();
- strC = strc.ToLower();
- strD = "";
- ActualResult = string.Concat(strA, strB, strC,strD);
- if (ActualResult != MergeString(strA, strB, strC,strD))
- {
- TestLibrary.TestFramework.LogError("019", "Concat three not nullstrings and empty ExpectResult is equel" + MergeString(strA, strB, strC,strD) + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("020", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest11()
- {
- bool retVal = true;
- string ActualResult;
- string strA;
- string strB;
- string strC;
- string strD;
- TestLibrary.TestFramework.BeginScenario("PosTest11:Concat four nullstrings");
- try
- {
- strA = "Hello\0Word!\u0020";
- string strb = "\nhellobeijing!\t";
- string strc = "\u0020HELLOEVERYONE!";
- strB = strb.ToUpper();
- strC = strc.ToLower();
- strD = TestLibrary.Generator.GetString(-55, false,c_MINI_STRING_LENGTH,c_MAX_STRING_LENGTH);
- ActualResult = string.Concat(strA, strB, strC,strD);
- if (ActualResult != MergeString(strA, strB, strC,strD))
- {
- TestLibrary.TestFramework.LogError("021", "Concat four nullstrings ExpectResult is equel" + MergeString(strA, strB, strC,strD) + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("022", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- #region Help Method
- private string MergeString(string strA, string strB, string strC,string strD)
- {
- string ResultMerge = "";
- if (strA == null || strA == string.Empty)
- {
- ResultMerge += string.Empty;
- }
- else
- {
- ResultMerge += strA.ToString();
- }
- if (strB == null || strB == string.Empty)
- {
- ResultMerge += string.Empty;
- }
- else
- {
- ResultMerge += strB.ToString();
- }
- if (strC == null || strC == string.Empty)
- {
- ResultMerge += string.Empty;
- }
- else
- {
- ResultMerge += strC.ToString();
- }
- if (strD == null || strD == string.Empty)
- {
- ResultMerge += string.Empty;
- }
- else
- {
- ResultMerge += strD.ToString();
- }
-
- return ResultMerge;
- }
- #endregion
-
-}
-
+++ /dev/null
-// 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;
-using TestLibrary;
-
-
-public class StringConcat8
-{
- private int c_MAX_STRING_LENGTH = 256;
- private int c_MINI_STRING_LENGTH = 8;
-
- public static int Main()
- {
- StringConcat8 sc8 = new StringConcat8();
-
- TestLibrary.TestFramework.BeginTestCase("StringConcat8");
-
- if (sc8.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;
-
- TestLibrary.TestFramework.LogInformation("[Negative]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
-
- return retVal;
- }
-
- #region PositiveTesting
- public bool PosTest1()
- {
- bool retVal = true;
- Random rand = new Random(-55);
- string ActualResult;
- string[] strA = new string[rand.Next(c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH)];
-
- TestLibrary.TestFramework.BeginScenario("PostTest1:Concat string Array with all null member");
- try
- {
- for (int i = 0; i < strA.Length; i++)
- {
- strA[i] = null;
- }
- ActualResult = string.Concat(strA);
- if (ActualResult != MergeStrings(strA))
- {
- TestLibrary.TestFramework.LogError("001", "Concat string Array with all null member ExpectResult is" + MergeStrings(strA) + "ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- Random rand = new Random(-55);
- string ActualResult;
- string[] strA = new string[rand.Next(c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH)];
-
- TestLibrary.TestFramework.BeginScenario("PostTest2:Concat string Array with all empty member");
- try
- {
- for (int i = 0; i < strA.Length; i++)
- {
- strA[i] = "";
- }
- ActualResult = string.Concat(strA);
- if (ActualResult != MergeStrings(strA))
- {
- TestLibrary.TestFramework.LogError("003", "Concat string Array with all empty member ExpectResult is" + MergeStrings(strA) + " ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- string ActualResult;
- string[] strA;
- TestLibrary.TestFramework.BeginScenario("PosTest3:Concat string Array with null and empty member");
- try
- {
- strA = new string[] { null, "", null, "", null, "" };
- ActualResult = string.Concat(strA);
- if (ActualResult != MergeStrings(strA))
- {
- TestLibrary.TestFramework.LogError("005", "Concat string Array with null and empty member ExpectResult is equel" + MergeStrings(strA) + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
- string ActualResult;
- string[] strA;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: Concat string Array with single letter member");
- try
- {
- strA = new string[] {"a","b","c","d","e","f"};
- ActualResult = string.Concat(strA);
- if (ActualResult != MergeStrings(strA))
- {
- TestLibrary.TestFramework.LogError("007", "Concat string Array with single letter member ExpectResult is" + MergeStrings(strA) + " ,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
- string ActualResult;
- string[] strA;
- TestLibrary.TestFramework.BeginScenario("PosTest5:Concat string Array with null,empty and not nullstrings member");
- try
- {
- strA = new string[] {null,"a","null","",null,"123"};
- ActualResult = string.Concat(strA);
- if (ActualResult != MergeStrings(strA))
- {
- TestLibrary.TestFramework.LogError("009", "Concat string Array with null,empty and not nullstrings member ExpectResult is equel" + MergeStrings(strA) + " ,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest6()
- {
- bool retVal = true;
- string ActualResult;
- string[] strA;
- TestLibrary.TestFramework.BeginScenario("PosTest6: Concat string Array with not nullstring and some symbols member one");
- try
- {
- string str1 = "HelloWorld";
- string str2 = "\n";
- string str3 = "\t";
- string str4 = "\0";
- string str5 = "\u0041";
- strA = new string[] { str1,str2,str3,str4,str5 };
- ActualResult = string.Concat(strA);
- if (ActualResult != MergeStrings(strA))
- {
- TestLibrary.TestFramework.LogError("011", "Concat string Array with not nullstring and some symbols member ExpectResult is equel" + MergeStrings(strA) + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest7()
- {
- bool retVal = true;
- string ActualResult;
- string[] strA;
- TestLibrary.TestFramework.BeginScenario("PosTest7: Concat string Array with not nullstrings and some symbols member two");
- try
- {
- string str1 = "hello";
- string str2 = "\u0020";
- string str3 = "World";
- string str4 = "\u0020";
- string str5 = "!";
- strA = new string[] { str1, str2, str3, str4, str5 };
- ActualResult = string.Concat(strA);
- if (ActualResult != MergeStrings(strA))
- {
- TestLibrary.TestFramework.LogError("013", "Concat string Array with some strings and some symbols member two ExpectResult is equel" + MergeStrings(strA) + ",ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("014", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest8()
- {
- bool retVal = true;
- string ActualResult;
- string[] strA;
- TestLibrary.TestFramework.BeginScenario("PosTest8:Concat string Array with some not nullstrings member one");
- try
- {
- string str1 = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- string str2 = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- string str3 = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- string str4 = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- string str5 = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- strA = new string[] { str1, str2, str3, str4, str5 };
- ActualResult = string.Concat(strA);
- if (ActualResult != MergeStrings(strA))
- {
- TestLibrary.TestFramework.LogError("015", "Concat string Array with some not nullstrings member one ExpectResult is equel" + MergeStrings(strA) + " ,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("016", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest9()
- {
- bool retVal = true;
- string ActualResult;
- string[] strA;
- TestLibrary.TestFramework.BeginScenario("PosTest9:Concat object Array with some not nullstrings member two");
- try
- {
- string str1 = "helloworld".ToUpper() +"\n";
- string str2 = "hello\0world".ToUpper() + "\n";
- string str3 = "HELLOWORLD".ToLower() + "\n";
- string str4 = "HelloWorld".ToUpper() + "\n";
- string str5 = "hello world".Trim();
- strA = new string[] { str1, str2, str3, str4, str5 };
- ActualResult = string.Concat(strA);
- if (ActualResult != MergeStrings(strA))
- {
- TestLibrary.TestFramework.LogError("015", "Concat object Array with some not nullstrings member two ExpectResult is equel" + MergeStrings(strA) + " ,ActualResult is (" + ActualResult + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("016", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- #endregion
-
- #region NegativeTesting
- public bool NegTest1()
- {
- bool retVal = true;
- Random rand = new Random(-55);
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: Concat string Array is null");
-
- string[] strA = new string[rand.Next(c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH)];
- string ActualResult;
- try
- {
- strA = null;
- ActualResult = string.Concat(strA);
- retVal = false;
- }
- catch (ArgumentNullException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001", "Unexpected exception" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
- Random rand = new Random(-55);
- string[] strA = new string[50 * 1024 * 1024];
- string ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: Concat string Array with many strings");
-
- int TotalLength = 0;
- try
- {
- for (int i = 0; i < strA.Length; i++)
- {
- strA[i] = "HelloworldHelloworldHelloworldHelloworld!";
- TotalLength += strA[i].ToString().Length;
- }
- ActualResult = string.Concat(strA);
- retVal = false;
- }
- catch (OutOfMemoryException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- #region Help method
- private string MergeStrings(string[] strS)
- {
- string ResultString = "";
- foreach (string str in strS)
- {
- if (str == null|| str ==string.Empty )
- ResultString += string.Empty;
- else
- ResultString += str.ToString();
- }
- return ResultString;
- }
-
- #endregion
-
- #endregion
-}
-
+++ /dev/null
-// 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;
-using TestLibrary;
-
-
-public class StringCopyTo
-{
- private int c_MINI_STRING_LENGTH = 8;
- private int c_MAX_STRING_LENGTH = 256;
- public static int Main()
- {
- StringCopyTo sct = new StringCopyTo();
- TestLibrary.TestFramework.BeginTestCase("StringCopyTo");
-
- if (sct.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("[Postive]");
- 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 = NegTest7() && retVal;
-
- return retVal;
- }
- #region PositiveTesting
- public bool PosTest1()
- {
- bool retVal = true;
- string strA;
- int srcIndex;
- char[] dst;
- int dstIndex;
- int count;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1:empty string excute CopyTo empty char array dst");
-
- try
- {
- strA = "";
- srcIndex = 0;
- dst = new char[] {};
- dstIndex = 0;
- count = 0;
- strA.CopyTo(srcIndex, dst, dstIndex, count);
- if(dst.Length != 0)
- {
- TestLibrary.TestFramework.LogError("001", "empty string excute CopyTo empty char array dst ExpectResult the dst is empty char array,ActualResult is " + dst + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- string strA;
- int srcIndex;
- char[] dst;
- int dstIndex;
- int count;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2:In CoptTo method this string length equels to the char array length and copy all string to char array");
-
- try
- {
- string strBasic1 = TestLibrary.Generator.GetString(-55, false, c_MAX_STRING_LENGTH, c_MAX_STRING_LENGTH);
- string strBasic2 = TestLibrary.Generator.GetString(-55, false, c_MAX_STRING_LENGTH, c_MAX_STRING_LENGTH);
- strA = strBasic1;//"abc";
- srcIndex = 0;
- dst = strBasic2.ToCharArray();
- dstIndex = 0;
- count = strA.Length;
- strA.CopyTo(srcIndex, dst, dstIndex, count);
- string dst2 = new string(dst);
- if (dst2.ToString () != strA.ToString())
- {
- TestLibrary.TestFramework.LogError("003", "In CoptTo method this string length equels to the char array length and copy all string to char array ExpectResult dst's element is replaced by strA's symbols ,ActualResult is " + dst2 + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- string strA;
- int srcIndex;
- char[] dst;
- int dstIndex;
- int count;
- Random rand = new Random(-55);
-
- TestLibrary.TestFramework.BeginScenario("PosTest3:In CoptTo method this string length equels to the char array length but copy count is 0");
-
- try
- {
- string strBasic1 = TestLibrary.Generator.GetString(-55, false, c_MAX_STRING_LENGTH, c_MAX_STRING_LENGTH);
- string strBasic2 = TestLibrary.Generator.GetString(-55, false, c_MAX_STRING_LENGTH, c_MAX_STRING_LENGTH);
- strA = strBasic1;
- srcIndex = 0;
- dst = strBasic2.ToCharArray();
- dstIndex = rand.Next(0, dst.Length + 1);
- count = 0;
- strA.CopyTo(srcIndex, dst, dstIndex, count);
- string dst2 = new string(dst);
- if (dst2.ToString() != strBasic2.ToString())
- {
- TestLibrary.TestFramework.LogError("005", "In CoptTo method this string length equels to the char array length but copy count is 0 ExpectResult dst's elements do not change ,ActualResult is " + dst2 + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
- string strA;
- int srcIndex;
- char[] dst;
- int dstIndex;
- int count;
- Random rand = new Random(-55);
-
- TestLibrary.TestFramework.BeginScenario("PosTest4:In CoptTo method this string length equels to the char array length and copy part of string to char arry");
-
- try
- {
- string strBasic1 = TestLibrary.Generator.GetString(-55, false, c_MAX_STRING_LENGTH, c_MAX_STRING_LENGTH);
- string strBasic2 = TestLibrary.Generator.GetString(-55, false, c_MAX_STRING_LENGTH, c_MAX_STRING_LENGTH);
- strA = strBasic1;
- srcIndex = 0;
- dst = strBasic2.ToCharArray();
- count = rand.Next(1,strA.Length);
- dstIndex = rand.Next(0, dst.Length - count);
- strA.CopyTo(srcIndex, dst, dstIndex, count);
- string dst2 = new string(dst);
- string dst3 = strBasic2.Substring(0,dstIndex) + strA.Substring(0,count) + strBasic2.Substring(dstIndex + count,dst.Length -dstIndex-count);
- if (dst2.ToString() !=dst3.ToString())
- {
- TestLibrary.TestFramework.LogError("007", "In CoptTo method this string length equels to the char array length and copy part of string to char array ExpectResult is "+dst3+",ActualResult is " + dst2 + ")");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
- string strA;
- int srcIndex;
- char[] dst;
- int dstIndex;
- int count;
- Random rand = new Random(-55);
-
- TestLibrary.TestFramework.BeginScenario("PosTest5:In CoptTo method copy part of string to the char array");
-
- try
- {
- string strBasic1 = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- string strBasic2 = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- strA = strBasic1;
- srcIndex = rand.Next(0,strA.Length+1);
- dst = strBasic2.ToCharArray();
- count = rand.Next(0,strA.Length+1 - srcIndex);
- if (dst.Length >= count)
- {
- dstIndex = rand.Next(0, dst.Length - count);
- strA.CopyTo(srcIndex, dst, dstIndex, count);
- string dst2 = new string(dst);
- string dst3 = strBasic2.Substring(0, dstIndex) + strA.Substring(srcIndex, count) + strBasic2.Substring(dstIndex + count, dst.Length - dstIndex - count);
- if (dst2.ToString() != dst3.ToString())
- {
- TestLibrary.TestFramework.LogError("009", "In CoptTo method copy part of string to the char array ExpectResult is " + dst3 + ",ActualResult is " + dst2 + ")");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-
- #region NegativeTesting
- public bool NegTest1()
- {
- bool retVal = true;
- string strA;
- int srcIndex;
- char[] dst;
- int dstIndex;
- int count;
- Random rand = new Random(-55);
-
- TestLibrary.TestFramework.BeginScenario("NegTest1:In CopyTo method destination is null");
-
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false,c_MINI_STRING_LENGTH,c_MAX_STRING_LENGTH);
- srcIndex = TestLibrary.Generator.GetInt32(-55);
- dst = null;
- dstIndex = TestLibrary.Generator.GetInt32(-55);
- count = TestLibrary.Generator.GetInt32(-55);
- strA.CopyTo(srcIndex, dst, dstIndex, count);
- retVal = false;
- }
- catch(ArgumentNullException)
- {
- }
- catch(Exception e)
- {
- TestLibrary.TestFramework.LogError("N001","Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
- string strA;
- int srcIndex;
- char[] dst;
- int dstIndex;
- int count;
- Random rand = new Random(-55);
-
- TestLibrary.TestFramework.BeginScenario("NegTest2:In CopyTo method copy count is less than 0");
-
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- srcIndex = rand.Next(0, strA.Length + 1);
- string strB = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- dst = strB.ToCharArray();
- dstIndex = rand.Next(0, dst.Length + 1);
- count = rand.Next(1, strA.Length + 1 - srcIndex) * (-1);
- strA.CopyTo(srcIndex, dst, dstIndex, count);
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N002", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
- string strA;
- int srcIndex;
- char[] dst;
- int dstIndex;
- int count;
- Random rand = new Random(-55);
-
- TestLibrary.TestFramework.BeginScenario("NegTest3:In CopyTo method sourceIndex is less than 0");
-
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- srcIndex = rand.Next(1, strA.Length + 1) * (-1);
- string strB = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- dst = strB.ToCharArray();
- dstIndex = rand.Next(0, dst.Length + 1);
- count = rand.Next(0, strA.Length + 1 - srcIndex);
- strA.CopyTo(srcIndex, dst, dstIndex, count);
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N003", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool NegTest4()
- {
- bool retVal = true;
- string strA;
- int srcIndex;
- char[] dst;
- int dstIndex;
- int count;
- Random rand = new Random(-55);
-
- TestLibrary.TestFramework.BeginScenario("NegTest4:In CopyTo method copy count is greater source leng substract sourceIndex");
-
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- srcIndex = rand.Next(0, strA.Length + 1);
- string strB = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- dst = strB.ToCharArray();
- dstIndex = rand.Next(0, dst.Length + 1);
- count = rand.Next(strA.Length - srcIndex + 1, strA.Length);
- strA.CopyTo(srcIndex, dst, dstIndex, count);
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N004", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool NegTest5()
- {
- bool retVal = true;
- string strA;
- int srcIndex;
- char[] dst;
- int dstIndex;
- int count;
- Random rand = new Random(-55);
-
- TestLibrary.TestFramework.BeginScenario("NegTest5: In CopyTo method source Index is greater source length");
-
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- srcIndex = rand.Next(strA.Length + 1, strA.Length + 10);
- string strB = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- dst = strB.ToCharArray();
- dstIndex = rand.Next(0, dst.Length + 1);
- count = rand.Next(0,strA.Length +1);
- strA.CopyTo(srcIndex, dst, dstIndex, count);
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N005", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool NegTest6()
- {
- bool retVal = true;
- string strA;
- int srcIndex;
- char[] dst;
- int dstIndex;
- int count;
- Random rand = new Random(-55);
-
- TestLibrary.TestFramework.BeginScenario("NegTest6: In CopyTo method destination Index is less than 0");
-
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- srcIndex = rand.Next(0, strA.Length + 1);
- string strB = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- dst = strB.ToCharArray();
- dstIndex = rand.Next(1, dst.Length + 1) * (-1);
- count = rand.Next(0,strA.Length + 1 - srcIndex);
- strA.CopyTo(srcIndex, dst, dstIndex, count);
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N006", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool NegTest7()
- {
- bool retVal = true;
- string strA;
- int srcIndex;
- char[] dst;
- int dstIndex;
- int count;
- Random rand = new Random(-55);
-
- TestLibrary.TestFramework.BeginScenario("NegTest7: In CopyTo method destination Index is greater destination length substract count");
-
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- srcIndex = rand.Next(0, strA.Length + 1);
- string strB = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- dst = strB.ToCharArray();
- count = rand.Next(0, strA.Length + 1 - srcIndex);
- dstIndex = rand.Next(dst.Length - count + 1, dst.Length + 1);
- strA.CopyTo(srcIndex, dst, dstIndex, count);
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N007", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-
-}
-
+++ /dev/null
-// 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 StringCtor5
-{
- #region const define
- private const int c_MIN_STRING_LEN = 1;
- private const int c_MAX_STRING_LEN = 256;
- #endregion
-
- public static int Main(string[] args)
- {
- StringCtor5 sc = new StringCtor5();
- TestLibrary.TestFramework.BeginTestCase("StringCtor_charArray_Int32_Int32");
-
- if (sc.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;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
- retVal = NegTest4() && retVal;
- retVal = NegTest5() && retVal;
-
- return retVal;
- }
-
- /// <summary>
- ///
- /// </summary>
- /// <returns></returns>
- public bool PosTest1()
- {
- bool retVal = true;
- string str = TestLibrary.Generator.GetString(-55, true, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- TestLibrary.TestFramework.BeginScenario("Generate a string with valid index and length!");
- char[] charArray = new char[str.Length];
- str.CopyTo(0, charArray, 0, charArray.Length);
-
- try
- {
- //char[] charsArray = null;
- string strGen = new string(charArray, 0, charArray.Length);
- if (strGen != str)
- {
- TestLibrary.TestFramework.LogError("001", "The new generated string is not uqual to the original one!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected Error :" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- /// <summary>
- /// Generate a string with max range index and zero length
- /// </summary>
- /// <returns></returns>
- public bool PosTest2()
- {
- bool retVal = true;
- string str = TestLibrary.Generator.GetString(-55, true, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- TestLibrary.TestFramework.BeginScenario("Generate a string with max index and zero length...");
- char[] charArray = new char[str.Length];
- str.CopyTo(0, charArray, 0, charArray.Length);
-
- try
- {
- string strGen = new string(charArray, charArray.Length, 0);
- if (strGen != str.Substring(charArray.Length, 0))
- {
- TestLibrary.TestFramework.LogError("003", "sdfsadfsa");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected Exception occurs : " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- /// <summary>
- /// Generate string with max-1 index and valid length...
- /// </summary>
- /// <returns></returns>
- public bool PosTest3()
- {
- bool retVal = true;
- string str = TestLibrary.Generator.GetString(-55, true, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- TestLibrary.TestFramework.BeginScenario("Generate string with max-1 index and valid length...");
- char[] charArray = new char[str.Length];
- str.CopyTo(0, charArray, 0, charArray.Length);
-
- try
- {
- string strGen = new string(charArray, charArray.Length - 1, 1);
- if (strGen != str.Substring(charArray.Length - 1, 1))
- {
- TestLibrary.TestFramework.LogError("005", "The new generated sring is not the expected one!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected Expection occurs :" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- /// <summary>
- /// Negtest1: Generate a string with a null charArray
- /// </summary>
- /// <returns></returns>
- public bool NegTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("Negtest1: Generate a string with a null charArray");
-
- try
- {
- char[] charArray = null;
- string str = new string(charArray, 0, 0);
-
- TestLibrary.TestFramework.LogError("007", "The new string can be generated by using a charArray with null value!!");
- retVal = false;
-
- }
- catch (ArgumentNullException)
- {
- TestLibrary.TestFramework.LogInformation("ArgumentNullException is thrown when pass charArray with null value!");
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected Error :" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- /// <summary>
- /// NegTest2: Generate string with max+1 index...
- /// </summary>
- /// <returns></returns>
- public bool NegTest2()
- {
- bool retVal = true;
- string str = TestLibrary.Generator.GetString(-55, true, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- TestLibrary.TestFramework.BeginScenario("NegTest2: Generate string with max+1 index...");
- char[] charArray = new char[str.Length];
- str.CopyTo(0, charArray, 0, charArray.Length);
-
- try
- {
- string strGen = new string(charArray, charArray.Length + 1, 0);
-
- TestLibrary.TestFramework.LogError("009", "The string is generated with no exception occures!");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- TestLibrary.TestFramework.LogInformation("ArgumentOutOfRangeException is thrown when the index param is max+1!");
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("00X", "Unexpected Exception occurs :" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- /// <summary>
- /// NegTest3: Generate string with max+1 length...
- /// </summary>
- /// <returns></returns>
- public bool NegTest3()
- {
- bool retVal = true;
- string str = TestLibrary.Generator.GetString(-55, true, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- TestLibrary.TestFramework.BeginScenario("NegTest3: Generate string with max+1 length...");
- char[] charArray = new char[str.Length];
- str.CopyTo(0, charArray, 0, charArray.Length);
-
- try
- {
- string strGen = new string(charArray, 0, charArray.Length + 1);
-
- TestLibrary.TestFramework.LogError("010", "The string is generated with no exception occurs!");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- TestLibrary.TestFramework.LogInformation("ArgumentOutOfRangeException is thrown when the length param is max+1");
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("011", "Unexpected Exception occurs :" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- /// <summary>
- /// NegTest4: Generate string when index with minus value...
- /// </summary>
- /// <returns></returns>
- public bool NegTest4()
- {
- bool retVal = true;
- string str = TestLibrary.Generator.GetString(-55, true, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- TestLibrary.TestFramework.BeginScenario("NegTest4: Generate string when index with minus value...");
- char[] charArray = new char[str.Length];
- str.CopyTo(0, charArray, 0, charArray.Length);
-
- try
- {
- string strGen = new string(charArray, -1, charArray.Length);
-
- TestLibrary.TestFramework.LogError("012", "The string is generated with no exception occurs!");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- TestLibrary.TestFramework.LogInformation("ArgumentOutOfRangeException is thrown when the index param is minus");
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("013", "Unexpected Exception occurs :" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- /// <summary>
- /// NegTest4: Generate string when index with minus value...
- /// </summary>
- /// <returns></returns>
- public bool NegTest5()
- {
- bool retVal = true;
- string str = TestLibrary.Generator.GetString(-55, true, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- TestLibrary.TestFramework.BeginScenario("NegTest4: Generate string when index with minus value...");
- char[] charArray = new char[str.Length];
- str.CopyTo(0, charArray, 0, charArray.Length);
-
- try
- {
- string strGen = new string(charArray, 0, -1);
-
- TestLibrary.TestFramework.LogError("013", "The string is generated with no exception occurs!");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- TestLibrary.TestFramework.LogInformation("ArgumentOutOfRangeException is thrown when index is minus!");
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("014", "Unexpected Exception occurs :" + e);
- retVal = false;
- }
-
- return retVal;
- }
-}
-
+++ /dev/null
-// 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;
-
-[assembly:System.Security.SecurityCritical]
-namespace StringTest
-{
- public class StringCtorChar
- {
- #region const define
- const int c_MaxLenth = 256;
- const int c_MinLenth = 1;
- #endregion
- #region Main function
- public static int Main()
- {
- StringCtorChar sCtorChar = new StringCtorChar();
-
- TestLibrary.TestFramework.BeginTestCase("StringCtorChar");
-
- if (sCtorChar.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
- #endregion
- #region public method
- public bool RunTests()
- {
- bool retVal = true;
- TestLibrary.TestFramework.LogInformation("[Positive1]");
- retVal = this.PosTest1() && retVal;
- TestLibrary.TestFramework.LogInformation("[Positive2]");
- retVal = this.PosTest2() && retVal;
- return retVal;
- }
- #endregion
- #region Positive Test Cases
- // Returns true if the expected result is right
- // Returns false if the expected result is wrong
- unsafe public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: value is a null pointer, an Empty instance is initialized");
-
- try
- {
- char* pointer = null;
- string teststring = GetTestString(pointer);
- if (teststring != string.Empty)
- {
- TestLibrary.TestFramework.LogError("001a", "Comarison incorrect. TestString != String.Empty");
- return false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- // Returns true if the expected result is right
- // Returns false if the expected result is wrong
- unsafe public bool PosTest2()
- {
- bool retVal = true;
- string testString = TestLibrary.Generator.GetString(-55, true, c_MinLenth, c_MaxLenth);
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: value is constructed and correct");
-
- try
- {
-
- char[] chartest = new char[c_MaxLenth];
- testString.CopyTo(0, chartest, 0, testString.Length);
- string teststring1;
-
- fixed (char* pointer = &(chartest[0]))
- {
- teststring1 = GetTestString(pointer);
- }
-
- if (testString != teststring1)
- {
- if (teststring1.Length < testString.Length)
- {
- TestLibrary.TestFramework.LogError("002", "The current process does not have read access to all the addressed characters");
- retVal = false;
-
- }
- else
- {
- TestLibrary.TestFramework.LogError("002a", "Strings not the same");
- retVal = false;
- }
-
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #region constuctor function
- unsafe public static string GetTestString(char* lPointer)
- {
- return new string(lPointer);
- }
- #endregion
- }
-
-}
+++ /dev/null
-// 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;
-namespace StringTest
-{
- public class StringEmpty
- {
- #region main method
- public static int Main()
- {
- StringEmpty stringempty = new StringEmpty();
-
- TestLibrary.TestFramework.BeginTestCase("StringEmpty");
-
- if (stringempty.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
-
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
- #endregion
- #region public method
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
-
-
-
- return retVal;
- }
- #endregion
- #region Positive Test Cases
- // 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: Compare a string with System.Empty");
-
- try
- {
- string teststring = string.Empty;
- string teststring1 = "";
- if (!teststring.Equals(teststring1))
- {
- return false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
-
- }
-
-}
\ No newline at end of file
+++ /dev/null
-// 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.Text;
-
-/// <summary>
-/// System.String.Equals(Object)
-/// Determines whether this instance of String and a specified object,
-/// which must also be a String object, have the same value.
-/// This method performs an ordinal (case-sensitive and culture-insensitive) comparison.
-/// </summary>
-class StringEquals1
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- private const int c_MAX_SHORT_STR_LEN = 31;//short string (<32 chars)
- private const int c_MIN_LONG_STR_LEN = 257;//long string ( >256 chars)
- private const int c_MAX_LONG_STR_LEN = 65535;
-
- private const string c_POS_TEST_PREFIX = "PosTest";
- private const string c_NEG_TEST_PREFIX = "NegTest";
-
- private const string c_GREEK_SIGMA_STR_A = "\x03C2\x03C3\x03A3\x03C2\x03C3";
- private const string c_GREEK_SIGMA_STR_B = "\x03A3\x03A3\x03A3\x03C3\x03C2";
-
- private int totalTestCount;
- private int posTestCount;
- private int negTestCount;
- private int passedTestCount;
- private int failedTestCount;
-
- private enum TestType { PositiveTest = 1, NegativeTest = 2 };
- private enum TestResult { NotRun = 0, PassedTest = 1, FailedTest = 2 };
- internal struct Parameters
- {
- public string strSrc;
- public object obj;
-
- public string DataString
- {
- get
- {
- string str, strA, strB;
- int lenA, lenB;
-
- if (null == strSrc)
- {
- strA = "null";
- lenA = 0;
- }
- else
- {
- strA = strSrc;
- lenA = strSrc.Length;
- }
- if (null == obj)
- {
- strB = "null";
- lenB = 0;
- }
- else
- {
- strB = obj.ToString();
- lenB = strB.Length;
- }
-
- str = string.Format("\n[String value]\nSource: \"{0}\"\nObj: \"{1}\"", strA, strB);
- str += string.Format("\n[String length]\nSource: {0}\nObj: {1}", lenA, lenB);
-
- return str;
- }
- }
- }
-
- //Default constructor to ininitial all kind of test counts
- public StringEquals1()
- {
- totalTestCount = posTestCount = negTestCount = 0;
- passedTestCount = failedTestCount = 0;
- }
-
- #region Methods for all test scenarioes
-
- //Update (postive or negative) and total test count at the beginning of test scenario
- private void UpdateCounts(TestType testType)
- {
- if (TestType.PositiveTest == testType)
- {
- posTestCount++;
- totalTestCount++;
- return;
- }
-
- if (TestType.NegativeTest == testType)
- {
- negTestCount++;
- totalTestCount++;
- return;
- }
- }
-
- //Update failed or passed test counts at the end of test scenario
- private void UpdateCounts(TestResult testResult)
- {
- if (TestResult.PassedTest == testResult)
- {
- passedTestCount++;
- return;
- }
-
- if (TestResult.FailedTest == testResult)
- {
- failedTestCount++;
- return;
- }
- }
-
- //Generate standard error number string
- //i.e "9", "12" is not proper. Instead they should be "009", "012"
- private string GenerateErrorNum(int errorNum)
- {
- string temp = errorNum.ToString();
- string errorNumStr = new string('0', 3 - temp.Length) + temp;
- return errorNumStr;
- }
-
- //Generate testId string
- //i.e "P9", "N12" is not proper. Instead they should be "P009", "N012"
- private string GenerateTestId(TestType testType)
- {
- string temp, testId;
-
- if (testType == TestType.PositiveTest)
- {
- temp = this.posTestCount.ToString();
- testId = "P" + new string('0', 3 - temp.Length) + temp;
- }
- else
- {
- temp = this.negTestCount.ToString();
- testId = "N" + new string('0', 3 - temp.Length) + temp;
- }
-
- return testId;
- }
-
- #endregion
-
- public static int Main()
- {
- StringEquals1 sc = new StringEquals1();
-
- TestLibrary.TestFramework.BeginTestCase("for method: System.String.Equals(Object obj)");
- if (sc.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;
-
- //Postive test scenarios
- 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;
- retVal = PosTest17() && retVal;
- retVal = PosTest18() && retVal;
- retVal = PosTest19() && retVal;
- retVal = PosTest20() && retVal;
- retVal = PosTest21() && retVal;
-
- //Negative test scenarios
- TestLibrary.TestFramework.LogInformation("[Negative]");
- retVal = NegTest1() && retVal;
-
- return retVal;
- }
-
- #region Positive test scenarioes
-
- #region null, String.Empty and "\0" testing
-
- public bool PosTest1()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "The obj to compare with is null";
- bool expectedValue = false;
-
- paras.strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- paras.obj = null;
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- // PosTest2 to PosTest6 are new tests added in 8-4-2006 by v-yaduoj
- public bool PosTest2()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "String.Empty vs null";
- bool expectedValue = false;
-
- paras.strSrc = String.Empty;
- paras.obj = null;
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- public bool PosTest3()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "String.Empty vs \"\"";
- bool expectedValue = true;
-
- paras.strSrc = String.Empty;
- paras.obj = "";
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- public bool PosTest4()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "String.Empty vs \"\\0\"";
- bool expectedValue = false;
-
- paras.strSrc = String.Empty;
- paras.obj = "\0";
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- public bool PosTest5()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "String.Empty vs unempty string";
- bool expectedValue = false;
-
- paras.strSrc = String.Empty;
- paras.obj = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- public bool PosTest6()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "Embedded '\\0' string ";
- bool expectedValue = true;
-
- StringBuilder sb = new StringBuilder("This\0String\0Is\0Valid");
- paras.strSrc = sb.ToString();
- paras.obj = sb.ToString();
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
- // PosTest2 to PosTest6 are new tests added in 8-4-2006 by Noter(v-yaduoj)
-
- #endregion
-
- //The following region is new updates in 8-4-2006 by Noter(v-yaduoj)
- #region Tab and space testing
-
- public bool PosTest7()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "Tab vs 4 spaces";
- bool expectedValue = false;
-
- paras.strSrc = "\t";
- paras.obj = new string('\x0020', 4); // new update 8-8-2006 Noter(v-yaduoj)
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- public bool PosTest8()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "Tab vs 8 spaces";
- bool expectedValue = false;
-
- paras.strSrc = "\t";
- paras.obj = new string('\x0020', 8); // new update 8-8-2006 Noter(v-yaduoj)
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- #endregion
-
- #region Non-string type obj
-
- public bool PosTest9()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "The type of obj to compare with is Int32";
- bool expectedValue = false;
-
- paras.obj = TestLibrary.Generator.GetInt32(-55);
- paras.strSrc = paras.obj.ToString();
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- public bool PosTest10()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "The type of obj to compare with is Int16";
- bool expectedValue = false;
-
- paras.obj = TestLibrary.Generator.GetInt16(-55);
- paras.strSrc = paras.obj.ToString();
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- public bool PosTest11()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "The type of obj to compare with is Int64";
- bool expectedValue = false;
-
- paras.obj = TestLibrary.Generator.GetInt64(-55);
- paras.strSrc = paras.obj.ToString();
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- public bool PosTest12()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "The type of obj to compare with is Double";
- bool expectedValue = false;
-
- paras.obj = TestLibrary.Generator.GetDouble(-55);
- paras.strSrc = paras.obj.ToString();
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- public bool PosTest13()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "The type of obj to compare with is single";
- bool expectedValue = false;
-
- paras.obj = TestLibrary.Generator.GetSingle(-55);
- paras.strSrc = paras.obj.ToString();
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- public bool PosTest14()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "The type of obj to compare with is string[]";
- bool expectedValue = false;
-
- paras.obj = TestLibrary.Generator.GetStrings(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- paras.strSrc = paras.obj.ToString();
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- public bool PosTest15()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "The type of obj to compare with is byte";
- bool expectedValue = false;
-
- paras.obj = TestLibrary.Generator.GetByte(-55);
- paras.strSrc = paras.obj.ToString();
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- public bool PosTest16()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "The type of obj to compare with is Byte[]";
- bool expectedValue = false;
-
- paras.obj = new byte[] {1,2,3};
- paras.strSrc = paras.obj.ToString();
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- public bool PosTest17()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "The type of obj to compare with is char";
- bool expectedValue = false;
-
- paras.obj = TestLibrary.Generator.GetChar(-55);
- paras.strSrc = paras.obj.ToString();
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- public bool PosTest18()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "The type of obj to compare with is char[]";
- bool expectedValue = false;
-
- paras.obj = new char[] {'1', 'a', '\x098A'};
- paras.strSrc = paras.obj.ToString();
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- #endregion
-
- #region Case sensitive testing
-
- public bool PosTest19()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "Case sensitive testing";
- bool expectedValue = false;
-
- char ch = this.GetUpperChar();
- paras.obj = ch.ToString();
- paras.strSrc = char.ToLower(ch).ToString();
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- //Greek Sigma:
- //Two lower case Sigma: (0x03C2), (0x03C3)
- //One upper case Sigma: (0x03A3)
- //where 2 lower case characters have the same upper case character.
- public bool PosTest20()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "Asymmetric casing: Greek Sigma character, different case";
- bool expectedValue = false;
-
- paras.obj = c_GREEK_SIGMA_STR_A;
- paras.strSrc = c_GREEK_SIGMA_STR_B;
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- public bool PosTest21()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "Asymmetric casing: Greek Sigma character, both upper case";
- bool expectedValue = true;
-
- string str1 = c_GREEK_SIGMA_STR_A;
- string str2 = c_GREEK_SIGMA_STR_B;
- paras.obj = str1.ToUpper();
- paras.strSrc = str2.ToUpper();
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- #endregion
-
- #endregion //end for positive test scenarioes
-
- #region Helper methods for positive test scenarioes
-
- private bool ExecutePosTest(Parameters paras, bool expectedValue, string testDesc)
- {
- bool retVal = true;
- UpdateCounts(TestType.PositiveTest);
- string testId = GenerateTestId(TestType.PositiveTest);
- TestResult testResult = TestResult.NotRun;
-
- string testInfo = c_POS_TEST_PREFIX + this.posTestCount.ToString() + ": " + testDesc;
- bool actualValue;
-
- TestLibrary.TestFramework.BeginScenario(testInfo);
- try
- {
- actualValue = this.CallTestMethod(paras);
- if (expectedValue != actualValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += paras.DataString + "\nTest scenario Id: " + testId;
- // new updates 8-6-2006 Noter(v-yaduoj)
- TestLibrary.TestFramework.LogError(GenerateErrorNum((totalTestCount << 1) - 1) + " TestId -" + testId, errorDesc);
- testResult = TestResult.FailedTest;
- retVal = false;
- }
-
- testResult = TestResult.PassedTest;
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError(GenerateErrorNum(totalTestCount << 1) + " TestId -" + testId, "Unexpected exception: " + e + paras.DataString);
- testResult = TestResult.FailedTest;
- retVal = false;
- }
-
- UpdateCounts(testResult);
- return retVal;
- }
-
- #endregion
-
- #region Negative test scenarioes
-
- public bool NegTest1()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "The instance of source string is null";
- const string c_ERROR_DESC = "NullReferenceException is not thrown as expected";
-
- paras.strSrc = null;
- paras.obj = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
-
- return ExeNegTest_NRE(paras, c_TEST_DESC, c_ERROR_DESC);
- }
-
- #endregion //end for negative test scenarioes
-
- #region Helper methods for negative test scenarioes
-
- //Test NullReferenceException
- private bool ExeNegTest_NRE(Parameters paras, string testDesc, string errorDesc)
- {
- bool retVal = true;
- UpdateCounts(TestType.NegativeTest);
- string testId = GenerateTestId(TestType.NegativeTest);
- string testInfo = c_NEG_TEST_PREFIX + this.negTestCount.ToString() + ": " + testDesc;
- TestResult testResult = TestResult.NotRun;
-
- TestLibrary.TestFramework.BeginScenario(testInfo);
- try
- {
- this.CallTestMethod(paras);
- TestLibrary.TestFramework.LogError(GenerateErrorNum((this.totalTestCount << 1) - 1) + " TestId -" + testId, errorDesc + paras.DataString);
- testResult = TestResult.FailedTest;
- retVal = false;
- }
- catch (NullReferenceException)
- {
- testResult = TestResult.PassedTest;
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError(GenerateErrorNum(this.totalTestCount << 1) + " TestId -" + testId, "Unexpected exception: " + e + paras.DataString);
- testResult = TestResult.FailedTest;
- retVal = false;
- }
-
- UpdateCounts(testResult);
- return retVal;
- }
-
- #endregion
-
- //Involke the test method
- private bool CallTestMethod(Parameters paras)
- {
- return paras.strSrc.Equals(paras.obj);
- }
-
- #region helper methods for generating test data
-
- private bool GetBoolean()
- {
- Int32 i = this.GetInt32(1, 2);
- return (i == 1) ? true : false;
- }
-
- //Get a non-negative integer between minValue and maxValue
- private Int32 GetInt32(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;
- }
-
- private Int32 Min(Int32 i1, Int32 i2)
- {
- return (i1 <= i2) ? i1 : i2;
- }
-
- private Int32 Max(Int32 i1, Int32 i2)
- {
- return (i1 >= i2) ? i1 : i2;
- }
-
- private char GetUpperChar()
- {
- Char c;
- // Grab an ASCII letter
- c = Convert.ToChar(TestLibrary.Generator.GetInt16(-55) % 26 + 'A');
- return c;
- }
-
- #endregion
-}
-
+++ /dev/null
-// 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.Text;
-
-/// <summary>
-/// System.String.Equals(String)
-/// Determines whether this instance of String and a specified object,
-/// which must also be a String object, have the same value.
-/// This method performs an ordinal (case-sensitive and culture-insensitive) comparison.
-/// </summary>
-class StringEquals2
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- private const int c_MAX_SHORT_STR_LEN = 31;//short string (<32 chars)
- private const int c_MIN_LONG_STR_LEN = 257;//long string ( >256 chars)
- private const int c_MAX_LONG_STR_LEN = 65535;
-
- private const string c_POS_TEST_PREFIX = "PosTest";
- private const string c_NEG_TEST_PREFIX = "NegTest";
-
- private const string c_GREEK_SIGMA_STR_A = "\x03C2\x03C3\x03A3\x03C2\x03C3";
- private const string c_GREEK_SIGMA_STR_B = "\x03A3\x03A3\x03A3\x03C3\x03C2";
-
- private int totalTestCount;
- private int posTestCount;
- private int negTestCount;
- private int passedTestCount;
- private int failedTestCount;
-
- private enum TestType { PositiveTest = 1, NegativeTest = 2 };
- private enum TestResult { NotRun = 0, PassedTest = 1, FailedTest = 2 };
- internal struct Parameters
- {
- public string strSrc;
- public string strDes;
-
- public string DataString
- {
- get
- {
- string str, strA, strB;
- int lenA, lenB;
-
- if (null == strSrc)
- {
- strA = "null";
- lenA = 0;
- }
- else
- {
- strA = strSrc;
- lenA = strSrc.Length;
- }
- if (null == strDes)
- {
- strB = "null";
- lenB = 0;
- }
- else
- {
- strB = strDes;
- lenB = strB.Length;
- }
-
- str = string.Format("\n[String value]\nSource: \"{0}\"\nDestination: \"{1}\"", strA, strB);
- str += string.Format("\n[String length]\nSource: {0}\nDestination: {1}", lenA, lenB);
-
- return str;
- }
- }
- }
-
- //Default constructor to ininitial all kind of test counts
- public StringEquals2()
- {
- totalTestCount = posTestCount = negTestCount = 0;
- passedTestCount = failedTestCount = 0;
- }
-
- #region Methods for all test scenarioes
-
- //Update (postive or negative) and total test count at the beginning of test scenario
- private void UpdateCounts(TestType testType)
- {
- if (TestType.PositiveTest == testType)
- {
- posTestCount++;
- totalTestCount++;
- return;
- }
-
- if (TestType.NegativeTest == testType)
- {
- negTestCount++;
- totalTestCount++;
- return;
- }
- }
-
- //Update failed or passed test counts at the end of test scenario
- private void UpdateCounts(TestResult testResult)
- {
- if (TestResult.PassedTest == testResult)
- {
- passedTestCount++;
- return;
- }
-
- if (TestResult.FailedTest == testResult)
- {
- failedTestCount++;
- return;
- }
- }
-
- //Generate standard error number string
- //i.e "9", "12" is not proper. Instead they should be "009", "012"
- private string GenerateErrorNum(int errorNum)
- {
- string temp = errorNum.ToString();
- string errorNumStr = new string('0', 3 - temp.Length) + temp;
- return errorNumStr;
- }
-
- //Generate testId string
- //i.e "P9", "N12" is not proper. Instead they should be "P009", "N012"
- private string GenerateTestId(TestType testType)
- {
- string temp, testId;
-
- if (testType == TestType.PositiveTest)
- {
- temp = this.posTestCount.ToString();
- testId = "P" + new string('0', 3 - temp.Length) + temp;
- }
- else
- {
- temp = this.negTestCount.ToString();
- testId = "N" + new string('0', 3 - temp.Length) + temp;
- }
-
- return testId;
- }
-
- #endregion
-
- public static int Main()
- {
- StringEquals2 sc = new StringEquals2();
-
- TestLibrary.TestFramework.BeginTestCase("for method: System.String.Equals(string)");
- if (sc.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;
-
- //Postive test scenarios
- 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;
-
- //Negative test scenarios
- TestLibrary.TestFramework.LogInformation("[Negative]");
- retVal = NegTest1() && retVal;
-
- return retVal;
- }
-
- #region Positive test scenarioes
-
- #region null, String.Empty and "\0" testing
-
- public bool PosTest1()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "The string to compare with is null";
- bool expectedValue = false;
-
- paras.strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- paras.strDes = null;
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- public bool PosTest2()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "String.Empty vs null";
- bool expectedValue = false;
-
- paras.strSrc = String.Empty;
- paras.strDes = null;
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- public bool PosTest3()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "String.Empty vs \"\"";
- bool expectedValue = true;
-
- paras.strSrc = String.Empty;
- paras.strDes = "";
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- public bool PosTest4()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "String.Empty vs \"\\0\"";
- bool expectedValue = false;
-
- paras.strSrc = String.Empty;
- paras.strDes = "\0";
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- public bool PosTest5()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "String.Empty vs unempty string";
- bool expectedValue = false;
-
- paras.strSrc = String.Empty;
- paras.strDes = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- public bool PosTest6()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "Embedded '\\0' string ";
- bool expectedValue = true;
-
- StringBuilder sb = new StringBuilder("This\0String\0Is\0Valid");
- paras.strSrc = sb.ToString();
- paras.strDes = sb.ToString();
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- #endregion
-
- #region Tab and space testing
-
- public bool PosTest7()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "Tab vs 4 spaces";
- bool expectedValue = false;
-
- paras.strSrc = "\t";
- paras.strDes = new string('\x0020', 4); // new update 8-8-2006 Noter(v-yaduoj)
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- public bool PosTest8()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "Tab vs 8 spaces";
- bool expectedValue = false;
-
- paras.strSrc = "\t";
- paras.strDes = new string('\x0020', 8); // new update 8-8-2006 Noter(v-yaduoj)
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- #endregion
-
- #region Case sensitive testing
-
- public bool PosTest9()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "Case sensitive testing";
- bool expectedValue = false;
-
- char ch = this.GetUpperChar();
- paras.strDes = ch.ToString();
- paras.strSrc = char.ToLower(ch).ToString();
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- //Greek Sigma:
- //Two lower case Sigma: (0x03C2), (0x03C3)
- //One upper case Sigma: (0x03A3)
- //where 2 lower case characters have the same upper case character.
- public bool PosTest10()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "Asymmetric casing: Greek Sigma character, different case";
- bool expectedValue = false;
-
- paras.strDes = c_GREEK_SIGMA_STR_A;
- paras.strSrc = c_GREEK_SIGMA_STR_B;
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- public bool PosTest11()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "Asymmetric casing: Greek Sigma character, both upper case";
- bool expectedValue = true;
-
- string str1 = c_GREEK_SIGMA_STR_A;
- string str2 = c_GREEK_SIGMA_STR_B;
- paras.strDes = str1.ToUpper();
- paras.strSrc = str2.ToUpper();
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- #endregion
-
- #endregion //end for positive test scenarioes
-
- #region Helper methods for positive test scenarioes
-
- private bool ExecutePosTest(Parameters paras, bool expectedValue, string testDesc)
- {
- bool retVal = true;
- UpdateCounts(TestType.PositiveTest);
- string testId = GenerateTestId(TestType.PositiveTest);
- TestResult testResult = TestResult.NotRun;
-
- string testInfo = c_POS_TEST_PREFIX + this.posTestCount.ToString() + ": " + testDesc;
- bool actualValue;
-
- TestLibrary.TestFramework.BeginScenario(testInfo);
- try
- {
- actualValue = this.CallTestMethod(paras);
- if (expectedValue != actualValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += paras.DataString + "\nTest scenario Id: " + testId;
- // new update: 8-6-2006 Noter(v-yaduoj)
- TestLibrary.TestFramework.LogError(GenerateErrorNum((totalTestCount << 1) - 1) + " TestId -" + testId, errorDesc);
- testResult = TestResult.FailedTest;
- retVal = false;
- }
-
- testResult = TestResult.PassedTest;
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError(GenerateErrorNum(totalTestCount << 1) + " TestId -" + testId, "Unexpected exception: " + e + paras.DataString);
- testResult = TestResult.FailedTest;
- retVal = false;
- }
-
- UpdateCounts(testResult);
- return retVal;
- }
-
- #endregion
-
- #region Negative test scenarioes
-
- public bool NegTest1()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "The instance of source string is null";
- const string c_ERROR_DESC = "NullReferenceException is not thrown as expected";
-
- paras.strSrc = null;
- paras.strDes = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
-
- return ExeNegTest_NRE(paras, c_TEST_DESC, c_ERROR_DESC);
- }
-
- #endregion //end for negative test scenarioes
-
- #region Helper methods for negative test scenarioes
-
- //Test NullReferenceException
- private bool ExeNegTest_NRE(Parameters paras, string testDesc, string errorDesc)
- {
- bool retVal = true;
- UpdateCounts(TestType.NegativeTest);
- string testId = GenerateTestId(TestType.NegativeTest);
- string testInfo = c_NEG_TEST_PREFIX + this.negTestCount.ToString() + ": " + testDesc;
- TestResult testResult = TestResult.NotRun;
-
- TestLibrary.TestFramework.BeginScenario(testInfo);
- try
- {
- this.CallTestMethod(paras);
- TestLibrary.TestFramework.LogError(GenerateErrorNum((this.totalTestCount << 1) - 1) + " TestId -" + testId, errorDesc + paras.DataString);
- testResult = TestResult.FailedTest;
- retVal = false;
- }
- catch (NullReferenceException)
- {
- testResult = TestResult.PassedTest;
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError(GenerateErrorNum(this.totalTestCount << 1) + " TestId -" + testId, "Unexpected exception: " + e + paras.DataString);
- testResult = TestResult.FailedTest;
- retVal = false;
- }
-
- UpdateCounts(testResult);
- return retVal;
- }
-
- #endregion
-
- //Involke the test method
- private bool CallTestMethod(Parameters paras)
- {
- return paras.strSrc.Equals(paras.strDes);
- }
-
- #region helper methods for generating test data
-
- private bool GetBoolean()
- {
- Int32 i = this.GetInt32(1, 2);
- return (i == 1) ? true : false;
- }
-
- //Get a non-negative integer between minValue and maxValue
- private Int32 GetInt32(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;
- }
-
- private Int32 Min(Int32 i1, Int32 i2)
- {
- return (i1 <= i2) ? i1 : i2;
- }
-
- private Int32 Max(Int32 i1, Int32 i2)
- {
- return (i1 >= i2) ? i1 : i2;
- }
-
- private char GetUpperChar()
- {
- Char c;
- // Grab an ASCII letter
- c = Convert.ToChar(TestLibrary.Generator.GetInt16(-55) % 26 + 'A');
- return c;
- }
-
- #endregion
-}
-
+++ /dev/null
-// 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.Text;
-using System.Globalization;
-
-/// <summary>
-/// System.String.Equals(String, String)
-/// Determines whether two specified String objects have the same value.
-/// This method performs an ordinal (case-sensitive and culture-insensitive) comparison.
-/// </summary>
-class StringEquals3
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- private const int c_MAX_SHORT_STR_LEN = 31;//short string (<32 chars)
- private const int c_MIN_LONG_STR_LEN = 257;//long string ( >256 chars)
- private const int c_MAX_LONG_STR_LEN = 65535;
-
- private const string c_POS_TEST_PREFIX = "PosTest";
- private const string c_NEG_TEST_PREFIX = "NegTest";
-
- private const string c_GREEK_SIGMA_STR_A = "\x03C2\x03C3\x03A3\x03C2\x03C3";
- private const string c_GREEK_SIGMA_STR_B = "\x03A3\x03A3\x03A3\x03C3\x03C2";
-
- private int totalTestCount;
- private int posTestCount;
- private int negTestCount;
- private int passedTestCount;
- private int failedTestCount;
-
- private enum TestType { PositiveTest = 1, NegativeTest = 2 };
- private enum TestResult { NotRun = 0, PassedTest = 1, FailedTest = 2 };
- internal struct Parameters
- {
- public string strSrc;
- public string strDes;
-
- public string DataString
- {
- get
- {
- string str, strA, strB;
- int lenA, lenB;
-
- if (null == strSrc)
- {
- strA = "null";
- lenA = 0;
- }
- else
- {
- strA = strSrc;
- lenA = strSrc.Length;
- }
- if (null == strDes)
- {
- strB = "null";
- lenB = 0;
- }
- else
- {
- strB = strDes;
- lenB = strB.Length;
- }
-
- str = string.Format("\n[String value]\nSource: \"{0}\"\nDestination: \"{1}\"", strA, strB);
- str += string.Format("\n[String length]\nSource: {0}\nDestination: {1}", lenA, lenB);
-
- return str;
- }
- }
- }
-
- //Default constructor to ininitial all kind of test counts
- public StringEquals3()
- {
- totalTestCount = posTestCount = negTestCount = 0;
- passedTestCount = failedTestCount = 0;
- }
-
- #region Methods for all test scenarioes
-
- //Update (postive or negative) and total test count at the beginning of test scenario
- private void UpdateCounts(TestType testType)
- {
- if (TestType.PositiveTest == testType)
- {
- posTestCount++;
- totalTestCount++;
- return;
- }
-
- if (TestType.NegativeTest == testType)
- {
- negTestCount++;
- totalTestCount++;
- return;
- }
- }
-
- //Update failed or passed test counts at the end of test scenario
- private void UpdateCounts(TestResult testResult)
- {
- if (TestResult.PassedTest == testResult)
- {
- passedTestCount++;
- return;
- }
-
- if (TestResult.FailedTest == testResult)
- {
- failedTestCount++;
- return;
- }
- }
-
- //Generate standard error number string
- //i.e "9", "12" is not proper. Instead they should be "009", "012"
- private string GenerateErrorNum(int errorNum)
- {
- string temp = errorNum.ToString();
- string errorNumStr = new string('0', 3 - temp.Length) + temp;
- return errorNumStr;
- }
-
- //Generate testId string
- //i.e "P9", "N12" is not proper. Instead they should be "P009", "N012"
- private string GenerateTestId(TestType testType)
- {
- string temp, testId;
-
- if (testType == TestType.PositiveTest)
- {
- temp = this.posTestCount.ToString();
- testId = "P" + new string('0', 3 - temp.Length) + temp;
- }
- else
- {
- temp = this.negTestCount.ToString();
- testId = "N" + new string('0', 3 - temp.Length) + temp;
- }
-
- return testId;
- }
-
- #endregion
-
- public static int Main()
- {
- StringEquals3 sc = new StringEquals3();
-
- TestLibrary.TestFramework.BeginTestCase("for method: System.String.Equals(String, String)");
- if (sc.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;
-
- //Postive test scenarios
- 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;
-
- //Negative test scenarios
- //TestLibrary.TestFramework.LogInformation("[Negative]");
-
- return retVal;
- }
-
- #region Positive test scenarioes
-
- #region null, String.Empty and "\0" testing
-
- public bool PosTest1()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "The string to compare with is null";
- bool expectedValue = false;
-
- paras.strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- paras.strDes = null;
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- public bool PosTest2()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "String.Empty vs null";
- bool expectedValue = false;
-
- paras.strSrc = String.Empty;
- paras.strDes = null;
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- public bool PosTest3()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "String.Empty vs \"\"";
- bool expectedValue = true;
-
- paras.strSrc = String.Empty;
- paras.strDes = "";
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- public bool PosTest4()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "String.Empty vs \"\\0\"";
- bool expectedValue = false;
-
- paras.strSrc = String.Empty;
- paras.strDes = "\0";
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- public bool PosTest5()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "String.Empty vs unempty string";
- bool expectedValue = false;
-
- paras.strSrc = String.Empty;
- paras.strDes = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- public bool PosTest6()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "Embedded '\\0' string ";
- bool expectedValue = true;
-
- StringBuilder sb = new StringBuilder("This\0String\0Is\0Valid");
- paras.strSrc = sb.ToString();
- paras.strDes = sb.ToString();
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- #endregion
-
- #region Tab and space testing
-
- public bool PosTest7()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "Tab vs 4 spaces";
- bool expectedValue = false;
-
- paras.strSrc = "\t";
- paras.strDes = new string('\x0020', 4); // new update 8-8-2006 Noter(v-yaduoj)
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- public bool PosTest8()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "Tab vs 8 spaces";
- bool expectedValue = false;
-
- paras.strSrc = "\t";
- paras.strDes = new string('\x0020', 8); // new update 8-8-2006 Noter(v-yaduoj)
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- #endregion
-
- #region Case sensitive testing
-
- public bool PosTest9()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "Case sensitive testing";
- bool expectedValue = false;
-
- char ch = this.GetUpperChar();
- paras.strDes = ch.ToString();
- paras.strSrc = char.ToLower(ch).ToString();
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- //Greek Sigma:
- //Two lower case Sigma: (0x03C2), (0x03C3)
- //One upper case Sigma: (0x03A3)
- //where 2 lower case characters have the same upper case character.
- public bool PosTest10()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "Asymmetric casing: Greek Sigma character, different case";
- bool expectedValue = false;
-
- paras.strDes = c_GREEK_SIGMA_STR_A;
- paras.strSrc = c_GREEK_SIGMA_STR_B;
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- public bool PosTest11()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "Asymmetric casing: Greek Sigma character, both upper case";
- bool expectedValue = true;
-
- string str1 = c_GREEK_SIGMA_STR_A;
- string str2 = c_GREEK_SIGMA_STR_B;
- paras.strDes = str1.ToUpper();
- paras.strSrc = str2.ToUpper();
-
- return ExecutePosTest(paras, expectedValue, c_TEST_DESC);
- }
-
- #endregion
-
- #endregion //end for positive test scenarioes
-
- #region Helper methods for positive test scenarioes
-
- private bool ExecutePosTest(Parameters paras, bool expectedValue, string testDesc)
- {
- bool retVal = true;
- UpdateCounts(TestType.PositiveTest);
- string testId = GenerateTestId(TestType.PositiveTest);
- TestResult testResult = TestResult.NotRun;
-
- string testInfo = c_POS_TEST_PREFIX + this.posTestCount.ToString() + ": " + testDesc;
- bool actualValue;
-
- TestLibrary.TestFramework.BeginScenario(testInfo);
- try
- {
- actualValue = this.CallTestMethod(paras);
- if (expectedValue != actualValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += paras.DataString + "\nTest scenario Id: " + testId;
- // new update: 8-6-2006 Noter(v-yaduoj)
- TestLibrary.TestFramework.LogError(GenerateErrorNum((totalTestCount << 1) - 1) + " TestId -" + testId, errorDesc);
- testResult = TestResult.FailedTest;
- retVal = false;
- }
-
- testResult = TestResult.PassedTest;
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError(GenerateErrorNum(totalTestCount << 1) + " TestId -" + testId, "Unexpected exception: " + e + paras.DataString);
- testResult = TestResult.FailedTest;
- retVal = false;
- }
-
- UpdateCounts(testResult);
- return retVal;
- }
-
- #endregion
-
- //Involke the test method
- private bool CallTestMethod(Parameters paras)
- {
- return string.Equals(paras.strSrc, paras.strDes);
- }
-
- #region helper methods for generating test data
-
- private bool GetBoolean()
- {
- Int32 i = this.GetInt32(1, 2);
- return (i == 1) ? true : false;
- }
-
- //Get a non-negative integer between minValue and maxValue
- private Int32 GetInt32(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;
- }
-
- private Int32 Min(Int32 i1, Int32 i2)
- {
- return (i1 <= i2) ? i1 : i2;
- }
-
- private Int32 Max(Int32 i1, Int32 i2)
- {
- return (i1 >= i2) ? i1 : i2;
- }
-
- private char GetUpperChar()
- {
- Char c;
- // Grab an ASCII letter
- c = Convert.ToChar(TestLibrary.Generator.GetInt16(-55) % 26 + 'A');
- return c;
- }
-
- #endregion
-}
-
+++ /dev/null
-// 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.Text;
-using System.Globalization;
-using TestLibrary;
-
-public class StringEquals
-{
- public static string[] InterestingStrings = new string[] { null, "", "a", "1", "-", "A", "!", "abc", "aBc", "a\u0400Bc", "I", "i", "\u0130", "\u0131", "A", "\uFF21", "\uFE57"};
-
- 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: Compare interesting strings ordinally");
-
- try
- {
- foreach (string s in InterestingStrings)
- {
- foreach (string r in InterestingStrings)
- {
- retVal &= TestStrings(s, r);
- }
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Compare many characters");
-
- try
- {
- for (int i = 0; i < 40; i++) // Ok, 40 isn't that many... but this takes way too long
- {
- char c = Generator.GetChar(-55);
- if (string.Equals(new string(new char[] { c }), new string(new char[] { c }), StringComparison.Ordinal) != true)
- {
- TestLibrary.TestFramework.LogError("002.1", "Character " + i.ToString() + " is not equal to itself ordinally!");
- retVal = false;
- }
-
- for (int j = 0; j < (int)c; j++)
- {
- bool compareResult = string.Equals(new string(new char[] { c }), new string(new char[] { (char)j }), StringComparison.Ordinal);
- if (compareResult != false)
- {
- TestLibrary.TestFramework.LogError("002.2", "Character " + ((int)c).ToString() + " is equal to " + j.ToString() + ", Compare result: " + compareResult.ToString());
- retVal = false;
- }
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.4", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Compare many strings");
-
- try
- {
- for (int i = 0; i < 1000; i++)
- {
- string str1 = Generator.GetString(-55, false, 5, 20);
- string str2 = Generator.GetString(-55, false, 5, 20);
- if (string.Equals(str1, str1, StringComparison.Ordinal) != true)
- {
- TestLibrary.TestFramework.LogError("003.1", "Comparison not as expected! Actual result: " + string.Equals(str1, str1, StringComparison.Ordinal).ToString() + ", Expected result: 0");
- TestLibrary.TestFramework.LogInformation("String 1: <" + str1 + "> : " + BytesFromString(str1) + "\nString 2: <" + str1 + "> : " + BytesFromString(str1));
- retVal = false;
- }
- if (string.Equals(str2, str2, StringComparison.Ordinal) != true)
- {
- TestLibrary.TestFramework.LogError("003.2", "Comparison not as expected! Actual result: " + string.Equals(str2, str2, StringComparison.Ordinal).ToString() + ", Expected result: 0");
- TestLibrary.TestFramework.LogInformation("String 1: <" + str2 + "> : " + BytesFromString(str2) + "\nString 2: <" + str2 + "> : " + BytesFromString(str2));
- retVal = false;
- }
- TestStrings(str1, str2);
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.4", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: Specific regression cases");
-
- try
- {
- CultureInfo oldCi = TestLibrary.Utilities.CurrentCulture;
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("hu-HU");
- retVal &= TestStrings("dzsdzs", "ddzs");
- TestLibrary.Utilities.CurrentCulture = oldCi;
-
- retVal &= TestStrings("\u00C0nimal", "A\u0300nimal");
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004.2", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public static int Main()
- {
- StringEquals test = new StringEquals();
-
- TestLibrary.TestFramework.BeginTestCase("StringEquals");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
- private bool TestStrings(string str1, string str2)
- {
- bool retVal = true;
-
- bool expectValue = PredictValue(str1, str2);
- bool actualValue = string.Equals(str1, str2, StringComparison.Ordinal);
-
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.1", "Comparison not as expected! Actual result: " + actualValue + ", Expected result: " + expectValue);
- TestLibrary.TestFramework.LogInformation("String 1: <" + str1 + "> : " + BytesFromString(str1) + "\nString 2: <" + str2 + "> : " + BytesFromString(str2));
- retVal = false;
- }
-
- return retVal;
- }
-
- bool PredictValue(string str1, string str2)
- {
- if (str1 == null)
- {
- if (str2 == null) return true;
- else return false;
- }
- if (str2 == null) return false;
-
- for (int i = 0; i < str1.Length; i++)
- {
- if (i >= str2.Length) return false;
- if ((int)str1[i] > (int)str2[i]) return false;
- if ((int)str1[i] < (int)str2[i]) return false;
- }
-
- if (str2.Length > str1.Length) return false;
-
- return true;
- }
-
- private static string BytesFromString(string str)
- {
- if (str == null) return string.Empty;
- StringBuilder output = new StringBuilder();
- for (int i = 0; i < str.Length; i++)
- {
- output.Append(TestLibrary.Utilities.ByteArrayToString(BitConverter.GetBytes(str[i])));
- if (i != (str.Length - 1)) output.Append(", ");
- }
- return output.ToString();
- }
-}
+++ /dev/null
-// 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.Text;
-
-/// <summary>
-/// String.Format(String, Object)
-/// Replaces the format item in a specified String with the text equivalent of the value
-/// of a specified Object instance.
-/// </summary>
-class StringFormat1
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- public static int Main()
- {
- StringFormat1 sf = new StringFormat1();
-
- TestLibrary.TestFramework.BeginTestCase("for method: String.Format(String, Object)");
- if (sf.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("[Negative]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
- retVal = NegTest4() && retVal;
-
- return retVal;
- }
-
- #region Positive test scenarios
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P001";
- const string c_TEST_DESC = "PosTest1: Default format string for Int32";
-
- bool expectedValue = true;
- bool actualValue = false;
- string errorDesc;
-
- string format;
- Object arg0;
-
- format = "The Int32 {0}";
- int i = TestLibrary.Generator.GetInt32(-55);
- arg0 = i; //boxing
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string str = string.Format(format, arg0);
- str = str.Substring(format.IndexOf('{'));
- actualValue = (int.Parse(str) == i);
- if (actualValue != expectedValue)
- {
- errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- //errorDesc += GetDataString(strA, indexA, strB, indexB, length, comparisonType);
- 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;
- }
-
- #region alignment testing
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P002";
- const string c_TEST_DESC = "PosTest2: the length of the formatted Int32 value is less than alignment";
-
- bool expectedValue = true;
- bool actualValue = false;
- string errorDesc;
-
- string format;
- Object arg0;
-
- int i = TestLibrary.Generator.GetInt32(-55);
- int alignment = i.ToString().Length + TestLibrary.Generator.GetInt32(-55) % c_MAX_STRING_LEN + 1;
- format = "The Int32 {0," + alignment.ToString() + "}";
- arg0 = i; //boxing
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string str = string.Format(format, arg0);
- str = str.Substring(format.IndexOf('{'));
- //Validate the formatted string against primitive integer
- actualValue = (int.Parse(str) == i);
- int lastIndex = str.LastIndexOf('\u0020');
- actualValue = (lastIndex >= 0) && actualValue;
- for (int j = 0; j <= lastIndex; j++)
- {
- actualValue = ('\u0020' == str[j]) && actualValue;
- }
- actualValue = (alignment == str.Length) && actualValue;
-
- if (actualValue != expectedValue)
- {
- errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- //errorDesc += GetDataString(strA, indexA, strB, indexB, length, comparisonType);
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P003";
- const string c_TEST_DESC = "PosTest3: alignment is positive, the length of the formatted Int32 value is greater than alignment";
-
- bool expectedValue = true;
- bool actualValue = false;
- string errorDesc;
-
- string format;
- Object arg0;
-
- int i = TestLibrary.Generator.GetInt32(-55) % (Int32.MaxValue - 10) + 10;
- int alignment = TestLibrary.Generator.GetInt32(-55) % (i.ToString().Length - 1) + 1;
- format = "The Int32 {0," + alignment.ToString() + "}";
- arg0 = i; //boxing
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string str = string.Format(format, arg0);
- str = str.Substring(format.IndexOf('{'));
- actualValue = (int.Parse(str) == i) && (str.Length == i.ToString().Length);
- if (actualValue != expectedValue)
- {
- errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- //errorDesc += GetDataString(strA, indexA, strB, indexB, length, comparisonType);
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P004";
- const string c_TEST_DESC = "PosTest4: alignment is zero";
-
- bool expectedValue = true;
- bool actualValue = false;
- string errorDesc;
-
- string format;
- Object arg0;
-
- int i = TestLibrary.Generator.GetInt32(-55);
- int alignment = 0;
- format = "The Int32 {0," + alignment.ToString() + "}";
- arg0 = i; //boxing
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string str = string.Format(format, arg0);
- str = str.Substring(format.IndexOf('{'));
- actualValue = (int.Parse(str) == i) && (str.Length == i.ToString().Length);
- if (actualValue != expectedValue)
- {
- errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- //errorDesc += GetDataString(strA, indexA, strB, indexB, length, comparisonType);
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P005";
- const string c_TEST_DESC = "PosTest5: alignment is negative, and its absolute value is greater than length of formatted object";
-
- bool expectedValue = true;
- bool actualValue = false;
- string errorDesc;
-
- string format;
- Object arg0;
-
- int i = TestLibrary.Generator.GetInt32(-55);
- int alignment = -1 * (i.ToString().Length + TestLibrary.Generator.GetInt32(-55) % c_MAX_STRING_LEN + 1);
- format = "The Int32 {0," + alignment.ToString() + "}";
- arg0 = i; //boxing
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string str = string.Format(format, arg0);
- str = str.Substring(format.IndexOf('{'));
-
- //
- int firstIndex = str.IndexOf('\u0020');
- actualValue = (int.Parse(str) == i);
- for (int j = firstIndex; j < str.Length; j++ )
- {
- actualValue = ('\u0020' == str[j]) && actualValue;
- }
- actualValue = (str.Length == (-1 * alignment)) && actualValue;
- if (actualValue != expectedValue)
- {
- errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- //errorDesc += GetDataString(strA, indexA, strB, indexB, length, comparisonType);
- TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("010" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest6()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P006";
- const string c_TEST_DESC = "PosTest6: alignment is negative, and its absolute value is less than or equal length of formatted object";
-
- bool expectedValue = true;
- bool actualValue = false;
- string errorDesc;
-
- string format;
- Object arg0;
-
- int i = TestLibrary.Generator.GetInt32(-55);
- int alignment = -1 * (TestLibrary.Generator.GetInt32(-55) % (i.ToString().Length + 1));
- format = "The Int32 {0," + alignment.ToString() + "}";
- arg0 = i; //boxing
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string str = string.Format(format, arg0);
- str = str.Substring(format.IndexOf('{'));
- actualValue = (int.Parse(str) == i);
- actualValue = (str.Length == i.ToString().Length) && actualValue;
- if (actualValue != expectedValue)
- {
- errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- //errorDesc += GetDataString(strA, indexA, strB, indexB, length, comparisonType);
- TestLibrary.TestFramework.LogError("011" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("012" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- public bool PosTest7()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P007";
- const string c_TEST_DESC = "PosTest7: Formatted object is null";
-
- bool expectedValue = true;
- bool actualValue = false;
- string errorDesc;
-
- string format;
- Object arg0;
-
- format = "The object is {0}";
- arg0 = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string str = string.Format(format, arg0);
- str = str.Substring(format.IndexOf('{'));
- actualValue = (0 == string.CompareOrdinal(str, string.Empty));
- if (actualValue != expectedValue)
- {
- errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- //errorDesc += GetDataString(strA, indexA, strB, indexB, length, comparisonType);
- TestLibrary.TestFramework.LogError("013" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("014" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest8()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P008";
- const string c_TEST_DESC = @"PosTest8: format string contains { literal";
-
- bool expectedValue = true;
- bool actualValue = false;
- string errorDesc;
-
- string format;
- Object arg0;
-
- int i = TestLibrary.Generator.GetInt32(-55);
- format = "{{0}}";
- arg0 = i; //boxing
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string str = string.Format(format, arg0);
-
- actualValue = (0 == string.CompareOrdinal(str, "{0}"));
- if (actualValue != expectedValue)
- {
- errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- //errorDesc += GetDataString(strA, indexA, strB, indexB, length, comparisonType);
- TestLibrary.TestFramework.LogError("015" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("016" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #region Negative test scenarios
-
- //ArgumentNullException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N001";
- const string c_TEST_DESC = "NegTest1: format is a null reference ";
- string errorDesc;
-
- string format;
- Object arg0;
-
- format = null;
- arg0 = TestLibrary.Generator.GetInt32(-55); //boxing
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string.Format(format, arg0);
- errorDesc = "ArgumentNullException is not thrown as expected";
- //errorDesc += GetDataString(strA, indexA, strB, indexB, length, comparisonType);
- TestLibrary.TestFramework.LogError("017" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentNullException)
- { }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("018" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- //FormatException
- public bool NegTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N002";
- const string c_TEST_DESC = "NegTest2: The format item in format is invalid ";
- string errorDesc;
-
- string format;
- Object arg0;
-
- char ch;
-
- //new update 8-18-2006 Noter(v-yaduoj)
- do //Get a non-number character
- {
- ch = TestLibrary.Generator.GetChar(-55);
- }while(char.IsDigit(ch));
-
- format = "The object {" + ch.ToString() + "}";
- arg0 = ch; //boxing
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string.Format(format, arg0);
- errorDesc = "FormatException is not thrown as expected";
- //errorDesc += GetDataString(strA, indexA, strB, indexB, length, comparisonType);
- TestLibrary.TestFramework.LogError("019" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (FormatException)
- { }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("020" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N003";
- const string c_TEST_DESC = "NegTest3: The index is greater than number of formatted objects ";
- string errorDesc;
-
- string format;
- Object arg0;
-
- int i = TestLibrary.Generator.GetInt32(-55) % c_MAX_STRING_LEN + 1;
- format = "The object {" + i.ToString() + "}";
- arg0 = i; //boxing
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string.Format(format, arg0);
- errorDesc = "FormatException is not thrown as expected";
- //errorDesc += GetDataString(strA, indexA, strB, indexB, length, comparisonType);
- TestLibrary.TestFramework.LogError("021" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (FormatException)
- { }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("022" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest4()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N004";
- const string c_TEST_DESC = "NegTest4: The index is negative ";
- string errorDesc;
-
- string format;
- Object arg0;
-
- int i = -1 * TestLibrary.Generator.GetInt32(-55) - 1;
- format = "The object {" + i.ToString() + "}";
- arg0 = i; //boxing
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string.Format(format, arg0);
- errorDesc = "FormatException is not thrown as expected";
- //errorDesc += GetDataString(strA, indexA, strB, indexB, length, comparisonType);
- TestLibrary.TestFramework.LogError("023" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (FormatException)
- { }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("024" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
-}
+++ /dev/null
-// 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.Text;
-
-/// <summary>
-/// String.Format(String, params Object[])
-/// Replaces the format item in a specified String with
-/// the text equivalent of the value of a corresponding Object instance in a specified array.
-/// </summary>
-class StringFormat2
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- public static int Main()
- {
- StringFormat2 sf = new StringFormat2();
-
- TestLibrary.TestFramework.BeginTestCase("for method: String.Format(String, params Object[])");
- if (sf.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("[Negative]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
- retVal = NegTest4() && retVal;
- retVal = NegTest5() && retVal;
-
- return retVal;
- }
-
- #region Positive test scenarios
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P001";
- const string c_TEST_DESC = "PosTest1: Default format string for Int32[]";
-
- bool expectedValue = true;
- bool actualValue = false;
- string errorDesc;
-
- string format;
- Object[] args;
-
- int[] iArray = new int[TestLibrary.Generator.GetInt32(-55) % c_MIN_STRING_LEN + 1];
- args = new Object[iArray.Length];
- //boxing
- for (int j = 0; j < iArray.Length; j++)
- {
- iArray[j] = TestLibrary.Generator.GetInt32(-55);
- args[j] = iArray[j];
- }
- int index = TestLibrary.Generator.GetInt32(-55) % iArray.Length;
- format = "The Int32 {" + index.ToString() + "}";
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string str = string.Format(format, args);
- str = str.Substring(format.IndexOf('{'));
- actualValue = (int.Parse(str) == iArray[index]);
- if (actualValue != expectedValue)
- {
- errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- //errorDesc += GetDataString(strA, indexA, strB, indexB, length, comparisonType);
- 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;
- }
-
- #region alignment testing
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P002";
- const string c_TEST_DESC = "PosTest2: the length of the formatted Int32 value is less than alignment";
-
- bool expectedValue = true;
- bool actualValue = false;
- string errorDesc;
-
- string format;
- Object[] args;
-
- int[] iArray = new int[TestLibrary.Generator.GetInt32(-55) % c_MIN_STRING_LEN + 1];
- args = new Object[iArray.Length];
- //boxing
- for (int j = 0; j < iArray.Length; j++)
- {
- iArray[j] = TestLibrary.Generator.GetInt32(-55);
- args[j] = iArray[j];
- }
- int index = TestLibrary.Generator.GetInt32(-55) % iArray.Length;
- int alignment = iArray[index].ToString().Length + TestLibrary.Generator.GetInt32(-55) % c_MAX_STRING_LEN + 1;
- format = "The Int32 {" + index.ToString() + "," + alignment.ToString() + "}";
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string str = string.Format(format, args);
- str = str.Substring(format.IndexOf('{'));
- //Validate the formatted string against primitive integer
- actualValue = (int.Parse(str) == iArray[index]);
- int lastIndex = str.LastIndexOf('\u0020');
- actualValue = (lastIndex >= 0) && actualValue;
- for (int j = 0; j <= lastIndex; j++)
- {
- actualValue = ('\u0020' == str[j]) && actualValue;
- }
- actualValue = (alignment == str.Length) && actualValue;
-
- if (actualValue != expectedValue)
- {
- errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- //errorDesc += GetDataString(strA, indexA, strB, indexB, length, comparisonType);
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P003";
- const string c_TEST_DESC = "PosTest3: alignment is positive, the length of the formatted Int32 value is greater than alignment";
-
- bool expectedValue = true;
- bool actualValue = false;
- string errorDesc;
-
- string format;
- Object[] args;
-
- int[] iArray = new int[TestLibrary.Generator.GetInt32(-55) % c_MIN_STRING_LEN + 1];
- args = new Object[iArray.Length];
- //boxing
- for (int j = 0; j < iArray.Length; j++)
- {
- iArray[j] = TestLibrary.Generator.GetInt32(-55) % (Int32.MaxValue - 10) + 10;
- args[j] = iArray[j];
- }
- int index = TestLibrary.Generator.GetInt32(-55) % iArray.Length;
- int alignment =TestLibrary.Generator.GetInt32(-55) % (iArray[index].ToString().Length - 1) + 1;
- format = "The Int32 {" + index.ToString() + "," + alignment.ToString() + "}";
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string str = string.Format(format, args);
- str = str.Substring(format.IndexOf('{'));
- actualValue = (int.Parse(str) == iArray[index]) && (str.Length == iArray[index].ToString().Length);
- if (actualValue != expectedValue)
- {
- errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- //errorDesc += GetDataString(strA, indexA, strB, indexB, length, comparisonType);
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P004";
- const string c_TEST_DESC = "PosTest4: alignment is zero";
-
- bool expectedValue = true;
- bool actualValue = false;
- string errorDesc;
-
- string format;
- Object[] args;
-
- int[] iArray = new int[TestLibrary.Generator.GetInt32(-55) % c_MIN_STRING_LEN + 1];
- args = new Object[iArray.Length];
- //boxing
- for (int j = 0; j < iArray.Length; j++)
- {
- iArray[j] = TestLibrary.Generator.GetInt32(-55) % (Int32.MaxValue - 10) + 10;
- args[j] = iArray[j];
- }
- int index = TestLibrary.Generator.GetInt32(-55) % iArray.Length;
- int alignment = 0;
- format = "The Int32 {" + index.ToString() + "," + alignment.ToString() + "}";
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string str = string.Format(format, args);
- str = str.Substring(format.IndexOf('{'));
- actualValue = (int.Parse(str) == iArray[index]) && (str.Length == iArray[index].ToString().Length);
- if (actualValue != expectedValue)
- {
- errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- //errorDesc += GetDataString(strA, indexA, strB, indexB, length, comparisonType);
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P005";
- const string c_TEST_DESC = "PosTest5: alignment is negative, and its absolute value is greater than length of formatted object";
-
- bool expectedValue = true;
- bool actualValue = false;
- string errorDesc;
-
- string format;
- Object[] args;
-
- int[] iArray = new int[TestLibrary.Generator.GetInt32(-55) % c_MIN_STRING_LEN + 1];
- args = new Object[iArray.Length];
- //boxing
- for (int j = 0; j < iArray.Length; j++)
- {
- iArray[j] = TestLibrary.Generator.GetInt32(-55) % (Int32.MaxValue - 10) + 10;
- args[j] = iArray[j];
- }
- int index = TestLibrary.Generator.GetInt32(-55) % iArray.Length;
- int alignment = -1 * (iArray[index].ToString().Length + TestLibrary.Generator.GetInt32(-55) % c_MAX_STRING_LEN + 1);
- format = "The Int32 {" + index.ToString() + "," + alignment.ToString() + "}";
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string str = string.Format(format, args);
- str = str.Substring(format.IndexOf('{'));
-
- //
- int firstIndex = str.IndexOf('\u0020');
- actualValue = (int.Parse(str) == iArray[index]);
- for (int j = firstIndex; j < str.Length; j++ )
- {
- actualValue = ('\u0020' == str[j]) && actualValue;
- }
- actualValue = (str.Length == (-1 * alignment)) && actualValue;
- if (actualValue != expectedValue)
- {
- errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- //errorDesc += GetDataString(strA, indexA, strB, indexB, length, comparisonType);
- TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("010" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest6()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P006";
- const string c_TEST_DESC = "PosTest6: alignment is negative, and its absolute value is less than or equal length of formatted object";
-
- bool expectedValue = true;
- bool actualValue = false;
- string errorDesc;
-
- string format;
- Object[] args;
-
- int[] iArray = new int[TestLibrary.Generator.GetInt32(-55) % c_MIN_STRING_LEN + 1];
- args = new Object[iArray.Length];
- //boxing
- for (int j = 0; j < iArray.Length; j++)
- {
- iArray[j] = TestLibrary.Generator.GetInt32(-55) % (Int32.MaxValue - 10) + 10;
- args[j] = iArray[j];
- }
- int index = TestLibrary.Generator.GetInt32(-55) % iArray.Length;
- int alignment = -1 * (TestLibrary.Generator.GetInt32(-55) % (iArray[index].ToString().Length + 1));
- format = "The Int32 {" + index.ToString() + "," + alignment.ToString() + "}";
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string str = string.Format(format, args);
- str = str.Substring(format.IndexOf('{'));
- actualValue = (int.Parse(str) == iArray[index]);
- actualValue = (str.Length == iArray[index].ToString().Length) && actualValue;
- if (actualValue != expectedValue)
- {
- errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- //errorDesc += GetDataString(strA, indexA, strB, indexB, length, comparisonType);
- TestLibrary.TestFramework.LogError("011" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("012" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- public bool PosTest7()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P007";
- const string c_TEST_DESC = "PosTest7: Formatted object is null";
-
- bool expectedValue = true;
- bool actualValue = false;
- string errorDesc;
-
- string format;
- Object[] args;
-
- format = "The object is {0}";
- args = new object[TestLibrary.Generator.GetInt32(-55) % c_MAX_STRING_LEN + 1];
- for (int i = 0; i < args.Length; i++)
- {
- args[i] = null;
- }
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string str = string.Format(format, args);
- str = str.Substring(format.IndexOf('{'));
- actualValue = (0 == string.CompareOrdinal(str, string.Empty));
- if (actualValue != expectedValue)
- {
- errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- //errorDesc += GetDataString(strA, indexA, strB, indexB, length, comparisonType);
- TestLibrary.TestFramework.LogError("013" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("014" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest8()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P008";
- const string c_TEST_DESC = @"PosTest8: format string contains { literal";
-
- bool expectedValue = true;
- bool actualValue = false;
- string errorDesc;
-
- string format;
- Object[] args;
-
- int[] iArray = new int[TestLibrary.Generator.GetInt32(-55) % c_MIN_STRING_LEN + 1];
- args = new object[iArray.Length];
- format = "{{0}}";
- //boxing
- for (int j = 0; j < iArray.Length; j++)
- {
- args[j] = iArray[j];
- }
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string str = string.Format(format, args);
-
- actualValue = (0 == string.CompareOrdinal(str, "{0}"));
- if (actualValue != expectedValue)
- {
- errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- //errorDesc += GetDataString(strA, indexA, strB, indexB, length, comparisonType);
- TestLibrary.TestFramework.LogError("015" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("016" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #region Negative test scenarios
-
- //ArgumentNullException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N001";
- const string c_TEST_DESC = "NegTest1: format is a null reference ";
- string errorDesc;
-
- string format;
- Object[] args;
-
- format = null;
- args = new object[TestLibrary.Generator.GetInt32(-55) % c_MIN_STRING_LEN]; //boxing
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string.Format(format, args);
- errorDesc = "ArgumentNullException is not thrown as expected";
- //errorDesc += GetDataString(strA, indexA, strB, indexB, length, comparisonType);
- TestLibrary.TestFramework.LogError("017" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentNullException)
- { }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("018" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- //FormatException
- public bool NegTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N002";
- const string c_TEST_DESC = "NegTest2: The format item in format is invalid ";
- string errorDesc;
-
- string format;
- Object[] args;
-
- char ch = TestLibrary.Generator.GetChar(-55);
- format = "The object {" + ch.ToString() + "}";
- args = new object[TestLibrary.Generator.GetInt32(-55) % c_MIN_STRING_LEN]; //boxing
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string.Format(format, args);
- errorDesc = "FormatException is not thrown as expected";
- //errorDesc += GetDataString(strA, indexA, strB, indexB, length, comparisonType);
- TestLibrary.TestFramework.LogError("019" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (FormatException)
- { }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("020" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N003";
- const string c_TEST_DESC = "NegTest3: The index is greater than number of formatted objects ";
- string errorDesc;
-
- string format;
- Object[] args;
-
- args = new object[TestLibrary.Generator.GetInt32(-55) % c_MIN_STRING_LEN]; //boxing
- int i = TestLibrary.Generator.GetInt32(-55) % c_MAX_STRING_LEN + 1 + args.Length;
- format = "The object {" + i.ToString() + "}";
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string.Format(format, args);
- errorDesc = "FormatException is not thrown as expected";
- //errorDesc += GetDataString(strA, indexA, strB, indexB, length, comparisonType);
- TestLibrary.TestFramework.LogError("021" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (FormatException)
- { }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("022" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest4()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N004";
- const string c_TEST_DESC = "NegTest4: The index is negative ";
- string errorDesc;
-
- string format;
- Object[] args;
-
- int i = -1 * TestLibrary.Generator.GetInt32(-55) - 1;
- format = "The object {" + i.ToString() + "}";
- args = new object[TestLibrary.Generator.GetInt32(-55) % c_MAX_STRING_LEN]; //boxing
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string.Format(format, args);
- errorDesc = "FormatException is not thrown as expected";
- //errorDesc += GetDataString(strA, indexA, strB, indexB, length, comparisonType);
- TestLibrary.TestFramework.LogError("023" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (FormatException)
- { }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("024" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- //ArgumentNullException
- public bool NegTest5()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N005";
- const string c_TEST_DESC = "NegTest5: The formatted object array is negative ";
- string errorDesc;
-
- string format;
- Object[] args;
-
- int i = -1 * TestLibrary.Generator.GetInt32(-55) - 1;
- format = "The object {" + i.ToString() + "}";
- args = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string.Format(format, args);
- errorDesc = "ArgumentNullException is not thrown as expected";
- //errorDesc += GetDataString(strA, indexA, strB, indexB, length, comparisonType);
- TestLibrary.TestFramework.LogError("023" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- catch (ArgumentNullException)
- { }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("024" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
-}
+++ /dev/null
-// 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>
-/// String.GetEnumerator()
-/// Retrieves an object that can iterate through the individual characters in this string.
-/// </summary>
-class StringGetEnumerator
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- public static int Main()
- {
- StringGetEnumerator iege = new StringGetEnumerator();
-
- TestLibrary.TestFramework.BeginTestCase("for method: String.GetEnumerator()");
- if (iege.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;
- }
-
- #region Positive test scenarioes
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest1: Random string";
- const string c_TEST_ID = "P001";
-
- string strSrc;
- IEnumerator<Char> iterator;
- bool condition = false;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- iterator = ((IEnumerable<Char>)strSrc).GetEnumerator();
-
- condition = true;
- int index = 0;
- while (iterator.MoveNext())
- {
- condition = object.Equals(iterator.Current, strSrc[index]) && condition;
- index++;
- }
- iterator.Reset();
-
- actualValue = condition && (null != iterator);
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc);
- 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 + GetDataString(strSrc));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest2: string.Empty ";
- const string c_TEST_ID = "P002";
-
- string strSrc;
- IEnumerator<Char> iterator;
- bool condition = false;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = string.Empty;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- iterator = ((IEnumerable<Char>)strSrc).GetEnumerator();
-
- condition = true;
- int index = 0;
- while (iterator.MoveNext())
- {
- condition = object.Equals(iterator.Current, strSrc[index]) && condition;
- index++;
- }
- iterator.Reset();
-
- actualValue = condition && (null != iterator);
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc);
- 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 + GetDataString(strSrc));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = @"PosTest3: string is \0 ";
- const string c_TEST_ID = "P003";
-
- string strSrc;
- IEnumerator<Char> iterator;
- bool condition = false;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = "\0";
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- iterator = ((IEnumerable<Char>)strSrc).GetEnumerator();
-
- condition = true;
- int index = 0;
- while (iterator.MoveNext())
- {
- condition = object.Equals(iterator.Current, strSrc[index]) && condition;
- index++;
- }
- iterator.Reset();
-
- actualValue = condition && (null != iterator);
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc);
- 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 + GetDataString(strSrc));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion // end for positive test scenarioes
-
- private string GetDataString(string strSrc)
- {
- string str1, str;
- int len1;
-
- if (null == strSrc)
- {
- str1 = "null";
- len1 = 0;
- }
- else
- {
- str1 = strSrc;
- len1 = strSrc.Length;
- }
-
- str = string.Format("\n[Source string value]\n \"{0}\"", str1);
- str += string.Format("\n[Length of source string]\n {0}", len1);
-
- return str;
- }
-
-}
+++ /dev/null
-// 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>
-/// String.GetHashCode()
-/// Returns the hash code for this string.
-/// </summary>
-class StringGetHashCode
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- private const int c_MAX_SHORT_STR_LEN = 31;//short string (<32 chars)
- private const int c_MIN_LONG_STR_LEN = 257;//long string ( >256 chars)
- private const int c_MAX_LONG_STR_LEN = 65535;
-
- private const string c_POS_TEST_PREFIX = "PosTest";
- private const string c_NEG_TEST_PREFIX = "NegTest";
-
- private const string c_GREEK_SIGMA_STR_A = "\x03C2\x03C3\x03A3\x03C2\x03C3";
- private const string c_GREEK_SIGMA_STR_B = "\x03A3\x03A3\x03A3\x03C3\x03C2";
-
- private int totalTestCount;
- private int posTestCount;
- private int negTestCount;
- private int passedTestCount;
- private int failedTestCount;
-
- private enum TestType { PositiveTest = 1, NegativeTest = 2 };
- private enum TestResult { NotRun = 0, PassedTest = 1, FailedTest = 2 };
- internal struct Parameters
- {
- public string strSrc;
-
- public string DataString
- {
- get
- {
- string str, strA;
- int lenA;
-
- if (null == strSrc)
- {
- strA = "null";
- lenA = 0;
- }
- else
- {
- strA = strSrc;
- lenA = strSrc.Length;
- }
-
- str = string.Format("\n[String value]\nSource: \"{0}\"\n[String length]\n {1}", strA, lenA);
-
- return str;
- }
- }
- }
-
- //Default constructor to ininitial all kind of test counts
- public StringGetHashCode()
- {
- totalTestCount = posTestCount = negTestCount = 0;
- passedTestCount = failedTestCount = 0;
- }
-
- #region Methods for all test scenarioes
-
- //Update (postive or negative) and total test count at the beginning of test scenario
- private void UpdateCounts(TestType testType)
- {
- if (TestType.PositiveTest == testType)
- {
- posTestCount++;
- totalTestCount++;
- return;
- }
-
- if (TestType.NegativeTest == testType)
- {
- negTestCount++;
- totalTestCount++;
- return;
- }
- }
-
- //Update failed or passed test counts at the end of test scenario
- private void UpdateCounts(TestResult testResult)
- {
- if (TestResult.PassedTest == testResult)
- {
- passedTestCount++;
- return;
- }
-
- if (TestResult.FailedTest == testResult)
- {
- failedTestCount++;
- return;
- }
- }
-
- //Generate standard error number string
- //i.e "9", "12" is not proper. Instead they should be "009", "012"
- private string GenerateErrorNum(int errorNum)
- {
- string temp = errorNum.ToString();
- string errorNumStr = new string('0', 3 - temp.Length) + temp;
- return errorNumStr;
- }
-
- //Generate testId string
- //i.e "P9", "N12" is not proper. Instead they should be "P009", "N012"
- private string GenerateTestId(TestType testType)
- {
- string temp, testId;
-
- if (testType == TestType.PositiveTest)
- {
- temp = this.posTestCount.ToString();
- testId = "P" + new string('0', 3 - temp.Length) + temp;
- }
- else
- {
- temp = this.negTestCount.ToString();
- testId = "N" + new string('0', 3 - temp.Length) + temp;
- }
-
- return testId;
- }
-
- #endregion
-
- public static int Main()
- {
- StringGetHashCode sge = new StringGetHashCode();
-
- TestLibrary.TestFramework.BeginTestCase("for method: System.String.GetHashCode()");
- if (sge.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;
- }
-
- #region Positive test scenarioes
-
- #region Normal tests
-
- public bool PosTest1()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "Random string";
-
- paras.strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
-
- return ExecutePosTest(paras, c_TEST_DESC);
- }
-
- #endregion
-
- #region String.Empty, "\0" and null
-
- public bool PosTest2()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "String.Empty";
-
- paras.strSrc = String.Empty;
-
- return ExecutePosTest(paras, c_TEST_DESC);
- }
-
- public bool PosTest3()
- {
- Parameters paras;
-
- const string c_TEST_DESC = "\"\0\"";
-
- paras.strSrc = "\0";
-
- return ExecutePosTest(paras, c_TEST_DESC);
- }
-
- #endregion
-
- #endregion // end for positive test scenarioes
-
- #region Helper methods for positive test scenarioes
-
- private bool ExecutePosTest(Parameters paras, string testDesc)
- {
- bool retVal = true;
- UpdateCounts(TestType.PositiveTest);
- string testId = GenerateTestId(TestType.PositiveTest);
- TestResult testResult = TestResult.NotRun;
-
- string testInfo = c_POS_TEST_PREFIX + this.posTestCount.ToString() + ": " + testDesc;
- object actualValue = null;
-
- TestLibrary.TestFramework.BeginScenario(testInfo);
- try
- {
- actualValue = this.CallTestMethod(paras);
- if (null == actualValue)
- {
- string errorDesc = "Enumerator is not retrieved as expected, actually it is null";
- errorDesc += paras.DataString + "\nTest scenario Id: " + testId;
- TestLibrary.TestFramework.LogError(GenerateErrorNum(totalTestCount << 1 - 1) + " TestId -" + testId, errorDesc);
- testResult = TestResult.FailedTest;
- retVal = false;
- }
-
- testResult = TestResult.PassedTest;
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError(GenerateErrorNum(totalTestCount << 1) + " TestId -" + testId, "Unexpected exception: " + e + paras.DataString);
- testResult = TestResult.FailedTest;
- retVal = false;
- }
-
- UpdateCounts(testResult);
- return retVal;
- }
-
- #endregion
-
- //Involke the test method
- private int CallTestMethod(Parameters paras)
- {
- return paras.strSrc.GetHashCode();
- }
-
- #region helper methods for generating test data
-
- private bool GetBoolean()
- {
- Int32 i = this.GetInt32(1, 2);
- return (i == 1) ? true : false;
- }
-
- //Get a non-negative integer between minValue and maxValue
- private Int32 GetInt32(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;
- }
-
- private Int32 Min(Int32 i1, Int32 i2)
- {
- return (i1 <= i2) ? i1 : i2;
- }
-
- private Int32 Max(Int32 i1, Int32 i2)
- {
- return (i1 >= i2) ? i1 : i2;
- }
-
- private char GetUpperChar()
- {
- Char c;
- // Grab an ASCII letter
- c = Convert.ToChar(TestLibrary.Generator.GetInt16(-55) % 26 + 'A');
- return c;
- }
-
- #endregion
-
-}
+++ /dev/null
-// 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>
-/// String.System.IConvertible.ToBoolean(IFormatProvider provider)
-/// This method supports the .NET Framework infrastructure and is not
-/// intended to be used directly from your code.
-/// Converts the value of the current String object to a Boolean value.
-/// </summary>
-class IConvertibleToBoolean
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- public static int Main()
- {
- IConvertibleToBoolean iege = new IConvertibleToBoolean();
-
- TestLibrary.TestFramework.BeginTestCase("for method: String.System.IConvertible.ToBoolean(IFormatProvider)");
- if (iege.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;
-
- return retVal;
- }
-
- #region Positive test scenarioes
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest1: False string";
- const string c_TEST_ID = "P001";
-
- string strSrc;
- IFormatProvider provider;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = "false";
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (false == ((IConvertible)strSrc).ToBoolean(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest2: True string";
- const string c_TEST_ID = "P002";
-
- string strSrc;
- IFormatProvider provider;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = "true";
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (true == ((IConvertible)strSrc).ToBoolean(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- //new update 8-14-2006 Noter(v-yaduoj)
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest3: Trailing and leading white space";
- const string c_TEST_ID = "P003";
-
- string strSrc;
- IFormatProvider provider;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = " \n\r\ttrue \n\r\t ";
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (true == ((IConvertible)strSrc).ToBoolean(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- //new update 8-14-2006 Noter(v-yaduoj)
- public bool PosTest4()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest4: Case insensitive";
- const string c_TEST_ID = "P004";
-
- string strSrc;
- IFormatProvider provider;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = " TRue ";
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (true == ((IConvertible)strSrc).ToBoolean(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion // end for positive test scenarioes
-
- #region Negative test scenarios
-
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest1: The value of String is not TrueString or FalseString.";
- const string c_TEST_ID = "N001";
-
- string strSrc;
- IFormatProvider provider;
-
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- ((IConvertible)strSrc).ToBoolean(provider);
- TestLibrary.TestFramework.LogError("005" + "TestId-" + c_TEST_ID, "FormatException is not thrown as expected" + GetDataString(strSrc, provider));
- retVal = false;
- }
- catch (FormatException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- private string GetDataString(string strSrc, IFormatProvider provider)
- {
- string str1, str2, str;
- int len1;
-
- if (null == strSrc)
- {
- str1 = "null";
- len1 = 0;
- }
- else
- {
- str1 = strSrc;
- len1 = strSrc.Length;
- }
-
- str2 = (null == provider) ? "null" : provider.ToString();
-
- str = string.Format("\n[Source string value]\n \"{0}\"", str1);
- str += string.Format("\n[Length of source string]\n {0}", len1);
- str += string.Format("\n[Format provider string]\n {0}", str2);
-
- return str;
- }
-
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// String.System.IConvertible.ToByte(IFormatProvider provider)
-/// This method supports the .NET Framework infrastructure and is
-/// not intended to be used directly from your code.
-/// Converts the value of the current String object to an 8-bit unsigned integer.
-/// </summary>
-class IConvertibleToByte
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- public static int Main()
- {
- IConvertibleToByte iege = new IConvertibleToByte();
-
- TestLibrary.TestFramework.BeginTestCase("for method: String.System.IConvertible.ToByte(IFormatProvider)");
- if (iege.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;
-
- return retVal;
- }
-
- #region Positive test scenarioes
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest1: Random numeric string";
- const string c_TEST_ID = "P001";
-
- string strSrc;
- IFormatProvider provider;
- byte b;
- bool expectedValue = true;
- bool actualValue = false;
-
- b = TestLibrary.Generator.GetByte(-55);
- strSrc = b.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (b == ((IConvertible)strSrc).ToByte(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest2: Positive sign";
- const string c_TEST_ID = "P002";
-
- string strSrc;
- IFormatProvider provider;
- NumberFormatInfo ni = new NumberFormatInfo();
- byte b;
- bool expectedValue = true;
- bool actualValue = false;
-
- b = TestLibrary.Generator.GetByte(-55);
- ni.PositiveSign = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- strSrc = ni.PositiveSign + b.ToString();
- provider = (IFormatProvider)ni;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (b == ((IConvertible)strSrc).ToByte(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest3: string is Byte.MaxValue";
- const string c_TEST_ID = "P003";
-
- string strSrc;
- IFormatProvider provider;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = byte.MaxValue.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (byte.MaxValue == ((IConvertible)strSrc).ToByte(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest4: string is Byte.MinValue";
- const string c_TEST_ID = "P004";
-
- string strSrc;
- IFormatProvider provider;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = byte.MinValue.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (byte.MinValue == ((IConvertible)strSrc).ToByte(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion // end for positive test scenarioes
-
- #region Negative test scenarios
-
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest1: The value of String object cannot be parsed";
- const string c_TEST_ID = "N001";
-
- string strSrc;
- IFormatProvider provider;
-
- strSrc = "p" + TestLibrary.Generator.GetString(-55, false, 9, c_MAX_STRING_LEN);
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- ((IConvertible)strSrc).ToByte(provider);
- TestLibrary.TestFramework.LogError("009" + "TestId-" + c_TEST_ID, "FormatException is not thrown as expected" + GetDataString(strSrc, provider));
- retVal = false;
- }
- catch (FormatException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest2: The value of String object is a number greater than MaxValue";
- const string c_TEST_ID = "N002";
-
- string strSrc;
- IFormatProvider provider;
- int i;
-
- i = byte.MaxValue + 1 + TestLibrary.Generator.GetByte(-55);
- strSrc = i.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- ((IConvertible)strSrc).ToByte(provider);
- TestLibrary.TestFramework.LogError("011" + "TestId-" + c_TEST_ID, "OverflowException is not thrown as expected" + GetDataString(strSrc, provider));
- retVal = false;
- }
- catch (OverflowException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest3: The value of String object is a number less than MinValue";
- const string c_TEST_ID = "N003";
-
- string strSrc;
- IFormatProvider provider;
- int i;
-
- // new update 8-14-2006 Noter(v-yaduoj)
- i = -1*TestLibrary.Generator.GetByte(-55) - 1;
- strSrc = i.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- ((IConvertible)strSrc).ToByte(provider);
- TestLibrary.TestFramework.LogError("013" + "TestId-" + c_TEST_ID, "OverflowException is not thrown as expected" + GetDataString(strSrc, provider));
- retVal = false;
- }
- catch (OverflowException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("014" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- private string GetDataString(string strSrc, IFormatProvider provider)
- {
- string str1, str2, str;
- int len1;
-
- if (null == strSrc)
- {
- str1 = "null";
- len1 = 0;
- }
- else
- {
- str1 = strSrc;
- len1 = strSrc.Length;
- }
-
- str2 = (null == provider) ? "null" : provider.ToString();
-
- str = string.Format("\n[Source string value]\n \"{0}\"", str1);
- str += string.Format("\n[Length of source string]\n {0}", len1);
- str += string.Format("\n[Format provider string]\n {0}", str2);
-
- return str;
- }
-
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// String.System.IConvertible.ToChar()
-/// This method supports the .NET Framework infrastructure and is not intended
-/// to be used directly from your code.
-/// Converts a non-empty string of length one to a Char object.
-/// </summary>
-class IConvertibleToChar
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- public static int Main()
- {
- IConvertibleToChar iege = new IConvertibleToChar();
-
- TestLibrary.TestFramework.BeginTestCase("for method: String.System.IConvertible.ToChar(IFormatProvider)");
- if (iege.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;
- retVal = NegTest2() && retVal;
-
- return retVal;
- }
-
- #region Positive test scenarioes
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest1: Random single char string";
- const string c_TEST_ID = "P001";
-
- string strSrc;
- IFormatProvider provider;
- char ch;
- bool expectedValue = true;
- bool actualValue = false;
-
- ch = TestLibrary.Generator.GetChar(-55);
- strSrc = ch.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (ch == ((IConvertible)strSrc).ToChar(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion // end for positive test scenarioes
-
- #region Negative test scenarios
-
- //FormatException
- public bool NegTest1() //bug
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest1: The length of String object is greater than 1.";
- const string c_TEST_ID = "N001";
-
- string strSrc;
- IFormatProvider provider;
-
- strSrc = TestLibrary.Generator.GetString(-55, false, 2, c_MAX_STRING_LEN);
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- ((IConvertible)strSrc).ToChar(provider);
- TestLibrary.TestFramework.LogError("009" + "TestId-" + c_TEST_ID, "FormatException is not thrown as expected" + GetDataString(strSrc, provider));
- retVal = false;
- }
- catch (FormatException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- //FormatException
- public bool NegTest2() //bug
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest2: The String object is string.Empty";
- const string c_TEST_ID = "N002";
-
- string strSrc;
- IFormatProvider provider;
-
- strSrc = string.Empty;
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- ((IConvertible)strSrc).ToChar(provider);
- TestLibrary.TestFramework.LogError("009" + "TestId-" + c_TEST_ID, "FormatException is not thrown as expected" + GetDataString(strSrc, provider));
- retVal = false;
- }
- catch (FormatException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- private string GetDataString(string strSrc, IFormatProvider provider)
- {
- string str1, str2, str;
- int len1;
-
- if (null == strSrc)
- {
- str1 = "null";
- len1 = 0;
- }
- else
- {
- str1 = strSrc;
- len1 = strSrc.Length;
- }
-
- str2 = (null == provider) ? "null" : provider.ToString();
-
- str = string.Format("\n[Source string value]\n \"{0}\"", str1);
- str += string.Format("\n[Length of source string]\n {0}", len1);
- str += string.Format("\n[Format provider string]\n {0}", str2);
-
- return str;
- }
-
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// String.System.IConvertible.ToInt16(IFormatProvider provider)
-/// This method supports the .NET Framework infrastructure and is
-/// not intended to be used directly from your code.
-/// Converts the value of the current String object to a 16-bit signed integer.
-/// </summary>
-class IConvertibleToInt16
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- public static int Main()
- {
- IConvertibleToInt16 iege = new IConvertibleToInt16();
-
- TestLibrary.TestFramework.BeginTestCase("for method: String.System.IConvertible.ToInt16(IFormatProvider)");
- if (iege.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("[Negative]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
-
- return retVal;
- }
-
- #region Positive test scenarioes
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest1: Random numeric string";
- const string c_TEST_ID = "P001";
-
- string strSrc;
- IFormatProvider provider;
- Int16 i;
- bool expectedValue = true;
- bool actualValue = false;
-
- i = TestLibrary.Generator.GetInt16(-55);
- strSrc = i.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (i == ((IConvertible)strSrc).ToInt16(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest2: Positive sign";
- const string c_TEST_ID = "P002";
-
- string strSrc;
- IFormatProvider provider;
- NumberFormatInfo ni = new NumberFormatInfo();
- Int16 i;
- bool expectedValue = true;
- bool actualValue = false;
-
- i = TestLibrary.Generator.GetInt16(-55);
- ni.PositiveSign = TestLibrary.Generator.GetString(-55, false,false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- strSrc = ni.PositiveSign + i.ToString();
- provider = (IFormatProvider)ni;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (i == ((IConvertible)strSrc).ToInt16(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest3: string is Int16.MaxValue";
- const string c_TEST_ID = "P003";
-
- string strSrc;
- IFormatProvider provider;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = Int16.MaxValue.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (Int16.MaxValue == ((IConvertible)strSrc).ToInt16(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest4: string is Int16.MinValue";
- const string c_TEST_ID = "P004";
-
- string strSrc;
- IFormatProvider provider;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = Int16.MinValue.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (Int16.MinValue == ((IConvertible)strSrc).ToInt16(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest5() // new update 8-14-2006 Noter(v-yaduoj)
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest5: Negative sign";
- const string c_TEST_ID = "P005";
-
- string strSrc;
- IFormatProvider provider;
- NumberFormatInfo ni = new NumberFormatInfo();
- Int16 i;
- bool expectedValue = true;
- bool actualValue = false;
-
- i = TestLibrary.Generator.GetInt16(-55);
- ni.NegativeSign = TestLibrary.Generator.GetString(-55, false,false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- strSrc = ni.NegativeSign + i.ToString();
- provider = (IFormatProvider)ni;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = ((-1*i) == ((IConvertible)strSrc).ToInt16(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion // end for positive test scenarioes
-
- #region Negative test scenarios
-
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest1: The value of String object cannot be parsed";
- const string c_TEST_ID = "N001";
-
- string strSrc;
- IFormatProvider provider;
-
- strSrc = "p" + TestLibrary.Generator.GetString(-55, false, 9, c_MAX_STRING_LEN);
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- ((IConvertible)strSrc).ToInt16(provider);
- TestLibrary.TestFramework.LogError("009" + "TestId-" + c_TEST_ID, "FormatException is not thrown as expected" + GetDataString(strSrc, provider));
- retVal = false;
- }
- catch (FormatException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest2: The value of String object is a number greater than MaxValue";
- const string c_TEST_ID = "N002";
-
- string strSrc;
- IFormatProvider provider;
- int i;
-
- // new update 8-14-2006 Noter(v-yaduoj)
- i = TestLibrary.Generator.GetInt16(-55) + Int16.MaxValue + 1;
- strSrc = i.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- // new update 8-14-2006 Noter(v-yaduoj)
- ((IConvertible)strSrc).ToInt16(provider);
- TestLibrary.TestFramework.LogError("011" + "TestId-" + c_TEST_ID, "OverflowException is not thrown as expected" + GetDataString(strSrc, provider));
- retVal = false;
- }
- catch (OverflowException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest3: The value of String object is a number less than MinValue";
- const string c_TEST_ID = "N003";
-
- string strSrc;
- IFormatProvider provider;
- int i;
-
- // new update 8-14-2006 Noter(v-yaduoj)
- i = -1 * (TestLibrary.Generator.GetInt32(-55) % Int16.MaxValue) - Int16.MaxValue - 1;
- strSrc = i.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- ((IConvertible)strSrc).ToInt16(provider);
- TestLibrary.TestFramework.LogError("013" + "TestId-" + c_TEST_ID, "OverflowException is not thrown as expected" + GetDataString(strSrc, provider));
- retVal = false;
- }
- catch (OverflowException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("014" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- private string GetDataString(string strSrc, IFormatProvider provider)
- {
- string str1, str2, str;
- int len1;
-
- if (null == strSrc)
- {
- str1 = "null";
- len1 = 0;
- }
- else
- {
- str1 = strSrc;
- len1 = strSrc.Length;
- }
-
- str2 = (null == provider) ? "null" : provider.ToString();
-
- str = string.Format("\n[Source string value]\n \"{0}\"", str1);
- str += string.Format("\n[Length of source string]\n {0}", len1);
- str += string.Format("\n[Format provider string]\n {0}", str2);
-
- return str;
- }
-
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// String.System.IConvertible.ToInt32(IFormatProvider provider)
-/// This method supports the .NET Framework infrastructure and is
-/// not intended to be used directly from your code.
-/// Converts the value of the current String object to a 32-bit signed integer.
-/// </summary>
-class IConvertibleToInt32
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- public static int Main()
- {
- IConvertibleToInt32 iege = new IConvertibleToInt32();
-
- TestLibrary.TestFramework.BeginTestCase("for method: String.System.IConvertible.ToInt32(IFormatProvider)");
- if (iege.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("[Negative]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
-
- return retVal;
- }
-
- #region Positive test scenarioes
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest1: Random numeric string";
- const string c_TEST_ID = "P001";
-
- string strSrc;
- IFormatProvider provider;
- Int32 i;
- bool expectedValue = true;
- bool actualValue = false;
-
- i = TestLibrary.Generator.GetInt32(-55);
- strSrc = i.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (i == ((IConvertible)strSrc).ToInt32(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest2: Positive sign";
- const string c_TEST_ID = "P002";
-
- string strSrc;
- IFormatProvider provider;
- NumberFormatInfo ni = new NumberFormatInfo();
- Int32 i;
- bool expectedValue = true;
- bool actualValue = false;
-
- i = TestLibrary.Generator.GetInt32(-55);
- // positive signs cannot have emdedded nulls
- ni.PositiveSign = TestLibrary.Generator.GetString(-55, false, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN).Replace((char)0, 'a');
- strSrc = ni.PositiveSign + i.ToString();
- provider = (IFormatProvider)ni;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (i == ((IConvertible)strSrc).ToInt32(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest3: string is Int32.MaxValue";
- const string c_TEST_ID = "P003";
-
- string strSrc;
- IFormatProvider provider;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = Int32.MaxValue.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (Int32.MaxValue == ((IConvertible)strSrc).ToInt32(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest4: string is Int32.MinValue";
- const string c_TEST_ID = "P004";
-
- string strSrc;
- IFormatProvider provider;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = Int32.MinValue.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (Int32.MinValue == ((IConvertible)strSrc).ToInt32(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest5() // new update 8-14-2006 Noter(v-yaduoj)
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest5: Negative sign";
- const string c_TEST_ID = "P005";
-
- string strSrc;
- IFormatProvider provider;
- NumberFormatInfo ni = new NumberFormatInfo();
- Int32 i;
- bool expectedValue = true;
- bool actualValue = false;
-
- i = TestLibrary.Generator.GetInt32(-55);
- ni.NegativeSign = TestLibrary.Generator.GetString(-55, false, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- strSrc = ni.NegativeSign + i.ToString();
- provider = (IFormatProvider)ni;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = ((-1*i) == ((IConvertible)strSrc).ToInt32(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion // end for positive test scenarioes
-
- #region Negative test scenarios
-
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest1: The value of String object cannot be parsed";
- const string c_TEST_ID = "N001";
-
- string strSrc;
- IFormatProvider provider;
-
- strSrc = "p" + TestLibrary.Generator.GetString(-55, false, 9, c_MAX_STRING_LEN);
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- ((IConvertible)strSrc).ToInt32(provider);
- TestLibrary.TestFramework.LogError("009" + "TestId-" + c_TEST_ID, "FormatException is not thrown as expected" + GetDataString(strSrc, provider));
- retVal = false;
- }
- catch (FormatException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest2: The value of String object is a number greater than MaxValue";
- const string c_TEST_ID = "N002";
-
- string strSrc;
- IFormatProvider provider;
- Int64 i;
-
- // new update 8-14-2006 Noter(v-yaduoj)
- i = TestLibrary.Generator.GetInt64(-55) % Int32.MaxValue + Int32.MaxValue + 1;
- strSrc = i.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- // new update 8-14-2006 Noter(v-yaduoj)
- ((IConvertible)strSrc).ToInt32(provider);
- TestLibrary.TestFramework.LogError("011" + "TestId-" + c_TEST_ID, "OverflowException is not thrown as expected" + GetDataString(strSrc, provider));
- retVal = false;
- }
- catch (OverflowException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest3: The value of String object is a number less than MinValue";
- const string c_TEST_ID = "N003";
-
- string strSrc;
- IFormatProvider provider;
- Int64 i;
-
- // new update 8-14-2006 Noter(v-yaduoj)
- i = -1 * (TestLibrary.Generator.GetInt64(-55) % Int32.MaxValue) - Int32.MaxValue - 1;
- strSrc = i.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- ((IConvertible)strSrc).ToInt32(provider);
- TestLibrary.TestFramework.LogError("013" + "TestId-" + c_TEST_ID, "OverflowException is not thrown as expected" + GetDataString(strSrc, provider));
- retVal = false;
- }
- catch (OverflowException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("014" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- private string GetDataString(string strSrc, IFormatProvider provider)
- {
- string str1, str2, str;
- int len1;
-
- if (null == strSrc)
- {
- str1 = "null";
- len1 = 0;
- }
- else
- {
- str1 = strSrc;
- len1 = strSrc.Length;
- }
-
- str2 = (null == provider) ? "null" : provider.ToString();
-
- str = string.Format("\n[Source string value]\n \"{0}\"", str1);
- str += string.Format("\n[Length of source string]\n {0}", len1);
- str += string.Format("\n[Format provider string]\n {0}", str2);
-
- return str;
- }
-
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// String.System.IConvertible.ToInt64(IFormatProvider provider)
-/// This method supports the .NET Framework infrastructure and is
-/// not intended to be used directly from your code.
-/// Converts the value of the current String object to a 32-bit signed integer.
-/// </summary>
-class IConvertibleToInt64
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- public static int Main()
- {
- IConvertibleToInt64 iege = new IConvertibleToInt64();
-
- TestLibrary.TestFramework.BeginTestCase("for method: String.System.IConvertible.ToInt64(IFormatProvider)");
- if (iege.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("[Negative]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
-
- return retVal;
- }
-
- #region Positive test scenarioes
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest1: Random numeric string";
- const string c_TEST_ID = "P001";
-
- string strSrc;
- IFormatProvider provider;
- Int64 i;
- bool expectedValue = true;
- bool actualValue = false;
-
- i = TestLibrary.Generator.GetInt64(-55);
- strSrc = i.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (i == ((IConvertible)strSrc).ToInt64(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest2: Positive sign";
- const string c_TEST_ID = "P002";
-
- string strSrc;
- IFormatProvider provider;
- NumberFormatInfo ni = new NumberFormatInfo();
- Int64 i;
- bool expectedValue = true;
- bool actualValue = false;
-
- i = TestLibrary.Generator.GetInt64(-55);
- ni.PositiveSign = TestLibrary.Generator.GetString(-55, false,false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- strSrc = ni.PositiveSign + i.ToString();
- provider = (IFormatProvider)ni;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (i == ((IConvertible)strSrc).ToInt64(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest3: string is Int64.MaxValue";
- const string c_TEST_ID = "P003";
-
- string strSrc;
- IFormatProvider provider;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = Int64.MaxValue.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (Int64.MaxValue == ((IConvertible)strSrc).ToInt64(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest4: string is Int32.MinValue";
- const string c_TEST_ID = "P004";
-
- string strSrc;
- IFormatProvider provider;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = Int64.MinValue.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (Int64.MinValue == ((IConvertible)strSrc).ToInt64(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest5: Positive sign";
- const string c_TEST_ID = "P005";
-
- string strSrc;
- IFormatProvider provider;
- NumberFormatInfo ni = new NumberFormatInfo();
- Int64 i;
- bool expectedValue = true;
- bool actualValue = false;
-
- i = TestLibrary.Generator.GetInt64(-55);
- ni.NegativeSign = TestLibrary.Generator.GetString(-55, false,false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- strSrc = ni.NegativeSign + i.ToString();
- provider = (IFormatProvider)ni;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = ((-1 * i) == ((IConvertible)strSrc).ToInt64(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion // end for positive test scenarioes
-
- #region Negative test scenarios
-
- //FormatException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest1: The value of String object cannot be parsed";
- const string c_TEST_ID = "N001";
-
- string strSrc;
- IFormatProvider provider;
-
- strSrc = "p" + TestLibrary.Generator.GetString(-55, false, 9, c_MAX_STRING_LEN);
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- ((IConvertible)strSrc).ToInt64(provider);
- TestLibrary.TestFramework.LogError("011" + "TestId-" + c_TEST_ID, "FormatException is not thrown as expected" + GetDataString(strSrc, provider));
- retVal = false;
- }
- catch (FormatException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2() //bug
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest2: The value of String object is a number greater than MaxValue";
- const string c_TEST_ID = "N002";
-
- string strSrc;
- IFormatProvider provider;
- Int64 i;
-
- i = TestLibrary.Generator.GetInt64(-55);
-
- strSrc = Int64.MaxValue.ToString() + i.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- ((IConvertible)strSrc).ToInt64(provider);
- TestLibrary.TestFramework.LogError("013" + "TestId-" + c_TEST_ID, "OverflowException is not thrown as expected" + GetDataString(strSrc, provider));
- retVal = false;
- }
- catch (OverflowException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("014" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3() //bug
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest3: The value of String object is a number less than MinValue";
- const string c_TEST_ID = "N003";
-
- string strSrc;
- NumberFormatInfo ni = new NumberFormatInfo();
- IFormatProvider provider;
- Int64 i;
-
- i = TestLibrary.Generator.GetInt64(-55);
- strSrc = ni.NegativeSign + Int64.MaxValue + i.ToString();
- provider = (IFormatProvider)ni;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- ((IConvertible)strSrc).ToInt64(provider);
- TestLibrary.TestFramework.LogError("015" + "TestId-" + c_TEST_ID, "OverflowException is not thrown as expected" + GetDataString(strSrc, provider));
- retVal = false;
- }
- catch (OverflowException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("016" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- private string GetDataString(string strSrc, IFormatProvider provider)
- {
- string str1, str2, str;
- int len1;
-
- if (null == strSrc)
- {
- str1 = "null";
- len1 = 0;
- }
- else
- {
- str1 = strSrc;
- len1 = strSrc.Length;
- }
-
- str2 = (null == provider) ? "null" : provider.ToString();
-
- str = string.Format("\n[Source string value]\n \"{0}\"", str1);
- str += string.Format("\n[Length of source string]\n {0}", len1);
- str += string.Format("\n[Format provider string]\n {0}", str2);
-
- return str;
- }
-
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// String.System.IConvertible.ToSByte(IFormatProvider provider)
-/// This method supports the .NET Framework infrastructure and is
-/// not intended to be used directly from your code.
-/// Converts the value of the current String object to an 8-bit signed integer.
-/// </summary>
-class IConvertibleToSByte
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- public static int Main()
- {
- IConvertibleToSByte iege = new IConvertibleToSByte();
-
- TestLibrary.TestFramework.BeginTestCase("for method: String.System.IConvertible.ToSByte(IFormatProvider)");
- if (iege.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("[Negative]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
-
- return retVal;
- }
-
- #region Positive test scenarioes
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest1: Random positive numeric string";
- const string c_TEST_ID = "P001";
-
- string strSrc;
- IFormatProvider provider;
- sbyte b;
- bool expectedValue = true;
- bool actualValue = false;
-
- b = (sbyte)(TestLibrary.Generator.GetByte(-55) % (sbyte.MaxValue + 1));
- strSrc = b.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (b == ((IConvertible)strSrc).ToSByte(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest2: Positive sign";
- const string c_TEST_ID = "P002";
-
- string strSrc;
- IFormatProvider provider;
- NumberFormatInfo ni = new NumberFormatInfo();
- sbyte b;
- bool expectedValue = true;
- bool actualValue = false;
-
- b = (sbyte)(TestLibrary.Generator.GetByte(-55) % (sbyte.MaxValue + 1));
- ni.PositiveSign = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- //ni.PositiveSign = "**";
- strSrc = ni.PositiveSign + b.ToString();
- provider = (IFormatProvider)ni;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (b == ((IConvertible)strSrc).ToSByte(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest3: string is SByte.MaxValue";
- const string c_TEST_ID = "P003";
-
- string strSrc;
- IFormatProvider provider;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = sbyte.MaxValue.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (sbyte.MaxValue == ((IConvertible)strSrc).ToSByte(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest4: string is sByte.MinValue";
- const string c_TEST_ID = "P004";
-
- string strSrc;
- IFormatProvider provider;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = sbyte.MinValue.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (sbyte.MinValue == ((IConvertible)strSrc).ToSByte(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest5: Negative sign";
- const string c_TEST_ID = "P005";
-
- string strSrc;
- IFormatProvider provider;
- NumberFormatInfo ni = new NumberFormatInfo();
- sbyte b;
- bool expectedValue = true;
- bool actualValue = false;
-
- b = (sbyte)(TestLibrary.Generator.GetByte(-55) % (sbyte.MaxValue + 1));
- ni.NegativeSign = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- strSrc = ni.NegativeSign + b.ToString();
- provider = (IFormatProvider)ni;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = ((-1 * b) == ((IConvertible)strSrc).ToSByte(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion // end for positive test scenarioes
-
- #region Negative test scenarios
-
- //FormatException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest1: The value of String object cannot be parsed";
- const string c_TEST_ID = "N001";
-
- string strSrc;
- IFormatProvider provider;
-
- strSrc = "p" + TestLibrary.Generator.GetString(-55, false, 9, c_MAX_STRING_LEN);
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- ((IConvertible)strSrc).ToSByte(provider);
- TestLibrary.TestFramework.LogError("009" + "TestId-" + c_TEST_ID, "FormatException is not thrown as expected" + GetDataString(strSrc, provider));
- retVal = false;
- }
- catch (FormatException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest2: The value of String object is a number greater than MaxValue";
- const string c_TEST_ID = "N002";
-
- string strSrc;
- IFormatProvider provider;
- int i;
-
- i = sbyte.MaxValue + 1 + TestLibrary.Generator.GetByte(-55);
- strSrc = i.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- ((IConvertible)strSrc).ToSByte(provider);
- TestLibrary.TestFramework.LogError("011" + "TestId-" + c_TEST_ID, "OverflowException is not thrown as expected" + GetDataString(strSrc, provider));
- retVal = false;
- }
- catch (OverflowException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest3: The value of String object is a number less than MinValue";
- const string c_TEST_ID = "N003";
-
- string strSrc;
- IFormatProvider provider;
- int i;
-
- i = -1*(TestLibrary.Generator.GetByte(-55) % (sbyte.MaxValue)) +sbyte.MinValue - 1;
- strSrc = i.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- ((IConvertible)strSrc).ToSByte(provider);
- TestLibrary.TestFramework.LogError("013" + "TestId-" + c_TEST_ID, "OverflowException is not thrown as expected" + GetDataString(strSrc, provider));
- retVal = false;
- }
- catch (OverflowException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("014" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- private string GetDataString(string strSrc, IFormatProvider provider)
- {
- string str1, str2, str;
- int len1;
-
- if (null == strSrc)
- {
- str1 = "null";
- len1 = 0;
- }
- else
- {
- str1 = strSrc;
- len1 = strSrc.Length;
- }
-
- str2 = (null == provider) ? "null" : provider.ToString();
-
- str = string.Format("\n[Source string value]\n \"{0}\"", str1);
- str += string.Format("\n[Length of source string]\n {0}", len1);
- str += string.Format("\n[Format provider string]\n {0}", str2);
-
- return str;
- }
-
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// String.System.IConvertible.ToUInt16(IFormatProvider provider)
-/// This method supports the .NET Framework infrastructure and is
-/// not intended to be used directly from your code.
-/// Converts the value of the current String object to a 16-bit unsigned integer.
-/// </summary>
-class IConvertibleToUInt16
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- public static int Main()
- {
- IConvertibleToUInt16 iege = new IConvertibleToUInt16();
-
- TestLibrary.TestFramework.BeginTestCase("for method: String.System.IConvertible.ToUInt16(IFormatProvider)");
- if (iege.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;
-
- return retVal;
- }
-
- #region Positive test scenarioes
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest1: Random numeric string";
- const string c_TEST_ID = "P001";
-
- string strSrc;
- IFormatProvider provider;
- UInt16 i;
- bool expectedValue = true;
- bool actualValue = false;
-
- i = (UInt16)(TestLibrary.Generator.GetInt32(-55) % (UInt16.MaxValue + 1));
- strSrc = i.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (i == ((IConvertible)strSrc).ToUInt16(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest2: Positive sign";
- const string c_TEST_ID = "P002";
-
- string strSrc;
- IFormatProvider provider;
- NumberFormatInfo ni = new NumberFormatInfo();
- UInt16 i;
- bool expectedValue = true;
- bool actualValue = false;
-
- i = (UInt16)(TestLibrary.Generator.GetInt32(-55) % (UInt16.MaxValue + 1));
- ni.PositiveSign = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- strSrc = ni.PositiveSign + i.ToString();
- provider = (IFormatProvider)ni;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (i == ((IConvertible)strSrc).ToUInt16(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest3: string is Int16.MaxValue";
- const string c_TEST_ID = "P003";
-
- string strSrc;
- IFormatProvider provider;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = UInt16.MaxValue.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (UInt16.MaxValue == ((IConvertible)strSrc).ToUInt16(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest4: string is Int16.MinValue";
- const string c_TEST_ID = "P004";
-
- string strSrc;
- IFormatProvider provider;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = UInt16.MinValue.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (UInt16.MinValue == ((IConvertible)strSrc).ToUInt16(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion // end for positive test scenarioes
-
- #region Negative test scenarios
-
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest1: The value of String object cannot be parsed";
- const string c_TEST_ID = "N001";
-
- string strSrc;
- IFormatProvider provider;
-
- strSrc = "p" + TestLibrary.Generator.GetString(-55, false, 9, c_MAX_STRING_LEN);
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- ((IConvertible)strSrc).ToUInt16(provider);
- TestLibrary.TestFramework.LogError("009" + "TestId-" + c_TEST_ID, "FormatException is not thrown as expected" + GetDataString(strSrc, provider));
- retVal = false;
- }
- catch (FormatException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest2: The value of String object is a number greater than MaxValue";
- const string c_TEST_ID = "N002";
-
- string strSrc;
- IFormatProvider provider;
- int i;
-
- i = TestLibrary.Generator.GetInt16(-55) + UInt16.MaxValue + 1;
- strSrc = i.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- ((IConvertible)strSrc).ToUInt16(provider);
- TestLibrary.TestFramework.LogError("011" + "TestId-" + c_TEST_ID, "OverflowException is not thrown as expected" + GetDataString(strSrc, provider));
- retVal = false;
- }
- catch (OverflowException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest3: The value of String object is a number less than MinValue";
- const string c_TEST_ID = "N003";
-
- string strSrc;
- IFormatProvider provider;
- int i;
-
- i = -1 * (TestLibrary.Generator.GetInt32(-55) % UInt16.MaxValue) + UInt16.MinValue - 1;
- strSrc = i.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- ((IConvertible)strSrc).ToUInt16(provider);
- TestLibrary.TestFramework.LogError("013" + "TestId-" + c_TEST_ID, "OverflowException is not thrown as expected" + GetDataString(strSrc, provider));
- retVal = false;
- }
- catch (OverflowException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("014" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- private string GetDataString(string strSrc, IFormatProvider provider)
- {
- string str1, str2, str;
- int len1;
-
- if (null == strSrc)
- {
- str1 = "null";
- len1 = 0;
- }
- else
- {
- str1 = strSrc;
- len1 = strSrc.Length;
- }
-
- str2 = (null == provider) ? "null" : provider.ToString();
-
- str = string.Format("\n[Source string value]\n \"{0}\"", str1);
- str += string.Format("\n[Length of source string]\n {0}", len1);
- str += string.Format("\n[Format provider string]\n {0}", str2);
-
- return str;
- }
-
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// String.System.IConvertible.ToUInt32(IFormatProvider provider)
-/// This method supports the .NET Framework infrastructure and is
-/// not intended to be used directly from your code.
-/// Converts the value of the current String object to a 32-bit unsigned integer.
-/// </summary>
-class IConvertibleToUInt32
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- public static int Main()
- {
- IConvertibleToUInt32 iege = new IConvertibleToUInt32();
-
- TestLibrary.TestFramework.BeginTestCase("for method: String.System.IConvertible.ToUInt32(IFormatProvider)");
- if (iege.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;
-
- return retVal;
- }
-
- #region Positive test scenarioes
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest1: Random numeric string";
- const string c_TEST_ID = "P001";
-
- string strSrc;
- IFormatProvider provider;
- UInt32 i;
- bool expectedValue = true;
- bool actualValue = false;
-
- i = (UInt32)(TestLibrary.Generator.GetInt64(-55) % (UInt32.MaxValue));
- strSrc = i.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (i == ((IConvertible)strSrc).ToUInt32(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest2: Positive sign";
- const string c_TEST_ID = "P002";
-
- string strSrc;
- IFormatProvider provider;
- NumberFormatInfo ni = new NumberFormatInfo();
- UInt32 i;
- bool expectedValue = true;
- bool actualValue = false;
-
- i = (UInt32)(TestLibrary.Generator.GetInt64(-55) % (UInt32.MaxValue));
- ni.PositiveSign = TestLibrary.Generator.GetString(-55, false, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- strSrc = ni.PositiveSign + i.ToString();
- provider = (IFormatProvider)ni;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (i == ((IConvertible)strSrc).ToUInt32(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest3: string is UInt32.MaxValue";
- const string c_TEST_ID = "P003";
-
- string strSrc;
- IFormatProvider provider;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = UInt32.MaxValue.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (UInt32.MaxValue == ((IConvertible)strSrc).ToUInt32(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest4: string is UInt32.MinValue";
- const string c_TEST_ID = "P004";
-
- string strSrc;
- IFormatProvider provider;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = UInt32.MinValue.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (UInt32.MinValue == ((IConvertible)strSrc).ToUInt32(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion // end for positive test scenarioes
-
- #region Negative test scenarios
-
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest1: The value of String object cannot be parsed";
- const string c_TEST_ID = "N001";
-
- string strSrc;
- IFormatProvider provider;
-
- strSrc = "p" + TestLibrary.Generator.GetString(-55, false, 9, c_MAX_STRING_LEN);
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- ((IConvertible)strSrc).ToUInt32(provider);
- TestLibrary.TestFramework.LogError("009" + "TestId-" + c_TEST_ID, "FormatException is not thrown as expected" + GetDataString(strSrc, provider));
- retVal = false;
- }
- catch (FormatException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest2: The value of String object is a number greater than MaxValue";
- const string c_TEST_ID = "N002";
-
- string strSrc;
- IFormatProvider provider;
- Int64 i;
-
- i = TestLibrary.Generator.GetInt64(-55) % UInt32.MaxValue + UInt32.MaxValue + 1;
- strSrc = i.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- ((IConvertible)strSrc).ToUInt32(provider);
- TestLibrary.TestFramework.LogError("011" + "TestId-" + c_TEST_ID, "OverflowException is not thrown as expected" + GetDataString(strSrc, provider));
- retVal = false;
- }
- catch (OverflowException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest3: The value of String object is a number less than MinValue";
- const string c_TEST_ID = "N003";
-
- string strSrc;
- IFormatProvider provider;
- Int64 i;
-
- i = -1 * (TestLibrary.Generator.GetInt64(-55) % UInt32.MaxValue) + UInt32.MinValue - 1;
- strSrc = i.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- ((IConvertible)strSrc).ToUInt32(provider);
- TestLibrary.TestFramework.LogError("013" + "TestId-" + c_TEST_ID, "OverflowException is not thrown as expected" + GetDataString(strSrc, provider));
- retVal = false;
- }
- catch (OverflowException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("014" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- private string GetDataString(string strSrc, IFormatProvider provider)
- {
- string str1, str2, str;
- int len1;
-
- if (null == strSrc)
- {
- str1 = "null";
- len1 = 0;
- }
- else
- {
- str1 = strSrc;
- len1 = strSrc.Length;
- }
-
- str2 = (null == provider) ? "null" : provider.ToString();
-
- str = string.Format("\n[Source string value]\n \"{0}\"", str1);
- str += string.Format("\n[Length of source string]\n {0}", len1);
- str += string.Format("\n[Format provider string]\n {0}", str2);
-
- return str;
- }
-
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// String.System.IConvertible.ToUInt64(IFormatProvider provider)
-/// This method supports the .NET Framework infrastructure and is
-/// not intended to be used directly from your code.
-/// Converts the value of the current String object to a 64-bit unsigned integer.
-/// </summary>
-class IConvertibleToUInt64
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- public static int Main()
- {
- IConvertibleToUInt64 iege = new IConvertibleToUInt64();
-
- TestLibrary.TestFramework.BeginTestCase("for method: String.System.IConvertible.ToUInt64(IFormatProvider)");
- if (iege.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;
-
- return retVal;
- }
-
- #region Positive test scenarioes
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest1: Random numeric string";
- const string c_TEST_ID = "P001";
-
- string strSrc;
- IFormatProvider provider;
- UInt64 i;
- bool expectedValue = true;
- bool actualValue = false;
-
- i = GetUInt64();
- strSrc = i.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (i == ((IConvertible)strSrc).ToUInt64(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest2: Positive sign";
- const string c_TEST_ID = "P002";
-
- string strSrc;
- IFormatProvider provider;
- NumberFormatInfo ni = new NumberFormatInfo();
- UInt64 i;
- bool expectedValue = true;
- bool actualValue = false;
-
- i = GetUInt64();
- ni.PositiveSign = TestLibrary.Generator.GetString(-55, false, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- strSrc = ni.PositiveSign + i.ToString();
- provider = (IFormatProvider)ni;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (i == ((IConvertible)strSrc).ToUInt64(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest3: string is Int64.MaxValue";
- const string c_TEST_ID = "P003";
-
- string strSrc;
- IFormatProvider provider;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = Int64.MaxValue.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (Int64.MaxValue == ((IConvertible)strSrc).ToUInt64(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest4: string is UInt32.MinValue";
- const string c_TEST_ID = "P004";
-
- string strSrc;
- IFormatProvider provider;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = UInt64.MinValue.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- actualValue = (UInt64.MinValue == ((IConvertible)strSrc).ToUInt64(provider));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, provider);
- 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 + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion // end for positive test scenarioes
-
- #region Negative test scenarios
-
- //FormatException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest1: The value of String object cannot be parsed";
- const string c_TEST_ID = "N001";
-
- string strSrc;
- IFormatProvider provider;
-
- strSrc = "p" + TestLibrary.Generator.GetString(-55, false, 9, c_MAX_STRING_LEN);
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- ((IConvertible)strSrc).ToUInt64(provider);
- TestLibrary.TestFramework.LogError("009" + "TestId-" + c_TEST_ID, "FormatException is not thrown as expected" + GetDataString(strSrc, provider));
- retVal = false;
- }
- catch (FormatException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest2: The value of String object is a number greater than MaxValue";
- const string c_TEST_ID = "N002";
-
- string strSrc;
- IFormatProvider provider;
- UInt64 i;
-
- i = GetUInt64();
-
- strSrc = UInt64.MaxValue.ToString() + i.ToString();
- provider = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- ((IConvertible)strSrc).ToUInt64(provider);
- TestLibrary.TestFramework.LogError("011" + "TestId-" + c_TEST_ID, "OverflowException is not thrown as expected" + GetDataString(strSrc, provider));
- retVal = false;
- }
- catch (OverflowException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest3: The value of String object is a number less than MinValue";
- const string c_TEST_ID = "N003";
-
- string strSrc;
- NumberFormatInfo ni = new NumberFormatInfo();
- IFormatProvider provider;
- UInt64 i;
-
- i = GetUInt64();
- strSrc = ni.NegativeSign + UInt64.MaxValue + i.ToString();
- provider = (IFormatProvider)ni;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- ((IConvertible)strSrc).ToUInt64(provider);
- TestLibrary.TestFramework.LogError("013" + "TestId-" + c_TEST_ID, "OverflowException is not thrown as expected" + GetDataString(strSrc, provider));
- retVal = false;
- }
- catch (OverflowException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("014" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e + GetDataString(strSrc, provider));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- // returns a non-negative UInt64 between 0 and UInt64.MadValue
- public static UInt64 GetUInt64() // maybe bug
- {
- byte[] buffer = new byte[8];
- UInt64 iVal;
-
- TestLibrary.Generator.GetBytes(-55, buffer);
-
- // convert to UInt64
- iVal = 0;
- for (int i = 0; i < buffer.Length; i++)
- {
- iVal |= ((UInt64)buffer[i] << (i * 8));
- }
-
- TestLibrary.TestFramework.LogInformation("Random UInt64 produced: " + iVal.ToString());
- return iVal;
- }
-
- private string GetDataString(string strSrc, IFormatProvider provider)
- {
- string str1, str2, str;
- int len1;
-
- if (null == strSrc)
- {
- str1 = "null";
- len1 = 0;
- }
- else
- {
- str1 = strSrc;
- len1 = strSrc.Length;
- }
-
- str2 = (null == provider) ? "null" : provider.ToString();
-
- str = string.Format("\n[Source string value]\n \"{0}\"", str1);
- str += string.Format("\n[Length of source string]\n {0}", len1);
- str += string.Format("\n[Format provider string]\n {0}", str2);
-
- return str;
- }
-
-}
+++ /dev/null
-// 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>
-/// IEnumerable.GetEnumerator()
-/// Note: This method is new in the .NET Framework version 2.0.
-/// Returns an enumerator that iterates through the collection.
-/// </summary>
-class IEnumerableGetEnumerator
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- public static int Main()
- {
- IEnumerableGetEnumerator iege = new IEnumerableGetEnumerator();
-
- TestLibrary.TestFramework.BeginTestCase("for method: string implementation of Collections.IEnumerable.GetEnumerator()");
- if (iege.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;
- }
-
- #region Positive test scenarioes
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest1: Random string";
- const string c_TEST_ID = "P001";
-
- string strSrc;
- IEnumerator iterator;
- bool condition = false;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- iterator = ((IEnumerable)strSrc).GetEnumerator();
-
- condition = true;
- int index = 0;
- while (iterator.MoveNext())
- {
- condition = object.Equals(iterator.Current, strSrc[index]) && condition;
- index++;
- }
- iterator.Reset();
-
- actualValue = condition && (null != iterator);
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc);
- 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 + GetDataString(strSrc));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest2: string.Empty ";
- const string c_TEST_ID = "P002";
-
- string strSrc;
- IEnumerator iterator;
- bool condition = false;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = string.Empty;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- iterator = ((IEnumerable)strSrc).GetEnumerator();
-
- condition = true;
- int index = 0;
- while (iterator.MoveNext())
- {
- condition = object.Equals(iterator.Current, strSrc[index]) && condition;
- index++;
- }
- iterator.Reset();
-
- actualValue = condition && (null != iterator);
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc);
- 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 + GetDataString(strSrc));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = @"PosTest3: string is \0 ";
- const string c_TEST_ID = "P003";
-
- string strSrc;
- IEnumerator iterator;
- bool condition = false;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = "\0";
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- iterator = ((IEnumerable)strSrc).GetEnumerator();
-
- condition = true;
- int index = 0;
- while (iterator.MoveNext())
- {
- condition = object.Equals(iterator.Current, strSrc[index]) && condition;
- index++;
- }
- iterator.Reset();
-
- actualValue = condition && (null != iterator);
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc);
- 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 + GetDataString(strSrc));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion // end for positive test scenarioes
-
- private string GetDataString(string strSrc)
- {
- string str1, str;
- int len1;
-
- if (null == strSrc)
- {
- str1 = "null";
- len1 = 0;
- }
- else
- {
- str1 = strSrc;
- len1 = strSrc.Length;
- }
-
- str = string.Format("\n[Source string value]\n \"{0}\"", str1);
- str += string.Format("\n[Length of source string]\n {0}", len1);
-
- return str;
- }
-
-}
+++ /dev/null
-// 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.Text;
-using System.Globalization;
-using TestLibrary;
-
-public class StringIndexOf
-{
- public static string[] InterestingStrings = new string[] { "", "a", "1", "-", "A", "!", "abc", "aBc", "a\u0400Bc", "I", "i", "\u0130", "\u0131", "A", "\uFF21", "\uFE57"};
-
- 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("PosTest1: Compare interesting strings ordinally");
-
- try
- {
- foreach (string s in InterestingStrings)
- {
- foreach (string r in InterestingStrings)
- {
- retVal &= TestStrings(s, r);
- }
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Compare many strings");
-
- try
- {
- for (int i = 0; i < 1000; i++)
- {
- string str1 = Generator.GetString(-55, false, 5, 20);
- string str2 = Generator.GetString(-55, false, 5, 20);
- if (str1.IndexOf(str1, StringComparison.Ordinal) != 0)
- {
- TestLibrary.TestFramework.LogError("003.1", "Comparison not as expected! Actual result: " + str1.IndexOf(str1, StringComparison.Ordinal).ToString() + ", Expected result: 0");
- TestLibrary.TestFramework.LogInformation("String 1: <" + str1 + "> : " + BytesFromString(str1) + "\nString 2: <" + str1 + "> : " + BytesFromString(str1));
- retVal = false;
- }
- if (str2.IndexOf(str2, StringComparison.Ordinal) != 0)
- {
- TestLibrary.TestFramework.LogError("003.2", "Comparison not as expected! Actual result: " + str2.IndexOf(str2, StringComparison.Ordinal).ToString() + ", Expected result: 0");
- TestLibrary.TestFramework.LogInformation("String 1: <" + str2 + "> : " + BytesFromString(str2) + "\nString 2: <" + str2 + "> : " + BytesFromString(str2));
- retVal = false;
- }
- TestStrings(str1, str2);
- TestStrings(str1 + str2, str2);
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.4", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Specific regression cases");
-
- try
- {
- CultureInfo oldCi = TestLibrary.Utilities.CurrentCulture;
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("hu-HU");
- retVal &= TestStrings("Foodzsdzsbar", "ddzs");
- TestLibrary.Utilities.CurrentCulture = oldCi;
-
- retVal &= TestStrings("\u00C0nimal", "A\u0300");
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004.2", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
-
- public static int Main()
- {
- StringIndexOf test = new StringIndexOf();
-
- TestLibrary.TestFramework.BeginTestCase("StringIndexOf");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
- private bool TestStrings(string str1, string str2)
- {
- bool retVal = true;
-
- int expectValue = PredictValue(str1, str2);
- int actualValue = str1.IndexOf(str2, StringComparison.Ordinal);
-
- if (actualValue != expectValue)
- {
- TestLibrary.TestFramework.LogError("001.1", "Comparison not as expected! Actual result: " + actualValue + ", Expected result: " + expectValue);
- TestLibrary.TestFramework.LogInformation("String 1: <" + str1 + "> : " + BytesFromString(str1) + "\nString 2: <" + str2 + "> : " + BytesFromString(str2));
- retVal = false;
- }
-
- return retVal;
- }
-
- int PredictValue(string str1, string str2)
- {
- if (str1 == null)
- {
- if (str2 == null) return 0;
- else return -1;
- }
- if (str2 == null) return -1;
-
- if (str2.Length > str1.Length) return -1;
-
- for (int i = 0; i <= str1.Length - str2.Length; i++)
- {
- bool match = true;
- for (int j = 0; j < str2.Length; j++)
- {
- if ((int)str1[i + j] != (int)str2[j])
- {
- match = false;
- break;
- }
- }
- if (match) return i;
- }
- return -1;
- }
-
- private static string BytesFromString(string str)
- {
- if (str == null) return string.Empty;
- StringBuilder output = new StringBuilder();
- for (int i = 0; i < str.Length; i++)
- {
- output.Append(TestLibrary.Utilities.ByteArrayToString(BitConverter.GetBytes(str[i])));
- if (i != (str.Length - 1)) output.Append(", ");
- }
- return output.ToString();
- }
-}
+++ /dev/null
-// 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>
-/// String.Insert(Int32, String)
-/// Inserts a specified instance of String at a specified index position in this instance.
-/// </summary>
-class StringInsert
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- private const int c_MAX_SHORT_STR_LEN = 31;//short string (<32 chars)
- private const int c_MIN_LONG_STR_LEN = 257;//long string ( >256 chars)
- private const int c_MAX_LONG_STR_LEN = 65535;
-
- public static int Main()
- {
- StringInsert si = new StringInsert();
-
- TestLibrary.TestFramework.BeginTestCase("for method: System.String.Insert(Int32, string)");
- if (si.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;
-
- return retVal;
- }
-
- #region Positive test scenarios
-
- public bool PosTest1() // new update 8-8-2006 Noter(v-yaduoj)
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest1: Start index is 0";
- const string c_TEST_ID = "P001";
-
- int index;
- string strSrc, strInserting;
- bool condition1 = false; //Verify the inserting string
- bool condition2 = false; //Verify the source string
- bool expectedValue = true;
- bool actualValue = false;
-
- index = 0;
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- //strSrc = "AABBB";
- strInserting = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- //strInserting = "%%";
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string strNew = strSrc.Insert(index, strInserting);
-
- condition1 = (0 == string.CompareOrdinal(strInserting, strNew.Substring(index, strInserting.Length)));
- condition2 = (0 == string.CompareOrdinal(strSrc, strNew.Substring(0, index) + strNew.Substring(index + strInserting.Length)));
- actualValue = condition1 && condition2;
- if (expectedValue != actualValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- 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);
- retVal = false;
- }
-
- return retVal;
- }
-
- // new update 8-8-2006 Noter(v-yaduoj)
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "Start index equals the length of instance ";
- const string c_TEST_ID = "P002";
-
- int index;
- string strSrc, strInserting;
- bool condition1 = false; //Verify the inserting string
- bool condition2 = false; //Verify the source string
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- index = strSrc.Length;
- strInserting = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string strNew = strSrc.Insert(index, strInserting);
-
- condition1 = (0 == string.CompareOrdinal(strInserting, strNew.Substring(index, strInserting.Length)));
- condition2 = (0 == string.CompareOrdinal(strSrc, strNew.Substring(0, index) + strNew.Substring(index + strInserting.Length)));
- actualValue = condition1 && condition2;
- if (expectedValue != actualValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- 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);
- retVal = false;
- }
-
- return retVal;
- }
-
- // new update 8-8-2006 Noter(v-yaduoj)
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "Start index is a value between 1 and Instance.Length - 1 ";
- const string c_TEST_ID = "P003";
-
- int index;
- string strSrc, strInserting;
- bool condition1 = false; //Verify the inserting string
- bool condition2 = false; //Verify the source string
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- index = GetInt32(1, strSrc.Length - 1);
- strInserting = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string strNew = strSrc.Insert(index, strInserting);
-
- condition1 = (0 == string.CompareOrdinal(strInserting, strNew.Substring(index, strInserting.Length)));
- condition2 = (0 == string.CompareOrdinal(strSrc, strNew.Substring(0, index) + strNew.Substring(index + strInserting.Length)));
- actualValue = condition1 && condition2;
- if (expectedValue != actualValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- 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);
- retVal = false;
- }
-
- return retVal;
- }
-
- // new update 8-8-2006 Noter(v-yaduoj)
- public bool PosTest4()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "String inserted is Sting.Empty";
- const string c_TEST_ID = "P004";
-
- int index;
- string strSrc, strInserting;
- bool condition1 = false; //Verify the inserting string
- bool condition2 = false; //Verify the source string
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- index = GetInt32(0, strSrc.Length);
- strInserting = String.Empty;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string strNew = strSrc.Insert(index, strInserting);
-
- condition1 = (0 == string.CompareOrdinal(strInserting, strNew.Substring(index, strInserting.Length)));
- condition2 = (0 == string.CompareOrdinal(strSrc, strNew.Substring(0, index) + strNew.Substring(index + strInserting.Length)));
- actualValue = condition1 && condition2;
- if (expectedValue != actualValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- 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);
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #region Negative test scenairos
-
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "The string inserted is null";
- const string c_TEST_ID = "N001";
-
- int index;
- string strSource, str;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- strSource = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- index = GetInt32(0, strSource.Length);
- str = null;
-
- strSource.Insert(index, str);
- TestLibrary.TestFramework.LogError("009" + "TestId-" + c_TEST_ID, "ArgumentNullException is not thrown as expected");
- retVal = false;
- }
- catch (ArgumentNullException)
- {}
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "The start index is greater than the length of instance.";
- const string c_TEST_ID = "N002";
-
- int index;
- string strSource, str;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- strSource = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- index = GetInt32(strSource.Length + 1, Int32.MaxValue);
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
-
- strSource.Insert(index, str);
- TestLibrary.TestFramework.LogError("011" + "TestId-" + c_TEST_ID, "ArgumentOutOfRangeException is not thrown as expected");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "The start index is a negative integer";
- const string c_TEST_ID = "N003";
-
- int index;
- string strSource, str;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- strSource = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- index = -1 * GetInt32(0, Int32.MaxValue) - 1;
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
-
- strSource.Insert(index, str);
- TestLibrary.TestFramework.LogError("013" + "TestId-" + c_TEST_ID, "ArgumentOutOfRangeException is not thrown as expected");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("014" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #region helper methods for generating test data
-
- private bool GetBoolean()
- {
- Int32 i = this.GetInt32(1, 2);
- return (i == 1) ? true : false;
- }
-
- //Get a non-negative integer between minValue and maxValue
- private Int32 GetInt32(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;
- }
-
- private Int32 Min(Int32 i1, Int32 i2)
- {
- return (i1 <= i2) ? i1 : i2;
- }
-
- private Int32 Max(Int32 i1, Int32 i2)
- {
- return (i1 >= i2) ? i1 : i2;
- }
-
- #endregion
-}
-
+++ /dev/null
-// 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.Text;
-/// <summary>
-/// String.IsNullOrEmpty(System.String)
-/// Note: This method is new in the .NET Framework version 2.0.
-/// Indicates whether the specified String object is a null refere-
-/// nce (Nothing in Visual Basic) or an Empty string.
-/// </summary>
-class StringIsNullOrEmpty
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- private const int c_MAX_SHORT_STR_LEN = 31;//short string (<32 chars)
- private const int c_MIN_LONG_STR_LEN = 257;//long string ( >256 chars)
- private const int c_MAX_LONG_STR_LEN = 65535;
-
- public static int Main()
- {
- StringIsNullOrEmpty sin = new StringIsNullOrEmpty();
-
- TestLibrary.TestFramework.BeginTestCase("for method: System.String.IsNullOrEmpty(System.String)");
- if(sin.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;
- }
-
- #region Positive scenarios
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "String is null";
- const string c_TEST_ID = "P001";
-
- string str;
- bool expectedValue = true; // True means that string is null.
- bool actualValue = false;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str = null;
- actualValue = string.IsNullOrEmpty(str);
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- 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);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "String is empty";
- const string c_TEST_ID = "P002";
-
- string str;
- bool expectedValue = true; // True means string is empty
- bool actualValue = false;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str = String.Empty;
- actualValue = string.IsNullOrEmpty(str);
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- 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);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "String is unempty and non-null";
- const string c_TEST_ID = "P003";
-
- string str;
- bool expectedValue = false; // False means string is unempty and non-null
- bool actualValue = false;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- actualValue = string.IsNullOrEmpty(str);
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- 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);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "String consists of \"\\0\"";
- const string c_TEST_ID = "P004";
-
- string str;
- bool expectedValue = false; // False means string is unempty and non-null
- bool actualValue = false;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- char ch = '\0';
- str = new string(ch, GetInt32(1, c_MAX_STRING_LEN));
- actualValue = string.IsNullOrEmpty(str);
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- 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);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "String consists of \"\"";
- const string c_TEST_ID = "P005";
-
- string str;
- bool expectedValue = true;
- bool actualValue = false;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str = "";
- for (int i = GetInt32(1, c_MAX_STRING_LEN); i > 0; i--)
- {
- str += "";
- }
- actualValue = string.IsNullOrEmpty(str);
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- TestLibrary.TestFramework.LogError("009" + "TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #region helper methods for generating test data
-
- private bool GetBoolean()
- {
- Int32 i = this.GetInt32(1, 2);
- return (i == 1) ? true : false;
- }
-
- //Get a non-negative integer between minValue and maxValue
- private Int32 GetInt32(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;
- }
-
- private Int32 Min(Int32 i1, Int32 i2)
- {
- return (i1 <= i2) ? i1 : i2;
- }
-
- private Int32 Max(Int32 i1, Int32 i2)
- {
- return (i1 >= i2) ? i1 : i2;
- }
-
- #endregion
-}
+++ /dev/null
-// 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>
-/// String.Join(String, String[])
-/// Concatenates a specified separator String between each element
-/// of a specified String array, yielding a single concatenated string.
-/// </summary>
-class StringJoin1
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- private const int c_MAX_SHORT_STR_LEN = 31;//short string (<32 chars)
- private const int c_MIN_LONG_STR_LEN = 257;//long string ( >256 chars)
- private const int c_MAX_LONG_STR_LEN = 65535;
-
- private const int c_MIN_STR_ARRAY_LEN = 4;
- private const int c_MAX_STR_ARRAY_LEN = 127;
-
- public static int Main()
- {
- StringJoin1 si = new StringJoin1();
-
- TestLibrary.TestFramework.BeginTestCase("for method: System.String.Join(String, String[])");
- if (si.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;
-
- return retVal;
- }
-
- #region Positive test scenarios
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "Random separator and random string array";
- const string c_TEST_ID = "P001";
-
- string separator, joinedStr;
- bool condition1 = false; //Used to verify the element of the string array
- bool condition2 = false; //used to verify the separator
- bool expectedValue, actualValue;
- int i, j, startIndex1, startIndex2;
- string[] strs;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- strs = TestLibrary.Generator.GetStrings(-55, false, c_MIN_STR_ARRAY_LEN, c_MAX_STR_ARRAY_LEN);
- //strs = new string[] { "AAAA", "BBBBB", "CCCCCC" };
- separator = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
-
- joinedStr = string.Join(separator, strs);
- i = GetInt32(0, strs.GetLength(0) - 1);
- //i = 1;
-
- //Get source array element's start position of the joined string
- startIndex1 = 0;
- for (int m = i; m > 0;)
- {
- startIndex1 += separator.Length + strs[--m].Length;
- }
-
- condition1 = (0 == String.CompareOrdinal(joinedStr.Substring(startIndex1, strs[i].Length), strs[i]));
-
- if(strs.GetLength(0) > 1)
- {
- //new update 8-8-2006 Noter(v-yaduoj)
- //Index of separator
- j = GetInt32(1, strs.GetLength(0) - 1);
- startIndex2 = 0;
- while(j>0)
- {
- startIndex2 += strs[j--].Length + separator.Length;
- }
- startIndex2 += strs[0].Length;
- condition2 = (0 == String.CompareOrdinal(joinedStr.Substring(startIndex2, separator.Length), separator));
- }
- else
- {
- condition2 = true;
- }
-
- expectedValue = true;
- actualValue = condition1 && condition2;
- if (expectedValue != actualValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- 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);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "Separator is null, random string array";
- const string c_TEST_ID = "P002";
-
- string separator, joinedStr;
- bool condition1 = false; //Used to verify the element of the string array
- bool condition2 = false; //used to verify the separator
- bool expectedValue, actualValue;
- int i, j, startIndex1, startIndex2;
- string[] strs;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- strs = TestLibrary.Generator.GetStrings(-55, false, c_MIN_STR_ARRAY_LEN, c_MAX_STR_ARRAY_LEN);
- separator = null;
-
- joinedStr = string.Join(separator, strs);
-
- separator = string.Empty;
- i = GetInt32(0, strs.GetLength(0) - 1);
-
- //Get source array element's start position of the joined string
- startIndex1 = 0;
- for (int m = i; m > 0; )
- {
- startIndex1 += separator.Length + strs[--m].Length;
- }
-
- condition1 = (0 == String.CompareOrdinal(joinedStr.Substring(startIndex1, strs[i].Length), strs[i]));
-
- if (strs.GetLength(0) > 1)
- {
- //new update 8-8-2006 Noter(v-yaduoj)
- //Index of separator
- j = GetInt32(0, strs.GetLength(0) - 2);
- startIndex2 = 0;
- while (j > 0)
- {
- startIndex2 += strs[j--].Length + separator.Length;
- }
- startIndex2 += strs[0].Length;
- condition2 = (0 == String.CompareOrdinal(joinedStr.Substring(startIndex2, separator.Length), separator));
- }
- else
- {
- condition2 = true;
- }
-
- expectedValue = true;
- actualValue = condition1 && condition2;
- if (expectedValue != actualValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- 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);
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #region Negative test scenairos
-
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "The string array is null";
- const string c_TEST_ID = "N001";
-
- string separator;
- string[] strs;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- separator = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- strs = null;
-
- String.Join(separator, strs);
- TestLibrary.TestFramework.LogError("005" + "TestId-" + c_TEST_ID, "ArgumentNullException is not thrown as expected");
- retVal = false;
- }
- catch (ArgumentNullException)
- {}
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("06" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #region helper methods for generating test data
-
- private bool GetBoolean()
- {
- Int32 i = this.GetInt32(1, 2);
- return (i == 1) ? true : false;
- }
-
- //Get a non-negative integer between minValue and maxValue
- private Int32 GetInt32(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;
- }
-
- private Int32 Min(Int32 i1, Int32 i2)
- {
- return (i1 <= i2) ? i1 : i2;
- }
-
- private Int32 Max(Int32 i1, Int32 i2)
- {
- return (i1 >= i2) ? i1 : i2;
- }
-
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// String.Join(String, String[], Int32, Int32)
-/// Concatenates a specified separator String between each
-/// element of a specified String array, yielding a single concatenated string.
-/// Parameters specify the first array element and number of elements to use.
-/// </summary>
-class StringJoin2
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- private const int c_MAX_SHORT_STR_LEN = 31;//short string (<32 chars)
- private const int c_MIN_LONG_STR_LEN = 257;//long string ( >256 chars)
- private const int c_MAX_LONG_STR_LEN = 65535;
-
- private const int c_MIN_STR_ARRAY_LEN = 4;
- private const int c_MAX_STR_ARRAY_LEN = 127;
-
- private const int c_SUPER_MAX_INTEGER = 1 << 17;
-
- public static int Main()
- {
- StringJoin2 si = new StringJoin2();
-
- TestLibrary.TestFramework.BeginTestCase("for method: System.String.Join(String, String[], Int32, Int32)");
- if (si.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("[Negative]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
- retVal = NegTest4() && retVal;
- //retVal = NegTest5() && retVal;
-
- return retVal;
- }
-
- #region Positive test scenarios
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest1: Random separator and random string array, positive count";
- const string c_TEST_ID = "P001";
-
- string separator, joinedStr;
- int startIndex, count;
- bool condition1 = false; //Used to verify the element of the string array
- bool condition2 = false; //used to verify the separator
- bool expectedValue, actualValue;
- int i, j, startIndex1, startIndex2;
- string[] strs;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- strs = TestLibrary.Generator.GetStrings(-55, false, c_MIN_STR_ARRAY_LEN, c_MAX_STR_ARRAY_LEN);
- //strs = new string[] { "AAAA", "BBBBB", "CCCCCC", "ddd", "EEEE"};
- separator = TestLibrary.Generator.GetString(-55, false, 1, c_MAX_STRING_LEN);
- //separator = "&&";
- startIndex = GetInt32(0, strs.GetLength(0) - 1);
- //startIndex = 1;
- count = GetInt32(1, strs.GetLength(0) - startIndex);
- //count = 1;
-
- try
- {
- joinedStr = string.Join(separator, strs, startIndex, count);
-
- string[] strsUsed = new string[count];
- for (int m = 0; m < count; m++)
- {
- strsUsed[m] = strs[startIndex + m];
- }
-
- i = GetInt32(0, strsUsed.GetLength(0) - 1);
- //i = 1;
-
- //Get source array element's start position of the joined string
- startIndex1 = 0;
- for (int m = i; m > 0;)
- {
- startIndex1 += separator.Length + strsUsed[--m].Length;
- }
-
- condition1 = (0 == String.CompareOrdinal(joinedStr.Substring(startIndex1, strsUsed[i].Length), strsUsed[i]));
-
- if (strsUsed.GetLength(0) > 1)
- {
- //Index of separator
- j = GetInt32(0, strsUsed.GetLength(0) - 2);
- startIndex2 = 0;
- while(j>0)
- {
- startIndex2 += strsUsed[j--].Length + separator.Length;
- }
- startIndex2 += strsUsed[0].Length;
- condition2 = (0 == String.CompareOrdinal(joinedStr.Substring(startIndex2, separator.Length), separator));
- }
- else
- {
- condition2 = true;
- }
-
- expectedValue = true;
- actualValue = condition1 && condition2;
- if (expectedValue != actualValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strs, separator, startIndex, count);
- 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 + GetDataString(strs, separator, startIndex, count));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest2: Random separator and random string array, count is zero";
- const string c_TEST_ID = "P002";
-
- string separator, joinedStr;
- int startIndex, count;
- bool expectedValue, actualValue;
- string[] strs;
-
- strs = TestLibrary.Generator.GetStrings(-55, false, c_MIN_STR_ARRAY_LEN, c_MAX_STR_ARRAY_LEN);
- separator = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- startIndex = GetInt32(0, strs.GetLength(0) - 1);
- count = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- joinedStr = string.Join(separator, strs, startIndex, count);
-
- expectedValue = true;
- actualValue = (joinedStr == String.Empty);
- if (expectedValue != actualValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- 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);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest3: Separator is null, random string array, positive count";
- const string c_TEST_ID = "P003";
-
- string separator, joinedStr;
- int startIndex, count;
- bool condition1 = false; //Used to verify the element of the string array
- bool condition2 = false; //used to verify the separator
- bool expectedValue, actualValue;
- int i, j, startIndex1, startIndex2;
- string[] strs;
-
- strs = TestLibrary.Generator.GetStrings(-55, false, c_MIN_STR_ARRAY_LEN, c_MAX_STR_ARRAY_LEN);
- separator = null;
- startIndex = GetInt32(0, strs.GetLength(0) - 1);
- count = GetInt32(1, strs.GetLength(0) - startIndex);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- joinedStr = string.Join(separator, strs, startIndex, count);
-
- separator = string.Empty;
- string[] strsUsed = new string[count];
- for (int m = 0; m < count; m++)
- {
- strsUsed[m] = strs[startIndex + m];
- }
-
- i = GetInt32(0, strsUsed.GetLength(0) - 1);
-
- //Get source array element's start position of the joined string
- startIndex1 = 0;
- for (int m = i; m > 0; )
- {
- startIndex1 += separator.Length + strsUsed[--m].Length;
- }
-
- condition1 = (0 == String.CompareOrdinal(joinedStr.Substring(startIndex1, strsUsed[i].Length), strsUsed[i]));
-
- if (strsUsed.GetLength(0) > 1)
- {
- //Index of separator
- j = GetInt32(0, strsUsed.GetLength(0) - 2);
- startIndex2 = 0;
- while (j > 0)
- {
- startIndex2 += strsUsed[j--].Length + separator.Length;
- }
- startIndex2 += strsUsed[0].Length;
- condition2 = (0 == String.CompareOrdinal(joinedStr.Substring(startIndex2, separator.Length), separator));
- }
- else
- {
- condition2 = true;
- }
-
- expectedValue = true;
- actualValue = condition1 && condition2;
- if (expectedValue != actualValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- 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);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest4: Start element is the last element of array, count of joined is 1";
- const string c_TEST_ID = "P004";
-
- string separator, joinedStr;
- int startIndex, count;
- bool condition1 = false; //Used to verify the element of the string array
- bool condition2 = false; //used to verify the separator
- bool expectedValue, actualValue;
- int i, j, startIndex1, startIndex2;
- string[] strs;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- strs = TestLibrary.Generator.GetStrings(-55, false, c_MIN_STR_ARRAY_LEN, c_MAX_STR_ARRAY_LEN);
- //strs = new string[] { "AAAA", "BBBBB", "CCCCCC", "ddd", "EEEE"};
- separator = TestLibrary.Generator.GetString(-55, false, 1, c_MAX_STRING_LEN);
- //separator = "&&";
- startIndex = strs.GetLength(0) - 1;
- count = GetInt32(1, strs.GetLength(0) - startIndex);
- count = 1;
-
- try
- {
- joinedStr = string.Join(separator, strs, startIndex, count);
-
- string[] strsUsed = new string[count];
- for (int m = 0; m < count; m++)
- {
- strsUsed[m] = strs[startIndex + m];
- }
-
- i = GetInt32(0, strsUsed.GetLength(0) - 1);
- //i = 1;
-
- //Get source array element's start position of the joined string
- startIndex1 = 0;
- for (int m = i; m > 0; )
- {
- startIndex1 += separator.Length + strsUsed[--m].Length;
- }
-
- condition1 = (0 == String.CompareOrdinal(joinedStr.Substring(startIndex1, strsUsed[i].Length), strsUsed[i]));
-
- if (strsUsed.GetLength(0) > 1)
- {
- //Index of separator
- j = GetInt32(0, strsUsed.GetLength(0) - 2);
- startIndex2 = 0;
- while (j > 0)
- {
- startIndex2 += strsUsed[j--].Length + separator.Length;
- }
- startIndex2 += strsUsed[0].Length;
- condition2 = (0 == String.CompareOrdinal(joinedStr.Substring(startIndex2, separator.Length), separator));
- }
- else
- {
- condition2 = true;
- }
-
- expectedValue = true;
- actualValue = condition1 && condition2;
- if (expectedValue != actualValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strs, separator, startIndex, count);
- 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 + GetDataString(strs, separator, startIndex, count));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest5: Start element is the first element of array, join all elements of array";
- const string c_TEST_ID = "P005";
-
- string separator, joinedStr;
- int startIndex, count;
- bool condition1 = false; //Used to verify the element of the string array
- bool condition2 = false; //used to verify the separator
- bool expectedValue, actualValue;
- int i, j, startIndex1, startIndex2;
- string[] strs;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
-
- strs = TestLibrary.Generator.GetStrings(-55, false, c_MIN_STR_ARRAY_LEN, c_MAX_STR_ARRAY_LEN);
- separator = TestLibrary.Generator.GetString(-55, false, 1, c_MAX_STRING_LEN);
- startIndex =0;
- count =strs.GetLength(0);
-
- try
- {
- joinedStr = string.Join(separator, strs, startIndex, count);
-
- string[] strsUsed = new string[count];
- for (int m = 0; m < count; m++)
- {
- strsUsed[m] = strs[startIndex + m];
- }
-
- i = GetInt32(0, strsUsed.GetLength(0) - 1);
- //i = 1;
-
- //Get source array element's start position of the joined string
- startIndex1 = 0;
- for (int m = i; m > 0; )
- {
- startIndex1 += separator.Length + strsUsed[--m].Length;
- }
-
- condition1 = (0 == String.CompareOrdinal(joinedStr.Substring(startIndex1, strsUsed[i].Length), strsUsed[i]));
-
- if (strsUsed.GetLength(0) > 1)
- {
- //Index of separator
- j = GetInt32(0, strsUsed.GetLength(0) - 2);
- startIndex2 = 0;
- while (j > 0)
- {
- startIndex2 += strsUsed[j--].Length + separator.Length;
- }
- startIndex2 += strsUsed[0].Length;
- condition2 = (0 == String.CompareOrdinal(joinedStr.Substring(startIndex2, separator.Length), separator));
- }
- else
- {
- condition2 = true;
- }
-
- expectedValue = true;
- actualValue = condition1 && condition2;
- if (expectedValue != actualValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strs, separator, startIndex, count);
- TestLibrary.TestFramework.LogError("009" + "TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e + GetDataString(strs, separator, startIndex, count));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #region Negative test scenairos
-
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest1: The string array is a null reference";
- const string c_TEST_ID = "N001";
-
- string separator;
- string[] strs;
- int startIndex, count;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- separator = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- strs = null;
- startIndex = 0;
- count = 0;
-
- String.Join(separator, strs, startIndex, count);
- TestLibrary.TestFramework.LogError("011" + "TestId-" + c_TEST_ID, "ArgumentNullException is not thrown as expected");
- retVal = false;
- }
- catch (ArgumentNullException)
- {}
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest2: The start index of array is a negative value";
- const string c_TEST_ID = "N002";
-
- string separator;
- string[] strs;
- int startIndex, count;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- separator = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- strs = TestLibrary.Generator.GetStrings(-55, false, c_MIN_STR_ARRAY_LEN, c_MAX_STR_ARRAY_LEN);
- startIndex = -1 * TestLibrary.Generator.GetInt32(-55) - 1;
- count = 0;
-
- String.Join(separator, strs, startIndex, count);
- TestLibrary.TestFramework.LogError("013" + "TestId-" + c_TEST_ID, "ArgumentOutOfRangeException is not thrown as expected");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("014" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest3: The count of array elements to join is a negative value";
- const string c_TEST_ID = "N003";
-
- string separator;
- string[] strs;
- int startIndex, count;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- separator = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- strs = TestLibrary.Generator.GetStrings(-55, false, c_MIN_STR_ARRAY_LEN, c_MAX_STR_ARRAY_LEN);
- startIndex = 0;
- count = -1 * TestLibrary.Generator.GetInt32(-55) - 1;
-
- String.Join(separator, strs, startIndex, count);
- TestLibrary.TestFramework.LogError("015" + "TestId-" + c_TEST_ID, "ArgumentOutOfRangeException is not thrown as expected");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("016" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest4()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest4: The start index plus joined count is greater than numbers of elements in string array";
- const string c_TEST_ID = "N004";
-
- string separator;
- string[] strs;
- int startIndex, count;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- separator = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- strs = TestLibrary.Generator.GetStrings(-55, false, c_MIN_STR_ARRAY_LEN, c_MAX_STR_ARRAY_LEN);
- startIndex = TestLibrary.Generator.GetInt32(-55);
- count = strs.GetLength(0) - startIndex + GetInt32(1, Int32.MaxValue - strs.GetLength(0));
-
- String.Join(separator, strs, startIndex, count);
- TestLibrary.TestFramework.LogError("017" + "TestId-" + c_TEST_ID, "ArgumentOutOfRangeException is not thrown as expected");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("018" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest5() //bug
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest5: Out of memory";
- const string c_TEST_ID = "N005";
-
- string separator;
- string[] strs;
- int startIndex, count;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- separator = new string(TestLibrary.Generator.GetChar(-55), c_SUPER_MAX_INTEGER);
- strs = new string[c_SUPER_MAX_INTEGER];
-
- //for (int i = 0; i < strs.GetLength(0); i++)
- //{
- // strs[i] = new string(TestLibrary.Generator.GetChar(-55), 1);
- //}
-
- startIndex = 0;
- count = strs.GetLength(0);
-
- string joinedStr = String.Join(separator, strs, startIndex, count);
- TestLibrary.TestFramework.LogError("019" + "TestId-" + c_TEST_ID, "OutOfMemoryException is not thrown as expected");
- retVal = false;
- }
- catch (OutOfMemoryException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("020" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #region helper methods for generating test data
-
- private bool GetBoolean()
- {
- Int32 i = this.GetInt32(1, 2);
- return (i == 1) ? true : false;
- }
-
- //Get a non-negative integer between minValue and maxValue
- private Int32 GetInt32(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;
- }
-
- private Int32 Min(Int32 i1, Int32 i2)
- {
- return (i1 <= i2) ? i1 : i2;
- }
-
- private Int32 Max(Int32 i1, Int32 i2)
- {
- return (i1 >= i2) ? i1 : i2;
- }
-
- #endregion
-
- private string GetDataString(string[] strs, string separator, int startIndex, int count)
- {
- string str1, str2, str;
- int len1, len2;
- str2 = string.Empty;
-
- if (null == separator)
- {
- str1 = "null";
- len1 = 0;
- }
- else
- {
- str1 = separator;
- len1 = separator.Length;
- }
- if (null == strs)
- {
- str2 = "null";
- len2 = 0;
- }
- else
- {
- len2 = strs.GetLength(0);
- for (int i = 0; i < len2; i++)
- {
- str2 += "\n" + strs[i];
- }
- }
-
- str = string.Format("\n[String array value]\n \"{0}\"", str2);
- str += string.Format("\n[Separator string value]\n \"{0}\"", str1);
- str += string.Format("\n[Length of string array]\n \"{0}\"", len2);
- str += string.Format("\n[Length of separator string]\n \"{0}\"", len1);
- str += string.Format("\n[Joined elements start index]: {0}", startIndex);
- str += string.Format("\n[Joined elements count]: {0}", count);
-
- return str;
- }
-}
-
+++ /dev/null
-// 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;
-
-/// <summary>
-/// String.Length
-/// </summary>
-public class StringLength
-{
- private int c_MINI_STRING_LENGTH = 8;
- private int c_MAX_STRING_LENGTH = 256;
-
- public static int Main()
- {
- StringLength sl = new StringLength();
- TestLibrary.TestFramework.BeginTestCase("StringLength");
-
- if (sl.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 PositiveTesting
- public bool PosTest1()
- {
- bool retVal = true;
- string strA;
- int ActualResult;
- TestLibrary.TestFramework.BeginScenario("PosTest1: empty string length");
-
- try
- {
- strA = string.Empty;
- ActualResult = strA.Length;
- if (ActualResult != 0)
- {
- TestLibrary.TestFramework.LogError("001", "empty string length ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
- string strA;
- int ActualResult;
- TestLibrary.TestFramework.BeginScenario("PosTest2: string with special symbols length one");
-
- try
- {
- strA = "hello\u0061\u030aworld";
- ActualResult = strA.Length;
- if (ActualResult != 12)
- {
- TestLibrary.TestFramework.LogError("003", "string with special symbols length one ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
- string strA;
- int ActualResult;
- TestLibrary.TestFramework.BeginScenario("PosTest3: string with special symbols length two");
-
- try
- {
- strA = "This\0String\0Is\0Valid";
- ActualResult = strA.Length;
- if (ActualResult != 20)
- {
- TestLibrary.TestFramework.LogError("005", "string with special symbols length two ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest4()
- {
- bool retVal = true;
- string strA;
- int ActualResult;
- TestLibrary.TestFramework.BeginScenario("PosTest4: normal string length");
- try
- {
- strA = new string(this.GetChar(c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH), c_MAX_STRING_LENGTH);
- ActualResult = strA.Length;
- if (ActualResult != c_MAX_STRING_LENGTH)
- {
- TestLibrary.TestFramework.LogError("007", "normal string length ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region Help method for geting test data
- private Int32 GetInt32(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;
- }
- private Char GetChar(Int32 minValue, Int32 maxValue)
- {
- try
- {
- if (minValue == maxValue)
- {
- return Convert.ToChar(minValue);
- }
- if (minValue < maxValue)
- {
- return Convert.ToChar(Convert.ToInt32(TestLibrary.Generator.GetChar(-55)) % (maxValue - minValue) + minValue);
- }
- }
- catch
- {
- throw;
- }
- return Convert.ToChar(minValue);
- }
- private string GetString(bool ValidPath, Int32 minValue, Int32 maxValue)
- {
- StringBuilder sVal = new StringBuilder();
- string s;
-
- if (0 == minValue && 0 == maxValue) return String.Empty;
- if (minValue > maxValue) return null;
-
- if (ValidPath)
- {
- return TestLibrary.Generator.GetString(-55, ValidPath, minValue, maxValue);
- }
- else
- {
- int length = this.GetInt32(minValue, maxValue);
- for (int i = 0; length > i; i++)
- {
- char c = this.GetChar(minValue, maxValue);
- sVal.Append(c);
- }
- s = sVal.ToString();
- return s;
- }
-
-
- }
- #endregion
-}
-
+++ /dev/null
-// 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.Threading;
-using System.Globalization;
-using TestLibrary;
-
-class StringPadLeft
-{
- static int Main()
- {
- StringPadLeft test = new StringPadLeft();
-
- TestFramework.BeginTestCase("String.PadLeft");
-
- if (test.RunTests())
- {
- TestFramework.EndTestCase();
- TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestFramework.EndTestCase();
- TestFramework.LogInformation("FAIL");
- return 0;
- }
-
- }
-
- public bool RunTests()
- {
- bool ret = true;
-
- // Positive Tests
- ret &= Test1();
- ret &= Test2();
- ret &= Test3();
- ret &= Test4();
- ret &= Test5();
- ret &= Test6();
- ret &= Test7();
- ret &= Test8();
-
- return ret;
- }
-
- public bool Test1() { return PositiveTest("TestString", 15, " TestString", "00A"); }
- public bool Test2() { return PositiveTest("", 5000, new string(' ', 5000), "00B"); }
- public bool Test3() { return PositiveTest("TestString", 10, "TestString", "00B1"); }
- public bool Test4() { return PositiveTest("TestString", 6, "TestString", "00B2"); }
- public bool Test5() { return PositiveTest2("TestString", 15, '*', "*****TestString", "00C"); }
- public bool Test6() { return PositiveTest2("", 5000, '*', new string('*', 5000), "00D"); }
- public bool Test7() { return PositiveTest2("TestString", 100, '\0', new string('\0', 90) + "TestString", "00E"); }
- public bool Test8() { return PositiveTest2("TestString", 100, '\u0400', new string('\u0400', 90) + "TestString", "00F"); }
-
-
- public bool PositiveTest(string str1, int totalWidth, string expected, string id)
- {
- bool result = true;
- TestFramework.BeginScenario(id + ": Padding " + str1 + " to " + totalWidth);
- try
- {
- string output = str1.PadLeft(totalWidth);
- if (output != expected)
- {
- result = false;
- TestFramework.LogError("001", "Error in " + id + ", unexpected padding result. Actual string " + output + ", Expected: " + expected);
- }
- }
- catch (Exception exc)
- {
- result = false;
- TestFramework.LogError("002", "Unexpected exception in " + id + ", excpetion: " + exc.ToString());
- }
- return result;
- }
-
- public bool PositiveTest2(string str1, int totalWidth, char padder, string expected, string id)
- {
- bool result = true;
- TestFramework.BeginScenario(id + ": Padding " + str1 + " to " + totalWidth);
- try
- {
- string output = str1.PadLeft(totalWidth, padder);
- if (output != expected)
- {
- result = false;
- TestFramework.LogError("001", "Error in " + id + ", unexpected padding result. Actual string " + output + ", Expected: " + expected);
- }
- }
- catch (Exception exc)
- {
- result = false;
- TestFramework.LogError("002", "Unexpected exception in " + id + ", excpetion: " + exc.ToString());
- }
- return result;
- }
-
-}
\ No newline at end of file
+++ /dev/null
-// 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>
-/// String.PadLeft(Int32)
-/// Right-aligns the characters in this instance,
-/// padding with spaces on the left for a specified total length
-/// </summary>
-public class StringPadLeft1
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- private const int c_MAX_SHORT_STR_LEN = 31;//short string (<32 chars)
- private const int c_MIN_LONG_STR_LEN = 257;//long string ( >256 chars)
- private const int c_MAX_LONG_STR_LEN = 65535;
-
- public static int Main()
- {
- StringPadLeft1 spl = new StringPadLeft1();
-
- TestLibrary.TestFramework.BeginTestCase("for method: System.String.PadLeft(Int32)");
- if (spl.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;
- retVal = NegTest2() && retVal;
-
- return retVal;
- }
-
- #region Positive test scenarios
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest1: Total width is greater than old string length";
- const string c_TEST_ID = "P001";
-
- int totalWidth;
- string str;
- bool condition1 = false; //Verify the space paded
- bool condition2 = false; //Verify the old string
- bool expectedValue = true;
- bool actualValue = false;
-
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- //str = "hello";
- totalWidth = GetInt32(str.Length + 1, str.Length + c_MAX_STRING_LEN);
- //totalWidth = 8;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string strPaded = str.PadLeft(totalWidth);
-
- char[] trimChs = new char[] {'\x0020'};
- string spaces = new string('\x0020', totalWidth - str.Length);
-
- string spacesPaded = strPaded.Substring(0, totalWidth - str.Length);
- condition1 = (string.CompareOrdinal(spaces, spacesPaded) == 0);
- condition2 = (string.CompareOrdinal(strPaded.TrimStart(trimChs), str) == 0);
- actualValue = condition1 && condition2;
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(str, totalWidth);
- 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 + GetDataString(str, totalWidth));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest2: 0 <= total width <= old string length";
- const string c_TEST_ID = "P002";
-
- int totalWidth;
- string str;
- bool expectedValue = true;
- bool actualValue = false;
-
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- totalWidth = GetInt32(0, str.Length - 1);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string strPaded = str.PadLeft(totalWidth);
- actualValue = (0 == string.CompareOrdinal(strPaded, str));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(str, totalWidth);
- 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 + GetDataString(str, totalWidth));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #region Negative test scenarios
-
- //ArgumentException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest1: Total width is less than zero. ";
- const string c_TEST_ID = "N001";
-
- int totalWidth;
- string str;
-
- totalWidth = -1 * TestLibrary.Generator.GetInt32(-55) - 1;
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str.PadLeft(totalWidth);
- TestLibrary.TestFramework.LogError("005" + "TestId-" + c_TEST_ID, "ArgumentException is not thrown as expected" + GetDataString(str, totalWidth));
- retVal = false;
- }
- catch (ArgumentException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e +GetDataString(str, totalWidth));
- retVal = false;
- }
-
- return retVal;
- }
-
- //OutOfMemoryException
- public bool NegTest2() // bug 8-8-2006 Noter(v-yaduoj)
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest2: Too great width ";
- const string c_TEST_ID = "N002";
-
- int totalWidth;
- string str;
-
- totalWidth = Int32.MaxValue;
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str.PadLeft(totalWidth);
- TestLibrary.TestFramework.LogError("007" + "TestId-" + c_TEST_ID, "OutOfMemoryException is not thrown as expected" + GetDataString(str, totalWidth));
- retVal = false;
- }
- catch (OutOfMemoryException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e + GetDataString(str, totalWidth));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #region helper methods for generating test data
-
- private bool GetBoolean()
- {
- Int32 i = this.GetInt32(1, 2);
- return (i == 1) ? true : false;
- }
-
- //Get a non-negative integer between minValue and maxValue
- private Int32 GetInt32(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;
- }
-
- private Int32 Min(Int32 i1, Int32 i2)
- {
- return (i1 <= i2) ? i1 : i2;
- }
-
- private Int32 Max(Int32 i1, Int32 i2)
- {
- return (i1 >= i2) ? i1 : i2;
- }
-
- #endregion
-
- private string GetDataString(string strSrc, int totalWidth)
- {
- string str1, str;
- int len1;
-
- if (null == strSrc)
- {
- str1 = "null";
- len1 = 0;
- }
- else
- {
- str1 = strSrc;
- len1 = strSrc.Length;
- }
-
- str = string.Format("\n[Source string value]\n \"{0}\"", str1);
- str += string.Format("\n[Length of source string]\n {0}", len1);
- str += string.Format("\n[Total width]\n{0}", totalWidth);
-
- return str;
- }
-
-}
+++ /dev/null
-// 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>
-/// String.PadLeft(Int32, Char)
-/// Right-aligns the characters in this instance,
-/// padding on the left with a specified Unicode character for a specified total length.
-/// </summary>
-public class StringPadLeft2
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- private const int c_MAX_SHORT_STR_LEN = 31;//short string (<32 chars)
- private const int c_MIN_LONG_STR_LEN = 257;//long string ( >256 chars)
- private const int c_MAX_LONG_STR_LEN = 65535;
-
- public static int Main()
- {
- StringPadLeft2 spl = new StringPadLeft2();
-
- TestLibrary.TestFramework.BeginTestCase("for method: System.String.PadLeft(Int32, Char)");
- if (spl.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;
- retVal = NegTest2() && retVal;
-
- return retVal;
- }
-
- #region Positive test scenarios
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest1: Total width is greater than old string length";
- const string c_TEST_ID = "P001";
-
- int totalWidth;
- char ch;
- string str;
- bool condition1 = false; //Verify the space paded
- bool condition2 = false; //Verify the old string
- bool expectedValue = true;
- bool actualValue = false;
-
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- //str = "hello";
- totalWidth = GetInt32(str.Length + 1, str.Length + c_MAX_STRING_LEN);
- //totalWidth = 8;
- ch = TestLibrary.Generator.GetChar(-55);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string strPaded = str.PadLeft(totalWidth, ch);
-
- char[] trimChs = new char[] {ch};
- string spaces = new string(ch, totalWidth - str.Length);
-
- string spacesPaded = strPaded.Substring(0, totalWidth - str.Length);
- condition1 = (string.CompareOrdinal(spaces, spacesPaded) == 0);
- condition2 = (string.CompareOrdinal(strPaded.TrimStart(trimChs), str) == 0);
- actualValue = condition1 && condition2;
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(str, totalWidth, ch);
- 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 + GetDataString(str, totalWidth, ch));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest2: 0 <= total width <= old string length";
- const string c_TEST_ID = "P002";
-
- int totalWidth;
- char ch;
- string str;
- bool expectedValue = true;
- bool actualValue = false;
-
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- totalWidth = GetInt32(0, str.Length - 1);
- ch = TestLibrary.Generator.GetChar(-55);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string strPaded = str.PadLeft(totalWidth, ch);
- actualValue = (0 == string.CompareOrdinal(strPaded, str));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(str, totalWidth, ch);
- 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 + GetDataString(str, totalWidth, ch));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #region Negative test scenarios
-
- //ArgumentException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest1: Total width is less than zero. ";
- const string c_TEST_ID = "N001";
-
- int totalWidth;
- char ch;
- string str;
-
- totalWidth = -1 * TestLibrary.Generator.GetInt32(-55) - 1;
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- ch = TestLibrary.Generator.GetChar(-55);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str.PadLeft(totalWidth);
- TestLibrary.TestFramework.LogError("005" + "TestId-" + c_TEST_ID, "ArgumentException is not thrown as expected" + GetDataString(str, totalWidth, ch));
- retVal = false;
- }
- catch (ArgumentException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e +GetDataString(str, totalWidth, ch));
- retVal = false;
- }
-
- return retVal;
- }
-
- //OutOfMemoryException
- public bool NegTest2() // bug 8-8-2006 Noter(v-yaduoj)
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest2: Too great width ";
- const string c_TEST_ID = "N002";
-
- int totalWidth;
- char ch;
- string str;
-
- totalWidth = Int32.MaxValue;
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- ch = TestLibrary.Generator.GetChar(-55);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str.PadLeft(totalWidth,ch);
- TestLibrary.TestFramework.LogError("007" + "TestId-" + c_TEST_ID, "OutOfMemoryException is not thrown as expected" + GetDataString(str, totalWidth,ch));
- retVal = false;
- }
- catch (OutOfMemoryException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e + GetDataString(str, totalWidth, ch));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #region helper methods for generating test data
-
- private bool GetBoolean()
- {
- Int32 i = this.GetInt32(1, 2);
- return (i == 1) ? true : false;
- }
-
- //Get a non-negative integer between minValue and maxValue
- private Int32 GetInt32(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;
- }
-
- private Int32 Min(Int32 i1, Int32 i2)
- {
- return (i1 <= i2) ? i1 : i2;
- }
-
- private Int32 Max(Int32 i1, Int32 i2)
- {
- return (i1 >= i2) ? i1 : i2;
- }
-
- #endregion
-
- private string GetDataString(string strSrc, int totalWidth, char ch)
- {
- string str1, str;
- int len1;
-
- if (null == strSrc)
- {
- str1 = "null";
- len1 = 0;
- }
- else
- {
- str1 = strSrc;
- len1 = strSrc.Length;
- }
-
- str = string.Format("\n[Source string value]\n \"{0}\"", str1);
- str += string.Format("\n[Length of source string]\n {0}", len1);
- str += string.Format("\n[Total width]\n{0}", totalWidth);
- str += string.Format("\n[Padding character]\n{0}", ch);
-
- return str;
- }
-
-}
+++ /dev/null
-// 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.Threading;
-using System.Globalization;
-using TestLibrary;
-
-class StringPadRight
-{
- static int Main()
- {
- StringPadRight test = new StringPadRight();
-
- TestFramework.BeginTestCase("String.PadRight");
-
- if (test.RunTests())
- {
- TestFramework.EndTestCase();
- TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestFramework.EndTestCase();
- TestFramework.LogInformation("FAIL");
- return 0;
- }
-
- }
-
- public bool RunTests()
- {
- bool ret = true;
-
- // Positive Tests
- ret &= Test1();
- ret &= Test2();
- ret &= Test3();
- ret &= Test4();
- ret &= Test5();
- ret &= Test6();
- ret &= Test7();
- ret &= Test8();
-
- return ret;
- }
-
- public bool Test1() { return PositiveTest("TestString", 15, "TestString ", "00A"); }
- public bool Test2() { return PositiveTest("", 5000, new string(' ', 5000), "00B"); }
- public bool Test3() { return PositiveTest("TestString", 10, "TestString", "00B1"); }
- public bool Test4() { return PositiveTest("TestString", 6, "TestString", "00B2"); }
- public bool Test5() { return PositiveTest2("TestString", 15, '*', "TestString*****", "00C"); }
- public bool Test6() { return PositiveTest2("", 5000, '*', new string('*', 5000), "00D"); }
- public bool Test7() { return PositiveTest2("TestString", 100, '\0', "TestString" + new string('\0', 90), "00E"); }
- public bool Test8() { return PositiveTest2("TestString", 100, '\u0400', "TestString" + new string('\u0400', 90), "00F"); }
-
-
- public bool PositiveTest(string str1, int totalWidth, string expected, string id)
- {
- bool result = true;
- TestFramework.BeginScenario(id + ": Padding " + str1 + " to " + totalWidth);
- try
- {
- string output = str1.PadRight(totalWidth);
- if (output != expected)
- {
- result = false;
- TestFramework.LogError("001", "Error in " + id + ", unexpected padding result. Actual string " + output + ", Expected: " + expected);
- }
- }
- catch (Exception exc)
- {
- result = false;
- TestFramework.LogError("002", "Unexpected exception in " + id + ", excpetion: " + exc.ToString());
- }
- return result;
- }
-
- public bool PositiveTest2(string str1, int totalWidth, char padder, string expected, string id)
- {
- bool result = true;
- TestFramework.BeginScenario(id + ": Padding " + str1 + " to " + totalWidth);
- try
- {
- string output = str1.PadRight(totalWidth, padder);
- if (output != expected)
- {
- result = false;
- TestFramework.LogError("001", "Error in " + id + ", unexpected padding result. Actual string " + output + ", Expected: " + expected);
- }
- }
- catch (Exception exc)
- {
- result = false;
- TestFramework.LogError("002", "Unexpected exception in " + id + ", excpetion: " + exc.ToString());
- }
- return result;
- }
-
-}
\ No newline at end of file
+++ /dev/null
-// 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>
-/// String.PadRight(Int32)
-/// Right-aligns the characters in this instance,
-/// padding with spaces on the left for a specified total length
-/// </summary>
-public class StringPadRight1
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- private const int c_MAX_SHORT_STR_LEN = 31;//short string (<32 chars)
- private const int c_MIN_LONG_STR_LEN = 257;//long string ( >256 chars)
- private const int c_MAX_LONG_STR_LEN = 65535;
-
- public static int Main()
- {
- StringPadRight1 spl = new StringPadRight1();
-
- TestLibrary.TestFramework.BeginTestCase("for method: System.String.PadRight(Int32)");
- if (spl.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;
- retVal = NegTest2() && retVal;
-
- return retVal;
- }
-
- #region Positive test scenarios
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest1: Total width is greater than old string length";
- const string c_TEST_ID = "P001";
-
- int totalWidth;
- string str;
- bool condition1 = false; //Verify the space paded
- bool condition2 = false; //Verify the old string
- bool expectedValue = true;
- bool actualValue = false;
-
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- //str = "hello";
- totalWidth = GetInt32(str.Length + 1, str.Length + c_MAX_STRING_LEN);
- //totalWidth = 8;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string strPaded = str.PadRight(totalWidth);
-
- char[] trimChs = new char[] {'\x0020'};
- string spaces = new string('\x0020', totalWidth - str.Length);
-
- string spacesPaded = strPaded.Substring(str.Length, totalWidth - str.Length);
- condition1 = (string.CompareOrdinal(spaces, spacesPaded) == 0);
- condition2 = (string.CompareOrdinal(strPaded.TrimEnd(trimChs), str) == 0);
- actualValue = condition1 && condition2;
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(str, totalWidth);
- 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 + GetDataString(str, totalWidth));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest2: 0 <= total width <= old string length";
- const string c_TEST_ID = "P002";
-
- int totalWidth;
- string str;
- bool expectedValue = true;
- bool actualValue = false;
-
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- totalWidth = GetInt32(0, str.Length - 1);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string strPaded = str.PadRight(totalWidth);
- actualValue = (0 == string.CompareOrdinal(strPaded, str));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(str, totalWidth);
- 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 + GetDataString(str, totalWidth));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #region Negative test scenarios
-
- //ArgumentException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest1: Total width is less than zero. ";
- const string c_TEST_ID = "N001";
-
- int totalWidth;
- string str;
-
- totalWidth = -1 * TestLibrary.Generator.GetInt32(-55) - 1;
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str.PadRight(totalWidth);
- TestLibrary.TestFramework.LogError("005" + "TestId-" + c_TEST_ID, "ArgumentException is not thrown as expected" + GetDataString(str, totalWidth));
- retVal = false;
- }
- catch (ArgumentException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e +GetDataString(str, totalWidth));
- retVal = false;
- }
-
- return retVal;
- }
-
- //OutOfMemoryException
- public bool NegTest2() // bug 8-8-2006 Noter(v-yaduoj)
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest2: Too great width ";
- const string c_TEST_ID = "N002";
-
- int totalWidth;
- string str;
-
- totalWidth = Int32.MaxValue;
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str.PadRight(totalWidth);
- TestLibrary.TestFramework.LogError("007" + "TestId-" + c_TEST_ID, "OutOfMemoryException is not thrown as expected" + GetDataString(str, totalWidth));
- retVal = false;
- }
- catch (OutOfMemoryException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e + GetDataString(str, totalWidth));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #region helper methods for generating test data
-
- private bool GetBoolean()
- {
- Int32 i = this.GetInt32(1, 2);
- return (i == 1) ? true : false;
- }
-
- //Get a non-negative integer between minValue and maxValue
- private Int32 GetInt32(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;
- }
-
- private Int32 Min(Int32 i1, Int32 i2)
- {
- return (i1 <= i2) ? i1 : i2;
- }
-
- private Int32 Max(Int32 i1, Int32 i2)
- {
- return (i1 >= i2) ? i1 : i2;
- }
-
- #endregion
-
- private string GetDataString(string strSrc, int totalWidth)
- {
- string str1, str;
- int len1;
-
- if (null == strSrc)
- {
- str1 = "null";
- len1 = 0;
- }
- else
- {
- str1 = strSrc;
- len1 = strSrc.Length;
- }
-
- str = string.Format("\n[Source string value]\n \"{0}\"", str1);
- str += string.Format("\n[Length of source string]\n {0}", len1);
- str += string.Format("\n[Total width]\n{0}", totalWidth);
-
- return str;
- }
-
-}
+++ /dev/null
-// 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>
-/// String.PadRight(Int32, Char)
-/// Right-aligns the characters in this instance,
-/// padding on the left with a specified Unicode character for a specified total length.
-/// </summary>
-public class StringPadRight2
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- private const int c_MAX_SHORT_STR_LEN = 31;//short string (<32 chars)
- private const int c_MIN_LONG_STR_LEN = 257;//long string ( >256 chars)
- private const int c_MAX_LONG_STR_LEN = 65535;
-
- public static int Main()
- {
- StringPadRight2 spl = new StringPadRight2();
-
- TestLibrary.TestFramework.BeginTestCase("for method: System.String.PadRight(Int32, Char)");
- if (spl.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;
- retVal = NegTest2() && retVal;
-
- return retVal;
- }
-
- #region Positive test scenarios
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest1: Total width is greater than old string length";
- const string c_TEST_ID = "P001";
-
- int totalWidth;
- char ch;
- string str;
- bool condition1 = false; //Verify the space paded
- bool condition2 = false; //Verify the old string
- bool expectedValue = true;
- bool actualValue = false;
-
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- //str = "hello";
- totalWidth = GetInt32(str.Length + 1, str.Length + c_MAX_STRING_LEN);
- //totalWidth = 8;
- ch = TestLibrary.Generator.GetChar(-55);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string strPaded = str.PadRight(totalWidth, ch);
-
- char[] trimChs = new char[] {ch};
- string spaces = new string(ch, totalWidth - str.Length);
-
- string spacesPaded = strPaded.Substring(str.Length, totalWidth - str.Length);
- condition1 = (string.CompareOrdinal(spaces, spacesPaded) == 0);
- condition2 = (string.CompareOrdinal(strPaded.TrimEnd(trimChs), str) == 0);
- actualValue = condition1 && condition2;
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(str, totalWidth, ch);
- 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 + GetDataString(str, totalWidth, ch));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest2: 0 <= total width <= old string length";
- const string c_TEST_ID = "P002";
-
- int totalWidth;
- char ch;
- string str;
- bool expectedValue = true;
- bool actualValue = false;
-
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- totalWidth = GetInt32(0, str.Length - 1);
- ch = TestLibrary.Generator.GetChar(-55);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string strPaded = str.PadRight(totalWidth, ch);
- actualValue = (0 == string.CompareOrdinal(strPaded, str));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(str, totalWidth, ch);
- 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 + GetDataString(str, totalWidth, ch));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #region Negative test scenarios
-
- //ArgumentException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest1: Total width is less than zero. ";
- const string c_TEST_ID = "N001";
-
- int totalWidth;
- char ch;
- string str;
-
- totalWidth = -1 * TestLibrary.Generator.GetInt32(-55) - 1;
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- ch = TestLibrary.Generator.GetChar(-55);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str.PadRight(totalWidth);
- TestLibrary.TestFramework.LogError("005" + "TestId-" + c_TEST_ID, "ArgumentException is not thrown as expected" + GetDataString(str, totalWidth, ch));
- retVal = false;
- }
- catch (ArgumentException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e +GetDataString(str, totalWidth, ch));
- retVal = false;
- }
-
- return retVal;
- }
-
- //OutOfMemoryException
- public bool NegTest2() // bug 8-8-2006 Noter(v-yaduoj)
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest2: Too great width ";
- const string c_TEST_ID = "N002";
-
- int totalWidth;
- char ch;
- string str;
-
- totalWidth = Int32.MaxValue;
- str = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- ch = TestLibrary.Generator.GetChar(-55);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- str.PadRight(totalWidth,ch);
- TestLibrary.TestFramework.LogError("007" + "TestId-" + c_TEST_ID, "OutOfMemoryException is not thrown as expected" + GetDataString(str, totalWidth,ch));
- retVal = false;
- }
- catch (OutOfMemoryException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008" + "TestId-" + c_TEST_ID, "Unexpected exception:" + e + GetDataString(str, totalWidth, ch));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #region helper methods for generating test data
-
- private bool GetBoolean()
- {
- Int32 i = this.GetInt32(1, 2);
- return (i == 1) ? true : false;
- }
-
- //Get a non-negative integer between minValue and maxValue
- private Int32 GetInt32(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;
- }
-
- private Int32 Min(Int32 i1, Int32 i2)
- {
- return (i1 <= i2) ? i1 : i2;
- }
-
- private Int32 Max(Int32 i1, Int32 i2)
- {
- return (i1 >= i2) ? i1 : i2;
- }
-
- #endregion
-
- private string GetDataString(string strSrc, int totalWidth, char ch)
- {
- string str1, str;
- int len1;
-
- if (null == strSrc)
- {
- str1 = "null";
- len1 = 0;
- }
- else
- {
- str1 = strSrc;
- len1 = strSrc.Length;
- }
-
- str = string.Format("\n[Source string value]\n \"{0}\"", str1);
- str += string.Format("\n[Length of source string]\n {0}", len1);
- str += string.Format("\n[Total width]\n{0}", totalWidth);
- str += string.Format("\n[Padding character]\n{0}", ch);
-
- return str;
- }
-
-}
+++ /dev/null
-// 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>
-/// String.Remove(Int32)
-/// Note: This method is new in the .NET Framework version 2.0.
-/// Deletes all the characters from this string beginning at a specified
-/// position and continuing through the last position.
-/// </summary>
-public class StringRemove1
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- private const int c_MAX_SHORT_STR_LEN = 31;//short string (<32 chars)
- private const int c_MIN_LONG_STR_LEN = 257;//long string ( >256 chars)
- private const int c_MAX_LONG_STR_LEN = 65535;
-
- public static int Main()
- {
- StringRemove1 sr = new StringRemove1();
-
- TestLibrary.TestFramework.BeginTestCase("for method: System.String.Remove(Int32)");
- if(sr.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;
- retVal = NegTest2() && retVal;
-
- return retVal;
- }
-
- #region Positive test scenarios
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest1: Valid start index between 0, source string's length minus 1";
- const string c_TEST_ID = "P001";
-
- string strSrc;
- int startIndex;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- startIndex = GetInt32(0, strSrc.Length - 1);
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string strReserved = strSrc.Remove(startIndex, strSrc.Length - startIndex);
-
- actualValue = (0 == string.CompareOrdinal(strReserved, strSrc.Substring(0, startIndex)));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, startIndex);
- 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 + GetDataString(strSrc, startIndex));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest2: Start index is zero";
- const string c_TEST_ID = "P002";
-
- string strSrc;
- int startIndex;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- startIndex = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string strReserved = strSrc.Remove(startIndex, strSrc.Length);
-
- actualValue = (0 == string.CompareOrdinal(strReserved, string.Empty));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, startIndex);
- 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 + GetDataString(strSrc, startIndex));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #region Negative test Scenarios
-
- //ArgumentOutOfRangeException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest1: Start index is too greater than source string's length";
- const string c_TEST_ID = "N001";
-
- string strSrc;
- int startIndex;
-
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- startIndex = GetInt32(strSrc.Length, Int32.MaxValue);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- strSrc.Remove(startIndex, strSrc.Length);
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, "ArgumentOutOfRangeException is not thrown as expected." + GetDataString(strSrc, startIndex));
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch(Exception e)
- {
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e + GetDataString(strSrc, startIndex));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest2: Start index is negative";
- const string c_TEST_ID = "N002";
-
- string strSrc;
- int startIndex;
-
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- startIndex = -1 * TestLibrary.Generator.GetInt32(-55) - 1;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- strSrc.Remove(startIndex, strSrc.Length);
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, "ArgumentOutOfRangeException is not thrown as expected." + GetDataString(strSrc, startIndex));
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e + GetDataString(strSrc, startIndex));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #region helper methods for generating test data
-
- private bool GetBoolean()
- {
- Int32 i = this.GetInt32(1, 2);
- return (i == 1) ? true : false;
- }
-
- //Get a non-negative integer between minValue and maxValue
- private Int32 GetInt32(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;
- }
-
- private Int32 Min(Int32 i1, Int32 i2)
- {
- return (i1 <= i2) ? i1 : i2;
- }
-
- private Int32 Max(Int32 i1, Int32 i2)
- {
- return (i1 >= i2) ? i1 : i2;
- }
-
- #endregion
-
- private string GetDataString(string strSrc, int startIndex)
- {
- string str1, str;
- int len1;
-
- if (null == strSrc)
- {
- str1 = "null";
- len1 = 0;
- }
- else
- {
- str1 = strSrc;
- len1 = strSrc.Length;
- }
-
- str = string.Format("\n[Source string value]\n \"{0}\"", str1);
- str += string.Format("\n[Length of source string]\n {0}", len1);
- str += string.Format("\n[Start index]\n{0}", startIndex);
-
- return str;
- }
-}
+++ /dev/null
-// 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>
-/// String.Remove(Int32, Int32)
-/// Deletes a specified number of characters from this instance
-/// beginning at a specified position.
-/// </summary>
-public class StringRemove2
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- private const int c_MAX_SHORT_STR_LEN = 31;//short string (<32 chars)
- private const int c_MIN_LONG_STR_LEN = 257;//long string ( >256 chars)
- private const int c_MAX_LONG_STR_LEN = 65535;
-
- public static int Main()
- {
- StringRemove2 sr = new StringRemove2();
-
- TestLibrary.TestFramework.BeginTestCase("for method: System.String.Remove(Int32, Int32)");
- if(sr.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("[Negative]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
- retVal = NegTest4() && retVal;
- retVal = NegTest5() && retVal;
-
- return retVal;
- }
-
- #region Positive test scenarios
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest1: Valid start index between 0, source string's length minus 1";
- const string c_TEST_ID = "P001";
-
- string strSrc;
- int startIndex, count;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- startIndex = GetInt32(0, strSrc.Length - 1);
- count = GetInt32(1, strSrc.Length - startIndex);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string strReserved = strSrc.Remove(startIndex, count);
-
- actualValue = (0 == string.CompareOrdinal(strReserved, strSrc.Substring(0, startIndex) + strSrc.Substring(startIndex + count)));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, startIndex, count);
- 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 + GetDataString(strSrc, startIndex, count));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest2: Start index is zero, count equals whole string length";
- const string c_TEST_ID = "P002";
-
- string strSrc;
- int startIndex, count;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- startIndex = 0;
- count = strSrc.Length;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string strReserved = strSrc.Remove(startIndex, count);
-
- actualValue = (0 == string.CompareOrdinal(strReserved, String.Empty));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, startIndex, count);
- 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 + GetDataString(strSrc, startIndex, count));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest3: Count is zero, valid start index";
- const string c_TEST_ID = "P003";
-
- string strSrc;
- int startIndex, count;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- startIndex = GetInt32(0, strSrc.Length - 1);
- count = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string strReserved = strSrc.Remove(startIndex, count);
-
- actualValue = (0 == string.CompareOrdinal(strReserved, strSrc));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, startIndex, count);
- 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 + GetDataString(strSrc, startIndex, count));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #region Negative test Scenarios
-
- //ArgumentOutOfRangeException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest1: Start index is too greater than source string's length";
- const string c_TEST_ID = "N001";
-
- string strSrc;
- int startIndex, count;
-
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- startIndex = GetInt32(strSrc.Length, Int32.MaxValue);
- count = GetInt32(0, strSrc.Length);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- strSrc.Remove(startIndex, count);
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, "ArgumentOutOfRangeException is not thrown as expected." + GetDataString(strSrc, startIndex, count));
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch(Exception e)
- {
- TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e + GetDataString(strSrc, startIndex, count));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest2: Valid start index plus count is greater than string length";
- const string c_TEST_ID = "N002";
-
- string strSrc;
- int startIndex, count;
-
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- startIndex = GetInt32(0, strSrc.Length - 1);
- count = GetInt32(strSrc.Length - startIndex + 1, Int32.MaxValue);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- strSrc.Remove(startIndex, count);
- TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, "ArgumentOutOfRangeException is not thrown as expected." + GetDataString(strSrc, startIndex, count));
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e + GetDataString(strSrc, startIndex, count));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest3: Valid count plus start index is greater than string length";
- const string c_TEST_ID = "N003";
-
- string strSrc;
- int startIndex, count;
-
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- count = GetInt32(0, strSrc.Length);
- startIndex = GetInt32(strSrc.Length - count + 1, Int32.MaxValue);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- strSrc.Remove(startIndex, count);
- TestLibrary.TestFramework.LogError("011" + " TestId-" + c_TEST_ID, "ArgumentOutOfRangeException is not thrown as expected." + GetDataString(strSrc, startIndex, count));
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e + GetDataString(strSrc, startIndex, count));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest4()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest4: Start index is negative, valid number of characters to delete";
- const string c_TEST_ID = "N004";
-
- string strSrc;
- int startIndex, count;
-
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- startIndex = -1 * TestLibrary.Generator.GetInt32(-55) - 1;
- count = GetInt32(0, strSrc.Length);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- strSrc.Remove(startIndex, count);
- TestLibrary.TestFramework.LogError("013" + " TestId-" + c_TEST_ID, "ArgumentOutOfRangeException is not thrown as expected." + GetDataString(strSrc, startIndex, count));
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("014" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e + GetDataString(strSrc, startIndex, count));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest5()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest5: Valid start index, negative count of characters to delete";
- const string c_TEST_ID = "N005";
-
- string strSrc;
- int startIndex, count;
-
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- startIndex = GetInt32(0, strSrc.Length - 1);
- count = -1 * TestLibrary.Generator.GetInt32(-55) - 1;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- strSrc.Remove(startIndex, count);
- TestLibrary.TestFramework.LogError("015" + " TestId-" + c_TEST_ID, "ArgumentOutOfRangeException is not thrown as expected." + GetDataString(strSrc, startIndex, count));
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("016" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e + GetDataString(strSrc, startIndex, count));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #region helper methods for generating test data
-
- private bool GetBoolean()
- {
- Int32 i = this.GetInt32(1, 2);
- return (i == 1) ? true : false;
- }
-
- //Get a non-negative integer between minValue and maxValue
- private Int32 GetInt32(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;
- }
-
- private Int32 Min(Int32 i1, Int32 i2)
- {
- return (i1 <= i2) ? i1 : i2;
- }
-
- private Int32 Max(Int32 i1, Int32 i2)
- {
- return (i1 >= i2) ? i1 : i2;
- }
-
- #endregion
-
- private string GetDataString(string strSrc, int startIndex, int count)
- {
- string str1, str;
- int len1;
-
- if (null == strSrc)
- {
- str1 = "null";
- len1 = 0;
- }
- else
- {
- str1 = strSrc;
- len1 = strSrc.Length;
- }
-
- str = string.Format("\n[Source string value]\n \"{0}\"", str1);
- str += string.Format("\n[Length of source string]\n {0}", len1);
- str += string.Format("\n[Start index]\n{0}", startIndex);
- str += string.Format("\n[Start index]\n{0}", count);
-
- return str;
- }
-}
+++ /dev/null
-// 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>
-/// String.Replace(Char, Char)
-/// Replaces all occurrences of a specified Unicode character in this instance
-/// with another specified Unicode character.
-/// </summary>
-public class StringReplace1
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- private const int c_MAX_SHORT_STR_LEN = 31;//short string (<32 chars)
- private const int c_MIN_LONG_STR_LEN = 257;//long string ( >256 chars)
- private const int c_MAX_LONG_STR_LEN = 65535;
-
- public static int Main()
- {
- StringReplace1 sr = new StringReplace1();
-
- TestLibrary.TestFramework.BeginTestCase("for method: System.String.Replace(Int32, Int32)");
- if (sr.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 scenarios
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest1: Old char exists in source string, random new char.";
- const string c_TEST_ID = "P001";
-
- string strSrc;
- char oldChar, newChar;
- bool condition1 = false; //Verify the length invariant
- bool condition2 = false; //Verify to replace correctly
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- //New update: modified by Noter(v-yaduoj) 8-10-2006
- oldChar = strSrc[TestLibrary.Generator.GetInt32(-55) % (strSrc.Length)];
- newChar = TestLibrary.Generator.GetChar(-55);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string strReplaced = strSrc.Replace(oldChar, newChar);
-
- condition1 = (strReplaced.Length == strSrc.Length);
- if (condition1)
- {
- condition2 = true;
- for (int i = 0; i < strReplaced.Length; i++)
- {
- //Delete the incorrect check logic
- // new update 8-10-2006, Noter(v-yaduoj)
- if (strSrc[i] == oldChar)
- {
- condition2 = (strReplaced[i] == newChar) && condition2;
- }
- else
- {
- condition2 = (strSrc[i] == strReplaced[i]) && condition2;
- }
- } // end for statement
- } // end if
-
- actualValue = condition1 && condition2;
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, oldChar, newChar);
- 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 + GetDataString(strSrc, oldChar, newChar));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest2: Old char does not exist in source string, random new char.";
- const string c_TEST_ID = "P002";
-
- string strSrc;
- char oldChar, newChar;
- bool expectedValue = true;
- bool actualValue = false;
-
- //New update: modified by Noter(v-yaduoj) 8-10-2006
- oldChar = TestLibrary.Generator.GetChar(-55);
- newChar = TestLibrary.Generator.GetChar(-55);
-
- //Generate source string does not contain old char
- int length = GetInt32(c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- int index = 0;
- char ch;
- strSrc = string.Empty;
- while (index < length)
- {
- ch = TestLibrary.Generator.GetChar(-55);
- if (oldChar == ch)
- {
- continue;
- }
- strSrc += ch.ToString();
- index++;
- }
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string strReplaced = strSrc.Replace(oldChar, newChar);
-
- //New update: modified by Noter(v-yaduoj) 8-10-2006
- actualValue = (0 == string.CompareOrdinal(strReplaced, strSrc));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, oldChar, newChar);
- 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 + GetDataString(strSrc, oldChar, newChar));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = @"PosTest3: Old char exists in source string, new char is \0 ";
- const string c_TEST_ID = "P003";
-
- string strSrc;
- char oldChar, newChar;
- bool condition1 = false; //Verify the length invariant
- bool condition2 = false; //Verify to replace correctly
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- oldChar = strSrc[TestLibrary.Generator.GetInt32(-55) % strSrc.Length];
- newChar = '\0';
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string strReplaced = strSrc.Replace(oldChar, newChar);
-
- condition1 = (strReplaced.Length == strSrc.Length);
- if (condition1)
- {
- condition2 = true;
- for (int i = 0; i < strReplaced.Length; i++)
- {
- //Delete the incorrect check logic
- // new update 8-10-2006, Noter(v-yaduoj)
- if (strSrc[i] == oldChar)
- {
- condition2 = (strReplaced[i] == newChar) && condition2;
- }
- else
- {
- condition2 = (strSrc[i] == strReplaced[i]) && condition2;
- }
- }// end for
- } // end if
-
- actualValue = condition1 && condition2;
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, oldChar, newChar);
- 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 + GetDataString(strSrc, oldChar, newChar));
- retVal = false;
- }
-
- return retVal;
- }
-
- //Zero weight character '\u0400'
- // new update 8-10-2006, Noter(v-yaduoj)
- public bool PosTest4()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = @"PosTest4: Old char '\u0400' is zero weight character, random new char";
- const string c_TEST_ID = "P004";
-
- string strSrc;
- char oldChar, newChar;
- bool condition1 = false; //Verify the length invariant
- bool condition2 = false; //Verify to replace correctly
- bool expectedValue = true;
- bool actualValue = false;
-
- oldChar = '\u0400';
- newChar = TestLibrary.Generator.GetChar(-55);
-
- //Generate source string contains '\u0400'
- int length = GetInt32(c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- char[] chs = new char[length];
-
- strSrc = oldChar.ToString();
- for (int i, index = 1; index < length; index++)
- {
- i = TestLibrary.Generator.GetInt32(-55) % 6;
- if (4 == i)
- {
- strSrc += oldChar.ToString();
- }
- else
- {
- strSrc += TestLibrary.Generator.GetChar(-55);
- }
- }
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string strReplaced = strSrc.Replace(oldChar, newChar);
-
- condition1 = (strReplaced.Length == strSrc.Length);
- if (condition1)
- {
- condition2 = true;
- for (int i = 0; i < strReplaced.Length; i++)
- {
- if (strSrc[i] == oldChar)
- {
- condition2 = (strReplaced[i] == newChar) && condition2;
- }
- else
- {
- condition2 = (strSrc[i] == strReplaced[i]) && condition2;
- }
- }// end for
- } // end if
-
- actualValue = condition1 && condition2;
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, oldChar, newChar);
- 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 + GetDataString(strSrc, oldChar, newChar));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #region helper methods for generating test data
-
- private bool GetBoolean()
- {
- Int32 i = this.GetInt32(1, 2);
- return (i == 1) ? true : false;
- }
-
- //Get a non-negative integer between minValue and maxValue
- private Int32 GetInt32(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;
- }
-
- private Int32 Min(Int32 i1, Int32 i2)
- {
- return (i1 <= i2) ? i1 : i2;
- }
-
- private Int32 Max(Int32 i1, Int32 i2)
- {
- return (i1 >= i2) ? i1 : i2;
- }
-
- #endregion
-
- private string GetDataString(string strSrc, char oldChar, char newChar)
- {
- string str1, str;
- int len1;
-
- if (null == strSrc)
- {
- str1 = "null";
- len1 = 0;
- }
- else
- {
- str1 = strSrc;
- len1 = strSrc.Length;
- }
-
- str = string.Format("\n[Source string value]\n \"{0}\"", str1);
- str += string.Format("\n[Length of source string]\n {0}", len1);
- str += string.Format("\n[Old char]\n{0}", oldChar);
- str += string.Format("\n[New char]\n{0}", newChar);
-
- return str;
- }
-}
+++ /dev/null
-// 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>
-/// String.Replace(String, String)
-/// Replaces all occurrences of a specified Unicode character in this instance
-/// with another specified Unicode character.
-/// </summary>
-public class StringReplace2
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- private const int c_MAX_SHORT_STR_LEN = 31;//short string (<32 chars)
- private const int c_MIN_LONG_STR_LEN = 257;//long string ( >256 chars)
- private const int c_MAX_LONG_STR_LEN = 65535;
-
- public static int Main()
- {
- StringReplace2 sr = new StringReplace2();
-
- TestLibrary.TestFramework.BeginTestCase("for method: System.String.Replace(String, String)");
- if(sr.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("[Negative]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
-
- return retVal;
- }
-
- #region Positive test scenarios
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest1: Source string contains old string.";
- const string c_TEST_ID = "P001";
-
- string strSrc;
- string oldStr, newStr;
- bool condition;
- bool expectedValue = true;
- bool actualValue = false;
-
- //Initialize the parameters
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- int startIndex;
- startIndex = GetInt32(0, strSrc.Length - 1);
- oldStr = strSrc.Substring(startIndex, GetInt32(1, strSrc.Length - startIndex));
- newStr = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string strReplaced = strSrc.Replace(oldStr, newStr);
-
- string subStrOld, subStrNew;
- int oldIndex = 0;
- int newIndex;
- int maxValidIndex = strReplaced.Length - newStr.Length;
- condition = true;
- // compare string replaed and source string
- for (newIndex = 0; newIndex < maxValidIndex; )
- {
- subStrNew = strReplaced.Substring(newIndex, newStr.Length);
-
- if(0 == string.CompareOrdinal(subStrNew, newStr))
- {
- subStrOld = strSrc.Substring(oldIndex, oldStr.Length);
- condition = (0 == string.CompareOrdinal(subStrOld, oldStr)) && condition;
- oldIndex += oldStr.Length;
- newIndex += newStr.Length;
- }
- else
- {
- condition = (strReplaced[newIndex] == strSrc[oldIndex]) && condition;
- oldIndex++;
- newIndex++;
- }
- }
-
- actualValue = condition;
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, oldStr, newStr);
- 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 + GetDataString(strSrc, oldStr, newStr));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest2: Source string does not contain old string.";
- const string c_TEST_ID = "P002";
-
- string strSrc;
- string oldStr, newStr;
- bool expectedValue = true;
- bool actualValue = false;
-
- //Initialize the parameters
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- oldStr = strSrc + TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- newStr = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string strReplaced = strSrc.Replace(oldStr, newStr);
-
- actualValue = (0 == string.CompareOrdinal(strSrc, strReplaced));
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, oldStr, newStr);
- 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 + GetDataString(strSrc, oldStr, newStr));
- retVal = false;
- }
-
- return retVal;
- }
-
- //new update added by Noter(v-yaduoj) 8-10-2006
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest3: Source string contains old string, replace with \"\\0\"";
- const string c_TEST_ID = "P003";
-
- string strSrc;
- string oldStr, newStr;
- bool condition;
- bool expectedValue = true;
- bool actualValue = false;
-
- //Initialize the parameters
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- int startIndex;
- startIndex = GetInt32(0, strSrc.Length - 1);
- oldStr = strSrc.Substring(startIndex, GetInt32(1, strSrc.Length - startIndex));
- newStr = "\0";
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string strReplaced = strSrc.Replace(oldStr, newStr);
-
- string subStrOld, subStrNew;
- int oldIndex = 0;
- int newIndex;
- int maxValidIndex = strReplaced.Length - newStr.Length;
- condition = true;
- // compare string replaed and source string
- for (newIndex = 0; newIndex < maxValidIndex; )
- {
- subStrNew = strReplaced.Substring(newIndex, newStr.Length);
-
- if (0 == string.CompareOrdinal(subStrNew, newStr))
- {
- subStrOld = strSrc.Substring(oldIndex, oldStr.Length);
- condition = (0 == string.CompareOrdinal(subStrOld, oldStr)) && condition;
- oldIndex += oldStr.Length;
- newIndex += newStr.Length;
- }
- else
- {
- condition = (strReplaced[newIndex] == strSrc[oldIndex]) && condition;
- oldIndex++;
- newIndex++;
- }
- }
-
- actualValue = condition;
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, oldStr, newStr);
- 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 + GetDataString(strSrc, oldStr, newStr));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #region Negative test scenarios
-
- //ArgumentNullException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest1: old string value is null reference.";
- const string c_TEST_ID = "N001";
-
- string strSrc;
- string oldStr, newStr;
-
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- oldStr = null;
- newStr = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- strSrc.Replace(oldStr, newStr);
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, "ArgumentNullException is not thrown as expected." + GetDataString(strSrc, oldStr, newStr));
- retVal = false;
- }
- catch (ArgumentNullException)
- {}
- catch(Exception e)
- {
- TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e + GetDataString(strSrc, oldStr, newStr));
- retVal = false;
- }
-
- return retVal;
- }
-
- //ArgumentException
- public bool NegTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest2: old string value is String.Empty";
- const string c_TEST_ID = "N002";
-
- string strSrc;
- string oldStr, newStr;
-
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- oldStr = String.Empty;
- newStr = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- strSrc.Replace(oldStr, newStr);
- TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, "ArgumentException is not thrown as expected." + GetDataString(strSrc, oldStr, newStr));
- retVal = false;
- }
- catch (ArgumentException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e + GetDataString(strSrc, oldStr, newStr));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #region helper methods for generating test data
-
- private bool GetBoolean()
- {
- Int32 i = this.GetInt32(1, 2);
- return (i == 1) ? true : false;
- }
-
- //Get a non-negative integer between minValue and maxValue
- private Int32 GetInt32(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;
- }
-
- private Int32 Min(Int32 i1, Int32 i2)
- {
- return (i1 <= i2) ? i1 : i2;
- }
-
- private Int32 Max(Int32 i1, Int32 i2)
- {
- return (i1 >= i2) ? i1 : i2;
- }
-
- #endregion
-
- private string GetDataString(string strSrc, string oldStr, string newStr)
- {
- string str1, str;
- int len1;
-
- if (null == strSrc)
- {
- str1 = "null";
- len1 = 0;
- }
- else
- {
- str1 = strSrc;
- len1 = strSrc.Length;
- }
-
- str = string.Format("\n[Source string value]\n \"{0}\"", str1);
- str += string.Format("\n[Length of source string]\n {0}", len1);
- str += string.Format("\n[Old string]\n{0}", oldStr);
- str += string.Format("\n[New string]\n{0}", newStr);
-
- return str;
- }
-}
+++ /dev/null
-// 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>
-/// String.Replace(String, String)
-/// Replaces all occurrences of a specified Unicode character in this instance
-/// with another specified Unicode character.
-/// </summary>
-public class StringReplace3
-{
- public static int Main()
- {
- int result = Test1() && Test2() && Test3() && Test4() && Test5() && Test6() && Test7() ? 100 : -1;
-
- return result;
- }
-
- private static bool Test1()
- {
- string strExpected = "Test HEY with HEYAND HEY";
- string strActual = "Test %token% with %TOKEN%AND %tokeN%".Replace("%token%", "HEY", StringComparison.InvariantCultureIgnoreCase);
-
- return strExpected == strActual;
- }
-
- private static bool Test2()
- {
- string strExpected = "Test HEY with HEYAND Test!";
- string strActual = "Test %token% with %TOKEN%AND Test!".Replace("%token%", "HEY", StringComparison.InvariantCultureIgnoreCase);
-
- return strExpected == strActual;
- }
-
- private static bool Test3()
- {
- string strExpected = "HEYTest HEY with HEYAND Test!";
- string strActual = "%TOKEN%Test %token% with %TOKEN%AND Test!".Replace("%token%", "HEY", StringComparison.InvariantCultureIgnoreCase);
-
- return strExpected == strActual;
- }
-
- private static bool Test4()
- {
- string strExpected = "HEYHEYTest HEY with HEYAND Test!";
- string strActual = "%TOKEN%%token%Test %token% with %TOKEN%AND Test!".Replace("%token%", "HEY", StringComparison.InvariantCultureIgnoreCase);
-
- return strExpected == strActual;
- }
-
- private static bool Test5()
- {
- string strExpected = "dof";
- string strActual = "d\u00e9f".Replace("e\u0301", "o", StringComparison.InvariantCultureIgnoreCase);
-
- return strExpected == strActual;
- }
-
- private static bool Test6()
- {
- string strExpected = "dof";
- string strActual = "de\u0301f".Replace("\u00e9", "o", StringComparison.InvariantCultureIgnoreCase);
-
- return strExpected == strActual;
- }
-
- private static bool Test7()
- {
- string strExpected = "dfo";
- string strActual = "de\u0301fo".Replace("\u00e9", "", StringComparison.InvariantCultureIgnoreCase);
-
- return strExpected == strActual;
- }
-}
+++ /dev/null
-using System;
-
-/// <summary>
-/// String.Split(params Char[])
-/// Returns a String array containing the substrings in this
-/// instance that are delimited by elements of a specified Char array.
-/// </summary>
-public class StringSplit1
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- private const int c_MAX_SHORT_STR_LEN = 31;//short string (<32 chars)
- private const int c_MIN_LONG_STR_LEN = 257;//long string ( >256 chars)
- private const int c_MAX_LONG_STR_LEN = 65535;
-
- public static int Main()
- {
- StringSplit1 sr = new StringSplit1();
-
- TestLibrary.TestFramework.BeginTestCase("for method: System.String.Split(params Char[])");
- if (sr.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
-
- //while (sr.RunTests() != false)
- //{ }
- //return 0;
- }
-
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- retVal = PosTest3() && retVal;
-
- //TestLibrary.TestFramework.LogInformation("[Negative]");
-
- return retVal;
- }
-
- #region Positive test scenarios
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest1: Random old char random new char.";
- const string c_TEST_ID = "P001";
-
- string strSrc, delimiterStr;
- char[] separator;
- bool condition = false;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = TestLibrary.Generator.GetString(-55, false, 10, 10);
- //strSrc = "?ÏÀÈ¡?????a¤T";
- delimiterStr = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- //delimiterStr = new string('a', 5);
- separator = new char[delimiterStr.Length];
- for (int i = 0; i < delimiterStr.Length; i++)
- {
- separator[i] = delimiterStr[i];
- }
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string[] strs = strSrc.Split(separator);
-
- string subStrSrc;
- int indexSrc;
- int indexStrsArray = 0;
-
- condition = true; //
- // compare string array after splitting and source string
- for (indexSrc = 0; indexSrc < strSrc.Length; )
- {
- if (delimiterStr.Contains(strSrc[indexSrc].ToString())) //Begin if
- {
- bool adjacent =
- ((0 < indexSrc)
- && (indexSrc < strSrc.Length - 1)
- && (delimiterStr.Contains(strSrc[indexSrc + 1].ToString())));
-
- if ((0 == indexSrc) || ((strSrc.Length - 1) == indexSrc))
- {
- condition = (0 == string.CompareOrdinal(strs[indexStrsArray], string.Empty)) && condition;
- indexSrc++;
- indexStrsArray++;
- continue;
- }
- if (adjacent)
- {
- condition = (0 == string.CompareOrdinal(strs[indexStrsArray], string.Empty)) && condition;
- indexSrc += 2;
- indexStrsArray++;
- continue;
- }
- indexSrc++;
- }
- else
- {
- subStrSrc = strSrc.Substring(indexSrc, strs[indexStrsArray].Length); //error
- condition = (0 == string.CompareOrdinal(subStrSrc, strs[indexStrsArray])) && condition;
- indexSrc += strs[indexStrsArray].Length;
- indexStrsArray++;
- } //End if
- }
-
- actualValue = condition;
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, separator);
- 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 + GetDataString(strSrc, separator));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest2: Adjacent delimiters exist in the source string";
- const string c_TEST_ID = "P002";
-
- string strSrc, delimiterStr;
- int j;
- char[] separator;
- bool condition = false;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = TestLibrary.Generator.GetString(-55, false, 10, 10);
- j = GetInt32(1, strSrc.Length - 2);
- delimiterStr = strSrc.Substring(j, 2);
- //delimiterStr = new string('a', 5);
- separator = new char[delimiterStr.Length];
- for (int i = 0; i < delimiterStr.Length; i++)
- {
- separator[i] = delimiterStr[i];
- }
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string[] strs = strSrc.Split(separator);
-
- string subStrSrc;
- int indexSrc;
- int indexStrsArray = 0;
-
- condition = true; //
- // compare string array after splitting and source string
- for (indexSrc = 0; indexSrc < strSrc.Length; )
- {
- if (delimiterStr.Contains(strSrc[indexSrc].ToString())) //Begin if
- {
- bool adjacent =
- ((0 < indexSrc)
- && (indexSrc < strSrc.Length - 1)
- && (delimiterStr.Contains(strSrc[indexSrc + 1].ToString())));
-
- if ((0 == indexSrc) || ((strSrc.Length - 1) == indexSrc))
- {
- condition = (0 == string.CompareOrdinal(strs[indexStrsArray], string.Empty)) && condition;
- indexSrc++;
- indexStrsArray++;
- continue;
- }
- if (adjacent)
- {
- condition = (0 == string.CompareOrdinal(strs[indexStrsArray], string.Empty)) && condition;
- indexSrc += 2;
- indexStrsArray++;
- continue;
- }
- indexSrc++;
- }
- else
- {
- subStrSrc = strSrc.Substring(indexSrc, strs[indexStrsArray].Length); //error
- condition = (0 == string.CompareOrdinal(subStrSrc, strs[indexStrsArray])) && condition;
- indexSrc += strs[indexStrsArray].Length;
- indexStrsArray++;
- } //End if
- }
-
- actualValue = condition;
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, separator);
- 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 + GetDataString(strSrc, separator));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest3: Separator char array is a null reference";
- const string c_TEST_ID = "P003";
-
- string strSrc, delimiterStr;
- char[] separator;
- bool condition = false;
- bool expectedValue = true;
- bool actualValue = false;
-
- strSrc = "\tWEre\t\rasdfsdf\n\nweer\r23123\t456\v\x0020678op~";
- delimiterStr = null;
- separator = null;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string[] strs = strSrc.Split(separator);
-
- delimiterStr = "\n\r\t\v\x0020";
- separator = new char[delimiterStr.Length];
- for (int i = 0; i < delimiterStr.Length; i++)
- {
- separator[i] = delimiterStr[i];
- }
-
- string subStrSrc;
- int indexSrc;
- int indexStrsArray = 0;
-
- condition = true; //
- // compare string array after splitting and source string
- for (indexSrc = 0; indexSrc < strSrc.Length; )
- {
- if (delimiterStr.Contains(strSrc[indexSrc].ToString())) //Begin if
- {
- bool adjacent =
- ((0 < indexSrc)
- && (indexSrc < strSrc.Length - 1)
- && (delimiterStr.Contains(strSrc[indexSrc + 1].ToString())));
-
- if ((0 == indexSrc) || ((strSrc.Length - 1) == indexSrc))
- {
- condition = (0 == string.CompareOrdinal(strs[indexStrsArray], string.Empty)) && condition;
- indexSrc++;
- indexStrsArray++;
- continue;
- }
- if (adjacent)
- {
- condition = (0 == string.CompareOrdinal(strs[indexStrsArray], string.Empty)) && condition;
- indexSrc += 2;
- indexStrsArray++;
- continue;
- }
- indexSrc++;
- }
- else
- {
- subStrSrc = strSrc.Substring(indexSrc, strs[indexStrsArray].Length); //error
- condition = (0 == string.CompareOrdinal(subStrSrc, strs[indexStrsArray])) && condition;
- indexSrc += strs[indexStrsArray].Length;
- indexStrsArray++;
- } //End if
- }
-
- actualValue = condition;
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, separator);
- 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 + GetDataString(strSrc, separator));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #region helper methods for generating test data
-
- private bool GetBoolean()
- {
- Int32 i = this.GetInt32(1, 2);
- return (i == 1) ? true : false;
- }
-
- //Get a non-negative integer between minValue and maxValue
- private Int32 GetInt32(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;
- }
-
- private Int32 Min(Int32 i1, Int32 i2)
- {
- return (i1 <= i2) ? i1 : i2;
- }
-
- private Int32 Max(Int32 i1, Int32 i2)
- {
- return (i1 >= i2) ? i1 : i2;
- }
-
- #endregion
-
- private string GetDataString(string strSrc, char[] separator)
- {
- string str1, str, str2;
- int len1, len2;
-
- if (null == strSrc)
- {
- str1 = "null";
- len1 = 0;
- }
- else
- {
- str1 = strSrc;
- len1 = strSrc.Length;
- }
-
- if (null == separator)
- {
- str2 = "white-space";
- len2 = 0;
- }
- else
- {
- str2 = string.Empty;
- for (int i = 0; i < separator.Length; i++)
- {
- str2 += separator[i].ToString();
- }
- len2 = separator.Length;
- }
-
- str = string.Format("\n[Source string value]\n \"{0}\"", str1);
- str += string.Format("\n[Length of source string]\n {0}", len1);
- str += string.Format("\n[Sepator char array]\n{0}", str2);
- str += string.Format("\n[Sepator char array's length]\n{0}", len2);
-
- return str;
- }
-}
\ No newline at end of file
+++ /dev/null
-// 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>
-/// String.SubString(Int32)
-/// Retrieves a substring from this instance. The substring starts at a specified character position.
-/// </summary>
-public class StringSubString1
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- private const int c_MAX_SHORT_STR_LEN = 31;//short string (<32 chars)
- private const int c_MIN_LONG_STR_LEN = 257;//long string ( >256 chars)
- private const int c_MAX_LONG_STR_LEN = 65535;
-
- public static int Main()
- {
- StringSubString1 sss = new StringSubString1();
-
- TestLibrary.TestFramework.BeginTestCase("for method: System.String.SubString(Int32)");
- if(sss.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;
- retVal = NegTest2() && retVal;
-
- return retVal;
- }
-
- #region Positive test scenarios
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest1: Start index is valid random value.";
- const string c_TEST_ID = "P001";
-
- string strSrc;
- int startIndex;
- bool condition = false;
- bool expectedValue = true;
- bool actualValue = false;
-
- //Initialize the parameters
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- startIndex = TestLibrary.Generator.GetInt32(-55) % (strSrc.Length);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string subStr = strSrc.Substring(startIndex);
-
- condition = true;
- for (int i = 0; i < subStr.Length; i++)
- {
- condition = (subStr[i] == strSrc[i + startIndex]) && condition;
- }
-
- actualValue = condition;
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, startIndex);
- 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 + GetDataString(strSrc, startIndex));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest2: startIndex equals the length of this instance.";
- const string c_TEST_ID = "P002";
-
- string strSrc;
- int startIndex;
- bool condition = false;
- bool expectedValue = true;
- bool actualValue = false;
-
- //Initialize the parameters
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- startIndex = strSrc.Length;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string subStr = strSrc.Substring(startIndex);
- condition = (0 == String.CompareOrdinal(string.Empty, subStr));
- actualValue = condition;
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, startIndex);
- 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 + GetDataString(strSrc, startIndex));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #region Negative test scenarios
-
- //ArgumentOutOfRangeException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest1: Start index is negative";
- const string c_TEST_ID = "N001";
-
- string strSrc;
- int startIndex;
-
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- startIndex = -1 * TestLibrary.Generator.GetInt32(-55) - 1;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- strSrc.Substring(startIndex);
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, "ArgumentOutOfRangeException is not thrown as expected." + GetDataString(strSrc, startIndex));
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {}
- catch(Exception e)
- {
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e + GetDataString(strSrc, startIndex));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest2: Start index is greater than string length";
- const string c_TEST_ID = "N002";
-
- string strSrc;
- int startIndex;
-
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- startIndex = GetInt32(strSrc.Length + 1, Int32.MaxValue);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- strSrc.Substring(startIndex);
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, "ArgumentOutOfRangeException is not thrown as expected." + GetDataString(strSrc, startIndex));
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e + GetDataString(strSrc, startIndex));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #region helper methods for generating test data
-
- private bool GetBoolean()
- {
- Int32 i = this.GetInt32(1, 2);
- return (i == 1) ? true : false;
- }
-
- //Get a non-negative integer between minValue and maxValue
- private Int32 GetInt32(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;
- }
-
- private Int32 Min(Int32 i1, Int32 i2)
- {
- return (i1 <= i2) ? i1 : i2;
- }
-
- private Int32 Max(Int32 i1, Int32 i2)
- {
- return (i1 >= i2) ? i1 : i2;
- }
-
- #endregion
-
- private string GetDataString(string strSrc, int startIndex)
- {
- string str1, str;
- int len1;
-
- if (null == strSrc)
- {
- str1 = "null";
- len1 = 0;
- }
- else
- {
- str1 = strSrc;
- len1 = strSrc.Length;
- }
-
- str = string.Format("\n[Source string value]\n \"{0}\"", str1);
- str += string.Format("\n[Length of source string]\n {0}", len1);
- str += string.Format("\n[Start index]\n{0}", startIndex);
-
- return str;
- }
-}
+++ /dev/null
-// 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>
-/// String.SubString(Int32, Int32)
-/// Retrieves a substring from this instance.
-/// The substring starts at a specified character position and has a specified length.
-/// </summary>
-public class StringSubString2
-{
- private const int c_MIN_STRING_LEN = 8;
- private const int c_MAX_STRING_LEN = 256;
-
- private const int c_MAX_SHORT_STR_LEN = 31;//short string (<32 chars)
- private const int c_MIN_LONG_STR_LEN = 257;//long string ( >256 chars)
- private const int c_MAX_LONG_STR_LEN = 65535;
-
- public static int Main()
- {
- StringSubString2 sss = new StringSubString2();
-
- TestLibrary.TestFramework.BeginTestCase("for method: System.String.SubString(Int32, Int32)");
- if(sss.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;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
- retVal = NegTest4() && retVal;
-
- return retVal;
- }
-
- #region Positive test scenarios
-
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest1: Valid random start index, valid random substring's length";
- const string c_TEST_ID = "P001";
-
- string strSrc;
- int startIndex;
- int length;
- bool condition = false;
- bool expectedValue = true;
- bool actualValue = false;
-
- //Initialize the parameters
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- startIndex = TestLibrary.Generator.GetInt32(-55) % (strSrc.Length);
- length = TestLibrary.Generator.GetInt32(-55) % (strSrc.Length + 1 - startIndex);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string subStr = strSrc.Substring(startIndex, length);
-
- condition = true;
- for (int i = 0; i < subStr.Length; i++)
- {
- condition = (subStr[i] == strSrc[i + startIndex]) && condition;
- }
-
- actualValue = condition;
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, startIndex, length);
- 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 + GetDataString(strSrc, startIndex, length));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "PosTest2:startIndex equals source string's length and substring length is zero";
- const string c_TEST_ID = "P002";
-
- string strSrc;
- int startIndex;
- int length;
- bool condition = false;
- bool expectedValue = true;
- bool actualValue = false;
-
- //Initialize the parameters
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- startIndex = strSrc.Length;
- length = 0;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- string subStr = strSrc.Substring(startIndex, length);
- condition = (0 == string.CompareOrdinal(subStr, string.Empty));
-
- actualValue = condition;
- if (actualValue != expectedValue)
- {
- string errorDesc = "Value is not " + expectedValue + " as expected: Actual(" + actualValue + ")";
- errorDesc += GetDataString(strSrc, startIndex, length);
- 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 + GetDataString(strSrc, startIndex, length));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #region Negative test scenarios
-
- //ArgumentOutOfRangeException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest1: Start index is negative";
- const string c_TEST_ID = "N001";
-
- string strSrc;
- int startIndex;
- int length;
-
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- startIndex = -1 * TestLibrary.Generator.GetInt32(-55) - 1;
- length = TestLibrary.Generator.GetInt32(-55) % (strSrc.Length + 1);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- strSrc.Substring(startIndex, length);
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, "ArgumentOutOfRangeException is not thrown as expected." + GetDataString(strSrc, startIndex, length));
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {}
- catch(Exception e)
- {
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e + GetDataString(strSrc, startIndex, length));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest2: Substring's length is negative";
- const string c_TEST_ID = "N002";
-
- string strSrc;
- int startIndex;
- int length;
-
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- startIndex = TestLibrary.Generator.GetInt32(-55) % (strSrc.Length);
- length = -1 * TestLibrary.Generator.GetInt32(-55) - 1;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- strSrc.Substring(startIndex, length);
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, "ArgumentOutOfRangeException is not thrown as expected." + GetDataString(strSrc, startIndex, length));
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e + GetDataString(strSrc, startIndex, length));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest3: valid startIndex, too great length \n Their sum is greater than source string's length";
- const string c_TEST_ID = "N003";
-
- string strSrc;
- int startIndex;
- int length;
-
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- startIndex = TestLibrary.Generator.GetInt32(-55) % (strSrc.Length);
- length = GetInt32(strSrc.Length - startIndex + 1, Int32.MaxValue);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- strSrc.Substring(startIndex, length);
- TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, "ArgumentOutOfRangeException is not thrown as expected." + GetDataString(strSrc, startIndex, length));
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e + GetDataString(strSrc, startIndex, length));
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest4()
- {
- bool retVal = true;
-
- const string c_TEST_DESC = "NegTest4: Valid length, too great start index \n Their sum is greater than string's length";
- const string c_TEST_ID = "N004";
-
- string strSrc;
- int startIndex;
- int length;
-
- strSrc = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- length = TestLibrary.Generator.GetInt32(-55) % (strSrc.Length + 1);
- startIndex = GetInt32(strSrc.Length - length + 1, Int32.MaxValue);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- strSrc.Substring(startIndex, length);
- TestLibrary.TestFramework.LogError("011" + " TestId-" + c_TEST_ID, "ArgumentOutOfRangeException is not thrown as expected." + GetDataString(strSrc, startIndex, length));
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e + GetDataString(strSrc, startIndex, length));
- retVal = false;
- }
-
- return retVal;
- }
-
- #endregion
-
- #region helper methods for generating test data
-
- private bool GetBoolean()
- {
- Int32 i = this.GetInt32(1, 2);
- return (i == 1) ? true : false;
- }
-
- //Get a non-negative integer between minValue and maxValue
- private Int32 GetInt32(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;
- }
-
- private Int32 Min(Int32 i1, Int32 i2)
- {
- return (i1 <= i2) ? i1 : i2;
- }
-
- private Int32 Max(Int32 i1, Int32 i2)
- {
- return (i1 >= i2) ? i1 : i2;
- }
-
- #endregion
-
- private string GetDataString(string strSrc, int startIndex, int length)
- {
- string str1, str;
- int len1;
-
- if (null == strSrc)
- {
- str1 = "null";
- len1 = 0;
- }
- else
- {
- str1 = strSrc;
- len1 = strSrc.Length;
- }
-
- str = string.Format("\n[Source string value]\n \"{0}\"", str1);
- str += string.Format("\n[Length of source string]\n {0}", len1);
- str += string.Format("\n[Start index]\n{0}", startIndex);
- str += string.Format("\n[Substring's length]\n{0}", length);
-
- return str;
- }
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// String.ToCharArray()
-/// </summary>
-public class StringToCharArray
-{
- private int c_MAX_STRING_LENGTH = 256;
-
- public static int Main()
- {
- StringToCharArray stca = new StringToCharArray();
- TestLibrary.TestFramework.BeginTestCase("StringToCharArray");
-
- if (stca.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 PositiveTesting
- public bool PosTest1()
- {
- bool retVal = true;
- string strA;
- char[]ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: empty string ToCharArray");
- try
- {
- strA = string.Empty;
- ActualResult = strA.ToCharArray();
- char[] Expect = new char[0];
- if (ActualResult.ToString()!= Expect.ToString() || ActualResult.Length !=0)
- {
- TestLibrary.TestFramework.LogError("001", "empty string ToCharArray ActualResult is not the ExpectResult");
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
- string strA = "";
- char[] ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2 : normal string ToCharArray");
- try
- {
- char[] Expect = new char[256];
- for (int i = 0; i < c_MAX_STRING_LENGTH; i++)
- {
- char charA = TestLibrary.Generator.GetChar(-55);
- Expect[i] = charA;
- strA += charA.ToString();
- }
- ActualResult = strA.ToCharArray();
- for (int j = 0; j < ActualResult.Length; j++)
- {
- if (ActualResult[j] != Expect[j])
- {
- TestLibrary.TestFramework.LogError("001", "normal string ToCharArray ActualResult is not ExpectResult");
- retVal = false;
- break;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-
-}
-
+++ /dev/null
-// 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;
-
-/// <summary>
-/// String.ToString()
-/// </summary>
-public class StringToString1
-{
- private int c_MINI_STRING_LENGTH = 8;
- private int c_MAX_STRING_LENGTH = 256;
-
- public static int Main()
- {
- StringToString1 sts1 = new StringToString1();
- TestLibrary.TestFramework.BeginTestCase("StringToString1");
-
- if (sts1.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;
- string strA;
- string ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: normal string ToString()");
- try
- {
- strA = string.Empty;
- ActualResult = strA.ToString();
- if (ActualResult != string.Empty || !(object.ReferenceEquals(strA, ActualResult)))
- {
- TestLibrary.TestFramework.LogError("001", "normal string ToString() ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
- string strA;
- string ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: empty string ToString()");
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- ActualResult = strA.ToString();
- char[] charStrA = strA.ToCharArray();
- char[] charActual = ActualResult.ToCharArray();
- for (int i = 0; strA.Length > i; i++)
- {
- if (charStrA[i] != charActual[i])
- {
- TestLibrary.TestFramework.LogError("001", "normal string ToString() ActualResult is not the ExpectResult");
- retVal = false;
- break;
- }
- }
- if (!object.ReferenceEquals(strA, ActualResult))
- {
- TestLibrary.TestFramework.LogError("002", "normal string ToString() ActualResult is not ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
-}
-
+++ /dev/null
-// 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;
-
-/// <summary>
-/// String.Trim()
-/// </summary>
-public class StringTrim1
-{
- private int c_MINI_STRING_LENGTH = 8;
- private int c_MAX_STRING_LENGTH = 256;
-
- // U+200B stops being trimmable http://msdn2.microsoft.com/en-us/library/t97s7bs3.aspx
- // U+FEFF has been deprecate as a trimmable space
- private string[] spaceStrings = new string[]{"\u0009","\u000A","\u000B","\u000C","\u000D","\u0020",
- "\u00A0","\u2000","\u2001","\u2002","\u2003","\u2004","\u2005",
- "\u2006","\u2007","\u2008","\u2009","\u200A","\u3000"};
-
- public static int Main()
- {
- StringTrim1 st1 = new StringTrim1();
- TestLibrary.TestFramework.BeginTestCase("StringTrim1");
-
- if (st1.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;
- string strA;
- string ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: empty string trim()");
-
- try
- {
- strA = string.Empty;
- ActualResult = strA.Trim();
- if (ActualResult != string.Empty)
- {
- TestLibrary.TestFramework.LogError("001", "empty string trim() ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
- string strA;
- string ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2:normal string trim one");
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- string strB = spaceStrings[this.GetInt32(0, spaceStrings.Length)];
- string strA1 = strB + "H" + strA + "D" + strB;
- ActualResult = strA1.Trim();
- if (ActualResult.ToString() != "H" + strA.ToString() + "D")
- {
- TestLibrary.TestFramework.LogError("003", "normal string trim one when space is ("+strB.ToString()+") ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
- string strA;
- string ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3:normal string trim two");
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- string strB = spaceStrings[this.GetInt32(0, spaceStrings.Length)];
- string strA1 = strB + "H" + strB + strA + strB+ "D" + strB;
- ActualResult = strA1.Trim();
- if (ActualResult.ToString() != "H" + strB + strA.ToString() + strB + "D")
- {
- TestLibrary.TestFramework.LogError("005", "normal string trim two ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- #region Help method for geting test data
- private Int32 GetInt32(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;
- }
- private Char GetChar(Int32 minValue, Int32 maxValue)
- {
- try
- {
- if (minValue == maxValue)
- {
- return Convert.ToChar(minValue);
- }
- if (minValue < maxValue)
- {
- return Convert.ToChar(Convert.ToInt32(TestLibrary.Generator.GetChar(-55)) % (maxValue - minValue) + minValue);
- }
- }
- catch
- {
- throw;
- }
- return Convert.ToChar(minValue);
- }
- private string GetString(bool ValidPath, Int32 minValue, Int32 maxValue)
- {
- StringBuilder sVal = new StringBuilder();
- string s;
-
- if (0 == minValue && 0 == maxValue) return String.Empty;
- if (minValue > maxValue) return null;
-
- if (ValidPath)
- {
- return TestLibrary.Generator.GetString(-55, ValidPath, minValue, maxValue);
- }
- else
- {
- int length = this.GetInt32(minValue, maxValue);
- for (int i = 0; length > i; i++)
- {
- char c = this.GetChar(minValue, maxValue);
- sVal.Append(c);
- }
- s = sVal.ToString();
- return s;
- }
-
-
- }
- #endregion
-}
-
+++ /dev/null
-// 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;
-
-/// <summary>
-/// String.Trim()
-/// </summary>
-public class StringTrim1
-{
- private int c_MINI_STRING_LENGTH = 8;
- private int c_MAX_STRING_LENGTH = 256;
-
- // U+200B stops being trimmable http://msdn2.microsoft.com/en-us/library/t97s7bs3.aspx
- // U+FEFF has been deprecate as a trimmable space
- private string[] spaceStrings = new string[]{"\u0009","\u000A","\u000B","\u000C","\u000D","\u0020",
- "\u00A0","\u2000","\u2001","\u2002","\u2003","\u2004","\u2005",
- "\u2006","\u2007","\u2008","\u2009","\u200A","\u3000"};
-
- public static int Main()
- {
- StringTrim1 st1 = new StringTrim1();
- TestLibrary.TestFramework.BeginTestCase("StringTrim1");
- //while (st1.RunTests())
- //{
- // Console.WriteLine(")");
- //}
- //return 100;
- if (st1.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;
- string strA;
- string ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: empty string trim()");
-
- try
- {
- strA = string.Empty;
- ActualResult = strA.Trim();
- if (ActualResult != string.Empty)
- {
- TestLibrary.TestFramework.LogError("001", "empty string trim() ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
- string strA;
- string ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2:normal string trim one");
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- int i = this.GetInt32(0, spaceStrings.Length);
- string strB = spaceStrings[i];
- string strA1 = strB + "H" + strA + "D" + strB;
- ActualResult = strA1.Trim();
- if (ActualResult.ToString() != "H" + strA.ToString() + "D")
- {
- TestLibrary.TestFramework.LogError("003", "normal string trim one when space is (" + i + ":'" + strB.ToString() + "') ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
- string strA;
- string ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3:normal string trim two");
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- int i = this.GetInt32(0, spaceStrings.Length);
- string strB = spaceStrings[i];
- string strA1 = strB + "H" + strB + strA + strB+ "D" + strB;
- ActualResult = strA1.Trim();
- if (ActualResult.ToString() != "H" + strB + strA.ToString() + strB + "D")
- {
- TestLibrary.TestFramework.LogError("005", "normal string trim one when space is ("+i+":'" + strB.ToString() + "') ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- #region Help method for geting test data
- private Int32 GetInt32(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;
- }
- private Char GetChar(Int32 minValue, Int32 maxValue)
- {
- try
- {
- if (minValue == maxValue)
- {
- return Convert.ToChar(minValue);
- }
- if (minValue < maxValue)
- {
- return Convert.ToChar(Convert.ToInt32(TestLibrary.Generator.GetChar(-55)) % (maxValue - minValue) + minValue);
- }
- }
- catch
- {
- throw;
- }
- return Convert.ToChar(minValue);
- }
- private string GetString(bool ValidPath, Int32 minValue, Int32 maxValue)
- {
- StringBuilder sVal = new StringBuilder();
- string s;
-
- if (0 == minValue && 0 == maxValue) return String.Empty;
- if (minValue > maxValue) return null;
-
- if (ValidPath)
- {
- return TestLibrary.Generator.GetString(-55, ValidPath, minValue, maxValue);
- }
- else
- {
- int length = this.GetInt32(minValue, maxValue);
- for (int i = 0; length > i; i++)
- {
- char c = this.GetChar(minValue, maxValue);
- sVal.Append(c);
- }
- s = sVal.ToString();
- return s;
- }
-
-
- }
- #endregion
-}
-
+++ /dev/null
-// 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;
-
-/// <summary>
-/// String.Trim(char[])
-/// </summary>
-public class StringTrim2
-{
- private int c_MINI_STRING_LENGTH = 8;
- private int c_MAX_STRING_LENGTH = 256;
-
- // U+200B stops being trimmable http://msdn2.microsoft.com/en-us/library/t97s7bs3.aspx
- // U+FEFF has been deprecate as a trimmable space
- private string[] spaceStrings = new string[]{"\u0009","\u000A","\u000B","\u000C","\u000D","\u0020",
- "\u00A0","\u2000","\u2001","\u2002","\u2003","\u2004","\u2005",
- "\u2006","\u2007","\u2008","\u2009","\u200A","\u3000"};
-
-
- public static int Main()
- {
- StringTrim2 st2 = new StringTrim2();
- TestLibrary.TestFramework.BeginTestCase("StringTrim2");
-
- if (st2.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 PostiveTesting
- public bool PosTest1()
- {
- bool retVal = true;
- string strA;
- char[] charA;
- string ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: empty string trim char[]");
-
- try
- {
- strA = string.Empty;
- charA = new char[] {TestLibrary.Generator.GetChar(-55),TestLibrary.Generator.GetChar(-55),TestLibrary.Generator.GetChar(-55) };
- ActualResult = strA.Trim(charA);
- if (ActualResult != string.Empty)
- {
- TestLibrary.TestFramework.LogError("001", "empty string trim char[] ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
- string strA;
- char[] charA;
- string ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2:normal string trim char[] one");
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- char char1 = this.GetChar(0, c_MINI_STRING_LENGTH);
- char char2 = this.GetChar(c_MINI_STRING_LENGTH, c_MINI_STRING_LENGTH + 68);
- char char3 = this.GetChar(c_MINI_STRING_LENGTH + 68, c_MAX_STRING_LENGTH / 2);
- char charEnd = this.GetChar(c_MAX_STRING_LENGTH / 2, c_MAX_STRING_LENGTH);
- charA = new char[] { char1, char2, char3 };
-
- string strA1 = char1.ToString() + char3.ToString() + charEnd.ToString() + strA + charEnd.ToString();
- ActualResult = strA1.Trim(charA);
- if (ActualResult.ToString() != charEnd.ToString() + strA.ToString() + charEnd.ToString())
- {
- TestLibrary.TestFramework.LogError("003", "normal string trim char[] one ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
- string strA;
- char[] charA;
- string ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3:normal string trim char[] two");
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- char char1 = this.GetChar(0, c_MINI_STRING_LENGTH);
- char char2 = this.GetChar(c_MINI_STRING_LENGTH, c_MINI_STRING_LENGTH + 68);
- char char3 = this.GetChar(c_MAX_STRING_LENGTH + 68, c_MAX_STRING_LENGTH / 2);
- char charStart = this.GetChar(c_MAX_STRING_LENGTH / 2, c_MAX_STRING_LENGTH);
- charA = new char[] { char1, char2, char3 };
-
- string strA1 = charStart.ToString() + strA + charStart.ToString() + char2.ToString() + char3.ToString();
- ActualResult = strA1.Trim(charA);
- if (ActualResult.ToString() != charStart.ToString() + strA + charStart.ToString())
- {
- TestLibrary.TestFramework.LogError("005", "normal string trim char[] two ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest4()
- {
- bool retVal = true;
- string strA;
- char[] charA;
- string ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4:normal string trim char[] three");
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- char char1 = this.GetChar(0, c_MINI_STRING_LENGTH);
- char char2 = this.GetChar(c_MINI_STRING_LENGTH, c_MINI_STRING_LENGTH + 68);
- char char3 = this.GetChar(c_MAX_STRING_LENGTH + 68, c_MAX_STRING_LENGTH / 2);
- char charStart = this.GetChar(c_MAX_STRING_LENGTH / 2, c_MAX_STRING_LENGTH);
- charA = new char[] { char1, char2, char3 };
-
- string strA1 = char1.ToString() + charStart.ToString() + char2.ToString() + strA + charStart.ToString() + char3.ToString();
- ActualResult = strA1.Trim(charA);
- if (ActualResult.ToString() != charStart.ToString() + char2.ToString() + strA + charStart.ToString())
- {
- TestLibrary.TestFramework.LogError("007", "normal string trim char[] three ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest5()
- {
- bool retVal = true;
- string strA;
- char[] charA;
- string ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest5:normal string trim char[] four");
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- charA = new char[0];
- string strB = spaceStrings[this.GetInt32(0,spaceStrings.Length)];
- string strA1 = strB + "H" + strA + "D";
- ActualResult = strA1.Trim(charA);
- if (ActualResult.ToString() != "H" + strA + "D")
- {
- TestLibrary.TestFramework.LogError("009", "normal string trim char[] four ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest6()
- {
- bool retVal = true;
- string strA;
- char[] charA;
- string ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest6:normal string trim char[] five");
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- charA = new char[0];
- string strB = spaceStrings[this.GetInt32(0, spaceStrings.Length)];
- string strA1 = strB + "H" + strB + strA + "D" + strB;
- ActualResult = strA1.Trim(charA);
- if (ActualResult.ToString() != "H" + strB + strA + "D")
- {
- TestLibrary.TestFramework.LogError("011", "normal string trim char[] five ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest7()
- {
- bool retVal = true;
- string strA;
- char[] charA;
- string ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest7:normal string trim char[] six");
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- charA = new char[0];
- string strB = spaceStrings[this.GetInt32(0, spaceStrings.Length)];
- string strA1 = "H" + strA + "D" + strB;
- ActualResult = strA1.Trim(charA);
- if (ActualResult.ToString() != "H" + strA + "D")
- {
- TestLibrary.TestFramework.LogError("013", "normal string trim char[] six ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("014", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-
- #region Help method for geting test data
- private Int32 GetInt32(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;
- }
- private Char GetChar(Int32 minValue, Int32 maxValue)
- {
- try
- {
- if (minValue == maxValue)
- {
- return Convert.ToChar(minValue);
- }
- if (minValue < maxValue)
- {
- return Convert.ToChar(Convert.ToInt32(TestLibrary.Generator.GetChar(-55)) % (maxValue - minValue) + minValue);
- }
- }
- catch
- {
- throw;
- }
- return Convert.ToChar(minValue);
- }
- private string GetString(bool ValidPath, Int32 minValue, Int32 maxValue)
- {
- StringBuilder sVal = new StringBuilder();
- string s;
-
- if (0 == minValue && 0 == maxValue) return String.Empty;
- if (minValue > maxValue) return null;
-
- if (ValidPath)
- {
- return TestLibrary.Generator.GetString(-55, ValidPath, minValue, maxValue);
- }
- else
- {
- int length = this.GetInt32(minValue, maxValue);
- for (int i = 0; length > i; i++)
- {
- char c = this.GetChar(minValue, maxValue);
- sVal.Append(c);
- }
- s = sVal.ToString();
- return s;
- }
-
-
- }
- #endregion
-}
-
+++ /dev/null
-// 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;
-
-/// <summary>
-/// String.TrimEnd(char[])
-/// </summary>
-public class StringTrim3
-{
- private int c_MINI_STRING_LENGTH = 8;
- private int c_MAX_STRING_LENGTH = 256;
-
- // U+200B stops being trimmable http://msdn2.microsoft.com/en-us/library/t97s7bs3.aspx
- // U+FEFF has been deprecate as a trimmable space
- private string[] spaceStrings = new string[]{"\u0009","\u000A","\u000B","\u000C","\u000D","\u0020",
- "\u00A0","\u2000","\u2001","\u2002","\u2003","\u2004","\u2005",
- "\u2006","\u2007","\u2008","\u2009","\u200A","\u3000"};
-
- public static int Main()
- {
- StringTrim3 st3 = new StringTrim3();
- TestLibrary.TestFramework.BeginTestCase("StringTrim3");
-
- if (st3.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;
- }
-
- #region PostiveTesting
- public bool PosTest1()
- {
- bool retVal = true;
- string strA;
- char[] charA;
- string ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: empty string trimEnd char[]");
-
- try
- {
- strA = string.Empty;
- charA = new char[] { TestLibrary.Generator.GetChar(-55), TestLibrary.Generator.GetChar(-55), TestLibrary.Generator.GetChar(-55) };
- ActualResult = strA.TrimEnd(charA);
- if (ActualResult != string.Empty)
- {
- TestLibrary.TestFramework.LogError("001", "empty string trimEnd char[] ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
- string strA;
- char[] charA;
- string ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2:normal string trimStart char[] one");
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- char char1 = this.GetChar(0, c_MINI_STRING_LENGTH);
- char char2 = this.GetChar(c_MINI_STRING_LENGTH, c_MINI_STRING_LENGTH + 68);
- char char3 = this.GetChar(c_MINI_STRING_LENGTH + 68, c_MAX_STRING_LENGTH / 2);
- char charEnd = this.GetChar(c_MAX_STRING_LENGTH / 2, c_MAX_STRING_LENGTH);
- charA = new char[] { char1, char2, char3 };
-
- string strA1 = char1.ToString() + char3.ToString() + strA + charEnd.ToString() + char1.ToString() + char3.ToString();
- ActualResult = strA1.TrimEnd(charA);
- if (ActualResult.ToString() != char1.ToString() + char3.ToString() + strA.ToString() + charEnd.ToString())
- {
- TestLibrary.TestFramework.LogError("003", "normal string trimEnd char[] one ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
- string strA;
- char[] charA;
- string ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3:normal string trimEnd char[] two");
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- char char1 = this.GetChar(0, c_MINI_STRING_LENGTH);
- char char2 = this.GetChar(c_MINI_STRING_LENGTH, c_MINI_STRING_LENGTH + 68);
- char char3 = this.GetChar(c_MAX_STRING_LENGTH + 68, c_MAX_STRING_LENGTH / 2);
- char charStart = this.GetChar(c_MAX_STRING_LENGTH / 2, c_MAX_STRING_LENGTH);
- charA = new char[] { char1, char2, char3 };
-
- string strA1 = char1.ToString() + char3.ToString() + charStart.ToString() + strA + char2.ToString() + charStart.ToString() + char1.ToString() + char3.ToString();
- ActualResult = strA1.TrimEnd(charA);
- if (ActualResult.ToString() != char1.ToString() + char3.ToString() + charStart.ToString() + strA + char2.ToString() + charStart.ToString())
- {
- TestLibrary.TestFramework.LogError("005", "normal string trimEnd char[] two ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest4()
- {
- bool retVal = true;
- string strA;
- char[] charA;
- string ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4:normal string trimEnd char[] three");
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- charA = new char[0];
- string strB = spaceStrings[this.GetInt32(0, spaceStrings.Length)];
- string strA1 = strB + "H" + strA + "D" + strB;
- ActualResult = strA1.TrimEnd(charA);
- if (ActualResult.ToString() != strB + "H" + strA + "D")
- {
- TestLibrary.TestFramework.LogError("007", "normal string trimEnd char[] three ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest5()
- {
- bool retVal = true;
- string strA;
- char[] charA;
- string ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest5:normal string trimEnd char[] four");
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- charA = new char[0];
- string strB = spaceStrings[this.GetInt32(0, spaceStrings.Length)];
- string strA1 = strB + "H" + strB + strA + "D" + strB;
- ActualResult = strA1.TrimEnd(charA);
- if (ActualResult.ToString() != strB + "H" + strB + strA + "D")
- {
- TestLibrary.TestFramework.LogError("009", "normal string trimEnd char[] four ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region Help method for geting test data
- private Int32 GetInt32(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;
- }
- private Char GetChar(Int32 minValue, Int32 maxValue)
- {
- try
- {
- if (minValue == maxValue)
- {
- return Convert.ToChar(minValue);
- }
- if (minValue < maxValue)
- {
- return Convert.ToChar(Convert.ToInt32(TestLibrary.Generator.GetChar(-55)) % (maxValue - minValue) + minValue);
- }
- }
- catch
- {
- throw;
- }
- return Convert.ToChar(minValue);
- }
- private string GetString(bool ValidPath, Int32 minValue, Int32 maxValue)
- {
- StringBuilder sVal = new StringBuilder();
- string s;
-
- if (0 == minValue && 0 == maxValue) return String.Empty;
- if (minValue > maxValue) return null;
-
- if (ValidPath)
- {
- return TestLibrary.Generator.GetString(-55, ValidPath, minValue, maxValue);
- }
- else
- {
- int length = this.GetInt32(minValue, maxValue);
- for (int i = 0; length > i; i++)
- {
- char c = this.GetChar(minValue, maxValue);
- sVal.Append(c);
- }
- s = sVal.ToString();
- return s;
- }
-
-
- }
- #endregion
-}
-
+++ /dev/null
-// 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;
-
-/// <summary>
-/// String.TrimStart
-/// </summary>
-public class StringTrim4
-{
- private int c_MINI_STRING_LENGTH = 8;
- private int c_MAX_STRING_LENGTH = 256;
-
- // U+200B stops being trimmable http://msdn2.microsoft.com/en-us/library/t97s7bs3.aspx
- // U+FEFF has been deprecate as a trimmable space
- private string[] spaceStrings = new string[]{"\u0009","\u000A","\u000B","\u000C","\u000D","\u0020",
- "\u00A0","\u2000","\u2001","\u2002","\u2003","\u2004","\u2005",
- "\u2006","\u2007","\u2008","\u2009","\u200A","\u3000"};
-
- public static int Main()
- {
- StringTrim4 st4 = new StringTrim4();
- TestLibrary.TestFramework.BeginTestCase("StringTrim4");
-
- if (st4.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 PostiveTesting
- public bool PosTest1()
- {
- bool retVal = true;
- string strA;
- char[] charA;
- string ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: empty string trimStart char[]");
-
- try
- {
- strA = string.Empty;
- charA = new char[] { TestLibrary.Generator.GetChar(-55), TestLibrary.Generator.GetChar(-55), TestLibrary.Generator.GetChar(-55) };
- ActualResult = strA.TrimStart(charA);
- if (ActualResult != string.Empty)
- {
- TestLibrary.TestFramework.LogError("001", "empty string trimStart char[] ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
- string strA;
- char[] charA;
- string ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2:normal string trimStart char[] one");
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- char char1 = this.GetChar(0, c_MINI_STRING_LENGTH);
- char char2 = this.GetChar(c_MINI_STRING_LENGTH, c_MINI_STRING_LENGTH + 68);
- char char3 = this.GetChar(c_MINI_STRING_LENGTH + 68, c_MAX_STRING_LENGTH / 2);
- char charEnd = this.GetChar(c_MAX_STRING_LENGTH / 2, c_MAX_STRING_LENGTH);
- charA = new char[] { char1, char2, char3 };
-
- string strA1 = char1.ToString() + char3.ToString() + charEnd.ToString() + strA + char1.ToString() + char3.ToString();
- ActualResult = strA1.TrimStart(charA);
- if (ActualResult.ToString() != charEnd.ToString() + strA.ToString() + char1.ToString() + char3.ToString())
- {
- TestLibrary.TestFramework.LogError("003", "normal string trimStart char[] one ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
- string strA;
- char[] charA;
- string ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3:normal string trimStart char[] two");
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- char char1 = this.GetChar(0, c_MINI_STRING_LENGTH);
- char char2 = this.GetChar(c_MINI_STRING_LENGTH, c_MINI_STRING_LENGTH + 68);
- char char3 = this.GetChar(c_MAX_STRING_LENGTH + 68, c_MAX_STRING_LENGTH / 2);
- char charStart = this.GetChar(c_MAX_STRING_LENGTH / 2, c_MAX_STRING_LENGTH);
- charA = new char[] { char1, char2, char3 };
-
- string strA1 = char1.ToString() + char3.ToString() + charStart.ToString() + strA + char2.ToString() + charStart.ToString() + char1.ToString() + char3.ToString();
- ActualResult = strA1.TrimStart(charA);
- if (ActualResult.ToString() != charStart.ToString() + strA + char2.ToString() + charStart.ToString() + char1.ToString() + char3.ToString())
- {
- TestLibrary.TestFramework.LogError("005", "normal string trimStart char[] two ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest4()
- {
- bool retVal = true;
- string strA;
- char[] charA;
- string ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4:normal string trimStart char[] three");
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- charA = new char[0];
- string strB = spaceStrings[this.GetInt32(0, spaceStrings.Length)];
- string strA1 = strB + "H" + strA + "D" + strB;
- ActualResult = strA1.TrimStart(charA);
- if (ActualResult.ToString() != "H" + strA + "D" + strB)
- {
- TestLibrary.TestFramework.LogError("007", "normal string trimStart char[] three ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest5()
- {
- bool retVal = true;
- string strA;
- char[] charA;
- string ActualResult;
-
- TestLibrary.TestFramework.BeginScenario("PosTest5:normal string trimStart char[] four");
- try
- {
- strA = TestLibrary.Generator.GetString(-55, false, c_MINI_STRING_LENGTH, c_MAX_STRING_LENGTH);
- charA = new char[0];
- string strB = spaceStrings[this.GetInt32(0, spaceStrings.Length)];
- string strA1 = strB + "H" + strB + strA + "D" + strB;
- ActualResult = strA1.TrimStart(charA);
- if (ActualResult.ToString() != "H" + strB + strA + "D" + strB)
- {
- TestLibrary.TestFramework.LogError("009", "normal string trimStart char[] four ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest6()
- {
- int iCountErrors = 0;
- TestLibrary.TestFramework.BeginScenario("PosTest7: Trim consistent with char.IsWhitespace");
-
- StringBuilder sb = new StringBuilder();
- for (char c = char.MinValue; c < char.MaxValue; ++c)
- {
- if (char.IsWhiteSpace(c))
- sb.Append(c);
- }
-
- string t = sb.ToString().Trim();
- for(int i = 0; i<t.Length; i++)
- {
- iCountErrors++;
- TestLibrary.TestFramework.LogError("011", "Failure: " + t[i] + " not trimmed correctly.");
- }
-
-
- ///// Finish diagnostics and reporting of results.
-
- if ( iCountErrors == 0 ) { return true; }
- else { return false;}
- }
-
-
- #endregion
- #region Help method for geting test data
- private Int32 GetInt32(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;
- }
- private Char GetChar(Int32 minValue, Int32 maxValue)
- {
- try
- {
- if (minValue == maxValue)
- {
- return Convert.ToChar(minValue);
- }
- if (minValue < maxValue)
- {
- return Convert.ToChar(Convert.ToInt32(TestLibrary.Generator.GetChar(-55)) % (maxValue - minValue) + minValue);
- }
- }
- catch
- {
- throw;
- }
- return Convert.ToChar(minValue);
- }
- private string GetString(bool ValidPath, Int32 minValue, Int32 maxValue)
- {
- StringBuilder sVal = new StringBuilder();
- string s;
-
- if (0 == minValue && 0 == maxValue) return String.Empty;
- if (minValue > maxValue) return null;
-
- if (ValidPath)
- {
- return TestLibrary.Generator.GetString(-55, ValidPath, minValue, maxValue);
- }
- else
- {
- int length = this.GetInt32(minValue, maxValue);
- for (int i = 0; length > i; i++)
- {
- char c = this.GetChar(minValue, maxValue);
- sVal.Append(c);
- }
- s = sVal.ToString();
- return s;
- }
-
-
- }
- #endregion
-}
-
+++ /dev/null
-<?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="stringcomparerctor.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>
-
+++ /dev/null
-// 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>
-
-/// StringComparerActor[v-chche]
-
-/// </summary>
-#region StringComparerCtorTest
-public class StringComparerCtorTest : StringComparer
-{
-
- public StringComparerCtorTest()
- : base() { }
-
- public override bool Equals(object obj)
- {
- return false;
- }
-
- public override bool Equals(string str1,string str2)
- {
- return false;
- }
- public override int GetHashCode(string str)
- {
- return 0;
- }
-
- public override int GetHashCode()
- {
- return 0;
- }
-
- public override int Compare(string x, string y)
- {
- return 0;
- }
-}
-#endregion
-
-public class StringComparerActor
-{
-
- #region Public Methods
-
- public bool RunTests()
- {
-
- bool retVal = true;
-
-
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
-
- retVal = PosTest1() && 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 Class StringComparer Ctor");
-
-
-
- try
- {
-
- StringComparer sc = new StringComparerCtorTest();
- if (sc == null)
- {
- TestLibrary.TestFramework.LogError("001.1", " StringComparer Ctor Err.");
- retVal = false;
- }
-
- }
-
- catch (Exception e)
- {
-
- TestLibrary.TestFramework.LogError("001", "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()
- {
-
- StringComparerActor test = new StringComparerActor();
-
-
-
- TestLibrary.TestFramework.BeginTestCase("StringComparerActor");
-
-
-
- if (test.RunTests())
- {
-
- TestLibrary.TestFramework.EndTestCase();
-
- TestLibrary.TestFramework.LogInformation("PASS");
-
- return 100;
-
- }
-
- else
- {
-
- TestLibrary.TestFramework.EndTestCase();
-
- TestLibrary.TestFramework.LogInformation("FAIL");
-
- return 0;
-
- }
-
- }
-
-}
-
-
+++ /dev/null
-<?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="autoreseteventctor.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>
+++ /dev/null
-<?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="autoreseteventreset.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>
+++ /dev/null
-<?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="autoreseteventset.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>
+++ /dev/null
-// 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;
-using System.Threading;
-
-public class AutoResetEventCtor
-{
- private const int c_MILLISECONDS_TOWAIT = 5000; // milliseconds
- private const long c_DELTA = 9999999; // ticks (.999 seconds)
-
- public static int Main()
- {
- AutoResetEventCtor test = new AutoResetEventCtor();
-
- TestLibrary.TestFramework.BeginTestCase("AutoResetEventCtor");
-
- 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;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- AutoResetEvent are;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: AutoResetEvent.Ctor(true)");
-
- try
- {
- // true means that the initial state should be signaled
- are = new AutoResetEvent(true);
-
- // verify that the autoreset event is signaled
- // if it is not signaled the following call will block for ever
- TestLibrary.TestFramework.LogInformation("Calling AutoResetEvent.WaitOne()... if the event is not signaled it will hang");
- are.WaitOne();
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- AutoResetEvent are;
- Stopwatch sw;
- long elapsedTicks;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: AutoResetEvent.Ctor(false)");
-
- try
- {
- // true means that the initial state should be signaled
- are = new AutoResetEvent(false);
-
- sw = Stopwatch.StartNew();
-
- // verify that the autoreset event is signaled
- // if it is not signaled the following call will block for ever
- TestLibrary.TestFramework.LogInformation("Calling AutoResetEvent.WaitOne()... if the event is signaled it will not wait long enough");
- are.WaitOne(c_MILLISECONDS_TOWAIT);
-
- sw.Stop();
- elapsedTicks = sw.Elapsed.Ticks;
-
- if (c_DELTA < Math.Abs(elapsedTicks - (c_MILLISECONDS_TOWAIT*10000)))
- {
- TestLibrary.TestFramework.LogError("002", "AutoResetEvent did not wait long enough... this implies that the parameter was not respected.");
- TestLibrary.TestFramework.LogError("002", " WaitTime=" + elapsedTicks + " (ticks)");
- TestLibrary.TestFramework.LogError("002", " Execpted=" + (c_MILLISECONDS_TOWAIT*10000) + " (ticks)");
- TestLibrary.TestFramework.LogError("002", " Acceptable Delta=" + c_DELTA + " (ticks)");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
-}
+++ /dev/null
-// 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.Threading;
-
-public class AutoResetEventReset
-{
- private const int c_MILLISECONDS_TOWAIT = 5000; // milliseconds
- private const long c_DELTA = 9999999; // ticks (0.999 seconds)
-
- public static int Main()
- {
- AutoResetEventReset test = new AutoResetEventReset();
-
- TestLibrary.TestFramework.BeginTestCase("AutoResetEventReset");
-
- 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;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- AutoResetEvent are;
- long ticksBefore;
- long ticksAfter;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: AutoResetEvent.Reset()");
-
- try
- {
- // true means that the initial state should be signaled
- are = new AutoResetEvent(true);
-
- if (!are.Reset())
- {
- TestLibrary.TestFramework.LogError("001", "AutoResetEvent.Reset() failed");
- retVal = false;
- }
-
- ticksBefore = DateTime.Now.Ticks;
-
- // verify that the autoreset event is signaled
- // if it is not signaled the following call will block for ever
- TestLibrary.TestFramework.LogInformation("Calling AutoResetEvent.WaitOne()... if the event is signaled it will not wait long enough");
- are.WaitOne(c_MILLISECONDS_TOWAIT);
-
- ticksAfter = DateTime.Now.Ticks;
-
- if (c_DELTA < Math.Abs((ticksAfter - ticksBefore) - (c_MILLISECONDS_TOWAIT*10000)))
- {
- TestLibrary.TestFramework.LogError("002", "AutoResetEvent did not wait long enough... this implies that the parameter was not respected.");
- TestLibrary.TestFramework.LogError("002", " WaitTime=" + (ticksAfter-ticksBefore) + " (ticks)");
- TestLibrary.TestFramework.LogError("002", " Execpted=" + (c_MILLISECONDS_TOWAIT*10000) + " (ticks)");
- TestLibrary.TestFramework.LogError("002", " Acceptable Delta=" + c_DELTA + " (ticks)");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
-}
+++ /dev/null
-// 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.Threading;
-
-public class AutoResetEventSet
-{
- public static int Main()
- {
- AutoResetEventSet test = new AutoResetEventSet();
-
- TestLibrary.TestFramework.BeginTestCase("AutoResetEventSet");
-
- 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;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- AutoResetEvent are;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: AutoResetEvent.Set()");
-
- try
- {
- // false means that the initial state should be not signaled
- are = new AutoResetEvent(false);
-
- // set the signal
- if (!are.Set())
- {
- TestLibrary.TestFramework.LogError("001", "AutoResetEvent.Set() failed");
- retVal = false;
- }
-
- // verify that the autoreset event is signaled
- // if it is not signaled the following call will block for ever
- TestLibrary.TestFramework.LogInformation("Calling AutoResetEvent.WaitOne()... if the event is not signaled it will hang");
- are.WaitOne();
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
-}
+++ /dev/null
-<?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="manualreseteventctor.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>
+++ /dev/null
-// 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.Threading;
-
-///<summary>
-///System.Threading.ManualResetEvent.Ctor(bool) [v-zuolan]
-///</summary>
-
-public class ManualResetEventCtor
-{
-
- public static int Main()
- {
- ManualResetEventCtor testObj = new ManualResetEventCtor();
- TestLibrary.TestFramework.BeginTestCase("for constructor of System.Threading.ManualResetEvent");
- 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;
-
- ManualResetEvent expectedValue = new ManualResetEvent(true);
- ManualResetEvent actualValue;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1:Set initialState as true and Create a instance");
- try
- {
- actualValue = (ManualResetEvent)(new ManualResetEvent(true));
- if (expectedValue.Equals(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;
-
- ManualResetEvent expectedValue = new ManualResetEvent(false);
- ManualResetEvent actualValue;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2:Set initialState as false and Create a instance");
- try
- {
- actualValue = (ManualResetEvent)(new ManualResetEvent(false));
- if (expectedValue.Equals(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
-}
+++ /dev/null
-<?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="timeoutinfinite.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>
+++ /dev/null
-// 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.Threading;
-
-///<summary>
-///System.Threading.TimeOut.Infinite [v-zuolan]
-///</summary>
-
-public class TimeOutInfinite
-{
-
- public static int Main()
- {
- TimeOutInfinite testObj = new TimeOutInfinite();
- TestLibrary.TestFramework.BeginTestCase("for field of System.Threading.TimeOut.Infinite");
- 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 = Timeout.Infinite;
-
- 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
-}
+++ /dev/null
-<?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="waithandlector.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>
+++ /dev/null
-<?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="waithandledispose1.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>
+++ /dev/null
-<?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="waithandledispose3.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>
+++ /dev/null
-// 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.Threading;
-
-public class TestWaitHandle : WaitHandle
-{
- public TestWaitHandle()
- : base()
- {
- }
-}
-
-/// <summary>
-/// Ctor
-/// </summary>
-public class WaitHandleCtor
-{
- #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 construct a new instance of WaitHandle");
-
- try
- {
- TestWaitHandle handle = new TestWaitHandle();
-
- if (handle == null)
- {
- TestLibrary.TestFramework.LogError("001.1", "Calling Ctor to construct a new instance of WaitHandle returns a 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()
- {
- WaitHandleCtor test = new WaitHandleCtor();
-
- TestLibrary.TestFramework.BeginTestCase("WaitHandleCtor");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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.Threading;
-
-// WaitHandle is typically used as a base
-// class for synchronization objects. In this case,
-// we just subclass it.
-public class TestWaitHandle1 : WaitHandle
-{
- public TestWaitHandle1()
- {
- }
-
- public void DoDispose(bool explicitDisposing)
- {
- Dispose(explicitDisposing);
- }
-}
-
-/// <summary>
-/// Dispose(System.Boolean)
-/// </summary>
-
-
-// Tests that we can call Dispose on a subclass
-// of WaitHandle, with explicitDisposing = true and false.
-// Dispose is called by the WaitHandle.Dispose()
-// method and the Finalize method. Dispose() invokes this
-// protected method with the explicitDisposing parameter set to
-// true (Dispose both managed and unmanaged resources).
-// Finalize invokes Dispose with explicitDisposing set to false
-// (Dispose only unmanaged resources).
-public class WaitHandleDispose1
-{
- #region Public Constants
- public const int c_DEFAULT_WAIT_TIME = 1000; // 1 second
- #endregion
-
- #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 = false;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Call Dispose with explicitDisposing set to true");
-
- try
- {
- // Create a WaitHandle-derived object
- TestWaitHandle1 handle = new TestWaitHandle1();
-
- // Dispose both managed and
- // unmanaged resources (DoDispose just calls
- // Dispose)
- handle.DoDispose(true);
-
- // Do a waitone on the handle, should immediately throw
- // ObjectDisposedException
- handle.WaitOne(c_DEFAULT_WAIT_TIME);
-
- // if we get here, it wasn't disposed of, error
- TestLibrary.TestFramework.LogError("001", "handle.Dispose(true) did not dispose of the handle");
- retVal = false;
- }
- catch (ObjectDisposedException)
- {
- // swallow it, this is where we wanted to go
- retVal = true;
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = false;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Call Dispose with explicitDisposing set to false");
-
- try
- {
- TestWaitHandle1 handle = new TestWaitHandle1();
-
- // Dispose only unmanaged resources.
- // (DoDispose just calls Dispose)
- handle.DoDispose(false);
-
- // Do a waitone on the handle, should get ObjectDisposedException
- handle.WaitOne(c_DEFAULT_WAIT_TIME);
-
- // if we get here, it wasn't disposed of, error
- TestLibrary.TestFramework.LogError("003", "handle.Dispose(false) did not dispose of the handle");
- retVal = false;
- }
- catch (ObjectDisposedException)
- {
- // swallow it, this is where we wanted to go
- retVal = true;
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- WaitHandleDispose1 test = new WaitHandleDispose1();
-
- TestLibrary.TestFramework.BeginTestCase("WaitHandleDispose1");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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.Threading;
-
-/// <summary>
-/// System.IDisposable.Dispose
-/// </summary>
-
-// Tests disposing of a WaitHandle-derived type
-// via the IDisposable interface.
-// This test has been made to work for Silverlight
-// by using AutoResetEvent instead of Mutex
-public class WaitHandleDispose3
-{
- #region Public Constants
- public const int c_DEFAULT_WAIT_TIME = 1000; // 1 second
- #endregion
-
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
-
- return retVal;
- }
-
- #region Positive Test Cases
- // no need for security attributes
- // [System.Security.SecuritySafeCritical]
- // [System.Security.SecurityCritical]
- public bool PosTest1()
- {
- bool retVal = false;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Call Dispose");
-
- try
- {
- // AutoResetEvent derives from WaitHandle,
- // and normally you don't create a WaitHandle
- // was: WaitHandle handle = new Mutex();
- // create unsignaled
- WaitHandle handle = new AutoResetEvent(false);
-
- // cast to IDisposable, because waithandle does not implement .dispose
- IDisposable disposable = handle as IDisposable;
- disposable.Dispose();
-
-
- // Do a waitone on the handle, should immediately throw
- // ObjectDisposedException
- handle.WaitOne(c_DEFAULT_WAIT_TIME);
-
- // if we get here, it wasn't disposed of, error
- TestLibrary.TestFramework.LogError("001", "handle.Dispose() did not dispose of the handle");
- retVal = false;
- }
- catch (ObjectDisposedException)
- {
- // swallow it, this is where we wanted to go
- retVal = true;
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- // should be no need for security attributes
- // [System.Security.SecurityCritical]
- public static int Main()
- {
- WaitHandleDispose3 test = new WaitHandleDispose3();
-
- TestLibrary.TestFramework.BeginTestCase("WaitHandleDispose3");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-<?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="uint16compareto1.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>
-
+++ /dev/null
-<?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="uint16equals1.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>
-
+++ /dev/null
-<?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="uint16equals2.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>
-
+++ /dev/null
-<?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="uint16iconvertibletoboolean.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>
-
+++ /dev/null
-<?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="uint16iconvertibletobyte.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>
-
+++ /dev/null
-<?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="uint16iconvertibletochar.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>
-
+++ /dev/null
-<?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="uint16iconvertibletodatetime.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>
-
+++ /dev/null
-<?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="uint16iconvertibletodecimal.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>
-
+++ /dev/null
-<?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="uint16iconvertibletodouble.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>
-
+++ /dev/null
-<?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="uint16iconvertibletoint16.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>
-
+++ /dev/null
-<?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="uint16iconvertibletoint32.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>
-
+++ /dev/null
-<?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="uint16iconvertibletoint64.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>
-
+++ /dev/null
-<?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="uint16iconvertibletosbyte.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>
-
+++ /dev/null
-<?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="uint16iconvertibletosingle.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>
-
+++ /dev/null
-<?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="uint16iconvertibletotype.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>
-
+++ /dev/null
-<?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="uint16iconvertibletouint16.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>
-
+++ /dev/null
-<?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="uint16iconvertibletouint32.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>
-
+++ /dev/null
-<?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="uint16iconvertibletouint64.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>
-
+++ /dev/null
-<?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="uint16tostring3.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>
-
+++ /dev/null
-<?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="uint16tostring4.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>
-
+++ /dev/null
-// 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>
-/// UInt16.CompareTo(System.UInt16)
-/// </summary>
-public class UInt16CompareTo
-{
- public static int Main()
- {
- UInt16CompareTo ui32ct2 = new UInt16CompareTo();
- TestLibrary.TestFramework.BeginTestCase("for method: UInt16.CompareTo(UInt16)");
-
- if (ui32ct2.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 PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- int ActualResult;
- TestLibrary.TestFramework.BeginScenario("PosTest1: UInt16 value is larger than the instance");
- try
- {
- UInt16 uintA = 0;
- UInt16 comValue = (UInt16)this.GetInt32(1, UInt16.MaxValue);
- ActualResult = uintA.CompareTo(comValue);
- if (ActualResult >= 0)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
- int ActualResult;
- TestLibrary.TestFramework.BeginScenario("PosTest2: UInt16 value is less than the instance");
- try
- {
- UInt16 uintA = 0xffff;
- UInt16 comValue = (UInt16)this.GetInt32(0, UInt16.MaxValue);
- ActualResult = uintA.CompareTo(comValue);
- if (ActualResult <= 0)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
- int ActualResult;
- TestLibrary.TestFramework.BeginScenario("PosTest3: UInt16 value is equal the instance");
- try
- {
- UInt16 uintA = 0xffff;
- UInt16 comValue = UInt16.MaxValue;
- ActualResult = uintA.CompareTo(comValue);
- if (ActualResult != 0)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest4()
- {
- bool retVal = true;
- int ActualResult;
- TestLibrary.TestFramework.BeginScenario("PosTest4: UInt16 value is UInt16 min value");
- try
- {
- UInt32 uintA = 0xffff;
- UInt32 comValue = UInt16.MinValue;
- ActualResult = uintA.CompareTo(comValue);
- if (ActualResult <= 0)
- {
- TestLibrary.TestFramework.LogError("007", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region ForTestObject
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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>
-/// UInt16.Equals(System.Object)
-/// </summary>
-public class UInt16Equals
-{
- public static int Main()
- {
- UInt16Equals ui32e1 = new UInt16Equals();
- TestLibrary.TestFramework.BeginTestCase("for method: UInt16.Equals(Object)");
-
- if (ui32e1.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;
- }
- #region
- public bool PosTest1()
- {
- bool retVal = true;
- bool ActualResult;
- TestLibrary.TestFramework.BeginScenario("PosTest1: object value is null");
- try
- {
- UInt16 uintA = (UInt16)this.GetInt32(0, UInt16.MaxValue);
- object comValue = null;
- ActualResult = uintA.Equals(comValue);
- if (ActualResult)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
- bool ActualResult;
- TestLibrary.TestFramework.BeginScenario("PosTest2: object value is declaring class");
- try
- {
- UInt16 uintA = (UInt16)this.GetInt32(0, UInt16.MaxValue);
- object comValue = new MyTest();
- ActualResult = uintA.Equals(comValue);
- if (ActualResult)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
- bool ActualResult;
- TestLibrary.TestFramework.BeginScenario("PosTest3: object value is the instance value but the types are different");
- try
- {
- Int16 comValue = TestLibrary.Generator.GetInt16(-55);
- UInt16 uintA = (UInt16)comValue;
- ActualResult = uintA.Equals(comValue);
- if (ActualResult)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest4()
- {
- bool retVal = true;
- bool ActualResult;
- TestLibrary.TestFramework.BeginScenario("PosTest4: object and the instance have the same type and the same value 1");
- try
- {
- UInt16 uintA = 0xffff;
- UInt16 comValue = UInt16.MaxValue;
- ActualResult = uintA.Equals(comValue);
- if (!ActualResult)
- {
- TestLibrary.TestFramework.LogError("007", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest5()
- {
- bool retVal = true;
- bool ActualResult;
- TestLibrary.TestFramework.BeginScenario("PosTest5: object and the instance have the same type and the same value 2");
- try
- {
- UInt16 uintA = 0;
- UInt16 comValue = UInt16.MinValue;
- ActualResult = uintA.Equals(comValue);
- if (!ActualResult)
- {
- TestLibrary.TestFramework.LogError("009", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region ForTestObject
- public class MyTest { }
- private Int32 GetInt32(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
-
-}
+++ /dev/null
-// 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>
-/// UInt16.Equals(System.UInt16)
-/// </summary>
-public class UInt16Equals
-{
- public static int Main(string[] args)
- {
- UInt16Equals ui32e2 = new UInt16Equals();
- TestLibrary.TestFramework.BeginTestCase("UInt16.Equals(UInt16)");
-
- if (ui32e2.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;
- bool ActualResult;
- TestLibrary.TestFramework.BeginScenario("PosTest1: UInt16 value is zero");
- try
- {
- UInt16 uintA = (UInt16)this.GetInt32(1, UInt16.MaxValue);
- UInt16 comValue = 0;
- ActualResult = uintA.Equals(comValue);
- if (ActualResult)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
- bool ActualResult;
- TestLibrary.TestFramework.BeginScenario("PosTest2: UInt32 value is different from the instance 1");
- try
- {
- UInt16 intA = (UInt16)this.GetInt32(0, UInt16.MaxValue - 1);
- UInt16 uintA = (UInt16)intA;
- UInt16 comValue = (UInt16)(intA + 1);
- ActualResult = uintA.Equals(comValue);
- if (ActualResult)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
- bool ActualResult;
- TestLibrary.TestFramework.BeginScenario("PosTest3: UInt32 value is different from the instance 2");
- try
- {
- UInt16 intA = (UInt16)this.GetInt32(0, UInt16.MaxValue);
- UInt16 uintA = (UInt16)(intA + 1);
- UInt16 comValue = (UInt16)intA;
- ActualResult = uintA.Equals(comValue);
- if (ActualResult)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest4()
- {
- bool retVal = true;
- bool ActualResult;
- TestLibrary.TestFramework.BeginScenario("PosTest4: UInt32 value is equal the instance ");
- try
- {
- UInt16 uintA = 0xffff;
- UInt16 comValue = UInt16.MaxValue;
- ActualResult = uintA.Equals(comValue);
- if (!ActualResult)
- {
- TestLibrary.TestFramework.LogError("007", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- #region ForTestObject
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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>
-/// UInt16.System.IConvertible.ToBoolean(IFormatPrvoider)
-/// </summary>
-public class UInt16IConvertibleToBoolean
-{
- public static int Main()
- {
- UInt16IConvertibleToBoolean testObj = new UInt16IConvertibleToBoolean();
-
- TestLibrary.TestFramework.BeginTestCase("for method: UInt16.System.IConvertible.ToBoolean(IFormatProvider)");
- 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;
-
- return retVal;
- }
-
- #region Positive tests
- public bool PosTest1()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- bool expectedValue;
- bool actualValue;
- IConvertible convert;
-
- uintA = (UInt16)(TestLibrary.Generator.GetInt32(-55) % (UInt16.MaxValue + 1));
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Random UInt16 value between 0 and UInt16.MaxValue.");
- try
- {
- convert = (IConvertible)uintA;
-
- actualValue = convert.ToBoolean(null);
- expectedValue = 0 != uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc = "The boolean value of " + uintA + " is not the value " + expectedValue +
- " as expected: actual(" + actualValue + ")";
- TestLibrary.TestFramework.LogError("001", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("002", errorDesc);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- bool expectedValue;
- bool actualValue;
- IConvertible convert;
-
- uintA = UInt16.MaxValue;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: value is UInt16.MaxValue.");
- try
- {
- convert = (IConvertible)uintA;
-
- actualValue = convert.ToBoolean(null);
- expectedValue = 0 != uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc = "The boolean value of " + uintA + " is not the value " + expectedValue +
- " as expected: actual(" + actualValue + ")";
- TestLibrary.TestFramework.LogError("003", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("004", errorDesc);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- bool expectedValue;
- bool actualValue;
- IConvertible convert;
-
- uintA = UInt16.MinValue;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: value is UInt16.MinValue.");
- try
- {
- convert = (IConvertible)uintA;
-
- actualValue = convert.ToBoolean(null);
- expectedValue = 0 != uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc = "The boolean value of " + uintA + " is not the value " + expectedValue +
- " as expected: actual(" + actualValue + ")";
- TestLibrary.TestFramework.LogError("005", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("006", errorDesc);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// UInt16.System.IConvertible.ToByte(IFormatPrvoider)
-/// </summary>
-public class UInt16IConvertibleToByte
-{
- public static int Main()
- {
- UInt16IConvertibleToByte testObj = new UInt16IConvertibleToByte();
-
- TestLibrary.TestFramework.BeginTestCase("for method: UInt16.System.IConvertible.ToByte(IFormatProvider)");
- 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;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = NegTest1() && retVal;
-
- return retVal;
- }
-
- #region Positive tests
- public bool PosTest1()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- Byte expectedValue;
- Byte actualValue;
- IConvertible convert;
-
- uintA = (UInt16)(TestLibrary.Generator.GetInt32(-55) % (Byte.MaxValue + 1));
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Random UInt16 value between 0 and Byte.MaxValue.");
- try
- {
- convert = (IConvertible)uintA;
-
- actualValue = convert.ToByte(null);
- expectedValue = (byte)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc = "The byte value of " + uintA + " is not the value " + expectedValue +
- " as expected: actual(" + actualValue + ")";
- TestLibrary.TestFramework.LogError("001", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("002", errorDesc);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- Byte expectedValue;
- Byte actualValue;
- IConvertible convert;
-
- uintA = byte.MaxValue;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: value is Byte.MaxValue.");
- try
- {
- convert = (IConvertible)uintA;
- actualValue = convert.ToByte(null);
- expectedValue = (byte)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc = "The byte value of " + uintA + " is not the value " + expectedValue +
- " as expected: actual(" + actualValue + ")";
- TestLibrary.TestFramework.LogError("003", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("004", errorDesc);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- Byte expectedValue;
- Byte actualValue;
- IConvertible convert;
-
- uintA = UInt16.MinValue;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: value is UInt16.MinValue.");
- try
- {
- convert = (IConvertible)uintA;
- actualValue = convert.ToByte(null);
- expectedValue = (byte)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc = "The byte value of " + uintA + " is not the value " + expectedValue +
- " as expected: actual(" + actualValue + ")";
- TestLibrary.TestFramework.LogError("005", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("006", errorDesc);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-
- #region Negative tests
-
- //OverflowException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N001";
- const string c_TEST_DESC = "NegTest1: value is greater than Byte.MaxValue";
- string errorDesc;
-
- UInt16 uintA;
- IConvertible convert;
-
- uintA = byte.MaxValue + 1;
- convert = (IConvertible)uintA;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- convert.ToByte(null);
- errorDesc = "OverflowException is not thrown as expected.";
- TestLibrary.TestFramework.LogError("011" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
-
- }
- catch (OverflowException)
- { }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("012" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- return retVal;
- }
-
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// UInt16.System.IConvertible.ToChar(IFormatPrvoider)
-/// </summary>
-public class UInt16IConvertibleToChar
-{
- public static int Main()
- {
- UInt16IConvertibleToChar testObj = new UInt16IConvertibleToChar();
-
- TestLibrary.TestFramework.BeginTestCase("for method: UInt16.System.IConvertible.ToChar(IFormatProvider)");
- 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;
-
- return retVal;
- }
-
- #region Positive tests
- public bool PosTest1()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- char expectedValue;
- char actualValue;
- IConvertible convert;
-
- uintA = (UInt16)(TestLibrary.Generator.GetInt32(-55) % (UInt16.MaxValue + 1));
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Random UInt16 value between 0 and UInt16.MaxValue.");
- try
- {
- convert = (IConvertible)uintA;
-
- actualValue = convert.ToChar(null);
- expectedValue = (char)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc =
- string.Format("The char value of {0} is not the value \\u{1:x} as expected: actual(\\u{2:x})",
- uintA, (int)expectedValue, (int)actualValue);
- TestLibrary.TestFramework.LogError("001", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("002", errorDesc);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- char expectedValue;
- char actualValue;
- IConvertible convert;
-
- uintA = UInt16.MaxValue;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Value is UInt16.MaxValue.");
- try
- {
- convert = (IConvertible)uintA;
-
- actualValue = convert.ToChar(null);
- expectedValue = (char)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc =
- string.Format("The char value of {0} is not the value \\u{1:x} as expected: actual(\\u{2:x})",
- uintA, (int)expectedValue, (int)actualValue);
- TestLibrary.TestFramework.LogError("003", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("004", errorDesc);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- char expectedValue;
- char actualValue;
- IConvertible convert;
-
- uintA = UInt16.MinValue;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Value is UInt16.MinValue.");
- try
- {
- convert = (IConvertible)uintA;
-
- actualValue = convert.ToChar(null);
- expectedValue = (char)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc =
- string.Format("The char value of {0} is not the value \\u{1:x} as expected: actual(\\u{2:x})",
- uintA, (int)expectedValue, (int)actualValue);
- TestLibrary.TestFramework.LogError("005", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("006", errorDesc);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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;
-
-/// <summary>
-/// UInt16.System.IConvertible.ToDateTime(IFormatProvider)
-/// Note This conversion is not supported. Attempting to do so throws an InvalidCastException.
-/// </summary>
-public class UInt16IConvertibleToDateTime
-{
- public static int Main()
- {
- UInt16IConvertibleToDateTime testObj = new UInt16IConvertibleToDateTime();
-
- TestLibrary.TestFramework.BeginTestCase("for method: UInt16.System.IConvertible.ToDateTime(IFormatProvider)");
- 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("[Negative]");
- retVal = NegTest1() && retVal;
-
- return retVal;
- }
-
- #region Negative tests
- //InvalidCastException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N001";
- const string c_TEST_DESC = "NegTest1: Random character";
- string errorDesc;
-
- UInt16 i = (UInt16)(TestLibrary.Generator.GetInt32(-55) % (UInt16.MaxValue + 1));
- IConvertible convert;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- convert = (IConvertible)i;
- convert.ToDateTime(null);
-
- errorDesc = "InvalidCastException is not thrown as expected.";
- errorDesc += string.Format("\nThe UInt16 value is {0}", i);
- TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
-
- }
- catch (InvalidCastException)
- { }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe character is {0}", i);
- TestLibrary.TestFramework.LogError("002" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// UInt16.System.IConvertible.ToDecimal(IFormatPrvoider)
-/// </summary>
-public class UInt16IConvertibleToDecimal
-{
- public static int Main()
- {
- UInt16IConvertibleToDecimal testObj = new UInt16IConvertibleToDecimal();
-
- TestLibrary.TestFramework.BeginTestCase("for method: UInt16.System.IConvertible.ToDecimal(IFormatProvider)");
- 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;
-
- return retVal;
- }
-
- #region Positive tests
- public bool PosTest1()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- decimal expectedValue;
- decimal actualValue;
- IConvertible convert;
-
- uintA = (UInt16)(TestLibrary.Generator.GetInt32(-55) % (UInt16.MaxValue + 1));
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Random UInt16 value between 0 and UInt16.MaxValue.");
- try
- {
- convert = (IConvertible)uintA;
-
- actualValue = convert.ToDecimal(null);
- expectedValue = (decimal)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc =
- string.Format("The char value of {0} is not the value \\u{1:x} as expected: actual(\\u{2:x})",
- uintA, (int)expectedValue, (int)actualValue);
- TestLibrary.TestFramework.LogError("001", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("002", errorDesc);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- decimal expectedValue;
- decimal actualValue;
- IConvertible convert;
-
- uintA = UInt16.MaxValue;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Value is UInt16.MaxValue.");
- try
- {
- convert = (IConvertible)uintA;
-
- actualValue = convert.ToDecimal(null);
- expectedValue = (decimal)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc =
- string.Format("The char value of {0} is not the value \\u{1:x} as expected: actual(\\u{2:x})",
- uintA, (int)expectedValue, (int)actualValue);
- TestLibrary.TestFramework.LogError("003", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("004", errorDesc);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- decimal expectedValue;
- decimal actualValue;
- IConvertible convert;
-
- uintA = UInt16.MinValue;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Value is UInt16.MinValue.");
- try
- {
- convert = (decimal)uintA;
-
- actualValue = convert.ToDecimal(null);
- expectedValue = (char)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc =
- string.Format("The char value of {0} is not the value \\u{1:x} as expected: actual(\\u{2:x})",
- uintA, (int)expectedValue, (int)actualValue);
- TestLibrary.TestFramework.LogError("005", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("006", errorDesc);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// UInt16.System.IConvertible.ToDouble(IFormatPrvoider)
-/// </summary>
-public class UInt16IConvertibleToDouble
-{
- public static int Main()
- {
- UInt16IConvertibleToDouble testObj = new UInt16IConvertibleToDouble();
-
- TestLibrary.TestFramework.BeginTestCase("for method: UInt16.System.IConvertible.ToDouble(IFormatProvider)");
- 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;
-
- return retVal;
- }
-
- #region Positive tests
- public bool PosTest1()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- Double expectedValue;
- Double actualValue;
- IConvertible convert;
-
- uintA = (UInt16)(TestLibrary.Generator.GetInt32(-55) % (UInt16.MaxValue + 1));
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Random UInt16 value between 0 and UInt16.MaxValue.");
- try
- {
- convert = (IConvertible)uintA;
-
- actualValue = convert.ToDouble(null);
- expectedValue = (Double)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc =
- string.Format("The char value of {0} is not the value \\u{1:x} as expected: actual(\\u{2:x})",
- uintA, (int)expectedValue, (int)actualValue);
- TestLibrary.TestFramework.LogError("001", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("002", errorDesc);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- Double expectedValue;
- Double actualValue;
- IConvertible convert;
-
- uintA = UInt16.MaxValue;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Value is UInt16.MaxValue.");
- try
- {
- convert = (IConvertible)uintA;
-
- actualValue = convert.ToDouble(null);
- expectedValue = (Double)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc =
- string.Format("The char value of {0} is not the value \\u{1:x} as expected: actual(\\u{2:x})",
- uintA, (int)expectedValue, (int)actualValue);
- TestLibrary.TestFramework.LogError("003", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("004", errorDesc);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- Double expectedValue;
- Double actualValue;
- IConvertible convert;
-
- uintA = UInt16.MinValue;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Value is UInt16.MinValue.");
- try
- {
- convert = (Double)uintA;
-
- actualValue = convert.ToDouble(null);
- expectedValue = (char)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc =
- string.Format("The char value of {0} is not the value \\u{1:x} as expected: actual(\\u{2:x})",
- uintA, (int)expectedValue, (int)actualValue);
- TestLibrary.TestFramework.LogError("005", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("006", errorDesc);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// UInt16.System.IConvertible.ToInt16(IFormatPrvoider)
-/// </summary>
-public class UInt16IConvertibleToInt16
-{
- public static int Main()
- {
- UInt16IConvertibleToInt16 testObj = new UInt16IConvertibleToInt16();
-
- TestLibrary.TestFramework.BeginTestCase("for method: UInt16.System.IConvertible.ToInt16(IFormatProvider)");
- 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;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = NegTest1() && retVal;
-
- return retVal;
- }
-
- #region Positive tests
- public bool PosTest1()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- Int16 expectedValue;
- Int16 actualValue;
- IConvertible convert;
-
- uintA = (UInt16)(TestLibrary.Generator.GetInt32(-55) % (Int16.MaxValue + 1));
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Random UInt16 value between 0 and Byte.MaxValue.");
- try
- {
- convert = (IConvertible)uintA;
-
- actualValue = convert.ToInt16(null);
- expectedValue = (Int16)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc = "The Int16 value of " + uintA + " is not the value " + expectedValue +
- " as expected: actual(" + actualValue + ")";
- TestLibrary.TestFramework.LogError("001", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("002", errorDesc);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- Int16 expectedValue;
- Int16 actualValue;
- IConvertible convert;
-
- uintA = (UInt16)Int16.MaxValue;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: value is Int16.MaxValue.");
- try
- {
- convert = (IConvertible)uintA;
- actualValue = convert.ToInt16(null);
- expectedValue = (Int16)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc = "The Int16 value of " + uintA + " is not the value " + expectedValue +
- " as expected: actual(" + actualValue + ")";
- TestLibrary.TestFramework.LogError("003", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("004", errorDesc);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- Int16 expectedValue;
- Int16 actualValue;
- IConvertible convert;
-
- uintA = UInt16.MinValue;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: value is UInt16.MinValue.");
- try
- {
- convert = (IConvertible)uintA;
- actualValue = convert.ToInt16(null);
- expectedValue = (Int16)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc = "The Int16 value of " + uintA + " is not the value " + expectedValue +
- " as expected: actual(" + actualValue + ")";
- TestLibrary.TestFramework.LogError("005", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("006", errorDesc);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-
- #region Negative tests
-
- //OverflowException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N001";
- const string c_TEST_DESC = "NegTest1: value is greater than Int16.MaxValue";
- string errorDesc;
-
- UInt16 uintA;
- IConvertible convert;
-
- uintA = Int16.MaxValue + 1;
- convert = (IConvertible)uintA;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- convert.ToInt16(null);
- errorDesc = "OverflowException is not thrown as expected.";
- TestLibrary.TestFramework.LogError("011" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
-
- }
- catch (OverflowException)
- { }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("012" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- return retVal;
- }
-
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// UInt16.System.IConvertible.ToInt32(IFormatPrvoider)
-/// </summary>
-public class UInt16IConvertibleToInt32
-{
- public static int Main()
- {
- UInt16IConvertibleToInt32 testObj = new UInt16IConvertibleToInt32();
-
- TestLibrary.TestFramework.BeginTestCase("for method: UInt16.System.IConvertible.ToInt32(IFormatProvider)");
- 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;
-
- return retVal;
- }
-
- #region Positive tests
- public bool PosTest1()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- Int32 expectedValue;
- Int32 actualValue;
- IConvertible convert;
-
- uintA = (UInt16)(TestLibrary.Generator.GetInt32(-55) % (UInt16.MaxValue + 1));
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Random UInt16 value between 0 and UInt16.MaxValue.");
- try
- {
- convert = (IConvertible)uintA;
-
- actualValue = convert.ToInt32(null);
- expectedValue = (Int32)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc =
- string.Format("The char value of {0} is not the value \\u{1:x} as expected: actual(\\u{2:x})",
- uintA, (int)expectedValue, (int)actualValue);
- TestLibrary.TestFramework.LogError("001", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("002", errorDesc);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- Int32 expectedValue;
- Int32 actualValue;
- IConvertible convert;
-
- uintA = UInt16.MaxValue;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Value is UInt16.MaxValue.");
- try
- {
- convert = (IConvertible)uintA;
-
- actualValue = convert.ToInt32(null);
- expectedValue = (Int32)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc =
- string.Format("The char value of {0} is not the value \\u{1:x} as expected: actual(\\u{2:x})",
- uintA, (int)expectedValue, (int)actualValue);
- TestLibrary.TestFramework.LogError("003", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("004", errorDesc);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- Int32 expectedValue;
- Int32 actualValue;
- IConvertible convert;
-
- uintA = UInt16.MinValue;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Value is UInt16.MinValue.");
- try
- {
- convert = (Int32)uintA;
-
- actualValue = convert.ToInt32(null);
- expectedValue = (char)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc =
- string.Format("The char value of {0} is not the value \\u{1:x} as expected: actual(\\u{2:x})",
- uintA, (int)expectedValue, (int)actualValue);
- TestLibrary.TestFramework.LogError("005", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("006", errorDesc);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// UInt16.System.IConvertible.ToInt64(IFormatPrvoider)
-/// </summary>
-public class UInt16IConvertibleToInt64
-{
- public static int Main()
- {
- UInt16IConvertibleToInt64 testObj = new UInt16IConvertibleToInt64();
-
- TestLibrary.TestFramework.BeginTestCase("for method: UInt16.System.IConvertible.ToInt64(IFormatProvider)");
- 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;
-
- return retVal;
- }
-
- #region Positive tests
- public bool PosTest1()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- Int64 expectedValue;
- Int64 actualValue;
- IConvertible convert;
-
- uintA = (UInt16)(TestLibrary.Generator.GetInt32(-55) % (UInt16.MaxValue + 1));
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Random UInt16 value between 0 and UInt16.MaxValue.");
- try
- {
- convert = (IConvertible)uintA;
-
- actualValue = convert.ToInt64(null);
- expectedValue = (Int64)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc =
- string.Format("The char value of {0} is not the value \\u{1:x} as expected: actual(\\u{2:x})",
- uintA, (int)expectedValue, (int)actualValue);
- TestLibrary.TestFramework.LogError("001", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("002", errorDesc);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- Int64 expectedValue;
- Int64 actualValue;
- IConvertible convert;
-
- uintA = UInt16.MaxValue;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Value is UInt16.MaxValue.");
- try
- {
- convert = (IConvertible)uintA;
-
- actualValue = convert.ToInt64(null);
- expectedValue = (Int64)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc =
- string.Format("The char value of {0} is not the value \\u{1:x} as expected: actual(\\u{2:x})",
- uintA, (int)expectedValue, (int)actualValue);
- TestLibrary.TestFramework.LogError("003", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("004", errorDesc);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- Int64 expectedValue;
- Int64 actualValue;
- IConvertible convert;
-
- uintA = UInt16.MinValue;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Value is UInt16.MinValue.");
- try
- {
- convert = (Int64)uintA;
-
- actualValue = convert.ToInt64(null);
- expectedValue = (char)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc =
- string.Format("The char value of {0} is not the value \\u{1:x} as expected: actual(\\u{2:x})",
- uintA, (int)expectedValue, (int)actualValue);
- TestLibrary.TestFramework.LogError("005", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("006", errorDesc);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// UInt16.System.IConvertible.ToSByte(IFormatPrvoider)
-/// </summary>
-public class UInt16IConvertibleToSByte
-{
- public static int Main()
- {
- UInt16IConvertibleToSByte testObj = new UInt16IConvertibleToSByte();
-
- TestLibrary.TestFramework.BeginTestCase("for method: UInt16.System.IConvertible.ToSByte(IFormatProvider)");
- 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;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = NegTest1() && retVal;
-
- return retVal;
- }
-
- #region Positive tests
- public bool PosTest1()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- SByte expectedValue;
- SByte actualValue;
- IConvertible convert;
-
- uintA = (UInt16)(TestLibrary.Generator.GetInt32(-55) % (SByte.MaxValue + 1));
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Random UInt16 value between 0 and SByte.MaxValue.");
- try
- {
- convert = (IConvertible)uintA;
-
- actualValue = convert.ToSByte(null);
- expectedValue = (SByte)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc = "The SByte value of " + uintA + " is not the value " + expectedValue +
- " as expected: actual(" + actualValue + ")";
- TestLibrary.TestFramework.LogError("001", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("002", errorDesc);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- SByte expectedValue;
- SByte actualValue;
- IConvertible convert;
-
- uintA = (UInt16)SByte.MaxValue;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: value is SByte.MaxValue.");
- try
- {
- convert = (IConvertible)uintA;
- actualValue = convert.ToSByte(null);
- expectedValue = (SByte)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc = "The SByte value of " + uintA + " is not the value " + expectedValue +
- " as expected: actual(" + actualValue + ")";
- TestLibrary.TestFramework.LogError("003", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("004", errorDesc);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- SByte expectedValue;
- SByte actualValue;
- IConvertible convert;
-
- uintA = UInt16.MinValue;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: value is UInt16.MinValue.");
- try
- {
- convert = (IConvertible)uintA;
- actualValue = convert.ToSByte(null);
- expectedValue = (SByte)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc = "The SByte value of " + uintA + " is not the value " + expectedValue +
- " as expected: actual(" + actualValue + ")";
- TestLibrary.TestFramework.LogError("005", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("006", errorDesc);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-
- #region Negative tests
-
- //OverflowException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N001";
- const string c_TEST_DESC = "NegTest1: value is greater than SByte.MaxValue";
- string errorDesc;
-
- UInt16 uintA;
- IConvertible convert;
-
- uintA = SByte.MaxValue + 1;
- convert = (IConvertible)uintA;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- convert.ToSByte(null);
- errorDesc = "OverflowException is not thrown as expected.";
- TestLibrary.TestFramework.LogError("011" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
-
- }
- catch (OverflowException)
- { }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("012" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- return retVal;
- }
-
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// UInt16.System.IConvertible.ToSingle(IFormatPrvoider)
-/// </summary>
-public class UInt16IConvertibleToSingle
-{
- public static int Main()
- {
- UInt16IConvertibleToSingle testObj = new UInt16IConvertibleToSingle();
-
- TestLibrary.TestFramework.BeginTestCase("for method: UInt16.System.IConvertible.ToSingle(IFormatProvider)");
- 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;
-
- return retVal;
- }
-
- #region Positive tests
- public bool PosTest1()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- Single expectedValue;
- Single actualValue;
- IConvertible convert;
-
- uintA = (UInt16)(TestLibrary.Generator.GetInt32(-55) % (UInt16.MaxValue + 1));
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Random UInt16 value between 0 and UInt16.MaxValue.");
- try
- {
- convert = (IConvertible)uintA;
-
- actualValue = convert.ToSingle(null);
- expectedValue = (Single)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc =
- string.Format("The char value of {0} is not the value \\u{1:x} as expected: actual(\\u{2:x})",
- uintA, (int)expectedValue, (int)actualValue);
- TestLibrary.TestFramework.LogError("001", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("002", errorDesc);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- Single expectedValue;
- Single actualValue;
- IConvertible convert;
-
- uintA = UInt16.MaxValue;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Value is UInt16.MaxValue.");
- try
- {
- convert = (IConvertible)uintA;
-
- actualValue = convert.ToSingle(null);
- expectedValue = (Single)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc =
- string.Format("The char value of {0} is not the value \\u{1:x} as expected: actual(\\u{2:x})",
- uintA, (int)expectedValue, (int)actualValue);
- TestLibrary.TestFramework.LogError("003", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("004", errorDesc);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- Single expectedValue;
- Single actualValue;
- IConvertible convert;
-
- uintA = UInt16.MinValue;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Value is UInt16.MinValue.");
- try
- {
- convert = (Single)uintA;
-
- actualValue = convert.ToSingle(null);
- expectedValue = (char)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc =
- string.Format("The char value of {0} is not the value \\u{1:x} as expected: actual(\\u{2:x})",
- uintA, (int)expectedValue, (int)actualValue);
- TestLibrary.TestFramework.LogError("005", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("006", errorDesc);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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;
-
-/// <summary>
-/// UInt16.System.IConvertible.ToType(Type, IFormatProvider)
-/// Converts the current UInt16 value to an object of the specified type using
-/// the specified IFormatProvider object.
-/// </summary>
-public class UInt16IConvertibleToType
-{
- public static int Main()
- {
- UInt16IConvertibleToType testObj = new UInt16IConvertibleToType();
-
- TestLibrary.TestFramework.BeginTestCase("for method: UInt16.System.IConvertible.ToType(Type, IFormatProvider)");
- 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;
- retVal = PosTest5() && retVal;
- retVal = PosTest6() && retVal;
- retVal = PosTest7() && retVal;
- retVal = PosTest8() && retVal;
- retVal = PosTest9() && retVal;
- retVal = PosTest10() && retVal;
-
- TestLibrary.TestFramework.LogInformation("[Negative]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
- retVal = NegTest4() && retVal;
- retVal = NegTest5() && retVal;
-
- return retVal;
- }
-
- #region Positive tests
- public bool PosTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P001";
- const string c_TEST_DESC = "PosTest1: Conversion to byte";
- string errorDesc;
-
- byte b;
- object expectedObj;
- object actualObj;
- UInt16 uintA;
- b = TestLibrary.Generator.GetByte(-55);
- uintA = (UInt16)b;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- NumberFormatInfo numberFormat = new NumberFormatInfo();
- IFormatProvider provider = numberFormat;
- IConvertible converter = uintA;
-
- expectedObj = b;
- actualObj = converter.ToType(typeof(byte), numberFormat);
-
- if (((byte)expectedObj != (byte)actualObj) || !(actualObj is byte))
- {
- errorDesc = string.Format("Byte value of UInt16 {0} is not ", uintA);
- errorDesc += expectedObj + " as expected: Actual(" + actualObj + ")";
- 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;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P002";
- const string c_TEST_DESC = "PosTest2: Conversion to sbyte";
- string errorDesc;
-
- sbyte sb;
- object expectedObj;
- object actualObj;
- UInt16 uintA;
- sb = (sbyte)(TestLibrary.Generator.GetByte(-55) % (sbyte.MaxValue + 1));
- uintA = (UInt16)sb;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- NumberFormatInfo numberFormat = new NumberFormatInfo();
- IFormatProvider provider = numberFormat;
- IConvertible converter = uintA;
-
- expectedObj = sb;
- actualObj = converter.ToType(typeof(sbyte), numberFormat);
-
- if (((sbyte)expectedObj != (sbyte)actualObj) || !(actualObj is sbyte))
- {
- errorDesc = string.Format("SByte value of character {0} is not ", uintA);
- errorDesc += expectedObj + " as expected: Actual(" + actualObj + ")";
- TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P003";
- const string c_TEST_DESC = "PosTest3: Conversion to Int16";
- string errorDesc;
-
- Int16 i;
- object expectedObj;
- object actualObj;
- UInt16 uintA;
- i = (Int16)(TestLibrary.Generator.GetInt32(-55) % (Int16.MaxValue + 1));
- uintA = (UInt16)i;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- NumberFormatInfo numberFormat = new NumberFormatInfo();
- IFormatProvider provider = numberFormat;
- IConvertible converter = uintA;
-
- expectedObj = i;
- actualObj = converter.ToType(typeof(Int16), numberFormat);
-
- if (((Int16)expectedObj != (Int16)actualObj) || !(actualObj is Int16))
- {
- errorDesc = string.Format("Int16 value of character {0} is not ", uintA);
- errorDesc += expectedObj + " as expected: Actual(" + actualObj + ")";
- TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P004";
- const string c_TEST_DESC = "PosTest4: Conversion to UInt16";
- string errorDesc;
-
- UInt16 i;
- object expectedObj;
- object actualObj;
- UInt16 uintA;
- i = (UInt16)(TestLibrary.Generator.GetInt32(-55) % (UInt16.MaxValue + 1));
- uintA = (UInt16)i;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- NumberFormatInfo numberFormat = new NumberFormatInfo();
- IFormatProvider provider = numberFormat;
- IConvertible converter = uintA;
-
- expectedObj = i;
- actualObj = converter.ToType(typeof(UInt16), numberFormat);
-
- if (((UInt16)expectedObj != (UInt16)actualObj) || !(actualObj is UInt16))
- {
- errorDesc = string.Format("UInt16 value of character {0} is not ", uintA);
- errorDesc += expectedObj + " as expected: Actual(" + actualObj + ")";
- TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P005";
- const string c_TEST_DESC = "PosTest5: Conversion to Int32";
- string errorDesc;
-
- int i;
- object expectedObj;
- object actualObj;
- UInt16 uintA;
- i = TestLibrary.Generator.GetInt32(-55) % (UInt16.MaxValue + 1);
- uintA = (UInt16)i;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- NumberFormatInfo numberFormat = new NumberFormatInfo();
- IFormatProvider provider = numberFormat;
- IConvertible converter = uintA;
-
- expectedObj = i;
- actualObj = converter.ToType(typeof(int), numberFormat);
-
- if (((int)expectedObj != (int)actualObj) || !(actualObj is int))
- {
- errorDesc = string.Format("Int32 value of character {0} is not ", uintA);
- errorDesc += expectedObj + " as expected: Actual(" + actualObj + ")";
- TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("010" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest6()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P006";
- const string c_TEST_DESC = "PosTest6: Conversion to UInt32";
- string errorDesc;
-
- UInt32 i;
- object expectedObj;
- object actualObj;
- UInt16 uintA;
- i = (UInt32)(TestLibrary.Generator.GetInt32(-55) % (UInt16.MaxValue + 1));
- uintA = (UInt16)i;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- NumberFormatInfo numberFormat = new NumberFormatInfo();
- IFormatProvider provider = numberFormat;
- IConvertible converter = uintA;
-
- expectedObj = i;
- actualObj = converter.ToType(typeof(UInt32), numberFormat);
-
- if (((UInt32)expectedObj != (UInt32)actualObj) || !(actualObj is UInt32))
- {
- errorDesc = string.Format("UInt32 value of character {0} is not ", uintA);
- errorDesc += expectedObj + " as expected: Actual(" + actualObj + ")";
- TestLibrary.TestFramework.LogError("011" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("012" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest7()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P007";
- const string c_TEST_DESC = "PosTest7: Conversion to Int64";
- string errorDesc;
-
- Int64 i;
- object expectedObj;
- object actualObj;
- UInt16 uintA;
- i = TestLibrary.Generator.GetInt32(-55) % (UInt16.MaxValue + 1);
- uintA = (UInt16)i;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- NumberFormatInfo numberFormat = new NumberFormatInfo();
- IFormatProvider provider = numberFormat;
- IConvertible converter = uintA;
-
- expectedObj = i;
- actualObj = converter.ToType(typeof(Int64), numberFormat);
-
- if (((Int64)expectedObj != (Int64)actualObj) || !(actualObj is Int64))
- {
- errorDesc = string.Format("Int64 value of character {0} is not ", uintA);
- errorDesc += expectedObj + " as expected: Actual(" + actualObj + ")";
- TestLibrary.TestFramework.LogError("013" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("014" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest8()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P008";
- const string c_TEST_DESC = "PosTest8: Conversion to UInt64";
- string errorDesc;
-
- UInt64 i;
- object expectedObj;
- object actualObj;
- UInt16 uintA;
- i = (UInt64)(TestLibrary.Generator.GetInt32(-55) % (UInt16.MaxValue + 1));
- uintA = (UInt16)i;
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- NumberFormatInfo numberFormat = new NumberFormatInfo();
- IFormatProvider provider = numberFormat;
- IConvertible converter = uintA;
-
- expectedObj = i;
- actualObj = converter.ToType(typeof(UInt64), numberFormat);
-
- if (((UInt64)expectedObj != (UInt64)actualObj) || !(actualObj is UInt64))
- {
- errorDesc = string.Format("UInt64 value of character {0} is not ", uintA);
- errorDesc += expectedObj + " as expected: Actual(" + actualObj + ")";
- TestLibrary.TestFramework.LogError("015" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("016" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest9()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P009";
- const string c_TEST_DESC = "PosTest9: Conversion to char";
- string errorDesc;
-
- object expectedObj;
- object actualObj;
- UInt16 uintA;
- uintA = (UInt16)TestLibrary.Generator.GetChar(-55);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- IConvertible converter = uintA;
-
- expectedObj = (char)uintA;
- actualObj = converter.ToType(typeof(char), null);
-
- if (((char)expectedObj != (char)actualObj) || !(actualObj is char))
- {
- errorDesc = string.Format("char value of UInt16 {0} is not ", uintA);
- errorDesc += expectedObj + " as expected: Actual(" + actualObj + ")";
- TestLibrary.TestFramework.LogError("017" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("018" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest10()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "P010";
- const string c_TEST_DESC = "PosTest10: Conversion to string";
- string errorDesc;
-
- object expectedObj;
- object actualObj;
- UInt16 uintA;
- uintA = (UInt16)TestLibrary.Generator.GetChar(-55);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- IConvertible converter = uintA;
- expectedObj = uintA.ToString();
- actualObj = converter.ToType(typeof(string), null);
-
- if (((string)expectedObj != (string)actualObj) || !(actualObj is string))
- {
- errorDesc = string.Format("string value of UInt16 {0} is not ", uintA);
- errorDesc += expectedObj + " as expected: Actual(" + actualObj + ")";
- TestLibrary.TestFramework.LogError("019" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- TestLibrary.TestFramework.LogError("020" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #region Negative tests
- //bug
- //ArgumentNullException
- public bool NegTest1()
- {
- bool retVal = true;
-
- const string c_TEST_ID = "N001";
- const string c_TEST_DESC = "NegTest1: type is a null reference (Nothing in Visual Basic).";
- string errorDesc;
-
- UInt16 uintA = (UInt16)TestLibrary.Generator.GetChar(-55);
-
- TestLibrary.TestFramework.BeginScenario(c_TEST_DESC);
- try
- {
- IConvertible converter = uintA;
- converter.ToType(null, null);
-
- errorDesc = "ArgumentNullException is not thrown as expected.";
- errorDesc += string.Format("\nThe UInt16 value is {0}", uintA);
- TestLibrary.TestFramework.LogError("021" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
-
- }
- catch (ArgumentNullException)
- { }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe UInt16 value is {0}", uintA);
- TestLibrary.TestFramework.LogError("022" + " TestId-" + c_TEST_ID, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- //bug
- //InvalidCastException
- public bool NegTest2()
- {
- const string c_TEST_ID = "N002";
- const string c_TEST_DESC = "NegTest2: type is DateTime";
-
- return this.DoInvalidCastTest(c_TEST_ID, c_TEST_DESC, "023", "024", typeof(DateTime));
- }
-
- //bug
- //OverflowException
- public bool NegTest3()
- {
- const string c_TEST_ID = "N003";
- const string c_TEST_DESC = "NegTest3: Value is too large for destination type -- Int16";
- return this.DoOverflowTest(c_TEST_ID, c_TEST_DESC, "025", typeof(Int16), Int16.MaxValue);
- }
-
- public bool NegTest4()
- {
- const string c_TEST_ID = "N004";
- const string c_TEST_DESC = "NegTest4: Value is too large for destination type -- byte";
-
- return this.DoOverflowTest(c_TEST_ID, c_TEST_DESC, "026", typeof(byte), byte.MaxValue);
- }
-
- public bool NegTest5()
- {
- const string c_TEST_ID = "N005";
- const string c_TEST_DESC = "NegTest5: Value is too large for destination type -- sbyte";
-
- return this.DoOverflowTest(c_TEST_ID, c_TEST_DESC, "027", typeof(sbyte), sbyte.MaxValue);
- }
- #endregion
-
- #region Helper methods for negative tests
- private bool DoInvalidCastTest(string testId,
- string testDesc,
- string errorNum1,
- string errorNum2,
- Type destType)
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA = (UInt16)TestLibrary.Generator.GetChar(-55);
-
- TestLibrary.TestFramework.BeginScenario(testDesc);
- try
- {
- IConvertible converter = uintA;
- converter.ToType(destType, null);
-
- errorDesc = "InvalidCastException is not thrown as expected.";
- errorDesc += string.Format("\nThe UInt16 value is {0}", uintA);
- TestLibrary.TestFramework.LogError(errorNum1 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
- catch (InvalidCastException)
- { }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe character is {0}", uintA);
- TestLibrary.TestFramework.LogError(errorNum2 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
-
- private bool DoOverflowTest(string testId,
- string testDesc,
- string errorNum,
- Type destType,
- int destTypeMaxValue)
- {
- bool retVal = true;
- string errorDesc;
-
- int i;
- UInt16 uintA;
- i = Int16.MaxValue + 1 +
- TestLibrary.Generator.GetInt32(-55) % (UInt16.MaxValue - destTypeMaxValue);
- uintA = (UInt16)i;
-
- TestLibrary.TestFramework.BeginScenario(testDesc);
- try
- {
- IConvertible converter = uintA;
- converter.ToType(destType, null);
- }
- catch (OverflowException)
- { }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc += string.Format("\nThe UInt16 value is {0}", uintA);
- TestLibrary.TestFramework.LogError(errorNum + " TestId-" + testId, errorDesc);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// UInt16.System.IConvertible.ToUInt16(IFormatPrvoider)
-/// </summary>
-public class UInt16IConvertibleToUInt16
-{
- public static int Main()
- {
- UInt16IConvertibleToUInt16 testObj = new UInt16IConvertibleToUInt16();
-
- TestLibrary.TestFramework.BeginTestCase("for method: UInt16.System.IConvertible.ToUInt16(IFormatProvider)");
- 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;
-
- return retVal;
- }
-
- #region Positive tests
- public bool PosTest1()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- UInt16 expectedValue;
- UInt16 actualValue;
- IConvertible convert;
-
- uintA = (UInt16)(TestLibrary.Generator.GetInt32(-55) % (UInt16.MaxValue + 1));
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Random UInt16 value between 0 and UInt16.MaxValue.");
- try
- {
- convert = (IConvertible)uintA;
-
- actualValue = convert.ToUInt16(null);
- expectedValue = uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc =
- string.Format("The char value of {0} is not the value \\u{1:x} as expected: actual(\\u{2:x})",
- uintA, (int)expectedValue, (int)actualValue);
- TestLibrary.TestFramework.LogError("001", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("002", errorDesc);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- UInt16 expectedValue;
- UInt16 actualValue;
- IConvertible convert;
-
- uintA = UInt16.MaxValue;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Value is UInt16.MaxValue.");
- try
- {
- convert = (IConvertible)uintA;
-
- actualValue = convert.ToUInt16(null);
- expectedValue = uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc =
- string.Format("The char value of {0} is not the value \\u{1:x} as expected: actual(\\u{2:x})",
- uintA, (int)expectedValue, (int)actualValue);
- TestLibrary.TestFramework.LogError("003", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("004", errorDesc);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- UInt16 expectedValue;
- UInt16 actualValue;
- IConvertible convert;
-
- uintA = UInt16.MinValue;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Value is UInt16.MinValue.");
- try
- {
- convert = (IConvertible)uintA;
-
- actualValue = convert.ToUInt16(null);
- expectedValue = (UInt16)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc =
- string.Format("The char value of {0} is not the value \\u{1:x} as expected: actual(\\u{2:x})",
- uintA, (int)expectedValue, (int)actualValue);
- TestLibrary.TestFramework.LogError("005", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("006", errorDesc);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// UInt16.System.IConvertible.ToUInt32(IFormatPrvoider)
-/// </summary>
-public class UInt16IConvertibleToUInt32
-{
- public static int Main()
- {
- UInt16IConvertibleToUInt32 testObj = new UInt16IConvertibleToUInt32();
-
- TestLibrary.TestFramework.BeginTestCase("for method: UInt16.System.IConvertible.ToUInt32(IFormatProvider)");
- 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;
-
- return retVal;
- }
-
- #region Positive tests
- public bool PosTest1()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- UInt32 expectedValue;
- UInt32 actualValue;
- IConvertible convert;
-
- uintA = (UInt16)(TestLibrary.Generator.GetInt32(-55) % (UInt16.MaxValue + 1));
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Random UInt16 value between 0 and UInt16.MaxValue.");
- try
- {
- convert = (IConvertible)uintA;
-
- actualValue = convert.ToUInt32(null);
- expectedValue = (UInt32)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc =
- string.Format("The char value of {0} is not the value \\u{1:x} as expected: actual(\\u{2:x})",
- uintA, (int)expectedValue, (int)actualValue);
- TestLibrary.TestFramework.LogError("001", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("002", errorDesc);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- UInt32 expectedValue;
- UInt32 actualValue;
- IConvertible convert;
-
- uintA = UInt16.MaxValue;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Value is UInt16.MaxValue.");
- try
- {
- convert = (IConvertible)uintA;
-
- actualValue = convert.ToUInt32(null);
- expectedValue = (UInt32)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc =
- string.Format("The char value of {0} is not the value \\u{1:x} as expected: actual(\\u{2:x})",
- uintA, (int)expectedValue, (int)actualValue);
- TestLibrary.TestFramework.LogError("003", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("004", errorDesc);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- UInt32 expectedValue;
- UInt32 actualValue;
- IConvertible convert;
-
- uintA = UInt16.MinValue;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Value is UInt16.MinValue.");
- try
- {
- convert = (IConvertible)uintA;
-
- actualValue = convert.ToUInt32(null);
- expectedValue = (UInt32)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc =
- string.Format("The char value of {0} is not the value \\u{1:x} as expected: actual(\\u{2:x})",
- uintA, (int)expectedValue, (int)actualValue);
- TestLibrary.TestFramework.LogError("005", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("006", errorDesc);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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>
-/// UInt16.System.IConvertible.ToUInt64(IFormatPrvoider)
-/// </summary>
-public class UInt16IConvertibleToUInt64
-{
- public static int Main()
- {
- UInt16IConvertibleToUInt64 testObj = new UInt16IConvertibleToUInt64();
-
- TestLibrary.TestFramework.BeginTestCase("for method: UInt16.System.IConvertible.ToUInt64(IFormatProvider)");
- 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;
-
- return retVal;
- }
-
- #region Positive tests
- public bool PosTest1()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- UInt64 expectedValue;
- UInt64 actualValue;
- IConvertible convert;
-
- uintA = (UInt16)(TestLibrary.Generator.GetInt32(-55) % (UInt16.MaxValue + 1));
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Random UInt16 value between 0 and UInt16.MaxValue.");
- try
- {
- convert = (IConvertible)uintA;
-
- actualValue = convert.ToUInt64(null);
- expectedValue = (UInt64)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc =
- string.Format("The char value of {0} is not the value \\u{1:x} as expected: actual(\\u{2:x})",
- uintA, (int)expectedValue, (int)actualValue);
- TestLibrary.TestFramework.LogError("001", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("002", errorDesc);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- UInt64 expectedValue;
- UInt64 actualValue;
- IConvertible convert;
-
- uintA = UInt16.MaxValue;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Value is UInt16.MaxValue.");
- try
- {
- convert = (IConvertible)uintA;
-
- actualValue = convert.ToUInt64(null);
- expectedValue = (UInt64)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc =
- string.Format("The char value of {0} is not the value \\u{1:x} as expected: actual(\\u{2:x})",
- uintA, (int)expectedValue, (int)actualValue);
- TestLibrary.TestFramework.LogError("003", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("004", errorDesc);
- retVal = false;
- }
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA;
- UInt64 expectedValue;
- UInt64 actualValue;
- IConvertible convert;
-
- uintA = UInt16.MinValue;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Value is UInt16.MinValue.");
- try
- {
- convert = (IConvertible)uintA;
-
- actualValue = convert.ToUInt64(null);
- expectedValue = (UInt64)uintA;
-
- if (actualValue != expectedValue)
- {
- errorDesc =
- string.Format("The char value of {0} is not the value \\u{1:x} as expected: actual(\\u{2:x})",
- uintA, (int)expectedValue, (int)actualValue);
- TestLibrary.TestFramework.LogError("005", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- TestLibrary.TestFramework.LogError("006", errorDesc);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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; //for NumberFormatInfo
-using TestLibrary;
-
-/// <summary>
-/// UInt16.System.IConvertible.ToString(string)
-/// Converts the numeric value of this instance to its equivalent string representation
-/// using the specified format.
-/// </summary>
-public class UInt16ToString
-{
- public static int Main()
- {
- UInt16ToString testObj = new UInt16ToString();
-
- TestLibrary.TestFramework.BeginTestCase("for method: UInt16.System.ToString(string)");
- if(testObj.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
-
- retVal &= DoPosTest("PosTest1: Value is UInt16.MinValue, format is hexadecimal \"X\".", "PostTest1", UInt16.MinValue, "X", "0");
- retVal &= DoPosTest("PosTest2: Value is UInt16 integer, format is hexadecimal \"X\".", "PostTest2", 8542, "X", "215E");
- retVal &= DoPosTest("PosTest3: Value is UInt16.MaxValue, format is hexadecimal \"X\".", "PostTest3", UInt16.MaxValue, "X", "FFFF");
-
- TestLibrary.Utilities.CurrentCulture = CustomCulture;
- retVal &= DoPosTest("PosTest4: Value is UInt16.MinValue, format is hexadecimal \"X\".", "PosTest4", UInt16.MinValue, "X", "0");
-
- retVal &= DoPosTest("PosTest5: Value is UInt16 integer, format is general \"G\".", "PosTest5", 5641, "G", "5641");
- retVal &= DoPosTest("PosTest6: Value is UInt16.MaxValue, format is general \"G\".", "PosTest6", UInt16.MaxValue, "G", "65535");
-
- retVal &= DoPosTest("PosTest7: Value is UInt16 integer, format is currency \"C\".", "PosTest7", 8423, "C", "84.23,000USD");
- retVal &= DoPosTest("PosTest8: Value is UInt16.MaxValue, format is currency \"C\".", "PosTes8", UInt16.MaxValue, "C", "6.55.35,000USD");
- retVal &= DoPosTest("PosTest9: Value is UInt16.MinValue, format is currency \"C\".", "PosTes9", UInt16.MinValue, "C", "0,000USD");
-
- retVal &= DoPosTest("PosTest10: Value is UInt16 integer, format is decimal \"D\".", "PosTest10", 2351, "D", "2351");
- retVal &= DoPosTest("PosTest11: Value is UInt16.MaxValue integer, format is decimal \"D\".", "PosTest11", UInt16.MaxValue, "D", "65535");
- retVal &= DoPosTest("PosTest12: Value is UInt16.MinValue integer, format is decimal \"D\".", "PosTest12", UInt16.MinValue, "D", "0");
-
- retVal &= DoPosTest("PosTest13: Value is UInt16 integer, format is decimal \"E\".", "PosTest13", 2351, "E", "2,351000E++003");
- retVal &= DoPosTest("PosTest14: Value is UInt16.MaxValue integer, format is decimal \"E\".", "PosTest14", UInt16.MaxValue, "E", "6,553500E++004");
- retVal &= DoPosTest("PosTest15: Value is UInt16.MinValue integer, format is decimal \"E\".", "PosTest15", UInt16.MinValue, "E", "0,000000E++000");
-
- retVal &= DoPosTest("PosTest16: Value is UInt16 integer, format is decimal \"F\".", "PosTest16", 2341, "F", "2341,000");
-
- retVal &= DoPosTest("PosTest17: Value is UInt16 integer, format is decimal \"P\".", "PosTest17", 2341, "P", "234,100,0000~");
-
- retVal &= DoPosTest("PosTest18: Value is UInt16 integer, format is decimal \"N\".", "PosTest18", 2341, "N", "23#41,000");
-
- retVal &= DoPosTest("PosTest19: Value is UInt16 integer, format is decimal \"N\".", "PosTest19", 2341, null, "2341");
-
- TestLibrary.Utilities.CurrentCulture = CurrentCulture;
-
- TestLibrary.TestFramework.LogInformation("[Negative]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
-
- return retVal;
- }
- #endregion
-
- #region Helper method for tests
- public bool DoPosTest(string testDesc, string id, UInt16 uintA, string format, string expectedValue)
- {
- bool retVal = true;
- string errorDesc;
-
- string actualValue;
-
- TestLibrary.TestFramework.BeginScenario(testDesc);
- try
- {
- actualValue = uintA.ToString(format);
-
- if (actualValue != expectedValue)
- {
- errorDesc =
- string.Format("The string representation of {0} is not the value {1} as expected: actual({2})",
- uintA, expectedValue, actualValue);
- errorDesc += "\nThe format info is \"" + format + "\" specified.";
- TestLibrary.TestFramework.LogError(id + "_001", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- errorDesc += "\nThe UInt16 integer is " + uintA +
- ", format info is \"" + format + "\" speicifed.";
- TestLibrary.TestFramework.LogError(id + "_002", errorDesc);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-
- #region Negative tests
- //FormatException
- public bool NegTest1()
- {
- const string c_TEST_ID = "N001";
- const string c_TEST_DESC = "NegTest1: The format parameter is invalid -- \"R\". ";
-
- return this.DoInvalidFormatTest(c_TEST_ID, c_TEST_DESC, "39", "40", "R");
- }
-
- public bool NegTest2()
- {
- const string c_TEST_ID = "N002";
- const string c_TEST_DESC = "NegTest2: The format parameter is invalid -- \"r\". ";
-
- return this.DoInvalidFormatTest(c_TEST_ID, c_TEST_DESC, "41", "42", "r");
- }
-
- public bool NegTest3()
- {
- const string c_TEST_ID = "N003";
- const string c_TEST_DESC = "NegTest3: The format parameter is invalid -- \"z\". ";
-
- return this.DoInvalidFormatTest(c_TEST_ID, c_TEST_DESC, "43", "44", "z");
- }
- #endregion
-
- #region Private Methods
- private CultureInfo CurrentCulture = TestLibrary.Utilities.CurrentCulture;
- private CultureInfo customCulture = null;
-
- private CultureInfo CustomCulture
- {
- get
- {
- if (null == customCulture)
- {
- customCulture = new CultureInfo(CultureInfo.CurrentCulture.Name);
- NumberFormatInfo nfi = customCulture.NumberFormat;
- //For "G"
- // NegativeSign, NumberDecimalSeparator, NumberDecimalDigits, PositiveSign
- nfi.NegativeSign = "@"; //Default: "-"
- nfi.NumberDecimalSeparator = ","; //Default: "."
- nfi.NumberDecimalDigits = 3; //Default: 2
- nfi.PositiveSign = "++"; //Default: "+"
-
- //For "E"
- // PositiveSign, NegativeSign, and NumberDecimalSeparator.
- // If precision specifier is omitted, a default of six digits after the decimal point is used.
-
- //For "R"
- // NegativeSign, NumberDecimalSeparator and PositiveSign
-
- //For "X", The result string isn't affected by the formatting information of the current NumberFormatInfo
-
- //For "C"
- // CurrencyPositivePattern, CurrencySymbol, CurrencyDecimalDigits, CurrencyDecimalSeparator, CurrencyGroupSeparator, CurrencyGroupSizes, NegativeSign and CurrencyNegativePattern
- nfi.CurrencyDecimalDigits = 3; //Default: 2
- nfi.CurrencyDecimalSeparator = ","; //Default: ","
- nfi.CurrencyGroupSeparator = "."; //Default: "."
- nfi.CurrencyGroupSizes = new int[] { 2 }; //Default: new int[]{3}
- nfi.CurrencyNegativePattern = 2; //Default: 0
- nfi.CurrencyPositivePattern = 1; //Default: 0
- nfi.CurrencySymbol = "USD"; //Default: "$"
-
- //For "D"
- // NegativeSign
-
- //For "E"
- // PositiveSign, NumberDecimalSeparator and NegativeSign.
- // If precision specifier is omitted, a default of six digits after the decimal point is used.
- nfi.PositiveSign = "++"; //Default: "+"
- nfi.NumberDecimalSeparator = ","; //Default: "."
-
- //For "F"
- // NumberDecimalDigits, and NumberDecimalSeparator and NegativeSign.
- nfi.NumberDecimalDigits = 3; //Default: 2
-
- //For "N"
- // NumberGroupSizes, NumberGroupSeparator, NumberDecimalSeparator, NumberDecimalDigits, NumberNegativePattern and NegativeSign.
- nfi.NumberGroupSizes = new int[] { 2 }; //Default: 3
- nfi.NumberGroupSeparator = "#"; //Default: ","
-
- //For "P"
- // PercentPositivePattern, PercentNegativePattern, NegativeSign, PercentSymbol, PercentDecimalDigits, PercentDecimalSeparator, PercentGroupSeparator and PercentGroupSizes
- nfi.PercentPositivePattern = 1; //Default: 0
- nfi.PercentNegativePattern = 2; //Default: 0
- nfi.PercentSymbol = "~"; //Default: "%"
- nfi.PercentDecimalDigits = 4; //Default: 2
- nfi.PercentDecimalSeparator = ","; //Default: "."
- nfi.PercentGroupSizes[0] = 2; //Default: 3
- nfi.PercentGroupSeparator = ",";
-
- customCulture.NumberFormat = nfi;
- }
- return customCulture;
- }
- }
- #endregion
-
- #region Helper methods for negative tests
- public bool DoInvalidFormatTest(string testId,
- string testDesc,
- string errorNum1,
- string errorNum2,
- string format)
- {
- bool retVal = true;
- string errorDesc;
-
- UInt16 uintA = (UInt16)(TestLibrary.Generator.GetInt32() % (UInt16.MaxValue + 1));
-
- TestLibrary.TestFramework.BeginScenario(testDesc);
- try
- {
- uintA.ToString(format);
- errorDesc = "FormatException is not thrown as expected.";
- errorDesc = string.Format("\nUInt16 value is {0}, format is {1}.", uintA, format);
- TestLibrary.TestFramework.LogError(errorNum1 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
- catch (FormatException)
- { }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc = string.Format("\nUInt16 value is {0}, format is {1}.", uintA, format);
- TestLibrary.TestFramework.LogError(errorNum2 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-// 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; //for NumberFormatInfo
-using TestLibrary;
-
-/// <summary>
-/// UInt16.System.IConvertible.ToString(string, IFormatProvider)
-/// Converts the numeric value of this instance to its equivalent string representation
-/// using the specified format and culture-specific format information.
-/// </summary>
-public class UInt16ToString
-{
- public static int Main()
- {
- UInt16ToString testObj = new UInt16ToString();
-
- TestLibrary.TestFramework.BeginTestCase("for method: UInt16.System.ToString(string, IFormatProvider)");
- if(testObj.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
-
- retVal &= DoPosTest("PosTest1: Value is UInt16.MinValue, format is hexadecimal \"X\".", "PostTest1", UInt16.MinValue, "X", "0", CurrentNFI);
- retVal &= DoPosTest("PosTest2: Value is UInt16 integer, format is hexadecimal \"X\".", "PostTest2", 8542, "X", "215E", CurrentNFI);
- retVal &= DoPosTest("PosTest3: Value is UInt16.MaxValue, format is hexadecimal \"X\".", "PostTest3", UInt16.MaxValue, "X", "FFFF", CurrentNFI);
- retVal &= DoPosTest("PosTest4: Value is UInt16.MinValue, format is hexadecimal \"X\".", "PosTest4", UInt16.MinValue, "X", "0", CustomNFI);
-
- retVal &= DoPosTest("PosTest5: Value is UInt16 integer, format is general \"G\".", "PosTest5", 5641, "G", "5641", CustomNFI);
- retVal &= DoPosTest("PosTest6: Value is UInt16.MaxValue, format is general \"G\".", "PosTest6", UInt16.MaxValue, "G", "65535", CustomNFI);
-
- retVal &= DoPosTest("PosTest7: Value is UInt16 integer, format is currency \"C\".", "PosTest7", 8423, "C", "84.23,000USD", CustomNFI);
- retVal &= DoPosTest("PosTest8: Value is UInt16.MaxValue, format is currency \"C\".", "PosTes8", UInt16.MaxValue, "C", "6.55.35,000USD", CustomNFI);
- retVal &= DoPosTest("PosTest9: Value is UInt16.MinValue, format is currency \"C\".", "PosTes9", UInt16.MinValue, "C", "0,000USD", CustomNFI);
-
- retVal &= DoPosTest("PosTest10: Value is UInt16 integer, format is decimal \"D\".", "PosTest10", 2351, "D", "2351", CustomNFI);
- retVal &= DoPosTest("PosTest11: Value is UInt16.MaxValue integer, format is decimal \"D\".", "PosTest11", UInt16.MaxValue, "D", "65535", CustomNFI);
- retVal &= DoPosTest("PosTest12: Value is UInt16.MinValue integer, format is decimal \"D\".", "PosTest12", UInt16.MinValue, "D", "0", CustomNFI);
-
- retVal &= DoPosTest("PosTest13: Value is UInt16 integer, format is decimal \"E\".", "PosTest13", 2351, "E", "2,351000E++003", CustomNFI);
- retVal &= DoPosTest("PosTest14: Value is UInt16.MaxValue integer, format is decimal \"E\".", "PosTest14", UInt16.MaxValue, "E", "6,553500E++004", CustomNFI);
- retVal &= DoPosTest("PosTest15: Value is UInt16.MinValue integer, format is decimal \"E\".", "PosTest15", UInt16.MinValue, "E", "0,000000E++000", CustomNFI);
-
- retVal &= DoPosTest("PosTest16: Value is UInt16 integer, format is decimal \"F\".", "PosTest16", 2341, "F", "2341,000", CustomNFI);
-
- retVal &= DoPosTest("PosTest17: Value is UInt16 integer, format is decimal \"P\".", "PosTest17", 2341, "P", "234,100,0000~", CustomNFI);
-
- retVal &= DoPosTest("PosTest18: Value is UInt16 integer, format is decimal \"N\".", "PosTest18", 2341, "N", "23#41,000", CustomNFI);
-
- retVal &= DoPosTest("PosTest19: Value is UInt16 integer, format is decimal \"N\".", "PosTest19", 2341, null, "2341", CustomNFI);
-
- TestLibrary.TestFramework.LogInformation("[Negative]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
-
- return retVal;
- }
- #endregion
-
- #region Helper method for tests
- public bool DoPosTest(string testDesc, string id, UInt16 uintA, string format, String expectedValue, NumberFormatInfo _NFI)
- {
- bool retVal = true;
- string errorDesc;
-
- string actualValue;
-
- TestLibrary.TestFramework.BeginScenario(testDesc);
- try
- {
- actualValue = uintA.ToString(format, _NFI);
-
- if (actualValue != expectedValue)
- {
- errorDesc =
- string.Format("The string representation of {0} is not the value {1} as expected: actual({2})",
- uintA, expectedValue, actualValue);
- errorDesc += "\nThe format info is \"" + ((format == null) ? "null" : format) + "\" speicifed";
- TestLibrary.TestFramework.LogError(id + "_001", errorDesc);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- errorDesc = "Unexpect exception:" + e;
- errorDesc += "\nThe UInt16 integer is " + uintA + ", format info is \"" + format + "\" speicifed.";
- TestLibrary.TestFramework.LogError(id + "_002", errorDesc);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-
- #region Private Methods
- private NumberFormatInfo CurrentNFI = CultureInfo.CurrentCulture.NumberFormat;
- private NumberFormatInfo nfi = null;
-
- private NumberFormatInfo CustomNFI
- {
- get
- {
- if (null == nfi)
- {
- nfi = new CultureInfo(CultureInfo.CurrentCulture.Name).NumberFormat;
- //For "G"
- // NegativeSign, NumberDecimalSeparator, NumberDecimalDigits, PositiveSign
- nfi.NegativeSign = "@"; //Default: "-"
- nfi.NumberDecimalSeparator = ","; //Default: "."
- nfi.NumberDecimalDigits = 3; //Default: 2
- nfi.PositiveSign = "++"; //Default: "+"
-
- //For "E"
- // PositiveSign, NegativeSign, and NumberDecimalSeparator.
- // If precision specifier is omitted, a default of six digits after the decimal point is used.
-
- //For "R"
- // NegativeSign, NumberDecimalSeparator and PositiveSign
-
- //For "X", The result string isn't affected by the formatting information of the current NumberFormatInfo
-
- //For "C"
- // CurrencyPositivePattern, CurrencySymbol, CurrencyDecimalDigits, CurrencyDecimalSeparator, CurrencyGroupSeparator, CurrencyGroupSizes, NegativeSign and CurrencyNegativePattern
- nfi.CurrencyDecimalDigits = 3; //Default: 2
- nfi.CurrencyDecimalSeparator = ","; //Default: ","
- nfi.CurrencyGroupSeparator = "."; //Default: "."
- nfi.CurrencyGroupSizes = new int[] { 2 }; //Default: new int[]{3}
- nfi.CurrencyNegativePattern = 2; //Default: 0
- nfi.CurrencyPositivePattern = 1; //Default: 0
- nfi.CurrencySymbol = "USD"; //Default: "$"
-
- //For "D"
- // NegativeSign
-
- //For "E"
- // PositiveSign, NumberDecimalSeparator and NegativeSign.
- // If precision specifier is omitted, a default of six digits after the decimal point is used.
- nfi.PositiveSign = "++"; //Default: "+"
- nfi.NumberDecimalSeparator = ","; //Default: "."
-
- //For "F"
- // NumberDecimalDigits, and NumberDecimalSeparator and NegativeSign.
- nfi.NumberDecimalDigits = 3; //Default: 2
-
- //For "N"
- // NumberGroupSizes, NumberGroupSeparator, NumberDecimalSeparator, NumberDecimalDigits, NumberNegativePattern and NegativeSign.
- nfi.NumberGroupSizes = new int[] { 2 }; //Default: 3
- nfi.NumberGroupSeparator = "#"; //Default: ","
-
- //For "P"
- // PercentPositivePattern, PercentNegativePattern, NegativeSign, PercentSymbol, PercentDecimalDigits, PercentDecimalSeparator, PercentGroupSeparator and PercentGroupSizes
- nfi.PercentPositivePattern = 1; //Default: 0
- nfi.PercentNegativePattern = 2; //Default: 0
- nfi.PercentSymbol = "~"; //Default: "%"
- nfi.PercentDecimalDigits = 4; //Default: 2
- nfi.PercentDecimalSeparator = ","; //Default: "."
- nfi.PercentGroupSizes[0] = 2; //Default: 3
- nfi.PercentGroupSeparator = ",";
- }
- return nfi;
- }
- }
- #endregion
-
- #region Negative tests
- //FormatException
- public bool NegTest1()
- {
- const string c_TEST_ID = "N001";
- const string c_TEST_DESC = "NegTest1: The format parameter is invalid -- \"R\". ";
- CultureInfo culture = CultureInfo.CurrentCulture;
-
- return this.DoInvalidFormatTest(c_TEST_ID, c_TEST_DESC, "39", "40", "R", culture);
- }
-
- public bool NegTest2()
- {
- const string c_TEST_ID = "N002";
- const string c_TEST_DESC = "NegTest2: The format parameter is invalid -- \"r\". ";
- CultureInfo culture = CultureInfo.CurrentCulture;
-
- return this.DoInvalidFormatTest(c_TEST_ID, c_TEST_DESC, "41", "42", "r", culture);
- }
-
- public bool NegTest3()
- {
- const string c_TEST_ID = "N003";
- const string c_TEST_DESC = "NegTest3: The format parameter is invalid -- \"z\". ";
- CultureInfo culture = CultureInfo.CurrentCulture;
-
- return this.DoInvalidFormatTest(c_TEST_ID, c_TEST_DESC, "43", "44", "z", culture);
- }
- #endregion
-
- #region Helper methods for negative tests
- public bool DoInvalidFormatTest(string testId,
- string testDesc,
- string errorNum1,
- string errorNum2,
- string format,
- CultureInfo culture)
- {
- bool retVal = true;
- string errorDesc;
-
- IFormatProvider provider;
- UInt16 uintA = (UInt16)(TestLibrary.Generator.GetInt32() % (UInt16.MaxValue + 1));
-
- TestLibrary.TestFramework.BeginScenario(testDesc);
- try
- {
- provider = (IFormatProvider)culture.NumberFormat;
- uintA.ToString(format, provider);
- errorDesc = "FormatException is not thrown as expected.";
- errorDesc = string.Format("\nUInt16 value is {0}, format string is {1} and the culture is {3}.",
- uintA, format, culture.Name);
- TestLibrary.TestFramework.LogError(errorNum1 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
- catch (FormatException)
- { }
- catch (Exception e)
- {
- errorDesc = "Unexpected exception: " + e;
- errorDesc = string.Format("\nUInt16 value is {0}, format string is {1} and the culture is {3}.",
- uintA, format, culture.Name);
- TestLibrary.TestFramework.LogError(errorNum2 + " TestId-" + testId, errorDesc);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
-
+++ /dev/null
-<?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="uint32compareto2.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>
-
+++ /dev/null
-<?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="uint32equals1.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>
-
+++ /dev/null
-<?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="uint32equals2.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>
-
+++ /dev/null
-<?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="uint32gethashcode.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>
-
+++ /dev/null
-<?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="uint32iconvertibletoboolean.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>
-
+++ /dev/null
-<?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="uint32iconvertibletobyte.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>
-
+++ /dev/null
-<?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="uint32iconvertibletochar.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>
-
+++ /dev/null
-<?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="uint32iconvertibletodecimal.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>
-
+++ /dev/null
-<?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="uint32iconvertibletodouble.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>
-
+++ /dev/null
-<?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="uint32iconvertibletoint16.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>
-
+++ /dev/null
-<?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="uint32iconvertibletoint32.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>
-
+++ /dev/null
-<?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="uint32iconvertibletoint64.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>
-
+++ /dev/null
-<?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="uint32iconvertibletosbyte.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>
-
+++ /dev/null
-<?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="uint32iconvertibletosingle.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>
-
+++ /dev/null
-<?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="uint32iconvertibletotype.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>
-
+++ /dev/null
-<?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="uint32iconvertibletouint16.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>
-
+++ /dev/null
-<?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="uint32iconvertibletouint32.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>
-
+++ /dev/null
-<?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="uint32iconvertibletouint64.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>
-
+++ /dev/null
-<?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="uint32maxvalue.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>
-
+++ /dev/null
-<?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="uint32minvalue.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>
-
+++ /dev/null
-<?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="uint32tostring2.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>
-
+++ /dev/null
-// 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.Globalization;
-
-/// <summary>
-/// UInt32.CompareTo(System.UInt32)
-/// </summary>
-public class UInt32CompareTo2
-{
- public static int Main()
- {
- UInt32CompareTo2 ui32ct2 = new UInt32CompareTo2();
- TestLibrary.TestFramework.BeginTestCase("UInt32CompareTo2");
-
- if (ui32ct2.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 PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- int ActualResult;
- TestLibrary.TestFramework.BeginScenario("PosTest1: object value is larger than the instance");
- try
- {
- UInt32 uintA = 0;
- UInt32 comValue = (UInt32)this.GetInt32(1, Int32.MaxValue);
- ActualResult = uintA.CompareTo(comValue);
- if (ActualResult >= 0)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
- int ActualResult;
- TestLibrary.TestFramework.BeginScenario("PosTest2: object value is less than the instance");
- try
- {
- UInt32 uintA = 0xffffffff;
- UInt32 comValue = (UInt32)this.GetInt32(0, Int32.MaxValue);
- ActualResult = uintA.CompareTo(comValue);
- if (ActualResult <= 0)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
- int ActualResult;
- TestLibrary.TestFramework.BeginScenario("PosTest3: object value is equal the instance");
- try
- {
- UInt32 uintA = 0xffffffff;
- UInt32 comValue = 4294967295;
- ActualResult = uintA.CompareTo(comValue);
- if (ActualResult != 0)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest4()
- {
- bool retVal = true;
- int ActualResult;
- TestLibrary.TestFramework.BeginScenario("PosTest4: object value is UInt16 max value");
- try
- {
- UInt32 uintA = 0xffffffff;
- UInt32 comValue = UInt16.MaxValue;
- ActualResult = uintA.CompareTo(comValue);
- if (ActualResult <= 0)
- {
- TestLibrary.TestFramework.LogError("007", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region ForTestObject
- private Int32 GetInt32(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
-}
-
+++ /dev/null
-// 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;
-
-/// <summary>
-/// UInt32.Equals(System.Object)
-/// </summary>
-public class UInt32Equals1
-{
- public static int Main()
- {
- UInt32Equals1 ui32e1 = new UInt32Equals1();
- TestLibrary.TestFramework.BeginTestCase("UInt32Equals1");
-
- if (ui32e1.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
- public bool PosTest1()
- {
- bool retVal = true;
- bool ActualResult;
- TestLibrary.TestFramework.BeginScenario("PosTest1: object value is null");
- try
- {
- UInt32 uintA = (UInt32)this.GetInt32(0, Int32.MaxValue);
- object comValue = null;
- ActualResult = uintA.Equals(comValue);
- if (ActualResult)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
- bool ActualResult;
- TestLibrary.TestFramework.BeginScenario("PosTest2: object value is declaring class");
- try
- {
- UInt32 uintA = (UInt32)this.GetInt32(0, Int32.MaxValue);
- object comValue = new MyTest();
- ActualResult = uintA.Equals(comValue);
- if (ActualResult)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
- bool ActualResult;
- TestLibrary.TestFramework.BeginScenario("PosTest3: object value is the instance value but the types are different");
- try
- {
- int comValue = this.GetInt32(0, Int32.MaxValue);
- UInt32 uintA = (UInt32)comValue;
- ActualResult = uintA.Equals(comValue);
- if (ActualResult)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest4()
- {
- bool retVal = true;
- bool ActualResult;
- TestLibrary.TestFramework.BeginScenario("PosTest4: object and the instance have the same type but different value");
- try
- {
- int intA = this.GetInt32(0,Int32.MaxValue);
- UInt32 uintA = (UInt32)intA;
- UInt32 comValue = (UInt32)(intA + 1);
- ActualResult = uintA.Equals(comValue);
- if (ActualResult)
- {
- TestLibrary.TestFramework.LogError("007", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest5()
- {
- bool retVal = true;
- bool ActualResult;
- TestLibrary.TestFramework.BeginScenario("PosTest5: object and the instance have the same type and the same value 1");
- try
- {
- UInt32 uintA = 0xffffffff;
- UInt32 comValue = UInt32.MaxValue;
- ActualResult = uintA.Equals(comValue);
- if (!ActualResult)
- {
- TestLibrary.TestFramework.LogError("009", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest6()
- {
- bool retVal = true;
- bool ActualResult;
- TestLibrary.TestFramework.BeginScenario("PosTest6: object and the instance have the same type and the same value 2");
- try
- {
- UInt32 uintA = 0;
- UInt32 comValue = UInt32.MinValue;
- ActualResult = uintA.Equals(comValue);
- if (!ActualResult)
- {
- TestLibrary.TestFramework.LogError("011", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region ForTestObject
- public class MyTest { }
- private Int32 GetInt32(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
-
-}
+++ /dev/null
-// 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.Globalization;
-
-/// <summary>
-/// UInt32.Equals(System.UInt32)
-/// </summary>
-public class UInt32Equals2
-{
- public static int Main(string[] args)
- {
- UInt32Equals2 ui32e2 = new UInt32Equals2();
- TestLibrary.TestFramework.BeginTestCase("UInt32Equals2");
-
- if (ui32e2.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;
- bool ActualResult;
- TestLibrary.TestFramework.BeginScenario("PosTest1: object value is null");
- try
- {
- UInt32 uintA = (UInt32)this.GetInt32(0, Int32.MaxValue);
- object comValue = null;
- ActualResult = uintA.Equals(comValue);
- if (ActualResult)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
- bool ActualResult;
- TestLibrary.TestFramework.BeginScenario("PosTest2: UInt32 value is different from the instance 1");
- try
- {
- int intA = this.GetInt32(0, Int32.MaxValue);
- UInt32 uintA = (UInt32)intA;
- UInt32 comValue = (UInt32)(intA + 1);
- ActualResult = uintA.Equals(comValue);
- if (ActualResult)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest3()
- {
- bool retVal = true;
- bool ActualResult;
- TestLibrary.TestFramework.BeginScenario("PosTest3: UInt32 value is different from the instance 2");
- try
- {
- int intA = this.GetInt32(0, Int32.MaxValue);
- UInt32 uintA = (UInt32)(intA + 1);
- UInt32 comValue = (UInt32)intA;
- ActualResult = uintA.Equals(comValue);
- if (ActualResult)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest4()
- {
- bool retVal = true;
- bool ActualResult;
- TestLibrary.TestFramework.BeginScenario("PosTest4: UInt32 value is equal the instance ");
- try
- {
- UInt32 uintA = 0xffffffff;
- UInt32 comValue = UInt32.MaxValue;
- ActualResult = uintA.Equals(comValue);
- if (!ActualResult)
- {
- TestLibrary.TestFramework.LogError("007", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-
- #region ForTestObject
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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 UInt32GetHashCode
-{
- public static int Main()
- {
- UInt32GetHashCode ui32ghc = new UInt32GetHashCode();
-
- TestLibrary.TestFramework.BeginTestCase("UInt32GetHashCode");
-
- if (ui32ghc.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;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: the UInt32 instance is the UInt32 MinValue ");
-
- try
- {
- UInt32 uintA = 0;
- Int32 uintB = uintA.GetHashCode();
- if (uintB != 0)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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: the UInt32 instance is the UInt32 MaxValue");
-
- try
- {
- UInt32 uintA = UInt32.MaxValue;
- Int32 uintB = uintA.GetHashCode();
- if (uintB != -1)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- 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: the UInt32 instance is the Int32 MaxValue");
-
- try
- {
- UInt32 uintA = (UInt32)Int32.MaxValue;
- Int32 uintB = uintA.GetHashCode();
- if (uintB != Int32.MaxValue)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- 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: the UInt32 instance is larger than Int32 MaxValue but less than the UInt32 MaxValue");
-
- try
- {
- int intA = this.GetInt32(1, Int32.MaxValue);
- UInt32 uintA = (UInt32)Int32.MaxValue + (UInt32)intA;
- Int32 uintB = uintA.GetHashCode();
- if (uintB != (-1)*(Int32.MaxValue - intA + 2))
- {
- TestLibrary.TestFramework.LogError("007", "the ActualResult is not the ExpectResult");
- 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 UInt32 instance is less than the Int32 MaxValue");
-
- try
- {
- int intA = this.GetInt32(1, Int32.MaxValue);
- UInt32 uintA = (UInt32)intA;
- Int32 uintB = uintA.GetHashCode();
- if (uintB != intA)
- {
- TestLibrary.TestFramework.LogError("009", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region ForTestObject
- private Int32 GetInt32(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
-
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// UInt32.System.IConvertible.ToBoolean
-/// </summary>
-public class UInt32IConvertibleToBoolean
-{
- public static int Main()
- {
- UInt32IConvertibleToBoolean ui32ictbool = new UInt32IConvertibleToBoolean();
- TestLibrary.TestFramework.BeginTestCase("UInt32IConvertibleToBoolean");
- if (ui32ictbool.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 PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: genarate a random UInt32 to boolean 1");
-
- try
- {
- UInt32 uintA = (UInt32)this.GetInt32(1, Int32.MaxValue);
- IConvertible iConvert = (IConvertible)(uintA);
- if (!iConvert.ToBoolean(null))
- {
- TestLibrary.TestFramework.LogError("001","the ActualResult is not the ExpectResult");
- 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: genarate a random UInt32 to boolean 2");
-
- try
- {
- UInt32 uintA = (UInt32)(this.GetInt32(1, Int32.MaxValue) + this.GetInt32(0, Int32.MaxValue));
- IConvertible iConvert = (IConvertible)(uintA);
- if (!iConvert.ToBoolean(null))
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- 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: UInt32 MinValue to boolean");
-
- try
- {
- UInt32 uintA = UInt32.MinValue;
- IConvertible iConvert = (IConvertible)(uintA);
- if (iConvert.ToBoolean(null))
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- 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: UInt32 MaxValue to boolean");
-
- try
- {
- UInt32 uintA = UInt32.MaxValue;
- IConvertible iConvert = (IConvertible)(uintA);
- if (!iConvert.ToBoolean(null))
- {
- TestLibrary.TestFramework.LogError("007", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region ForTestObject
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// UInt32.System.IConvertible.ToByte
-/// </summary>
-public class UInt32IConvertibleToByte
-{
- public static int Main()
- {
- UInt32IConvertibleToByte ui32ictbyte = new UInt32IConvertibleToByte();
- TestLibrary.TestFramework.BeginTestCase("UInt32IConvertibleToByte");
- if (ui32ictbyte.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 PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: genarate a random UInt32 to byte");
-
- try
- {
- UInt32 uintA = (UInt32)this.GetInt32(1, 256);
- IConvertible iConvert = (IConvertible)(uintA);
- Byte byteA = iConvert.ToByte(null);
- if (byteA != uintA)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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: UInt32 MinValue to byte");
-
- try
- {
- UInt32 uintA = UInt32.MinValue;
- IConvertible iConvert = (IConvertible)(uintA);
- Byte byteA = iConvert.ToByte(null);
- if (byteA != 0)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest1: Number between 256 to UInt32.MaxValue to Byte");
-
- try
- {
- UInt32 uintA = (UInt32)(this.GetInt32(256, Int32.MaxValue) + this.GetInt32(0, Int32.MaxValue));
- IConvertible iConvert = (IConvertible)(uintA);
- Byte byteA = iConvert.ToByte(null);
- retVal = false;
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region ForTestObject
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// UInt32.System.IConvertible.ToChar
-/// </summary>
-public class UInt32IConvertibleToChar
-{
- public static int Main()
- {
- UInt32IConvertibleToChar ui32ictchar = new UInt32IConvertibleToChar();
- TestLibrary.TestFramework.BeginTestCase("UInt32IConvertibleToChar");
- if (ui32ictchar.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 PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: genarate a random UInt32 to char");
-
- try
- {
- UInt32 uintA = (UInt32)this.GetInt32(1, 65536);
- IConvertible iConvert = (IConvertible)(uintA);
- Char charA = iConvert.ToChar(null);
- if (charA != uintA)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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: UInt32.MinValue to Char");
-
- try
- {
- UInt32 uintA = UInt32.MinValue;
- IConvertible iConvert = (IConvertible)(uintA);
- Char charA = iConvert.ToChar(null);
- if (charA != 0)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest1: Number between 65536 to UInt32.MaxValue to char");
-
- try
- {
- UInt32 uintA = (UInt32)(this.GetInt32(65536, Int32.MaxValue) + this.GetInt32(0, Int32.MaxValue));
- IConvertible iConvert = (IConvertible)(uintA);
- Char charA = iConvert.ToChar(null);
- retVal = false;
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region ForTestObject
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// UInt32.System.IConvertible.ToDecimal
-/// </summary>
-public class UInt32IConvertibleToDecimal
-{
- public static int Main()
- {
- UInt32IConvertibleToDecimal ui32ictdecimal = new UInt32IConvertibleToDecimal();
- TestLibrary.TestFramework.BeginTestCase("UInt32IConvertibleToDecimal");
- if (ui32ictdecimal.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;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:UInt32 MaxValue to Decimal");
-
- try
- {
- UInt32 uintA = UInt32.MaxValue;
- IConvertible iConvert = (IConvertible)(uintA);
- Decimal decimalA = iConvert.ToDecimal(null);
- if (decimalA != uintA)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:UInt32 MinValue to Decimal");
-
- try
- {
- UInt32 uintA = UInt32.MinValue;
- IConvertible iConvert = (IConvertible)(uintA);
- Decimal decimalA = iConvert.ToDecimal(null);
- if (decimalA != uintA)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- 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 UInt32 between minValue and MaxValue to Decimal");
-
- try
- {
- UInt32 uintA = (UInt32)(this.GetInt32(1, Int32.MaxValue) + this.GetInt32(0, Int32.MaxValue));
- IConvertible iConvert = (IConvertible)(uintA);
- Decimal decimalA = iConvert.ToDecimal(null);
- if (decimalA != uintA)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region ForTestObject
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// UInt32.System.IConvertible.ToDouble
-/// </summary>
-public class UInt32IConvertibleToDouble
-{
- public static int Main()
- {
- UInt32IConvertibleToDouble ui32ictdouble = new UInt32IConvertibleToDouble();
- TestLibrary.TestFramework.BeginTestCase("UInt32IConvertibleToDouble");
- if (ui32ictdouble.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;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:UInt32 MaxValue to Double");
-
- try
- {
- UInt32 uintA = UInt32.MaxValue;
- IConvertible iConvert = (IConvertible)(uintA);
- Double doubleA = iConvert.ToDouble(null);
- if (doubleA != uintA)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:UInt32 MinValue to Double");
-
- try
- {
- UInt32 uintA = UInt32.MinValue;
- IConvertible iConvert = (IConvertible)(uintA);
- Double doubleA = iConvert.ToDouble(null);
- if (doubleA != uintA)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- 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 UInt32 between minValue and MaxValue to Double");
-
- try
- {
- UInt32 uintA = (UInt32)(this.GetInt32(1, Int32.MaxValue) + this.GetInt32(0, Int32.MaxValue));
- IConvertible iConvert = (IConvertible)(uintA);
- Double doubleA = iConvert.ToDouble(null);
- if (doubleA != uintA)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region ForTestObject
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// UInt32.System.IConvertible.ToInt16
-/// </summary>
-public class UInt32IConvertibleToInt16
-{
- public static int Main()
- {
- UInt32IConvertibleToInt16 ui32ictint16 = new UInt32IConvertibleToInt16();
- TestLibrary.TestFramework.BeginTestCase("UInt32IConvertibleToInt16");
- if (ui32ictint16.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 PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:UInt32 MinValue to Int16");
-
- try
- {
- UInt32 uintA = UInt32.MinValue;
- IConvertible iConvert = (IConvertible)(uintA);
- Int16 int16A = iConvert.ToInt16(null);
- if (int16A != uintA)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:UInt32 num between UInt32.MinValue to Int16.MaxValue");
-
- try
- {
- UInt32 uintA = (UInt32)(this.GetInt32(0,Int16.MaxValue));
- IConvertible iConvert = (IConvertible)(uintA);
- Int16 int16A = iConvert.ToInt16(null);
- if (int16A != uintA)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest1:UInt32 num between Int16.MaxValue to UInt32.MaxValue");
-
- try
- {
- UInt32 uintA = (UInt32)(this.GetInt32(Int16.MaxValue + 1, Int32.MaxValue) + this.GetInt32(0, Int32.MaxValue));
- IConvertible iConvert = (IConvertible)(uintA);
- Int16 int16A = iConvert.ToInt16(null);
- retVal = false;
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region ForTestObject
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// UInt32.System.IConvertible.ToInt32
-/// </summary>
-public class UInt32IConvertibleToInt32
-{
- public static int Main()
- {
- UInt32IConvertibleToInt32 ui32ictint32 = new UInt32IConvertibleToInt32();
- TestLibrary.TestFramework.BeginTestCase("UInt32IConvertibleToInt32");
- if (ui32ictint32.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 PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:UInt32 MinValue to Int32");
-
- try
- {
- UInt32 uintA = UInt32.MinValue;
- IConvertible iConvert = (IConvertible)(uintA);
- Int32 int32A = iConvert.ToInt32(null);
- if (int32A != uintA)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:UInt32 num between UInt32.MinValue to Int32.MaxValue");
-
- try
- {
- UInt32 uintA = (UInt32)(this.GetInt32(0, Int32.MaxValue));
- IConvertible iConvert = (IConvertible)(uintA);
- Int32 int32A = iConvert.ToInt32(null);
- if (int32A != uintA)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest1:UInt32 num between Int32.MaxValue to UInt32.MaxValue");
-
- try
- {
- UInt32 uintA = (UInt32)(this.GetInt32(Int32.MaxValue, Int32.MaxValue) + this.GetInt32(1, Int32.MaxValue));
- IConvertible iConvert = (IConvertible)(uintA);
- Int32 int32A = iConvert.ToInt32(null);
- retVal = false;
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region ForTestObject
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// UInt32.System.IConvertible.ToInt64
-/// </summary>
-public class UInt32IConvertibleToInt64
-{
- public static int Main()
- {
- UInt32IConvertibleToInt64 ui32ictint64 = new UInt32IConvertibleToInt64();
- TestLibrary.TestFramework.BeginTestCase("UInt32IConvertibleToInt64");
- if (ui32ictint64.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;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:UInt32 MinValue to Int64");
-
- try
- {
- UInt32 uintA = UInt32.MinValue;
- IConvertible iConvert = (IConvertible)(uintA);
- Int64 int64A = iConvert.ToInt64(null);
- if (int64A != uintA)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:UInt32 MaxValue to Int64");
-
- try
- {
- UInt32 uintA = UInt32.MaxValue;
- IConvertible iConvert = (IConvertible)(uintA);
- Int64 int64A = iConvert.ToInt64(null);
- if (int64A != uintA)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- 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:UInt32 between UInt32 minValue and MaxValue to Int64");
-
- try
- {
- UInt32 uintA = (UInt32)(this.GetInt32(1, Int32.MaxValue) + this.GetInt32(0, Int32.MaxValue));
- IConvertible iConvert = (IConvertible)(uintA);
- Int64 int64A = iConvert.ToInt64(null);
- if (int64A != uintA)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region ForTestObject
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// UInt32.System.IConvertible.ToSByte
-/// </summary>
-public class UInt32IConvertibleToSByte
-{
- public static int Main()
- {
- UInt32IConvertibleToSByte ui32ictsbyte = new UInt32IConvertibleToSByte();
- TestLibrary.TestFramework.BeginTestCase("UInt32IConvertibleToSByte");
- if (ui32ictsbyte.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 PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:UInt32 MinValue to SByte");
-
- try
- {
- UInt32 uintA = UInt32.MinValue;
- IConvertible iConvert = (IConvertible)(uintA);
- SByte sbyteA = iConvert.ToSByte(null);
- if (sbyteA != uintA)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:UInt32 between MinValue to SByte.MaxValue to SByte");
-
- try
- {
- UInt32 uintA = (UInt32)this.GetInt32(1, SByte.MaxValue + 1);
- IConvertible iConvert = (IConvertible)(uintA);
- SByte sbyteA = iConvert.ToSByte(null);
- if (sbyteA != uintA)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest1:UInt32 num between SByte.MaxValue to UInt32.MaxValue");
-
- try
- {
- UInt32 uintA = (UInt32)(this.GetInt32(SByte.MaxValue + 1, Int32.MaxValue) + this.GetInt32(0, Int32.MaxValue));
- IConvertible iConvert = (IConvertible)(uintA);
- SByte sbyteA = iConvert.ToSByte(null);
- retVal = false;
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region ForTestObject
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// UInt32.System.IConvertible.ToSingle
-/// </summary>
-public class UInt32IConvertibleToSingle
-{
- public static int Main()
- {
- UInt32IConvertibleToSingle ui32ictsingle = new UInt32IConvertibleToSingle();
- TestLibrary.TestFramework.BeginTestCase("UInt32IConvertibleToSingle");
- if (ui32ictsingle.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;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:UInt32 MinValue to Single");
-
- try
- {
- UInt32 uintA = UInt32.MinValue;
- IConvertible iConvert = (IConvertible)(uintA);
- Single singleA = iConvert.ToSingle(null);
- if (singleA != uintA)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:UInt32 MaxValue to Single");
-
- try
- {
- UInt32 uintA = UInt32.MaxValue;
- IConvertible iConvert = (IConvertible)(uintA);
- Single singleA = iConvert.ToSingle(null);
- if (singleA != uintA)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- 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:UInt32 between MinValue and MaxValue to Single");
-
- try
- {
- UInt32 uintA = (UInt32)(this.GetInt32(1, Int32.MaxValue) + this.GetInt32(0, Int32.MaxValue));
- IConvertible iConvert = (IConvertible)(uintA);
- Single singleA = iConvert.ToSingle(null);
- if (singleA != uintA)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region ForTestObject
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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 UInt32IConvertibleToType
-{
- public static int Main()
- {
- UInt32IConvertibleToType ui32icttype = new UInt32IConvertibleToType();
- TestLibrary.TestFramework.BeginTestCase("UInt32IConvertibleToType");
- if (ui32icttype.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("[Negative]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
- retVal = NegTest4() && retVal;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:UInt32 MinValue to Type of string");
-
- try
- {
- UInt32 uintA = UInt32.MinValue;
- IConvertible iConvert = (IConvertible)(uintA);
- string strA = (string)iConvert.ToType(typeof(string), null);
- if (strA != uintA.ToString())
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:UInt32 MinValue to Type of bool");
-
- try
- {
- UInt32 uintA = UInt32.MinValue;
- IConvertible iConvert = (IConvertible)(uintA);
- bool boolA = (bool)iConvert.ToType(typeof(bool), null);
- if (boolA)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- 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:UInt32 MaxValue to Type of bool");
-
- try
- {
- UInt32 uintA = UInt32.MaxValue;
- IConvertible iConvert = (IConvertible)(uintA);
- bool boolA = (bool)iConvert.ToType(typeof(bool), null);
- if (!boolA)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- 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:UInt32 MaxValue to Type of Int64,double and decimal");
-
- try
- {
- UInt32 uintA = UInt32.MaxValue;
- IConvertible iConvert = (IConvertible)(uintA);
- Int64 int64A = (Int64)iConvert.ToType(typeof(Int64), null);
- Double doubleA = (Double)iConvert.ToType(typeof(Double), null);
- Decimal decimalA = (Decimal)iConvert.ToType(typeof(Decimal), null);
- Single singleA = (Single)iConvert.ToType(typeof(Single), null);
- if (int64A != uintA || doubleA!= uintA || decimalA != uintA || singleA != uintA)
- {
- TestLibrary.TestFramework.LogError("007", "the ActualResult is not the ExpectResult");
- 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:UInt32 between MinValue to Int32.Max to Type of Int32");
-
- try
- {
- UInt32 uintA = (UInt32)this.GetInt32(0, Int32.MaxValue);
- IConvertible iConvert = (IConvertible)(uintA);
- Int32 int32A = (Int32)iConvert.ToType(typeof(Int32), null);
- if (int32A != uintA)
- {
- TestLibrary.TestFramework.LogError("009", "the ActualResult is not the ExpectResult");
- 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:UInt32 between MinValue to Int16.Max to Type of Int16");
-
- try
- {
- UInt32 uintA = (UInt32)this.GetInt32(0, Int16.MaxValue + 1);
- IConvertible iConvert = (IConvertible)(uintA);
- Int16 int16A = (Int16)iConvert.ToType(typeof(Int16), null);
- if (int16A != uintA)
- {
- TestLibrary.TestFramework.LogError("011", "the ActualResult is not the ExpectResult");
- 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:UInt32 between MinValue and SByte.Max to Type of SByte");
-
- try
- {
- UInt32 uintA = (UInt32)this.GetInt32(0, SByte.MaxValue + 1);
- IConvertible iConvert = (IConvertible)(uintA);
- SByte sbyteA = (SByte)iConvert.ToType(typeof(SByte), null);
- if (sbyteA != uintA)
- {
- TestLibrary.TestFramework.LogError("013", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("014", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest8()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest8:UInt32 between MinValue and Byte.Max to Type of Byte");
-
- try
- {
- UInt32 uintA = (UInt32)this.GetInt32(0, Byte.MaxValue + 1);
- IConvertible iConvert = (IConvertible)(uintA);
- Byte byteA = (Byte)iConvert.ToType(typeof(Byte), null);
- if (byteA != uintA)
- {
- TestLibrary.TestFramework.LogError("015", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("016", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest1:UInt32 between Int32.MaxValue and UInt32.MaxValue to Type of Int32");
-
- try
- {
- UInt32 uintA = (UInt32)(this.GetInt32(0, Int32.MaxValue) + Int32.MaxValue);
- IConvertible iConvert = (IConvertible)(uintA);
- Int32 int32A = (Int32)iConvert.ToType(typeof(Int32), null);
- retVal = false;
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool NegTest2()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest2:UInt32 between Int16.Max and UInt32.MaxValue Type of Int16");
-
- try
- {
- UInt32 uintA = (UInt32)(Int16.MaxValue + this.GetInt32(1, Int32.MaxValue));
- IConvertible iConvert = (IConvertible)(uintA);
- Int16 int16A = (Int16)iConvert.ToType(typeof(Int16), null);
- retVal = false;
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool NegTest3()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest3:UInt32 between SByte.Max and UInt32.MaxValue to Type of SByte");
-
- try
- {
- UInt32 uintA = (UInt32)(SByte.MaxValue + this.GetInt32(1, Int32.MaxValue));
- IConvertible iConvert = (IConvertible)(uintA);
- SByte sbyteA = (SByte)iConvert.ToType(typeof(SByte), null);
- retVal = false;
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N003", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool NegTest4()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest4:UInt32 between Byte.Max and UInt32.MaxValue to Type of Byte");
-
- try
- {
- UInt32 uintA = (UInt32)(Byte.MaxValue + this.GetInt32(1,Int32.MaxValue));
- IConvertible iConvert = (IConvertible)(uintA);
- Byte byteA = (Byte)iConvert.ToType(typeof(Byte), null);
- retVal = false;
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region ForTestObject
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// UInt32.System.IConvertible.ToUInt16
-/// </summary>
-public class UInt32IConvertibleToUInt16
-{
- public static int Main()
- {
- UInt32IConvertibleToUInt16 ui32ictuint16 = new UInt32IConvertibleToUInt16();
- TestLibrary.TestFramework.BeginTestCase("UInt32IConvertibleToUInt16");
- if (ui32ictuint16.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 PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:UInt32 MinValue to UInt16");
- try
- {
- UInt32 uintA = UInt32.MinValue;
- IConvertible iConvert = (IConvertible)(uintA);
- UInt16 uint16A = iConvert.ToUInt16(null);
- if (uint16A != uintA)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:UInt32 num between UInt32.MinValue to UInt16.MaxValue");
- try
- {
- UInt32 uintA = (UInt32)(this.GetInt32(0, UInt16.MaxValue + 1));
- IConvertible iConvert = (IConvertible)(uintA);
- UInt16 uint16A = iConvert.ToUInt16(null);
- if (uint16A != uintA)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest1:UInt32 num between UInt16.MaxValue to UInt32.MaxValue");
-
- try
- {
- UInt32 uintA = (UInt32)(this.GetInt32(UInt16.MaxValue + 1, Int32.MaxValue) + this.GetInt32(0, Int32.MaxValue));
- IConvertible iConvert = (IConvertible)(uintA);
- UInt16 uint16A = iConvert.ToUInt16(null);
- retVal = false;
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region ForTestObject
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// UInt32.System.IConvertible.ToUInt32
-/// </summary>
-public class UInt32IConvertibleToUInt32
-{
- public static int Main()
- {
- UInt32IConvertibleToUInt32 ui32ictuint32 = new UInt32IConvertibleToUInt32();
- TestLibrary.TestFramework.BeginTestCase("UInt32IConvertibleToUInt32");
- if (ui32ictuint32.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;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:UInt32 MinValue to UInt32");
-
- try
- {
- UInt32 uintA = UInt32.MinValue;
- IConvertible iConvert = (IConvertible)(uintA);
- UInt32 uint32A = iConvert.ToUInt32(null);
- if (uint32A != uintA)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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 UInt32 IConvertible to UInt32");
-
- try
- {
- UInt32 uintA = (UInt32)(this.GetInt32(0, Int32.MaxValue) + this.GetInt32(0, Int32.MaxValue));
- IConvertible iConvert = (IConvertible)(uintA);
- UInt32 uint32A = iConvert.ToUInt32(null);
- if (uint32A != uintA)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- 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:UInt32 MaxValue to UInt32");
-
- try
- {
- UInt32 uintA = UInt32.MaxValue;
- IConvertible iConvert = (IConvertible)(uintA);
- UInt32 uint32A = iConvert.ToUInt32(null);
- if (uint32A != uintA)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region ForTestObject
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// UInt32.System.IConvertible.ToUInt64
-/// </summary>
-public class UInt32IConvertibleToUInt64
-{
- public static int Main()
- {
- UInt32IConvertibleToUInt64 ui32ictuint64 = new UInt32IConvertibleToUInt64();
- TestLibrary.TestFramework.BeginTestCase("UInt32IConvertibleToUInt64");
- if (ui32ictuint64.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;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:UInt32 MinValue to UInt64");
-
- try
- {
- UInt32 uintA = UInt32.MinValue;
- IConvertible iConvert = (IConvertible)(uintA);
- UInt64 uint64A = iConvert.ToUInt64(null);
- if (uint64A != uintA)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:UInt32 MaxValue to UInt64");
-
- try
- {
- UInt32 uintA = UInt32.MaxValue;
- IConvertible iConvert = (IConvertible)(uintA);
- UInt64 uint64A = iConvert.ToUInt64(null);
- if (uint64A != uintA)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- 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:UInt32 between UInt32 minValue and MaxValue to UInt64");
-
- try
- {
- UInt32 uintA = (UInt32)(this.GetInt32(1, Int32.MaxValue) + this.GetInt32(0, Int32.MaxValue));
- IConvertible iConvert = (IConvertible)(uintA);
- UInt64 uint64A = iConvert.ToUInt64(null);
- if (uint64A != uintA)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region ForTestObject
- private Int32 GetInt32(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
-}
+++ /dev/null
-// 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.Globalization;
-using System.IO;
-
-/// <summary>
-/// Unint32.MaxValue
-/// </summary>
-public class UInt32MaxValue
-{
- private UInt32 c_UINT32_MAXVALUE = 4294967295;
- public static int Main()
- {
- UInt32MaxValue ui32mv = new UInt32MaxValue();
- TestLibrary.TestFramework.BeginTestCase("UInt32MaxValue");
-
- if (ui32mv.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: UnInt32.MaxValue should return the UnInt32' maxValue 1");
- try
- {
- UInt32 uintA = UInt32.MaxValue;
- if (uintA != c_UINT32_MAXVALUE)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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("PosTest1: UnInt32.MaxValue should return the UnInt32' maxValue 2");
- try
- {
- UInt32 uintA = UInt32.MaxValue;
- if (uintA != 0xffffffff)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
-
- }
-}
-
+++ /dev/null
-// 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.Globalization;
-
-/// <summary>
-/// UInt32.MinValue
-/// </summary>
-public class UInt32MinValue
-{
- private UInt32 c_UINT32_MINVALUE = 0;
-
- public static int Main()
- {
- UInt32MinValue ui32minv = new UInt32MinValue();
- TestLibrary.TestFramework.BeginTestCase("UInt32MinValue");
-
- if (ui32minv.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: UnInt32.MinValue should return the UnInt32' minValue");
- try
- {
- UInt32 uintA = UInt32.MinValue;
- if (uintA != c_UINT32_MINVALUE)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
-}
-
+++ /dev/null
-// 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.Generic;
-using System.Text;
-using TestLibrary;
-
-/// <summary>
-/// UInt32.ToString(System.string)
-/// </summary>
-public class UInt32ToString2
-{
- public static int Main()
- {
- UInt32ToString2 ui32ts2 = new UInt32ToString2();
- TestLibrary.TestFramework.BeginTestCase("UInt32ToString2");
-
- if (ui32ts2.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
- #region Private Methods
- private CultureInfo CurrentCulture = TestLibrary.Utilities.CurrentCulture;
- private CultureInfo customCulture = null;
-
- private CultureInfo CustomCulture
- {
- get
- {
- if (null == customCulture)
- {
- customCulture = new CultureInfo(CultureInfo.CurrentCulture.Name);
- NumberFormatInfo nfi = customCulture.NumberFormat;
- //For "G"
- // NegativeSign, NumberDecimalSeparator, NumberDecimalDigits, PositiveSign
- nfi.NegativeSign = "@"; //Default: "-"
- nfi.NumberDecimalSeparator = ","; //Default: "."
- nfi.NumberDecimalDigits = 3; //Default: 2
- nfi.PositiveSign = "++"; //Default: "+"
-
- //For "E"
- // PositiveSign, NegativeSign, and NumberDecimalSeparator.
- // If precision specifier is omitted, a default of six digits after the decimal point is used.
-
- //For "R"
- // NegativeSign, NumberDecimalSeparator and PositiveSign
-
- //For "X", The result string isn't affected by the formatting information of the current NumberFormatInfo
-
- //For "C"
- // CurrencyPositivePattern, CurrencySymbol, CurrencyDecimalDigits, CurrencyDecimalSeparator, CurrencyGroupSeparator, CurrencyGroupSizes, NegativeSign and CurrencyNegativePattern
- nfi.CurrencyDecimalDigits = 3; //Default: 2
- nfi.CurrencyDecimalSeparator = ","; //Default: ","
- nfi.CurrencyGroupSeparator = "."; //Default: "."
- nfi.CurrencyGroupSizes = new int[] { 2 }; //Default: new int[]{3}
- nfi.CurrencyNegativePattern = 2; //Default: 0
- nfi.CurrencyPositivePattern = 1; //Default: 0
- nfi.CurrencySymbol = "USD"; //Default: "$"
-
- //For "D"
- // NegativeSign
-
- //For "E"
- // PositiveSign, NumberDecimalSeparator and NegativeSign.
- // If precision specifier is omitted, a default of six digits after the decimal point is used.
- nfi.PositiveSign = "++"; //Default: "+"
- nfi.NumberDecimalSeparator = ","; //Default: "."
-
- //For "F"
- // NumberDecimalDigits, and NumberDecimalSeparator and NegativeSign.
- nfi.NumberDecimalDigits = 3; //Default: 2
-
- //For "N"
- // NumberGroupSizes, NumberGroupSeparator, NumberDecimalSeparator, NumberDecimalDigits, NumberNegativePattern and NegativeSign.
- nfi.NumberGroupSizes = new int[] { 2 }; //Default: 3
- nfi.NumberGroupSeparator = "#"; //Default: ","
-
- //For "P"
- // PercentPositivePattern, PercentNegativePattern, NegativeSign, PercentSymbol, PercentDecimalDigits, PercentDecimalSeparator, PercentGroupSeparator and PercentGroupSizes
- nfi.PercentPositivePattern = 1; //Default: 0
- nfi.PercentNegativePattern = 2; //Default: 0
- nfi.PercentSymbol = "~"; //Default: "%"
- nfi.PercentDecimalDigits = 4; //Default: 2
- nfi.PercentDecimalSeparator = ","; //Default: "."
- nfi.PercentGroupSizes[0] = 2; //Default: 3
- nfi.PercentGroupSeparator = ",";
-
- customCulture.NumberFormat = nfi;
- }
- return customCulture;
- }
- }
-
- private bool VerifyToString(String id, UInt32 myInt, String format, String expected)
- {
- try
- {
- String actual = myInt.ToString(format);
- if (actual != expected)
- {
- TestLibrary.TestFramework.LogError(id + "_001", "Expected: " + expected + " Actual: " + actual);
- return false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError(id + "_002", "Unexpected exception occurs: " + e);
- return false;
- }
- return true;
- }
- #endregion
-
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal &= VerifyToString("PostTest1", UInt32.MaxValue, "X", "FFFFFFFF");
-
- TestLibrary.Utilities.CurrentCulture = CustomCulture;
- retVal &= VerifyToString("PostTest2", UInt32.MinValue, "G", "0");
- retVal &= VerifyToString("PostTest3", UInt32.MinValue, "f", "0,000");
- retVal &= VerifyToString("PostTest4", UInt32.MaxValue, "G", "4294967295");
- retVal &= VerifyToString("PostTest5", UInt32.MaxValue, "f", "4294967295,000");
- retVal &= VerifyToString("PostTest6", UInt32.MaxValue, "E", "4,294967E++009");
- retVal &= VerifyToString("PostTest7", UInt32.MaxValue, "N", "42#94#96#72#95,000");
- retVal &= VerifyToString("PostTest8", UInt32.MaxValue, "P", "429,496,729,500,0000~");
- retVal &= VerifyToString("PostTest9", UInt32.MaxValue, "D", "4294967295");
- retVal &= VerifyToString("PostTest10", 00065536, "G", "65536");
- retVal &= VerifyToString("PostTest11", 00065536, "P", "6,553,600,0000~");
- retVal &= VerifyToString("PostTest12", 00065536, "E", "6,553600E++004");
- retVal &= VerifyToString("PostTest13", 00065536, String.Empty, "65536");
- retVal &= VerifyToString("PostTest14", 00065536, null, "65536");
-
- TestLibrary.Utilities.CurrentCulture = CurrentCulture;
-
- TestLibrary.TestFramework.LogInformation("[Negative]");
- retVal &= NegTest1();
-
- return retVal;
- }
- #endregion
-
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest1: The Format parameter is Invalid");
- try
- {
- UInt32 uintA = (UInt32)(this.GetInt32(1, Int32.MaxValue) + this.GetInt32(0, Int32.MaxValue));
- String strA = uintA.ToString("Q");
- retVal = false;
- }
- catch (FormatException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region ForTestObject
-
-
- private Int32 GetInt32(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
-
-}
+++ /dev/null
-<?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="uint64gethashcode.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>
-
+++ /dev/null
-<?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="uint64iconvertibletoboolean.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>
-
+++ /dev/null
-<?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="uint64iconvertibletobyte.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>
-
+++ /dev/null
-<?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="uint64iconvertibletochar.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>
-
+++ /dev/null
-<?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="uint64iconvertibletodatetime.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>
-
+++ /dev/null
-<?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="uint64iconvertibletodecimal.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>
-
+++ /dev/null
-<?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="uint64iconvertibletodouble.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>
-
+++ /dev/null
-<?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="uint64iconvertibletoint16.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>
-
+++ /dev/null
-<?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="uint64iconvertibletoint32.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>
-
+++ /dev/null
-<?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="uint64iconvertibletoint64.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>
-
+++ /dev/null
-<?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="uint64iconvertibletosbyte.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>
-
+++ /dev/null
-<?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="uint64iconvertibletosingle.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>
-
+++ /dev/null
-<?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="uint64iconvertibletotype.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>
-
+++ /dev/null
-<?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="uint64iconvertibletouint16.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>
-
+++ /dev/null
-<?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="uint64iconvertibletouint32.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>
-
+++ /dev/null
-<?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="uint64iconvertibletouint64.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>
-
+++ /dev/null
-<?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="uint64maxvalue.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>
-
+++ /dev/null
-<?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="uint64minvalue.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>
-
+++ /dev/null
-<?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="uint64tostring2.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>
-
+++ /dev/null
-// 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.UInt64.GetHashCode
-/// </summary>
-public class UInt64GetHashCode
-{
- #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: Check the return hash code not equal to zero");
-
- try
- {
- UInt64 u64 = this.GetUInt64(0, UInt64.MaxValue);
- int hash = u64.GetHashCode();
- if (hash == 0)
- {
- TestLibrary.TestFramework.LogError("001", "UInt64.gethashcode is equal to zero : " + u64);
- 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: Check the return hash code is the same");
-
- try
- {
- UInt64 u64 = this.GetUInt64(0, UInt64.MaxValue);
- int hash1 = u64.GetHashCode();
- int hash2 = u64.GetHashCode();
- if (hash1 != hash2)
- {
- TestLibrary.TestFramework.LogError("003", "The result is not the value as expected " + u64);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #region Nagetive Test Cases
- #endregion
- #endregion
-
- public static int Main()
- {
- UInt64GetHashCode test = new UInt64GetHashCode();
-
- TestLibrary.TestFramework.BeginTestCase("UInt64GetHashCode");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
- private UInt64 GetUInt64(ulong minValue, ulong maxValue)
- {
- try
- {
- if (minValue == maxValue)
- {
- return minValue;
- }
- if (minValue < maxValue)
- {
- return (ulong)(minValue + (ulong)TestLibrary.Generator.GetInt64(-55) % (maxValue - minValue));
- }
- }
- catch
- {
- throw;
- }
-
- return minValue;
- }
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// UInt64.System.IConvertible.ToBoolean
-/// </summary>
-public class UInt64IConvertibleToBoolean
-{
- public static int Main()
- {
- UInt64IConvertibleToBoolean ui64ictbool = new UInt64IConvertibleToBoolean();
- TestLibrary.TestFramework.BeginTestCase("UInt64IConvertibleToBoolean");
- if (ui64ictbool.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 PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: genarate a random UInt64 to boolean 1");
-
- try
- {
- UInt64 uintA = (UInt64)this.GetInt64(1, Int64.MaxValue);
- IConvertible iConvert = (IConvertible)(uintA);
- if (!iConvert.ToBoolean(null))
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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: genarate a random UInt64 to boolean 2");
-
- try
- {
- UInt64 uintA = (UInt64)(this.GetInt64(1, Int64.MaxValue) + this.GetInt64(0, Int64.MaxValue));
- IConvertible iConvert = (IConvertible)(uintA);
- if (!iConvert.ToBoolean(null))
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- 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: UInt64 MinValue to boolean");
-
- try
- {
- UInt64 uintA = UInt64.MinValue;
- IConvertible iConvert = (IConvertible)(uintA);
- if (iConvert.ToBoolean(null))
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- 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: UInt64MaxValue to boolean");
-
- try
- {
- UInt64 uintA = UInt64.MaxValue;
- IConvertible iConvert = (IConvertible)(uintA);
- if (!iConvert.ToBoolean(null))
- {
- TestLibrary.TestFramework.LogError("007", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region ForTestObject
- private UInt64 GetInt64(UInt64 minValue, UInt64 maxValue)
- {
- try
- {
- if (minValue == maxValue)
- {
- return minValue;
- }
- if (minValue < maxValue)
- {
- return minValue + (UInt64)TestLibrary.Generator.GetInt64(-55) % (maxValue - minValue);
- }
- }
- catch
- {
- throw;
- }
-
- return minValue;
- }
- #endregion
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// UInt64.System.IConvertible.ToByte
-/// </summary>
-public class UInt64IConvertibleToByte
-{
- public static int Main()
- {
- UInt64IConvertibleToByte ui64ictbyte = new UInt64IConvertibleToByte();
- TestLibrary.TestFramework.BeginTestCase("UInt64IConvertibleToByte");
- if (ui64ictbyte.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 PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: genarate a random UInt64to byte");
-
- try
- {
- UInt64 uintA = (UInt64)this.GetInt64(1, 256);
- IConvertible iConvert = (IConvertible)(uintA);
- Byte byteA = iConvert.ToByte(null);
- if (byteA != uintA)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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: UInt64 MinValue to byte");
-
- try
- {
- UInt64 uintA = UInt64.MinValue;
- IConvertible iConvert = (IConvertible)(uintA);
- Byte byteA = iConvert.ToByte(null);
- if (byteA != 0)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest1: Number between 256 to UInt64.MaxValue to Byte");
-
- try
- {
- UInt64 uintA = this.GetInt64(256, UInt64.MaxValue);
- IConvertible iConvert = (IConvertible)(uintA);
- Byte byteA = iConvert.ToByte(null);
- retVal = false;
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region ForTestObject
- private UInt64 GetInt64(UInt64 minValue, UInt64 maxValue)
- {
- try
- {
- if (minValue == maxValue)
- {
- return minValue;
- }
- if (minValue < maxValue)
- {
- return minValue + (UInt64)TestLibrary.Generator.GetInt64(-55) % (maxValue - minValue);
- }
- }
- catch
- {
- throw;
- }
-
- return minValue;
- }
- #endregion
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// UInt64.System.IConvertible.ToChar
-/// </summary>
-public class UInt64IConvertibleToChar
-{
- public static int Main()
- {
- UInt64IConvertibleToChar ui64ictchar = new UInt64IConvertibleToChar();
- TestLibrary.TestFramework.BeginTestCase("UInt64IConvertibleToChar");
- if (ui64ictchar.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 PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: genarate a random UInt64 to char");
-
- try
- {
- UInt64 uintA = this.GetInt64(1, 65536);
- IConvertible iConvert = (IConvertible)(uintA);
- Char charA = iConvert.ToChar(null);
- if (charA != uintA)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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: UInt64.MinValue to Char");
-
- try
- {
- UInt64 uintA = UInt64.MinValue;
- IConvertible iConvert = (IConvertible)(uintA);
- Char charA = iConvert.ToChar(null);
- if (charA != 0)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest1: Number between 65536 to UInt64.MaxValue to char");
-
- try
- {
- UInt64 uintA = this.GetInt64(65536, Int64.MaxValue);
- IConvertible iConvert = (IConvertible)(uintA);
- Char charA = iConvert.ToChar(null);
- retVal = false;
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region ForTestObject
- private UInt64 GetInt64(UInt64 minValue, UInt64 maxValue)
- {
- try
- {
- if (minValue == maxValue)
- {
- return minValue;
- }
- if (minValue < maxValue)
- {
- return minValue + (UInt64)TestLibrary.Generator.GetInt64(-55) % (maxValue - minValue);
- }
- }
- catch
- {
- throw;
- }
-
- return minValue;
- }
- #endregion
-}
+++ /dev/null
-// 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>
-/// UInt64.System.IConvertible.ToDateTime
-/// </summary>
-public class UInt64IConvertibleToDateTime
-{
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Negative]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
-
- return retVal;
- }
-
- #region Positive Test Cases
- #endregion
-
- #region Nagetive Test Cases
- public bool NegTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: Convert an random UInt64 to DateTime ");
-
- try
- {
- UInt64 u64 = (ulong)TestLibrary.Generator.GetInt64(-55);
- IConvertible Icon1 = (IConvertible)u64;
- DateTime d1 = Icon1.ToDateTime(null);
- TestLibrary.TestFramework.LogError("101", "The InvalidCastException was not thrown as expected");
- retVal = false;
-
- }
- catch (System.InvalidCastException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: Convert zero to DateTime ");
-
- try
- {
- UInt64 u64 = 0;
- DateTime d1 = (u64 as IConvertible).ToDateTime(null);
- TestLibrary.TestFramework.LogError("103", "The InvalidCastException was not thrown as expected");
- retVal = false;
-
- }
- catch (System.InvalidCastException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- UInt64IConvertibleToDateTime test = new UInt64IConvertibleToDateTime();
-
- TestLibrary.TestFramework.BeginTestCase("UInt64IConvertibleToDateTime");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
- #region ForTestObject
- private UInt64 GetInt64(UInt64 minValue, UInt64 maxValue)
- {
- try
- {
- if (minValue == maxValue)
- {
- return minValue;
- }
- if (minValue < maxValue)
- {
- return minValue + (UInt64)TestLibrary.Generator.GetInt64(-55) % (maxValue - minValue);
- }
- }
- catch
- {
- throw;
- }
-
- return minValue;
- }
- #endregion
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// UInt64.System.IConvertible.ToDecimal
-/// </summary>
-public class UInt64IConvertibleToDecimal
-{
- public static int Main()
- {
- UInt64IConvertibleToDecimal ui64ictdecimal = new UInt64IConvertibleToDecimal();
- TestLibrary.TestFramework.BeginTestCase("UInt64IConvertibleToDecimal");
- if (ui64ictdecimal.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;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:UInt64 MaxValue to Decimal");
-
- try
- {
- UInt64 uintA = UInt64.MaxValue;
- IConvertible iConvert = (IConvertible)(uintA);
- Decimal decimalA = iConvert.ToDecimal(null);
- if (decimalA != uintA)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:UInt64 MinValue to Decimal");
-
- try
- {
- UInt64 uintA = UInt64.MinValue;
- IConvertible iConvert = (IConvertible)(uintA);
- Decimal decimalA = iConvert.ToDecimal(null);
- if (decimalA != uintA)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- 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 UInt64 between minValue and MaxValue to Decimal");
-
- try
- {
- UInt64 uintA = this.GetInt64(1, UInt64.MaxValue);
- IConvertible iConvert = (IConvertible)(uintA);
- Decimal decimalA = iConvert.ToDecimal(null);
- if (decimalA != uintA)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region ForTestObject
- private UInt64 GetInt64(UInt64 minValue, UInt64 maxValue)
- {
- try
- {
- if (minValue == maxValue)
- {
- return minValue;
- }
- if (minValue < maxValue)
- {
- return minValue + (UInt64)TestLibrary.Generator.GetInt64(-55) % (maxValue - minValue);
- }
- }
- catch
- {
- throw;
- }
-
- return minValue;
- }
- #endregion
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// UInt64.System.IConvertible.ToDouble
-/// </summary>
-public class UInt64IConvertibleToDouble
-{
- public static int Main()
- {
- UInt64IConvertibleToDouble ui64ictdouble = new UInt64IConvertibleToDouble();
- TestLibrary.TestFramework.BeginTestCase("UInt64IConvertibleToDouble");
- if (ui64ictdouble.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;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:UInt64 MaxValue to Double");
-
- try
- {
- UInt64 uintA = UInt64.MaxValue;
- IConvertible iConvert = (IConvertible)(uintA);
- Double doubleA = iConvert.ToDouble(null);
- if (doubleA != uintA)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:UInt64 MinValue to Double");
-
- try
- {
- UInt64 uintA = UInt64.MinValue;
- IConvertible iConvert = (IConvertible)(uintA);
- Double doubleA = iConvert.ToDouble(null);
- if (doubleA != uintA)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- 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 UInt64 between minValue and MaxValue to Double");
-
- try
- {
- UInt64 uintA = this.GetInt64(0, UInt64.MaxValue);
- IConvertible iConvert = (IConvertible)(uintA);
- Double doubleA = iConvert.ToDouble(null);
- if (doubleA != uintA)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region ForTestObject
- private UInt64 GetInt64(UInt64 minValue, UInt64 maxValue)
- {
- try
- {
- if (minValue == maxValue)
- {
- return minValue;
- }
- if (minValue < maxValue)
- {
- return minValue + (UInt64)TestLibrary.Generator.GetInt64(-55) % (maxValue - minValue);
- }
- }
- catch
- {
- throw;
- }
-
- return minValue;
- }
- #endregion
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// UInt64.System.IConvertible.ToInt16
-/// </summary>
-public class UInt64IConvertibleToInt16
-{
- public static int Main()
- {
- UInt64IConvertibleToInt16 ui64ictuint16 = new UInt64IConvertibleToInt16();
- TestLibrary.TestFramework.BeginTestCase("UInt64IConvertibleToInt16");
- if (ui64ictuint16.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 PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:UInt64 MinValue to Int16");
- try
- {
- UInt64 uintA = UInt64.MinValue;
- IConvertible iConvert = (IConvertible)(uintA);
- Int16 int16A = iConvert.ToInt16(null);
- if ((ulong)int16A != uintA)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:UInt64 number between UInt64.MinValue to Int16.MaxValue");
- try
- {
- UInt64 uintA = this.GetInt64(0, Int16.MaxValue + 1);
- IConvertible iConvert = (IConvertible)(uintA);
- Int16 int16A = iConvert.ToInt16(null);
- if ((ulong)int16A != uintA)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest1:UInt64 number between Int16.MaxValue to UInt64.MaxValue");
-
- try
- {
- UInt64 uintA = this.GetInt64(Int16.MaxValue + 1, UInt64.MaxValue); ;
- IConvertible iConvert = (IConvertible)(uintA);
- Int16 int16A = iConvert.ToInt16(null);
- retVal = false;
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region ForTestObject
- private UInt64 GetInt64(UInt64 minValue, UInt64 maxValue)
- {
- try
- {
- if (minValue == maxValue)
- {
- return minValue;
- }
- if (minValue < maxValue)
- {
- return minValue + (UInt64)TestLibrary.Generator.GetInt64(-55) % (maxValue - minValue);
- }
- }
- catch
- {
- throw;
- }
-
- return minValue;
- }
- #endregion
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// UInt64.System.IConvertible.ToInt32
-/// </summary>
-public class UInt64IConvertibleToInt32
-{
- public static int Main()
- {
- UInt64IConvertibleToInt32 ui64ictuint32 = new UInt64IConvertibleToInt32();
- TestLibrary.TestFramework.BeginTestCase("UInt64IConvertibleToInt32");
- if (ui64ictuint32.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 PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:UInt64 MinValue to Int32");
- try
- {
- UInt64 uintA = UInt64.MinValue;
- IConvertible iConvert = (IConvertible)(uintA);
- Int32 int32A = iConvert.ToInt32(null);
- if ((ulong)int32A != uintA)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:UInt64 number between UInt64.MinValue to Int32.MaxValue");
- try
- {
- UInt64 uintA = this.GetInt64(0, Int32.MaxValue);
- IConvertible iConvert = (IConvertible)(uintA);
- Int32 int32A = iConvert.ToInt32(null);
- if ((ulong)int32A != uintA)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest1:UInt64 number between Int32.MaxValue to UInt64.MaxValue");
-
- try
- {
- UInt64 uintA = this.GetInt64((ulong)(Int32.MaxValue) + 1, UInt64.MaxValue); ;
- IConvertible iConvert = (IConvertible)(uintA);
- Int32 int32A = iConvert.ToInt32(null);
- retVal = false;
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region ForTestObject
- private UInt64 GetInt64(UInt64 minValue, UInt64 maxValue)
- {
- try
- {
- if (minValue == maxValue)
- {
- return minValue;
- }
- if (minValue < maxValue)
- {
- return minValue + (UInt64)TestLibrary.Generator.GetInt64(-55) % (maxValue - minValue);
- }
- }
- catch
- {
- throw;
- }
-
- return minValue;
- }
- #endregion
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// UInt64.System.IConvertible.ToInt64
-/// </summary>
-public class UInt64IConvertibleToInt64
-{
- public static int Main()
- {
- UInt64IConvertibleToInt64 ui64ictuint64 = new UInt64IConvertibleToInt64();
- TestLibrary.TestFramework.BeginTestCase("UInt64IConvertibleToInt64");
- if (ui64ictuint64.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 PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:UInt64 MinValue to Int64");
- try
- {
- UInt64 uintA = UInt64.MinValue;
- IConvertible iConvert = (IConvertible)(uintA);
- Int64 int64A = iConvert.ToInt64(null);
- if ((ulong)int64A != uintA)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:UInt64 number between UInt64.MinValue to Int64.MaxValue");
- try
- {
-
- UInt64 uintA = this.GetInt64(0, (ulong)(Int64.MaxValue) + 1);
- IConvertible iConvert = (IConvertible)(uintA);
- Int64 int64A = iConvert.ToInt64(null);
- if ((ulong)int64A != uintA)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest1:UInt64 number between Int64.MaxValue to UInt64.MaxValue");
-
- try
- {
- UInt64 uintA = this.GetInt64((ulong)(Int64.MaxValue) + 1, UInt64.MaxValue); ;
- IConvertible iConvert = (IConvertible)(uintA);
- Int64 int64A = iConvert.ToInt64(null);
- retVal = false;
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region ForTestObject
- private UInt64 GetInt64(UInt64 minValue, UInt64 maxValue)
- {
- try
- {
- if (minValue == maxValue)
- {
- return minValue;
- }
- if (minValue < maxValue)
- {
- return minValue + (UInt64)TestLibrary.Generator.GetInt64(-55) % (maxValue - minValue);
- }
- }
- catch
- {
- throw;
- }
-
- return minValue;
- }
- #endregion
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// UInt64.System.IConvertible.ToSByte
-/// </summary>
-public class UInt64IConvertibleToSByte
-{
- public static int Main()
- {
- UInt64IConvertibleToSByte ui64ictSByte = new UInt64IConvertibleToSByte();
- TestLibrary.TestFramework.BeginTestCase("UInt64IConvertibleToSByte");
- if (ui64ictSByte.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 PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:UInt64 MinValue to SByte");
- try
- {
- UInt64 uintA = UInt64.MinValue;
- IConvertible iConvert = (IConvertible)(uintA);
- SByte sByte = iConvert.ToSByte(null);
- if ((ulong)sByte != uintA)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:UInt64 number between UInt64.MinValue to SByte.MaxValue");
- try
- {
- UInt64 uintA = this.GetInt64(0, SByte.MaxValue + 1);
- IConvertible iConvert = (IConvertible)(uintA);
- SByte sByte = iConvert.ToSByte(null);
- if ((ulong)sByte != uintA)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest1:UInt64 number between SByte.MaxValue to UInt64.MaxValue");
-
- try
- {
- UInt64 uintA = this.GetInt64(SByte.MaxValue + 1, UInt64.MaxValue);
- IConvertible iConvert = (IConvertible)(uintA);
- SByte sByte = iConvert.ToSByte(null);
- retVal = false;
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region ForTestObject
- private UInt64 GetInt64(UInt64 minValue, UInt64 maxValue)
- {
- try
- {
- if (minValue == maxValue)
- {
- return minValue;
- }
- if (minValue < maxValue)
- {
- return minValue + (UInt64)TestLibrary.Generator.GetInt64(-55) % (maxValue - minValue);
- }
- }
- catch
- {
- throw;
- }
-
- return minValue;
- }
- #endregion
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// UInt64.System.IConvertible.ToSingle
-/// </summary>
-public class UInt64IConvertibleToSingle
-{
- public static int Main()
- {
- UInt64IConvertibleToSingle ui64ictSingle = new UInt64IConvertibleToSingle();
- TestLibrary.TestFramework.BeginTestCase("UInt64IConvertibleToSingle");
- if (ui64ictSingle.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;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:UInt64 MinValue to SByte");
- try
- {
- UInt64 uintA = UInt64.MinValue;
- IConvertible iConvert = (IConvertible)(uintA);
- Single single = iConvert.ToSingle(null);
- if ((ulong)single != uintA)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:Convert a random Uint64 less than 10000000 to float");
- try
- {
- UInt64 uintA = this.GetInt64(0, 10000000);
- IConvertible iConvert = (IConvertible)(uintA);
- Single single = iConvert.ToSingle(null);
- if (single != (float)uintA)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- 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:Convert a random UInt64 between 10000000 UInt64.MaxValue to Single");
- try
- {
- UInt64 uintA = this.GetInt64(10000000, UInt64.MaxValue);
- IConvertible iConvert = (IConvertible)(uintA);
- Single single = iConvert.ToSingle(null);
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("005", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region NegativeTest
- #endregion
- #region ForTestObject
- private UInt64 GetInt64(UInt64 minValue, UInt64 maxValue)
- {
- try
- {
- if (minValue == maxValue)
- {
- return minValue;
- }
- if (minValue < maxValue)
- {
- return minValue + (UInt64)TestLibrary.Generator.GetInt64(-55) % (maxValue - minValue);
- }
- }
- catch
- {
- throw;
- }
-
- return minValue;
- }
- #endregion
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// UInt64.System.IConvertible.ToType(Type,provider)
-/// </summary>
-public class UInt64IConvertibleToType
-{
- public static int Main()
- {
- UInt64IConvertibleToType ui64icttype = new UInt64IConvertibleToType();
- TestLibrary.TestFramework.BeginTestCase("UInt64IConvertibleToType");
- if (ui64icttype.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("[Negative]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
-
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:UInt64 MinValue to Type of string");
-
- try
- {
- UInt64 uintA = UInt64.MinValue;
- IConvertible iConvert = (IConvertible)(uintA);
- string strA = (string)iConvert.ToType(typeof(string), null);
- if (strA != uintA.ToString())
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:UInt64 MinValue to Type of bool");
-
- try
- {
- UInt64 uintA = UInt64.MinValue;
- IConvertible iConvert = (IConvertible)(uintA);
- bool boolA = (bool)iConvert.ToType(typeof(bool), null);
- if (boolA)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- 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:UInt64 MaxValue to Type of bool");
-
- try
- {
- UInt64 uintA = UInt64.MaxValue;
- IConvertible iConvert = (IConvertible)(uintA);
- bool boolA = (bool)iConvert.ToType(typeof(bool), null);
- if (!boolA)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- 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:Convert a random UInt64 to Type of double,decimal and single");
-
- try
- {
- UInt64 uintA = this.GetInt64(0, UInt64.MaxValue); ;
- IConvertible iConvert = (IConvertible)(uintA);
- Double doubleA = (Double)iConvert.ToType(typeof(Double), null);
- Decimal decimalA = (Decimal)iConvert.ToType(typeof(Decimal), null);
- Single singleA = (Single)iConvert.ToType(typeof(Single), null);
- if (doubleA != uintA || decimalA != uintA || singleA != uintA)
- {
- TestLibrary.TestFramework.LogError("007", "the ActualResult is not the ExpectResult");
- 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:UInt64 between MinValue to Int32.Max to Type of Int32");
-
- try
- {
- UInt64 uintA = this.GetInt64(0, Int32.MaxValue);
- IConvertible iConvert = (IConvertible)(uintA);
- Int32 int32A = (Int32)iConvert.ToType(typeof(Int32), null);
- if (int32A != (Int32)uintA)
- {
- TestLibrary.TestFramework.LogError("009", "the ActualResult is not the ExpectResult");
- 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:UInt64 between MinValue to Int16.Max to Type of Int16");
-
- try
- {
- UInt64 uintA = this.GetInt64(0, Int16.MaxValue + 1);
- IConvertible iConvert = (IConvertible)(uintA);
- Int16 int16A = (Int16)iConvert.ToType(typeof(Int16), null);
- if (int16A != (Int16)uintA)
- {
- TestLibrary.TestFramework.LogError("011", "the ActualResult is not the ExpectResult");
- 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:UInt64 between MinValue and SByte.Max to Type of SByte");
-
- try
- {
- UInt64 uintA = this.GetInt64(0, SByte.MaxValue + 1);
- IConvertible iConvert = (IConvertible)(uintA);
- SByte sbyteA = (SByte)iConvert.ToType(typeof(SByte), null);
- if (sbyteA != (SByte)uintA)
- {
- TestLibrary.TestFramework.LogError("013", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("014", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest8()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest8:UInt64 between MinValue and Byte.Max to Type of Byte");
-
- try
- {
- UInt64 uintA = this.GetInt64(0, Byte.MaxValue + 1);
- IConvertible iConvert = (IConvertible)(uintA);
- Byte byteA = (Byte)iConvert.ToType(typeof(Byte), null);
- if (byteA != (Byte)uintA)
- {
- TestLibrary.TestFramework.LogError("015", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("016", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest1:UInt64 between Int32.MaxValue and UInt64.MaxValue to Type of Int32");
-
- try
- {
- UInt64 uintA = this.GetInt64((ulong)Int32.MaxValue + 1, UInt64.MaxValue);
- IConvertible iConvert = (IConvertible)(uintA);
- Int32 int32A = (Int32)iConvert.ToType(typeof(Int32), null);
- retVal = false;
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- public bool NegTest2()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest2: The argument type is a null reference");
-
- try
- {
- UInt64 uintA = 100;
- IConvertible iConvert = (IConvertible)(uintA);
- object oBject = (Int16)iConvert.ToType(null, null);
- retVal = false;
- }
- catch (ArgumentNullException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N002", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region ForTestObject
- private UInt64 GetInt64(UInt64 minValue, UInt64 maxValue)
- {
- try
- {
- if (minValue == maxValue)
- {
- return minValue;
- }
- if (minValue < maxValue)
- {
- return minValue + (UInt64)TestLibrary.Generator.GetInt64(-55) % (maxValue - minValue);
- }
- }
- catch
- {
- throw;
- }
-
- return minValue;
- }
- #endregion
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// UInt64.System.IConvertible.ToUInt16
-/// </summary>
-public class UInt64IConvertibleToUInt16
-{
- public static int Main()
- {
- UInt64IConvertibleToUInt16 ui64ictuint16 = new UInt64IConvertibleToUInt16();
- TestLibrary.TestFramework.BeginTestCase("UInt64IConvertibleToUInt16");
- if (ui64ictuint16.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 PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:UInt64 MinValue to UInt16");
- try
- {
- UInt64 uintA = UInt64.MinValue;
- IConvertible iConvert = (IConvertible)(uintA);
- UInt16 uint16A = iConvert.ToUInt16(null);
- if (uint16A != uintA)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:UInt64 number between UInt64.MinValue to UInt16.MaxValue");
- try
- {
- UInt64 uintA = this.GetInt64(0, UInt16.MaxValue);
- IConvertible iConvert = (IConvertible)(uintA);
- UInt16 uint16A = iConvert.ToUInt16(null);
- if (uint16A != uintA)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest1:UInt64 number between UInt16.MaxValue to UInt64.MaxValue");
-
- try
- {
- UInt64 uintA = this.GetInt64(UInt16.MaxValue + 1, UInt64.MaxValue);
- IConvertible iConvert = (IConvertible)(uintA);
- UInt16 uint16A = iConvert.ToUInt16(null);
- retVal = false;
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region ForTestObject
- private UInt64 GetInt64(UInt64 minValue, UInt64 maxValue)
- {
- try
- {
- if (minValue == maxValue)
- {
- return minValue;
- }
- if (minValue < maxValue)
- {
- return minValue + (UInt64)TestLibrary.Generator.GetInt64(-55) % (maxValue - minValue);
- }
- }
- catch
- {
- throw;
- }
-
- return minValue;
- }
- #endregion
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// UInt64.System.IConvertible.ToUInt32
-/// </summary>
-public class UInt64IConvertibleToUInt32
-{
- public static int Main()
- {
- UInt64IConvertibleToUInt32 ui64ictuint32 = new UInt64IConvertibleToUInt32();
- TestLibrary.TestFramework.BeginTestCase("UInt64IConvertibleToUInt32");
- if (ui64ictuint32.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 PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:UInt64 MinValue to UInt32");
- try
- {
- UInt64 uintA = UInt64.MinValue;
- IConvertible iConvert = (IConvertible)(uintA);
- UInt32 uint32A = iConvert.ToUInt32(null);
- if (uint32A != uintA)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:UInt64 number between UInt64.MinValue to UInt32.MaxValue");
- try
- {
- UInt64 uintA = this.GetInt64(0, UInt32.MaxValue);
- IConvertible iConvert = (IConvertible)(uintA);
- UInt32 uint32A = iConvert.ToUInt32(null);
- if (uint32A != uintA)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest1:UInt64 number between UInt32.MaxValue to UInt64.MaxValue");
-
- try
- {
- UInt64 uintA = this.GetInt64((ulong)(UInt32.MaxValue) + 1, UInt64.MaxValue);
- IConvertible iConvert = (IConvertible)(uintA);
- UInt32 uint32A = iConvert.ToUInt32(null);
- retVal = false;
- }
- catch (OverflowException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N001", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region ForTestObject
- private UInt64 GetInt64(UInt64 minValue, UInt64 maxValue)
- {
- try
- {
- if (minValue == maxValue)
- {
- return minValue;
- }
- if (minValue < maxValue)
- {
- return minValue + (UInt64)TestLibrary.Generator.GetInt64(-55) % (maxValue - minValue);
- }
- }
- catch
- {
- throw;
- }
-
- return minValue;
- }
- #endregion
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// UInt64.System.IConvertible.ToUInt64
-/// </summary>
-public class UInt64IConvertibleToUInt64
-{
- public static int Main()
- {
- UInt64IConvertibleToUInt64 ui64ictuint64 = new UInt64IConvertibleToUInt64();
- TestLibrary.TestFramework.BeginTestCase("UInt64IConvertibleToUInt64");
- if (ui64ictuint64.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;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:UInt64 MinValue to UInt64");
- try
- {
- UInt64 uintA = UInt64.MinValue;
- IConvertible iConvert = (IConvertible)(uintA);
- UInt64 uint64A = iConvert.ToUInt64(null);
- if (uint64A != uintA)
- {
- TestLibrary.TestFramework.LogError("001", "the ActualResult is not the ExpectResult");
- 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:UInt64 MaxValue to UInt64");
- try
- {
- UInt64 uintA = UInt64.MaxValue;
- IConvertible iConvert = (IConvertible)(uintA);
- UInt64 uint64A = iConvert.ToUInt64(null);
- if (uint64A != uintA)
- {
- TestLibrary.TestFramework.LogError("003", "the ActualResult is not the ExpectResult");
- 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: Convert a random Uint64 to UInt64");
- try
- {
- UInt64 uintA = this.GetInt64(1, UInt64.MaxValue); ;
- IConvertible iConvert = (IConvertible)(uintA);
- UInt64 uint64A = iConvert.ToUInt64(null);
- if (uint64A != uintA)
- {
- TestLibrary.TestFramework.LogError("005", "the ActualResult is not the ExpectResult");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
- #region NegativeTest
- #endregion
- #region ForTestObject
- private UInt64 GetInt64(UInt64 minValue, UInt64 maxValue)
- {
- try
- {
- if (minValue == maxValue)
- {
- return minValue;
- }
- if (minValue < maxValue)
- {
- return minValue + (UInt64)TestLibrary.Generator.GetInt64(-55) % (maxValue - minValue);
- }
- }
- catch
- {
- throw;
- }
-
- return minValue;
- }
- #endregion
-}
+++ /dev/null
-// 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.UInt64.MaxValue
-/// </summary>
-public class UInt64MaxValue
-{
- private UInt64 c_UINT64_MAXVALUE = 18446744073709551615;
- #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: Normally test the uint64.MaxValue");
-
- try
- {
- UInt64 uint64 = UInt64.MaxValue;
- if (uint64 != c_UINT64_MAXVALUE)
- {
- 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 hex number to check the Uint64.MaxValue");
-
- try
- {
- UInt64 uint64 = UInt64.MaxValue;
- if (uint64 != 0xFFFFFFFFFFFFFFFF)
- {
- 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;
- }
-
- #endregion
-
- #region Nagetive Test Cases
- #endregion
- #endregion
-
- public static int Main()
- {
- UInt64MaxValue test = new UInt64MaxValue();
-
- TestLibrary.TestFramework.BeginTestCase("UInt64MaxValue");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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.UInt64.MinValue
-/// </summary>
-public class UInt64MinValue
-{
- private UInt64 c_UINT64_MINVALUE = 0;
- #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: Normally test the uint64.MinValue");
-
- try
- {
- ulong uint64 = UInt64.MinValue;
- if (uint64 != c_UINT64_MINVALUE)
- {
- 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
- #endregion
- #endregion
-
- public static int Main()
- {
- UInt64MinValue test = new UInt64MinValue();
-
- TestLibrary.TestFramework.BeginTestCase("UInt64MinValue");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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;
-
-/// <summary>
-/// UInt64.ToString(System.IFormatProvider)
-/// </summary>
-public class UInt64ToString1
-{
- #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]");
- if (TestLibrary.Utilities.IsWindows)
- {
- // retVal = NegTest1() && retVal; // Disabled until neutral cultures are available
- }
-
- return retVal;
- }
-
- #region Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Convert UInt64MaxValue to string value and using cultureinfo \"en-US\"");
-
- try
- {
- UInt64 u64 = UInt64.MaxValue;
- CultureInfo cultureInfo = new CultureInfo("en-US");
- string str = u64.ToString(cultureInfo);
- if (str != "18446744073709551615")
- {
- 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: Convert UInt64MinValue to string value and using cultureinfo \"fr-FR\"");
-
- try
- {
- UInt64 u64 = UInt64.MinValue;
- CultureInfo cultureInfo = new CultureInfo("fr-FR");
- string str = u64.ToString(cultureInfo);
- if (str != "0")
- {
- 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: A UInt64 number begin with zeros and using cultureinfo \"en-US\"");
-
- try
- {
- UInt64 u64 = 00009876;
- CultureInfo cultureInfo = new CultureInfo("en-US");
- string str = u64.ToString(cultureInfo);
- if (str != "9876")
- {
- 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: Convert a random uint64 to string value and using \"en-GB\"");
-
- try
- {
- UInt64 u64 = this.GetInt64(0, UInt64.MaxValue);
- CultureInfo cultureInfo = new CultureInfo("en-GB");
- string str = u64.ToString(cultureInfo);
- string str2 = Convert.ToString(u64);
- if (str != str2)
- {
- 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: The provider is a null reference");
-
- try
- {
- UInt64 u64 = 000217639083000;
- CultureInfo cultureInfo = null;
- string str = u64.ToString(cultureInfo);
- if (str != "217639083000")
- {
- 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 provider argument is invalid");
-
- try
- {
- UInt64 u64 = 1234500233;
- CultureInfo cultureInfo = new CultureInfo("pl");
- string str = u64.ToString(cultureInfo);
- TestLibrary.TestFramework.LogError("101", "The NotSupportedException is not thrown as expected");
- retVal = false;
- }
- catch (NotSupportedException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- UInt64ToString1 test = new UInt64ToString1();
-
- TestLibrary.TestFramework.BeginTestCase("UInt64ToString1");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
- #region ForTestObject
- private UInt64 GetInt64(UInt64 minValue, UInt64 maxValue)
- {
- try
- {
- if (minValue == maxValue)
- {
- return minValue;
- }
- if (minValue < maxValue)
- {
- return minValue + (UInt64)TestLibrary.Generator.GetInt64(-55) % (maxValue - minValue);
- }
- }
- catch
- {
- throw;
- }
-
- return minValue;
- }
- #endregion
-}
+++ /dev/null
-<?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="weakreferencector1.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>
-
+++ /dev/null
-<?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="helper.cs" />
- <Compile Include="weakreferencector2.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>
-
+++ /dev/null
-<?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="weakreferencector2b.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>
-
+++ /dev/null
-<?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="helper.cs" />
- <Compile Include="weakreferenceisalive.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>
-
+++ /dev/null
-<?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="weakreferenceisaliveb.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>
-
+++ /dev/null
-<?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="weakreferencetargetb.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>
-
+++ /dev/null
-<?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="weakreferencetrackresurrection_cti.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>
-
+++ /dev/null
-// 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 myClass
-{
- public string myString;
-
- // The C# compiler converts destructors to Finalize methods. Without a Finalize method,
- // a long weak reference to an object of the type becomes a short weak reference.
- ~myClass()
- {
- }
-}
-
-public class WRHelper
-{
- public static myClass CreateAnObject(string s)
- {
- myClass _mc = new myClass();
- _mc.myString = s;
- return _mc;
- }
-
- public static bool VerifyObject(WeakReference wr, string s)
- {
- if (((myClass)wr.Target).myString != s)
- return false;
- else
- return true;
- }
-}
\ No newline at end of file
+++ /dev/null
-// 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.Security;
-using System;
-
-public struct TestStruct
-{
- public int IntValue;
- public string StringValue;
-}
-
-public class DisposableClass : IDisposable
-{
- public void Dispose()
- {
- }
-}
-
-/// <summary>
-/// ctor(System.Object, System.Boolean)
-/// </summary>
-
-[SecuritySafeCritical]
-public class WeakReferenceCtor1
-{
- #region Private Fields
- private const int c_MIN_STRING_LENGTH = 8;
- private const int c_MAX_STRING_LENGTH = 1024;
- #endregion
-
- #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;
-
- return retVal;
- }
-
- #region Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Call Ctor with valid target reference and set trackResurrection to false");
-
- try
- {
- Object obj = new Object();
- WeakReference reference = new WeakReference(obj, false);
-
- if ((reference.TrackResurrection != false) || (!reference.Target.Equals(obj)) )
- {
- TestLibrary.TestFramework.LogError("001.1", "Calling Ctor with valid target reference and set trackResurrection to false constructs wrong instance");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] reference.TrackResurrection = " + reference.TrackResurrection.ToString() +
- ", reference.Target = " + reference.Target.ToString() +
- ", obj = " + obj.ToString());
- 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;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Call Ctor with valid target reference and set trackResurrection to true");
-
- try
- {
- Object obj = new Object();
- WeakReference reference = new WeakReference(obj, true);
-
- if ((reference.TrackResurrection != true) || (!reference.Target.Equals(obj)))
- {
- TestLibrary.TestFramework.LogError("002.1", "Calling Ctor with valid target reference and set trackResurrection to false constructs wrong instance");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] reference.TrackResurrection = " + reference.TrackResurrection.ToString() +
- ", reference.Target = " + reference.Target.ToString() +
- ", obj = " + obj.ToString());
- 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;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Call Ctor with value type target reference");
-
- try
- {
- int randValue = TestLibrary.Generator.GetInt32(-55);
- WeakReference reference = new WeakReference(randValue, true);
-
- if ((reference.TrackResurrection != true) || (!reference.Target.Equals(randValue)))
- {
- TestLibrary.TestFramework.LogError("003.1", "Calling Ctor with valid target reference and set trackResurrection to false constructs wrong instance");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] reference.TrackResurrection = " + reference.TrackResurrection.ToString() +
- ", reference.Target = " + reference.Target.ToString() +
- ", randValue = " + randValue.ToString());
- retVal = false;
- }
-
- reference = new WeakReference(randValue, false);
-
- if ((reference.TrackResurrection != false) || (!reference.Target.Equals(randValue)))
- {
- TestLibrary.TestFramework.LogError("003.2", "Calling Ctor with valid target reference and set trackResurrection to false constructs wrong instance");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] reference.TrackResurrection = " + reference.TrackResurrection.ToString() +
- ", reference.Target = " + reference.Target.ToString() +
- ", randValue = " + randValue.ToString());
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.3", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: Call Ctor with reference type target reference and set trackResurrection to true");
-
- try
- {
- string randValue = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LENGTH, c_MAX_STRING_LENGTH);
- WeakReference reference = new WeakReference(randValue, true);
-
- if ((reference.TrackResurrection != true) || (!reference.Target.Equals(randValue)))
- {
- TestLibrary.TestFramework.LogError("004.1", "Calling Ctor with valid target reference and set trackResurrection to false constructs wrong instance");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] reference.TrackResurrection = " + reference.TrackResurrection.ToString() +
- ", reference.Target = " + reference.Target.ToString() +
- ", randValue = " + randValue.ToString());
- retVal = false;
- }
-
- reference = new WeakReference(randValue, false);
-
- if ((reference.TrackResurrection != false) || (!reference.Target.Equals(randValue)))
- {
- TestLibrary.TestFramework.LogError("004.2", "Calling Ctor with valid target reference and set trackResurrection to false constructs wrong instance");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] reference.TrackResurrection = " + reference.TrackResurrection.ToString() +
- ", reference.Target = " + reference.Target.ToString() +
- ", randValue = " + randValue.ToString());
- 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: Call Ctor with null reference and set trackResurrection to true");
-
- try
- {
- WeakReference reference = new WeakReference(null, true);
-
- if ((reference.TrackResurrection != true) || (reference.Target != null))
- {
- TestLibrary.TestFramework.LogError("005.1", "Calling Ctor with valid target reference and set trackResurrection to false constructs wrong instance");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] reference.TrackResurrection = " + reference.TrackResurrection.ToString() +
- ", reference.Target = " + reference.Target.ToString());
- retVal = false;
- }
-
- reference = new WeakReference(null, false);
-
- if ((reference.TrackResurrection != false) || (reference.Target != null))
- {
- TestLibrary.TestFramework.LogError("005.2", "Calling Ctor with valid target reference and set trackResurrection to false constructs wrong instance");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] reference.TrackResurrection = " + reference.TrackResurrection.ToString() +
- ", reference.Target = " + reference.Target.ToString());
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("005.3", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest6()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest6: Call Ctor with IntPtr reference and set trackResurrection to true");
-
- try
- {
- Object desiredValue = IntPtr.Zero;
- WeakReference reference = new WeakReference(desiredValue, true);
-
- if ((reference.TrackResurrection != true) || (!reference.Target.Equals(desiredValue)))
- {
- TestLibrary.TestFramework.LogError("006.1", "Calling Ctor with valid target reference and set trackResurrection to false constructs wrong instance");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] reference.TrackResurrection = " + reference.TrackResurrection.ToString() +
- ", reference.Target = " + reference.Target.ToString() +
- ", desiredValue = " + desiredValue.ToString());
- retVal = false;
- }
-
- desiredValue = new IntPtr(TestLibrary.Generator.GetInt32(-55));
- reference = new WeakReference(desiredValue, false);
-
- if ((reference.TrackResurrection != false) || (!reference.Target.Equals(desiredValue)))
- {
- TestLibrary.TestFramework.LogError("006.2", "Calling Ctor with valid target reference and set trackResurrection to false constructs wrong instance");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] reference.TrackResurrection = " + reference.TrackResurrection.ToString() +
- ", reference.Target = " + reference.Target.ToString() +
- ", desiredValue = " + desiredValue.ToString());
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006.3", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest7()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest7: Call Ctor with IntPtr reference and set trackResurrection to true");
-
- try
- {
- TestStruct ts = new TestStruct();
- ts.IntValue = TestLibrary.Generator.GetInt32(-55);
- ts.StringValue = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LENGTH, c_MAX_STRING_LENGTH);
- Object desiredValue = ts;
- WeakReference reference = new WeakReference(desiredValue, true);
-
- if ((reference.TrackResurrection != true) || (!reference.Target.Equals(desiredValue)))
- {
- TestLibrary.TestFramework.LogError("007.1", "Calling Ctor with valid target reference and set trackResurrection to false constructs wrong instance");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] reference.TrackResurrection = " + reference.TrackResurrection.ToString() +
- ", reference.Target = " + reference.Target.ToString() +
- ", desiredValue = " + desiredValue.ToString());
- retVal = false;
- }
-
- reference = new WeakReference(desiredValue, false);
-
- if ((reference.TrackResurrection != false) || (!reference.Target.Equals(desiredValue)))
- {
- TestLibrary.TestFramework.LogError("007.2", "Calling Ctor with valid target reference and set trackResurrection to false constructs wrong instance");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] reference.TrackResurrection = " + reference.TrackResurrection.ToString() +
- ", reference.Target = " + reference.Target.ToString() +
- ", desiredValue = " + desiredValue.ToString());
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("007.3", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest8()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest8: Call Ctor with IntPtr reference and set trackResurrection to true");
-
- try
- {
- DisposableClass dc = new DisposableClass();
- Object desiredValue = dc;
- WeakReference reference = new WeakReference(desiredValue, true);
-
- if ((reference.TrackResurrection != true) || (!reference.Target.Equals(desiredValue)))
- {
- TestLibrary.TestFramework.LogError("008.1", "Calling Ctor with valid target reference and set trackResurrection to false constructs wrong instance");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] reference.TrackResurrection = " + reference.TrackResurrection.ToString() +
- ", reference.Target = " + reference.Target.ToString() +
- ", desiredValue = " + desiredValue.ToString());
- retVal = false;
- }
-
- reference = new WeakReference(desiredValue, false);
-
- if ((reference.TrackResurrection != false) || (!reference.Target.Equals(desiredValue)))
- {
- TestLibrary.TestFramework.LogError("008.2", "Calling Ctor with valid target reference and set trackResurrection to false constructs wrong instance");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] reference.TrackResurrection = " + reference.TrackResurrection.ToString() +
- ", reference.Target = " + reference.Target.ToString() +
- ", desiredValue = " + desiredValue.ToString());
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008.3", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- WeakReferenceCtor1 test = new WeakReferenceCtor1();
-
- TestLibrary.TestFramework.BeginTestCase("WeakReferenceCtor1");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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.Security;
-using System;
-using TestLibrary;
-
-
-[SecuritySafeCritical]
-public class WeakReferenceCtor
-{
- public static int Main(string[] args)
- {
- WeakReferenceCtor test = new WeakReferenceCtor();
- TestFramework.BeginTestCase("Testing WeakReference.Ctor (2)");
-
- if (test.RunTests())
- {
- TestFramework.EndTestCase();
- TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestFramework.EndTestCase();
- TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
- public bool RunTests()
- {
- bool retVal = true;
-
- TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
-
- return retVal;
- }
-
- // ATTENTION!!! ATTENTION!!! ATTENTION!!!
- //
- // There is no guarantee that WeakReference objects will be collected after GC.Collect().
- // The bottom line is, compiler generated temps for objects created locally (within the
- // same function), castings, boxing/unboxing will get their lifetimes extended to the
- // end of the function.
- //
- // All these are due to changes related to the MinOpts feature made during the
- // Silverlight/Arrowhead timeframe. For more information, see DevDiv Bugs 170524.
- //
- // Many of these behaviors are not documented. If any of the underlying implementation is
- // changed, the tests will need to be updated as well.
-
- public bool PosTest1()
- {
- bool retVal = true;
- TestFramework.BeginScenario("Test short WeakReference ctor");
-
- try
- {
- string testStr = "Test";
- WeakReference extWR = new WeakReference(WRHelper.CreateAnObject(testStr), false);
-
- if (!WRHelper.VerifyObject(extWR, testStr))
- {
- TestFramework.LogError("001", "WeakReference target not as expected. Expected : Test; Actual: " + extWR.Target.ToString());
- retVal = false;
- }
-
- GC.Collect();
- GC.WaitForPendingFinalizers();
-
- //Dev10 Bug #413556: WeakReference object incorrectly kept alive. Enable after the test is fixed.
- //
- //if (extWR.Target != null)
- //{
- // TestFramework.LogError("002", "WeakReference target not as expected. Expected : null; Actual: " + extWR.Target.ToString());
- // retVal = false;
- //}
-
- if (extWR.TrackResurrection != false)
- {
- TestFramework.LogError("003", "WeakReference track resurrection not as expected. Expected : false; Actual: " + extWR.TrackResurrection);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestFramework.LogError("004", "Unexpected exception occurred: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- TestFramework.BeginScenario("Test long WeakReference ctor");
-
- try
- {
- string testStr = "Test";
- WeakReference extWR = new WeakReference(WRHelper.CreateAnObject(testStr), true);
-
- if (!WRHelper.VerifyObject(extWR, testStr))
- {
- TestFramework.LogError("005", "WeakReference target not as expected. Expected : Test; Actual: " + extWR.Target.ToString());
- retVal = false;
- }
-
- GC.Collect();
- GC.WaitForPendingFinalizers();
-
- if (!WRHelper.VerifyObject(extWR, testStr))
- {
- TestFramework.LogError("006", "WeakReference target not as expected. Expected : null; Actual: " + extWR.Target.ToString());
- retVal = false;
- }
-
- if (extWR.TrackResurrection != true)
- {
- TestFramework.LogError("007", "WeakReference track resurrection not as expected. Expected : true; Actual: " + extWR.TrackResurrection);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestFramework.LogError("008", "Unexpected exception occurred: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-}
-
+++ /dev/null
-// 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.Security;
-using System;
-
-
-public struct TestStruct
-{
- public int IntValue;
- public string StringValue;
-}
-
-public class DisposableClass : IDisposable
-{
- public void Dispose()
- {
- }
-}
-
-/// <summary>
-/// ctor(System.Object)
-/// </summary>
-
-[SecuritySafeCritical]
-public class WeakReferenceCtor2
-{
- #region Private Fields
- private const int c_MIN_STRING_LENGTH = 8;
- private const int c_MAX_STRING_LENGTH = 1024;
- #endregion
-
- #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;
-
- return retVal;
- }
-
- #region Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: Call Ctor with valid target reference");
-
- try
- {
- Object obj = new Object();
- WeakReference reference = new WeakReference(obj);
-
- if ((reference.TrackResurrection != false) || (!reference.Target.Equals(obj)))
- {
- TestLibrary.TestFramework.LogError("001.1", "Calling Ctor with valid target reference and set trackResurrection to false constructs wrong instance");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] reference.TrackResurrection = " + reference.TrackResurrection.ToString() +
- ", reference.Target = " + reference.Target.ToString() +
- ", obj = " + obj.ToString());
- 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;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Call Ctor with IntPtr.Zero reference");
-
- try
- {
- Object desiredValue = IntPtr.Zero;
- WeakReference reference = new WeakReference(desiredValue);
-
- if ((reference.TrackResurrection != false) || (!reference.Target.Equals(desiredValue)))
- {
- TestLibrary.TestFramework.LogError("002.1", "Calling Ctor with valid target reference and set trackResurrection to false constructs wrong instance");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] reference.TrackResurrection = " + reference.TrackResurrection.ToString() +
- ", reference.Target = " + reference.Target.ToString() +
- ", desiredValue = " + desiredValue.ToString());
- retVal = false;
- }
-
- desiredValue = new IntPtr(TestLibrary.Generator.GetInt32(-55));
- reference = new WeakReference(desiredValue);
-
- if ((reference.TrackResurrection != false) || (!reference.Target.Equals(desiredValue)))
- {
- TestLibrary.TestFramework.LogError("002.2", "Calling Ctor with valid target reference and set trackResurrection to false constructs wrong instance");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] reference.TrackResurrection = " + reference.TrackResurrection.ToString() +
- ", reference.Target = " + reference.Target.ToString() +
- ", desiredValue = " + desiredValue.ToString());
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.3", "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 value type target reference");
-
- try
- {
- int randValue = TestLibrary.Generator.GetInt32(-55);
- WeakReference reference = new WeakReference(randValue);
-
- if ((reference.TrackResurrection != false) || (!reference.Target.Equals(randValue)))
- {
- TestLibrary.TestFramework.LogError("003.1", "Calling Ctor with valid target reference and set trackResurrection to false constructs wrong instance");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] reference.TrackResurrection = " + reference.TrackResurrection.ToString() +
- ", reference.Target = " + reference.Target.ToString() +
- ", randValue = " + randValue.ToString());
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.3", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: Call Ctor with reference type target reference");
-
- try
- {
- string randValue = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LENGTH, c_MAX_STRING_LENGTH);
- WeakReference reference = new WeakReference(randValue);
-
- if ((reference.TrackResurrection != false) || (!reference.Target.Equals(randValue)))
- {
- TestLibrary.TestFramework.LogError("004.1", "Calling Ctor with valid target reference and set trackResurrection to false constructs wrong instance");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] reference.TrackResurrection = " + reference.TrackResurrection.ToString() +
- ", reference.Target = " + reference.Target.ToString() +
- ", randValue = " + randValue.ToString());
- 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: Call Ctor with null reference");
-
- try
- {
- WeakReference reference = new WeakReference(null);
-
- if ((reference.TrackResurrection != false) || (reference.Target != null))
- {
- TestLibrary.TestFramework.LogError("005.1", "Calling Ctor with valid target reference and set trackResurrection to false constructs wrong instance");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] reference.TrackResurrection = " + reference.TrackResurrection.ToString() +
- ", reference.Target = " + reference.Target.ToString());
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("005.3", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest6()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest6: Call Ctor with IntPtr reference and set trackResurrection to true");
-
- try
- {
- DisposableClass dc = new DisposableClass();
- Object desiredValue = dc;
- WeakReference reference = new WeakReference(desiredValue);
-
- if ((reference.TrackResurrection != false) || (!reference.Target.Equals(desiredValue)))
- {
- TestLibrary.TestFramework.LogError("006.1", "Calling Ctor with valid target reference and set trackResurrection to false constructs wrong instance");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] reference.TrackResurrection = " + reference.TrackResurrection.ToString() +
- ", reference.Target = " + reference.Target.ToString() +
- ", desiredValue = " + desiredValue.ToString());
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006.7", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest7()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest7: Call Ctor with IntPtr reference and set trackResurrection to true");
-
- try
- {
- TestStruct ts = new TestStruct();
- ts.IntValue = TestLibrary.Generator.GetInt32(-55);
- ts.StringValue = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LENGTH, c_MAX_STRING_LENGTH);
- Object desiredValue = ts;
- WeakReference reference = new WeakReference(desiredValue);
-
- if ((reference.TrackResurrection != false) || (!reference.Target.Equals(desiredValue)))
- {
- TestLibrary.TestFramework.LogError("007.1", "Calling Ctor with valid target reference and set trackResurrection to false constructs wrong instance");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] reference.TrackResurrection = " + reference.TrackResurrection.ToString() +
- ", reference.Target = " + reference.Target.ToString() +
- ", desiredValue = " + desiredValue.ToString());
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("007.2", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- WeakReferenceCtor2 test = new WeakReferenceCtor2();
-
- TestLibrary.TestFramework.BeginTestCase("WeakReferenceCtor2");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
+++ /dev/null
-// 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.Security;
-using System;
-using TestLibrary;
-
-public class WeakReferenceIsAlive
-{
- [SecuritySafeCritical]
- public static int Main(string[] args)
- {
- WeakReferenceIsAlive test = new WeakReferenceIsAlive();
- TestFramework.BeginTestCase("Testing WeakReference.IsAlive");
-
- if (test.RunTests())
- {
- TestFramework.EndTestCase();
- TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestFramework.EndTestCase();
- TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
-
- [SecuritySafeCritical]
- public bool RunTests()
- {
- bool retVal = true;
-
- TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
-
- return retVal;
- }
-
-
- [SecuritySafeCritical]
-
- // ATTENTION!!! ATTENTION!!! ATTENTION!!!
- //
- // If you encounter issues with object lifetime, please see more comments in WeakReferenceCtor2.cs
-
- public bool PosTest1()
- {
- bool retVal = true;
- TestFramework.BeginScenario("Test IsAlive with short WeakReference");
-
- try
- {
- WeakReference extWR = new WeakReference(WRHelper.CreateAnObject("Test"), false);
-
- if (!extWR.IsAlive)
- {
- TestFramework.LogError("001", "WeakReference IsAlive not as expected. Expected : True; Actual: " + extWR.IsAlive);
- retVal = false;
- }
-
- GC.Collect();
- GC.WaitForPendingFinalizers();
-
- //Dev10 Bug #413556: WeakReference object incorrectly kept alive. Enable after the test is fixed.
- //
- //if (extWR.IsAlive)
- //{
- // TestFramework.LogError("002", "WeakReference IsAlive not as expected. Expected : False; Actual: " + extWR.IsAlive);
- // retVal = false;
- //}
- }
- catch (Exception e)
- {
- TestFramework.LogError("003", "Unexpected exception occured: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
-
- [SecuritySafeCritical]
- public bool PosTest2()
- {
- bool retVal = true;
- TestFramework.BeginScenario("Test IsAlive with long WeakReference");
-
- try
- {
- WeakReference extWR = new WeakReference(WRHelper.CreateAnObject("Test"), true);
-
- if (!extWR.IsAlive)
- {
- TestFramework.LogError("004", "WeakReference IsAlive not as expected. Expected : True; Actual: " + extWR.IsAlive);
- retVal = false;
- }
-
- GC.Collect();
- GC.WaitForPendingFinalizers();
-
- if (!extWR.IsAlive)
- {
- TestFramework.LogError("005", "WeakReference IsAlive not as expected. Expected : True; Actual: " + extWR.IsAlive);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestFramework.LogError("006", "Unexpected exception occured: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-}
+++ /dev/null
-// 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.Security;
-using System;
-
-public class DisposableClass : IDisposable
-{
- public void Dispose()
- {
- }
-}
-
-/// <summary>
-/// IsAlive
-/// </summary>
-
-[SecuritySafeCritical]
-public class WeakReferenceIsAlive
-{
- #region Private Fields
- private const int c_MIN_STRING_LENGTH = 8;
- private const int c_MAX_STRING_LENGTH = 1024;
-
- private WeakReference[] m_References;
- #endregion
-
- #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: IsAlive should return true before GC collecting memory for short weak references");
-
- try
- {
- // Reclaim memories
- GC.Collect();
- GC.WaitForPendingFinalizers();
-
- GenerateUnusedData1();
-
- for (int i = 0; i < m_References.Length; ++i)
- {
- if (!m_References[i].IsAlive)
- {
- TestLibrary.TestFramework.LogError("001.1", "IsAlive return false before GC collecting memory");
- if (m_References[i].Target != null)
- {
- TestLibrary.TestFramework.LogInformation("WARNING: m_References[i] = " + m_References[i].Target.ToString());
- }
- else
- {
- TestLibrary.TestFramework.LogInformation("WARNING: m_References[i] = null");
- }
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
- finally
- {
- m_References = null;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: IsAlive should return false before GC collecting memory for weak references reference null");
-
- try
- {
- WeakReference reference = new WeakReference(null, false);
- if (reference.IsAlive)
- {
- TestLibrary.TestFramework.LogError("002.1", "IsAlive returns true before GC collecting memory");
- retVal = false;
- }
-
- reference = new WeakReference(null, true);
- if (reference.IsAlive)
- {
- TestLibrary.TestFramework.LogError("002.2", "IsAlive returns true before GC collecting memory");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.3", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: IsAlive should return false after GC collecting memory for short weak references");
-
- try
- {
- // Reclaim memories
- GC.Collect();
- GC.WaitForPendingFinalizers();
-
- GenerateUnusedData1();
-
- // Reclaim memories
- GC.Collect();
- GC.WaitForPendingFinalizers();
-
- for (int i = 0; i < m_References.Length; ++i)
- {
- if (m_References[i].IsAlive)
- {
- TestLibrary.TestFramework.LogError("003.1", "IsAlive returns true after GC collecting memory");
- if (m_References[i].Target != null)
- {
- TestLibrary.TestFramework.LogInformation("WARNING: m_References[i] = " + m_References[i].Target.ToString());
- }
- else
- {
- TestLibrary.TestFramework.LogInformation("WARNING: m_References[i] = null");
- }
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.2", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
- finally
- {
- m_References = null;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: IsAlive should return true before GC collecting memory for long weak references");
-
- try
- {
- // Reclaim memories
- GC.Collect();
- GC.WaitForPendingFinalizers();
-
- GenerateUnusedData2();
-
- for (int i = 0; i < m_References.Length; ++i)
- {
- if (!m_References[i].IsAlive)
- {
- TestLibrary.TestFramework.LogError("004.1", "IsAlive return false before GC collecting memory");
- if (m_References[i].Target != null)
- {
- TestLibrary.TestFramework.LogInformation("WARNING: m_References[" + i.ToString() + "] = " + m_References[i].Target.ToString());
- }
- else
- {
- TestLibrary.TestFramework.LogInformation("WARNING: m_References[" + i.ToString() + "] = null");
- }
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004.2", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
- finally
- {
- m_References = null;
- }
-
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest5: IsAlive should return true after GC collecting memory for long weak references");
-
- try
- {
- // Reclaim memories
- GC.Collect();
- GC.WaitForPendingFinalizers();
-
- GenerateUnusedData2();
-
- // Reclaim memories
- GC.Collect();
- GC.WaitForPendingFinalizers();
-
- for (int i = 0; i < m_References.Length; ++i)
- {
- if (m_References[i].IsAlive)
- {
- TestLibrary.TestFramework.LogError("005.1", "IsAlive returns true before GC collecting memory");
- if (m_References[i].Target != null)
- {
- TestLibrary.TestFramework.LogInformation("WARNING: m_References[i] = " + m_References[i].Target.ToString());
- }
- else
- {
- TestLibrary.TestFramework.LogInformation("WARNING: m_References[i] = null");
- }
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("005.2", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
- finally
- {
- m_References = null;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- WeakReferenceIsAlive test = new WeakReferenceIsAlive();
-
- TestLibrary.TestFramework.BeginTestCase("WeakReferenceIsAlive");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
- #region Private Methods
- private void GenerateUnusedData1()
- {
- int intRandValue = TestLibrary.Generator.GetInt32(-55);
- long longRandValue = TestLibrary.Generator.GetInt64(-55);
- double doubleRandValue = TestLibrary.Generator.GetDouble(-55);
-
- object obj = new object();
- string str = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LENGTH, c_MAX_STRING_LENGTH);
- Byte[] randBytes = new Byte[c_MAX_STRING_LENGTH];
- TestLibrary.Generator.GetBytes(-55, randBytes);
-
- WeakReferenceIsAlive thisClass = new WeakReferenceIsAlive();
- DisposableClass dc = new DisposableClass();
- IntPtr ptr = new IntPtr(TestLibrary.Generator.GetInt32(-55));
-
- m_References = new WeakReference[] {
- new WeakReference(obj, false),
- new WeakReference(str, false),
- new WeakReference(randBytes, false),
- new WeakReference(thisClass, false),
- new WeakReference(ptr, false),
- new WeakReference(IntPtr.Zero, false),
- new WeakReference(dc, false)
- };
- }
-
- private void GenerateUnusedData2()
- {
- object obj = new object();
- string str = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LENGTH, c_MAX_STRING_LENGTH);
- Byte[] randBytes = new Byte[c_MAX_STRING_LENGTH];
- TestLibrary.Generator.GetBytes(-55, randBytes);
-
- WeakReferenceIsAlive thisClass = new WeakReferenceIsAlive();
- DisposableClass dc = new DisposableClass();
- IntPtr ptr = new IntPtr(TestLibrary.Generator.GetInt32(-55));
- m_References = new WeakReference[] {
- new WeakReference(obj, true),
- new WeakReference(str, true),
- new WeakReference(randBytes, true),
- new WeakReference(thisClass, true),
- new WeakReference(ptr, true),
- new WeakReference(IntPtr.Zero, true),
- new WeakReference(dc, true)
- };
- }
- #endregion
-}
+++ /dev/null
-// 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.Security;
-using System;
-
-public struct TestStruct
-{
- public int IntValue;
- public string StringValue;
-}
-
-public class DisposableClass : IDisposable
-{
- public void Dispose()
- {
- }
-}
-
-/// <summary>
-/// Target
-/// </summary>
-
-
-[SecuritySafeCritical]
-public class WeakReferenceTarget
-{
- #region Private Fields
- private const int c_MIN_STRING_LENGTH = 8;
- private const int c_MAX_STRING_LENGTH = 1024;
-
- private WeakReference[] m_References;
- #endregion
-
- #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: Call Target on short weak reference to instance of an object");
-
- try
- {
- // Reclaim memories
- GC.Collect();
- GC.WaitForPendingFinalizers();
-
- retVal = GenerateUnusedData1("001.1") && retVal;
-
- // Reclaim memories
- GC.Collect();
- GC.WaitForPendingFinalizers();
-
- for (int i = 0; i < m_References.Length; ++i)
- {
- if (m_References[i].Target != null)
- {
- TestLibrary.TestFramework.LogError("001.2", "Target is not null after GC collecting memory");
- TestLibrary.TestFramework.LogInformation("WARNING: m_References[i] = " + m_References[i].Target.ToString());
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.3", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
- finally
- {
- m_References = null;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: Call Target on long weak reference to instance of an object");
-
- try
- {
- // Reclaim memories
- GC.Collect();
- GC.WaitForPendingFinalizers();
-
- retVal = GenerateUnusedData2("002.1") && retVal;
-
- // Reclaim memories
- GC.Collect();
- GC.WaitForPendingFinalizers();
-
- for (int i = 0; i < m_References.Length; ++i)
- {
- if (m_References[i].Target != null)
- {
- TestLibrary.TestFramework.LogError("002.2", "Target is not null after GC collecting memory");
- TestLibrary.TestFramework.LogInformation("WARNING: m_References[i] = " + m_References[i].Target.ToString());
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.3", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
- finally
- {
- m_References = null;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Call set_Target on short weak reference to instance of an object before GC");
-
- try
- {
- // Reclaim memories
- GC.Collect();
- GC.WaitForPendingFinalizers();
-
- retVal = GenerateUnusedData1("003.1") && retVal;
-
- object obj = new object();
- string str = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LENGTH, c_MAX_STRING_LENGTH);
- Byte[] randBytes = new Byte[c_MAX_STRING_LENGTH];
- TestLibrary.Generator.GetBytes(-55, randBytes);
-;
-
- WeakReferenceTarget thisClass = new WeakReferenceTarget();
- DisposableClass dc = new DisposableClass();
- IntPtr ptr = new IntPtr(TestLibrary.Generator.GetInt32(-55));
-
- Object[] objs = new object[] {
- obj,
- str,
- randBytes,
- thisClass,
- dc,
- ptr,
- IntPtr.Zero
- };
-
- for (int i = 0; i < m_References.Length; ++i)
- {
- m_References[i].Target = objs[i];
-
- if (!m_References[i].Target.Equals(objs[i]))
- {
- TestLibrary.TestFramework.LogError("003.2", "Target is not set correctly");
- TestLibrary.TestFramework.LogInformation("WARNING: m_References[i].Target = " + m_References[i].Target.ToString() +
- ", objs = " + objs[i].ToString() +
- ", i = " + i.ToString());
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.3", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
- finally
- {
- m_References = null;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: Call set_Target on long weak reference to instance of an object before GC");
-
- try
- {
- // Reclaim memories
- GC.Collect();
- GC.WaitForPendingFinalizers();
-
- retVal = GenerateUnusedData2("004.1") && retVal;
-
- object obj = new object();
- string str = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LENGTH, c_MAX_STRING_LENGTH);
- Byte[] randBytes = new Byte[c_MAX_STRING_LENGTH];
- TestLibrary.Generator.GetBytes(-55, randBytes);
-
- WeakReferenceTarget thisClass = new WeakReferenceTarget();
- DisposableClass dc = new DisposableClass();
- IntPtr ptr = new IntPtr(TestLibrary.Generator.GetInt32(-55));
-
- Object[] objs = new object[] {
- obj,
- str,
- randBytes,
- thisClass,
- dc,
- ptr,
- IntPtr.Zero
- };
-
- for (int i = 0; i < m_References.Length; ++i)
- {
- m_References[i].Target = objs[i];
-
- if (!m_References[i].Target.Equals(objs[i]))
- {
- TestLibrary.TestFramework.LogError("004.2", "Target is not set correctly");
- TestLibrary.TestFramework.LogInformation("WARNING: m_References[i].Target = " + m_References[i].Target.ToString() +
- ", objs = " + objs[i].ToString() +
- ", i = " + i.ToString());
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004.3", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
- finally
- {
- m_References = null;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- WeakReferenceTarget test = new WeakReferenceTarget();
-
- TestLibrary.TestFramework.BeginTestCase("WeakReferenceTarget");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
- #region Private Methods
- private bool GenerateUnusedData1(string errorNo)
- {
- bool retVal = true;
-
- object obj = new object();
- string str = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LENGTH, c_MAX_STRING_LENGTH);
- Byte[] randBytes = new Byte[c_MAX_STRING_LENGTH];
- TestLibrary.Generator.GetBytes(-55, randBytes);
-
- WeakReferenceTarget thisClass = new WeakReferenceTarget();
- DisposableClass dc = new DisposableClass();
- IntPtr ptr = new IntPtr(TestLibrary.Generator.GetInt32(-55));
-
- Object[] objs = new object[] {
- obj,
- str,
- randBytes,
- thisClass,
- dc,
- ptr,
- IntPtr.Zero
- };
-
- m_References = new WeakReference[objs.Length];
- for (int i = 0; i < objs.Length; ++i)
- {
- m_References[i] = new WeakReference(objs[i], false);
- }
-
- for (int i = 0; i < m_References.Length; ++i)
- {
- if (!m_References[i].Target.Equals(objs[i]))
- {
- TestLibrary.TestFramework.LogError(errorNo, "Target returns wrong value for weak references");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] i = " + i.ToString() +
- ", m_References[i].Target = " + m_References[i].Target.ToString() +
- ", objs[i] = " + objs[i].ToString());
- retVal = false;
- }
- }
-
- return retVal;
- }
-
- private bool GenerateUnusedData2(string errorNo)
- {
- bool retVal = true;
-
- object obj = new object();
- string str = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LENGTH, c_MAX_STRING_LENGTH);
- Byte[] randBytes = new Byte[c_MAX_STRING_LENGTH];
- TestLibrary.Generator.GetBytes(-55, randBytes);
-
- TestStruct ts = new TestStruct();
- ts.IntValue = TestLibrary.Generator.GetInt32(-55);
-
- WeakReferenceTarget thisClass = new WeakReferenceTarget();
- DisposableClass dc = new DisposableClass();
- IntPtr ptr = new IntPtr(TestLibrary.Generator.GetInt32(-55));
-
- Object[] objs = new object[] {
- obj,
- str,
- randBytes,
- thisClass,
- dc,
- ptr,
- IntPtr.Zero
- };
-
- m_References = new WeakReference[objs.Length];
- for (int i = 0; i < objs.Length; ++i)
- {
- m_References[i] = new WeakReference(objs[i], true);
- }
-
- for (int i = 0; i < m_References.Length; ++i)
- {
- if (!m_References[i].Target.Equals(objs[i]))
- {
- TestLibrary.TestFramework.LogError(errorNo, "Target returns wrong value for weak references");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] i = " + i.ToString() +
- ", m_References[i].Target = " + m_References[i].Target.ToString() +
- ", objs[i] = " + objs[i].ToString());
- retVal = false;
- }
- }
-
- return retVal;
- }
-
- private void GenerateUnusedDisposableData()
- {
- DisposableClass dc = null;
- m_References = new WeakReference[1];
-
- try
- {
- dc = new DisposableClass();
- m_References[0] = new WeakReference(dc);
- }
- finally
- {
- if (null != dc)
- {
- dc.Dispose();
- }
- }
-
- GC.Collect();
- }
- #endregion
-}
+++ /dev/null
-// 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.Security;
-using System;
-
-public struct TestStruct
-{
- public int IntValue;
- public string StringValue;
-}
-
-public class DisposableClass : IDisposable
-{
- public void Dispose()
- {
- }
-}
-
-/// <summary>
-/// TrackResurrection
-/// </summary>
-
-[SecuritySafeCritical]
-public class WeakReferenceTrackResurrection
-{
- #region Private Fields
- private const int c_MIN_STRING_LENGTH = 8;
- private const int c_MAX_STRING_LENGTH = 1024;
- #endregion
-
- #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;
-
- return retVal;
- }
-
- #region Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: TrackResurrection will return correct value when construct the WeakReference for an object instance");
-
- try
- {
- Object obj = new Object();
- WeakReference reference = new WeakReference(obj, true);
-
- if (!reference.TrackResurrection)
- {
- TestLibrary.TestFramework.LogError("001.1", "TrackResurrection returns false when construct the WeakReference for an object instance");
- retVal = false;
- }
-
- reference = new WeakReference(obj, false);
-
- if (reference.TrackResurrection)
- {
- TestLibrary.TestFramework.LogError("001.2", "TrackResurrection returns true when construct the WeakReference for an object instance");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("001.3", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: TrackResurrection will return correct value when construct the WeakReference for an value type instance");
-
- try
- {
- int randValue = TestLibrary.Generator.GetInt32(-55);
- WeakReference reference = new WeakReference(randValue, true);
-
- if (!reference.TrackResurrection)
- {
- TestLibrary.TestFramework.LogError("002.1", "TrackResurrection returns false when construct the WeakReference for an value type instance");
- retVal = false;
- }
-
- reference = new WeakReference(randValue, false);
-
- if (reference.TrackResurrection)
- {
- TestLibrary.TestFramework.LogError("002.2", "TrackResurrection returns true when construct the WeakReference for an value type instance");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.3", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: TrackResurrection will return correct value when construct the WeakReference for an reference type instance");
-
- try
- {
- string randValue = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LENGTH, c_MAX_STRING_LENGTH);
- WeakReference reference = new WeakReference(randValue, true);
-
- if (!reference.TrackResurrection)
- {
- TestLibrary.TestFramework.LogError("003.1", "TrackResurrection returns false when construct the WeakReference for an reference type instance");
- retVal = false;
- }
-
- reference = new WeakReference(randValue, false);
-
- if (reference.TrackResurrection)
- {
- TestLibrary.TestFramework.LogError("003.2", "TrackResurrection returns true when construct the WeakReference for an reference type instance");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.3", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: TrackResurrection will return correct value when construct the WeakReference for null reference");
-
- try
- {
- WeakReference reference = new WeakReference(null, true);
-
- if (!reference.TrackResurrection)
- {
- TestLibrary.TestFramework.LogError("004.1", "TrackResurrection returns false when construct the WeakReference for null reference");
- retVal = false;
- }
-
- reference = new WeakReference(null, false);
-
- if (reference.TrackResurrection)
- {
- TestLibrary.TestFramework.LogError("004.2", "TrackResurrection returns true when construct the WeakReference for null reference");
- 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: TrackResurrection will return correct value when construct the WeakReference for a disposable instance");
-
- try
- {
- DisposableClass dc = new DisposableClass();
- Object desiredValue = dc;
- WeakReference reference = new WeakReference(desiredValue, true);
-
- if (!reference.TrackResurrection)
- {
- TestLibrary.TestFramework.LogError("005.1", "TrackResurrection returns false when construct the WeakReference for a disposable instance");
- retVal = false;
- }
-
- reference = new WeakReference(desiredValue, false);
-
- if (reference.TrackResurrection)
- {
- TestLibrary.TestFramework.LogError("005.2", "TrackResurrection returns true when construct the WeakReference for a disposable instance");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("005.3", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest6()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest6: TrackResurrection will return correct value when construct the WeakReference for a IntPtr instance");
-
- try
- {
- Object desiredValue = IntPtr.Zero;
- WeakReference reference = new WeakReference(desiredValue, true);
-
- if (!reference.TrackResurrection)
- {
- TestLibrary.TestFramework.LogError("006.1", "TrackResurrection returns false when construct the WeakReference for a IntPtr instance");
- retVal = false;
- }
-
- desiredValue = new IntPtr(TestLibrary.Generator.GetInt32(-55));
- reference = new WeakReference(desiredValue, false);
-
- if (reference.TrackResurrection)
- {
- TestLibrary.TestFramework.LogError("006.2", "TrackResurrection returns true when construct the WeakReference for a IntPtr instance");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006.3", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest7()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest7: TrackResurrection will return correct value when construct the WeakReference for a struct instance");
-
- try
- {
- TestStruct ts = new TestStruct();
- ts.IntValue = TestLibrary.Generator.GetInt32(-55);
- ts.StringValue = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LENGTH, c_MAX_STRING_LENGTH);
- Object desiredValue = ts;
- WeakReference reference = new WeakReference(desiredValue, true);
-
- if (!reference.TrackResurrection)
- {
- TestLibrary.TestFramework.LogError("007.1", "TrackResurrection returns false when construct the WeakReference for a struct instance");
- retVal = false;
- }
-
- reference = new WeakReference(desiredValue, false);
-
- if (reference.TrackResurrection)
- {
- TestLibrary.TestFramework.LogError("007.2", "TrackResurrection returns true when construct the WeakReference for a struct instance");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("007.3", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- WeakReferenceTrackResurrection test = new WeakReferenceTrackResurrection();
-
- TestLibrary.TestFramework.BeginTestCase("WeakReferenceTrackResurrection");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}