summaryrefslogtreecommitdiff
path: root/tests/src
diff options
context:
space:
mode:
authorJiyoung Yun <jy910.yun@samsung.com>2017-02-10 11:35:12 (GMT)
committerJiyoung Yun <jy910.yun@samsung.com>2017-02-10 11:35:12 (GMT)
commit4b11dc566a5bbfa1378d6266525c281b028abcc8 (patch)
treeb48831a898906734f8884d08b6e18f1144ee2b82 /tests/src
parentdb20f3f1bb8595633a7e16c8900fd401a453a6b5 (diff)
downloadcoreclr-4b11dc566a5bbfa1378d6266525c281b028abcc8.zip
coreclr-4b11dc566a5bbfa1378d6266525c281b028abcc8.tar.gz
coreclr-4b11dc566a5bbfa1378d6266525c281b028abcc8.tar.bz2
Imported Upstream version 1.0.0.9910upstream/1.0.0.9910
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/CLRTest.Execute.Bash.targets1
-rw-r--r--tests/src/CLRTest.Jit.targets13
-rw-r--r--tests/src/Common/Coreclr.TestWrapper/CoreclrTestWrapperLib.cs17
-rw-r--r--tests/src/Common/build_against_pkg_dependencies/project.json10
-rw-r--r--tests/src/Common/empty/project.json6
-rw-r--r--tests/src/Common/netcoreapp/project.json71
-rw-r--r--tests/src/Common/targeting_pack_ref/project.json8
-rw-r--r--tests/src/Common/test_dependencies/project.json127
-rw-r--r--tests/src/Common/test_runtime/project.json13
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/DateTimeCtor4.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/DateTimeCtor6.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/DateTimeCtor7.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/DateTimeDate.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/DateTimeGetHashCode.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/DateTimeHour.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/DateTimeMaxValue.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/DateTimeMillisecond.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/DateTimeMinValue.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/DateTimeMinute.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/DateTimeParse1.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/DateTimeParse2.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/DateTimeParse3.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/DateTimeParseExact1.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/DateTimeParseExact2.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/DateTimeParseExact3.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/DateTimeSecond.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/DateTimeSubtract1.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/DateTimeSubtract2.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/DateTimeTicks.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/DateTimeTimeOfDay.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/DateTimeToFileTime.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/DateTimeToFileTimeUtc.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/DateTimeToLocalTime.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/DateTimeToString1.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/DateTimeToString2.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/DateTimeToString3.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/DateTimeUtcNow.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/DateTimetoday.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/cfdatetimetools.cs142
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimecompare.cs250
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimecompareto1.cs250
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimector1.cs342
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimector3.cs521
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimector4.cs638
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimector6.cs570
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimector7.cs689
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimedate.cs144
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimegethashcode.cs141
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimehour.cs99
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimekind.cs221
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimemaxvalue.cs73
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimemillisecond.cs124
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimeminute.cs95
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimeminvalue.cs73
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimenow.cs93
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimeparse1.cs828
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimeparse2.cs216
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimeparse3.cs274
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimeparseexact1.cs964
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimeparseexact2.cs285
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimeparseexact3.cs318
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimesecond.cs98
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimesubtract1.cs205
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimesubtract2.cs225
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimeticks.cs99
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimetimeofday.cs98
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimetoday.cs95
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimetofiletime.cs126
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimetofiletimeutc.cs126
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimetolocaltime.cs66
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimetostring1.cs122
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimetostring2.cs118
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimetostring3.cs588
-rw-r--r--tests/src/CoreMangLib/cti/system/datetime/datetimeutcnow.cs93
-rw-r--r--tests/src/CoreMangLib/cti/system/datetimekind/DateTimeKindLocal.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/datetimekind/DateTimeKindUnspecified.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/datetimekind/DateTimeKindUtc.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/datetimekind/datetimekindlocal.cs69
-rw-r--r--tests/src/CoreMangLib/cti/system/datetimekind/datetimekindunspecified.cs69
-rw-r--r--tests/src/CoreMangLib/cti/system/datetimekind/datetimekindutc.cs69
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/calendarweekrule/CalendarWeekRuleFirstDay.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/calendarweekrule/CalendarWeekRuleFirstFourDayWeek.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/calendarweekrule/CalendarWeekRuleFirstFullWeek.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/calendarweekrule/calendarweekrulefirstday.cs70
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/calendarweekrule/calendarweekrulefirstfourdayweek.cs70
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/calendarweekrule/calendarweekrulefirstfullweek.cs70
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/charunicodeinfo/CharUnicodeInfoGetNumericValue1.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/charunicodeinfo/CharUnicodeInfoGetNumericValue2.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/charunicodeinfo/CharUnicodeInfoGetUnicodeCategory1.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/charunicodeinfo/CharUnicodeInfoGetUnicodeCategory2.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/charunicodeinfo/charunicodeinfogetnumericvalue1.cs226
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/charunicodeinfo/charunicodeinfogetnumericvalue2.cs310
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/charunicodeinfo/charunicodeinfogetunicodecategory1.cs944
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/charunicodeinfo/charunicodeinfogetunicodecategory2.cs1040
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/compareinfo/CompareInfoCompare2.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/compareinfo/CompareInfoIndexOf2.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/compareinfo/compareinfocompare2.cs218
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/compareinfo/compareinfoindexof2.cs185
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/compareoptions/CompareOptionsIgnoreCase.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/compareoptions/CompareOptionsIgnoreKanaType.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/compareoptions/CompareOptionsIgnoreNonSpace.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/compareoptions/CompareOptionsIgnoreSymbols.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/compareoptions/CompareOptionsIgnoreWidth.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/compareoptions/CompareOptionsNone.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/compareoptions/CompareOptionsOrdinal.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/compareoptions/CompareOptionsOrdinalIgoreCase.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/compareoptions/CompareOptionsStringSort.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/compareoptions/compareoptionsignorecase.cs73
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/compareoptions/compareoptionsignorekanatype.cs73
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/compareoptions/compareoptionsignorenonspace.cs73
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/compareoptions/compareoptionsignoresymbols.cs73
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/compareoptions/compareoptionsignorewidth.cs73
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/compareoptions/compareoptionsnone.cs73
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/compareoptions/compareoptionsordinal.cs73
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/compareoptions/compareoptionsordinaligorecase.cs73
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/compareoptions/compareoptionsstringsort.cs73
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/cultureinfo/CultureInfoClone.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/cultureinfo/CultureInfoEnglishName.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/cultureinfo/CultureInfoEquals.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/cultureinfo/CultureInfoGetCultureInfo2.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/cultureinfo/CultureInfoGetHashCode.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/cultureinfo/CultureInfoInvariantCulture.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/cultureinfo/CultureInfoIsNeutralCulture.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/cultureinfo/CultureInfoName.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/cultureinfo/CultureInfoNativeName.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/cultureinfo/CultureInfoParent.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/cultureinfo/CultureInfoReadOnly.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/cultureinfo/CultureInfoTextInfo.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/cultureinfo/CultureInfoToString.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/cultureinfo/CultureInfoTwoLetterISOLanguageName.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/cultureinfo/cultureinfoclone.csbin7244 -> 0 bytes
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/cultureinfo/cultureinfoenglishname.csbin3738 -> 0 bytes
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/cultureinfo/cultureinfoequals.csbin15856 -> 0 bytes
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/cultureinfo/cultureinfogetcultureinfo2.csbin15566 -> 0 bytes
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/cultureinfo/cultureinfogethashcode.csbin10202 -> 0 bytes
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/cultureinfo/cultureinfoinvariantculture.csbin3866 -> 0 bytes
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/cultureinfo/cultureinfoisneutralculture.csbin7066 -> 0 bytes
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/cultureinfo/cultureinfoname.csbin3724 -> 0 bytes
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/cultureinfo/cultureinfonativename.csbin3844 -> 0 bytes
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/cultureinfo/cultureinfoparent.csbin8140 -> 0 bytes
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/cultureinfo/cultureinforeadonly.csbin9148 -> 0 bytes
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/cultureinfo/cultureinfotextinfo.csbin7212 -> 0 bytes
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/cultureinfo/cultureinfotostring.csbin7288 -> 0 bytes
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/cultureinfo/cultureinfotwoletterisolanguagename.csbin8410 -> 0 bytes
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimeformatinfo/DateTimeFormatInfoClone.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimeformatinfo/DateTimeFormatInfoCurrentInfo.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimeformatinfo/DateTimeFormatInfoGetAbbreviatedMonthName.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimeformatinfo/DateTimeFormatInfoGetFormat.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimeformatinfo/DateTimeFormatInfoGetInstance.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimeformatinfo/DateTimeFormatInfoGetMonthName.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimeformatinfo/DateTimeFormatInfoInvariantInfo.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimeformatinfo/DateTimeFormatInfoIsReadOnly.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimeformatinfo/DateTimeFormatInfoRFC1123Pattern.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimeformatinfo/DateTimeFormatInfoReadOnly.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimeformatinfo/DateTimeFormatInfoSortableDateTimePattern.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimeformatinfo/UniversalSortableDateTimePattern.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimeformatinfo/datetimeformatinfoclone.cs239
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimeformatinfo/datetimeformatinfocurrentinfo.cs70
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimeformatinfo/datetimeformatinfogetabbreviatedmonthname.cs277
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimeformatinfo/datetimeformatinfogetformat.cs105
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimeformatinfo/datetimeformatinfogetinstance.cs195
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimeformatinfo/datetimeformatinfogetmonthname.cs277
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimeformatinfo/datetimeformatinfoinvariantinfo.cs70
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimeformatinfo/datetimeformatinfoisreadonly.cs122
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimeformatinfo/datetimeformatinforeadonly.cs131
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimeformatinfo/datetimeformatinforfc1123pattern.cs92
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimeformatinfo/datetimeformatinfosortabledatetimepattern.cs93
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimeformatinfo/datetimeformatinfouniversalsortabledatetimepattern.cs93
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimestyles/DateTimeStyleAllowInnerWhite.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimestyles/DateTimeStylesAdjustToUniversal.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimestyles/DateTimeStylesAllowLeadingWhite.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimestyles/DateTimeStylesAllowTrailingWhite.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimestyles/DateTimeStylesAllowWhiteSpaces.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimestyles/DateTimeStylesAssumeLocal.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimestyles/DateTimeStylesAssumeUniversal.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimestyles/DateTimeStylesNoCurrentDateDefault.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimestyles/DateTimeStylesNone.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimestyles/DateTimeStylesRoundTripKind.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimestyles/datetimestyleallowinnerwhite.cs73
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimestyles/datetimestylesadjusttouniversal.cs73
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimestyles/datetimestylesallowleadingwhite.cs73
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimestyles/datetimestylesallowtrailingwhite.cs73
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimestyles/datetimestylesallowwhitespaces.cs73
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimestyles/datetimestylesassumelocal.cs73
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimestyles/datetimestylesassumeuniversal.cs73
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimestyles/datetimestylesnocurrentdatedefault.cs73
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimestyles/datetimestylesnone.cs73
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/datetimestyles/datetimestylesroundtripkind.cs73
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberformatinfo/NumberFormatInfoClone.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberformatinfo/NumberFormatInfoCtor.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberformatinfo/NumberFormatInfoCurrencyDecimalSeparator.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberformatinfo/NumberFormatInfoCurrencyGroupSeparator.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberformatinfo/NumberFormatInfoGetFormat.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberformatinfo/NumberFormatInfoGetInstance.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberformatinfo/NumberFormatInfoReadOnly.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberformatinfo/numberformatinfoclone.cs104
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberformatinfo/numberformatinfoctor.cs103
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberformatinfo/numberformatinfocurrencydecimalseparator.cs193
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberformatinfo/numberformatinfocurrencygroupseparator.cs165
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberformatinfo/numberformatinfogetformat.cs137
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberformatinfo/numberformatinfogetinstance.cs105
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberformatinfo/numberformatinforeadonly.cs107
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/NumberStylesAllowCurrencySymbol.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/NumberStylesAllowDecimalPoint.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/NumberStylesAllowExponent.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/NumberStylesAllowHexSpecifier.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/NumberStylesAllowLeadingSign.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/NumberStylesAllowLeadingWhite.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/NumberStylesAllowParentheses.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/NumberStylesAllowThousands.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/NumberStylesAllowTrailingSign.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/NumberStylesAllowTrailingWhite.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/NumberStylesAny.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/NumberStylesCurrency.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/NumberStylesFloat.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/NumberStylesHexNumber.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/NumberStylesInteger.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/NumberStylesNone.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/NumberStylesNumber.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/numberstylesallowcurrencysymbol.cs105
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/numberstylesallowdecimalpoint.cs105
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/numberstylesallowexponent.cs105
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/numberstylesallowhexspecifier.cs105
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/numberstylesallowleadingsign.cs105
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/numberstylesallowleadingwhite.cs105
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/numberstylesallowparentheses.cs105
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/numberstylesallowthousands.cs105
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/numberstylesallowtrailingsign.cs105
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/numberstylesallowtrailingwhite.cs105
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/numberstylesany.cs125
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/numberstylescurrency.cs124
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/numberstylesfloat.cs119
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/numberstyleshexnumber.cs112
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/numberstylesinteger.cs111
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/numberstylesnone.cs105
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/numberstyles/numberstylesnumber.cs120
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/regioninfo/RegionInfoEquals.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/regioninfo/RegionInfoGetHashCode.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/regioninfo/RegionInfoISOCurrencySymbol.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/regioninfo/RegionInfoIsMetric.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/regioninfo/RegionInfoName.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/regioninfo/RegionInfoToString.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/regioninfo/RegionInfoTwoLetterISORegionName.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/regioninfo/regioninfoequals.cs133
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/regioninfo/regioninfogethashcode.cs85
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/regioninfo/regioninfoismetric.cs85
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/regioninfo/regioninfoisocurrencysymbol.cs153
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/regioninfo/regioninfoname.cs130
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/regioninfo/regioninfotostring.cs107
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/regioninfo/regioninfotwoletterisoregionname.cs129
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/stringinfo/StringInfoCtor1.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/stringinfo/StringInfoCtor2.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/stringinfo/StringInfoEquals.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/stringinfo/StringInfoGetHashCode.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/stringinfo/StringInfoGetNextTextElement2.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/stringinfo/StringInfoGetTextElementEnumerator1.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/stringinfo/StringInfoGetTextElementEnumerator2.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/stringinfo/StringInfoLengthInTextElements.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/stringinfo/StringInfoParseCombiningCharacters.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/stringinfo/StringInfoString.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/stringinfo/stringinfoctor1.cs77
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/stringinfo/stringinfoctor2.cs171
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/stringinfo/stringinfoequals.cs235
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/stringinfo/stringinfogethashcode.cs104
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/stringinfo/stringinfogetnexttextelement2.cs267
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/stringinfo/stringinfogettextelementenumerator1.cs185
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/stringinfo/stringinfogettextelementenumerator2.cs257
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/stringinfo/stringinfolengthintextelements.cs109
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/stringinfo/stringinfoparsecombiningcharacters.cs166
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/stringinfo/stringinfostring.cs184
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/textelementenumerator/TextElementEnumeratorCurrent.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/textelementenumerator/TextElementEnumeratorElementIndex.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/textelementenumerator/TextElementEnumeratorGetTextElement.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/textelementenumerator/TextElementEnumeratorMoveNext.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/textelementenumerator/TextElementEnumeratorReset.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/textelementenumerator/textelementenumeratorcurrent.csbin10394 -> 0 bytes
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/textelementenumerator/textelementenumeratorelementindex.csbin7622 -> 0 bytes
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/textelementenumerator/textelementenumeratorgettextelement.csbin10562 -> 0 bytes
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/textelementenumerator/textelementenumeratormovenext.csbin5786 -> 0 bytes
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/textelementenumerator/textelementenumeratorreset.csbin4652 -> 0 bytes
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/textinfo/TextInfoCultureName.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/textinfo/TextInfoEquals.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/textinfo/TextInfoGetHashCode.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/textinfo/TextInfoIsReadOnly.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/textinfo/TextInfoToString.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/textinfo/TextInfoToUpper1.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/textinfo/TextInfoToUpper2.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/textinfo/textinfoculturename.cs104
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/textinfo/textinfoequals.cs243
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/textinfo/textinfogethashcode.cs108
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/textinfo/textinfoisreadonly.cs103
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/textinfo/textinfotostring.cs102
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/textinfo/textinfotoupper1.cs223
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/textinfo/textinfotoupper2.cs244
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/UnicodeCategoryClosePunctuation.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/UnicodeCategoryConnectorPunctuation.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/UnicodeCategoryControl.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/UnicodeCategoryDashPunctuation.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/UnicodeCategoryDecimalDigitNumber.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/UnicodeCategoryEnclosingMark.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/UnicodeCategoryFinalQuotePunctuation.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/UnicodeCategoryFormat.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/UnicodeCategoryInitialQuotePunctuation.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/UnicodeCategoryLetterNumber.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/UnicodeCategoryLineSeparator.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/UnicodeCategoryLowercaseLetter.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/UnicodeCategoryMathSymbol.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/UnicodeCategoryModifierLetter.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/UnicodeCategoryModifierSymbol.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/UnicodeCategoryNonSpacingMark.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/UnicodeCategoryOpenPunctuation.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/UnicodeCategoryOtherLetter.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/UnicodeCategoryOtherNotAssigned.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/UnicodeCategoryOtherNumber.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/UnicodeCategoryOtherPunctuation.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/UnicodeCategoryOtherSymbol.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/UnicodeCategoryParagraphSeparator.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/UnicodeCategoryPrivateUse.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/UnicodeCategorySpaceSeparator.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/UnicodeCategorySpacingCombiningMark.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/UnicodeCategorySurrogate.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/UnicodeCategoryTitlecaseLetter.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/UnicodeCategoryUppercaseLetter.csproj45
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/unicodecategoryclosepunctuation.cs57
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/unicodecategoryconnectorpunctuation.cs57
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/unicodecategorycontrol.cs57
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/unicodecategorydashpunctuation.cs57
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/unicodecategorydecimaldigitnumber.cs57
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/unicodecategoryenclosingmark.cs57
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/unicodecategoryfinalquotepunctuation.cs57
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/unicodecategoryformat.cs57
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/unicodecategoryinitialquotepunctuation.cs57
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/unicodecategoryletternumber.cs57
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/unicodecategorylineseparator.cs57
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/unicodecategorylowercaseletter.cs57
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/unicodecategorymathsymbol.cs57
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/unicodecategorymodifierletter.cs57
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/unicodecategorymodifiersymbol.cs57
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/unicodecategorynonspacingmark.cs57
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/unicodecategoryopenpunctuation.cs57
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/unicodecategoryotherletter.cs57
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/unicodecategoryothernotassigned.cs57
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/unicodecategoryothernumber.cs57
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/unicodecategoryotherpunctuation.cs57
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/unicodecategoryothersymbol.cs57
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/unicodecategoryparagraphseparator.cs57
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/unicodecategoryprivateuse.cs57
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/unicodecategoryspaceseparator.cs57
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/unicodecategoryspacingcombiningmark.cs57
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/unicodecategorysurrogate.cs57
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/unicodecategorytitlecaseletter.cs57
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/unicodecategory/unicodecategoryuppercaseletter.cs57
-rw-r--r--tests/src/CoreMangLib/system/datetime/co7510parseexact_formatarray.cs69
-rw-r--r--tests/src/CoreMangLib/system/text/encoding/shift_jis.cs224
-rw-r--r--tests/src/GC/API/GC/TotalMemory.cs1
-rw-r--r--tests/src/GC/Coverage/delete_next_card_table.csproj3
-rwxr-xr-xtests/src/Interop/common/types.h1
-rw-r--r--tests/src/JIT/Directed/shift/uint64Opt.cs178
-rw-r--r--tests/src/JIT/Directed/shift/uint64Opt_d.csproj47
-rw-r--r--tests/src/JIT/Directed/shift/uint64Opt_do.csproj46
-rw-r--r--tests/src/JIT/Directed/shift/uint64Opt_r.csproj47
-rw-r--r--tests/src/JIT/Directed/shift/uint64Opt_ro.csproj46
-rw-r--r--tests/src/JIT/Methodical/fp/exgen/10w5d_cs_d.csproj3
-rw-r--r--tests/src/JIT/Methodical/fp/exgen/10w5d_cs_r.csproj3
-rw-r--r--tests/src/JIT/Methodical/refany/format.cs10
-rw-r--r--tests/src/JIT/Methodical/refany/format.il50
-rw-r--r--tests/src/JIT/Methodical/refany/longsig.il50
-rw-r--r--tests/src/JIT/Methodical/refany/shortsig.il50
-rw-r--r--tests/src/JIT/Methodical/tailcall/Desktop/_il_relthread-race.csproj3
-rw-r--r--tests/src/JIT/Methodical/tailcall_v4/hijacking.ilproj4
-rw-r--r--tests/src/JIT/Performance/CodeQuality/BenchmarksGame/LICENSE.TXT2
-rw-r--r--tests/src/JIT/Performance/CodeQuality/BenchmarksGame/binarytrees/binarytrees.csharp.cs1
-rw-r--r--tests/src/JIT/Performance/CodeQuality/BenchmarksGame/binarytrees/binarytrees.csharp3.cs142
-rw-r--r--tests/src/JIT/Performance/CodeQuality/BenchmarksGame/binarytrees/binarytrees.csproj2
-rw-r--r--tests/src/JIT/Performance/CodeQuality/BenchmarksGame/binarytrees/binarytrees3.csproj (renamed from tests/src/CoreMangLib/cti/system/datetime/DateTimeCompare.csproj)23
-rw-r--r--tests/src/JIT/Performance/CodeQuality/BenchmarksGame/k-nucleotide/k-nucleotide.cs312
-rw-r--r--tests/src/JIT/Performance/CodeQuality/BenchmarksGame/k-nucleotide/k-nucleotide.csproj (renamed from tests/src/CoreMangLib/cti/system/datetime/DateTimeCompareTo1.csproj)26
-rw-r--r--tests/src/JIT/Performance/CodeQuality/BenchmarksGame/k-nucleotide/knucleotide-input-big.txt33337
-rw-r--r--tests/src/JIT/Performance/CodeQuality/BenchmarksGame/k-nucleotide/knucleotide-input.txt171
-rw-r--r--tests/src/JIT/Performance/CodeQuality/BenchmarksGame/regexdna/regexdna-input25.txt9
-rw-r--r--tests/src/JIT/Performance/CodeQuality/BenchmarksGame/regexdna/regexdna-input25000.txt4171
-rw-r--r--tests/src/JIT/Performance/CodeQuality/BenchmarksGame/regexdna/regexdna.csharp-6.cs230
-rw-r--r--tests/src/JIT/Performance/CodeQuality/BenchmarksGame/regexdna/regexdna.csproj (renamed from tests/src/CoreMangLib/cti/system/datetime/DateTimeCtor3.csproj)28
-rw-r--r--tests/src/JIT/Performance/CodeQuality/BenchmarksGame/revcomp/revcomp-input25.txt9
-rw-r--r--tests/src/JIT/Performance/CodeQuality/BenchmarksGame/revcomp/revcomp-input25000.txt4171
-rw-r--r--tests/src/JIT/Performance/CodeQuality/BenchmarksGame/revcomp/revcomp.csharp-1.cs250
-rw-r--r--tests/src/JIT/Performance/CodeQuality/BenchmarksGame/revcomp/revcomp.csproj (renamed from tests/src/CoreMangLib/cti/system/datetime/DateTimeCtor1.csproj)28
-rw-r--r--tests/src/JIT/Performance/CodeQuality/SIMD/SeekUnroll/SeekUnroll.cs12
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V2.0-Beta2/b425314/b425314.csproj4
-rw-r--r--tests/src/JIT/Regression/JitBlue/DevDiv_1206929/DevDiv_1206929.cs50
-rw-r--r--tests/src/JIT/Regression/JitBlue/DevDiv_1206929/DevDiv_1206929.csproj47
-rw-r--r--tests/src/JIT/Regression/JitBlue/DevDiv_359733/DevDiv_359733.il66
-rw-r--r--tests/src/JIT/Regression/JitBlue/DevDiv_359733/DevDiv_359733.ilproj41
-rw-r--r--tests/src/JIT/Regression/JitBlue/DevDiv_359737/DevDiv_359737.il42
-rw-r--r--tests/src/JIT/Regression/JitBlue/DevDiv_359737/DevDiv_359737.ilproj41
-rw-r--r--tests/src/JIT/Regression/JitBlue/DevDiv_362706/DevDiv_362706.il162
-rw-r--r--tests/src/JIT/Regression/JitBlue/DevDiv_362706/DevDiv_362706.ilproj (renamed from tests/src/CoreMangLib/system/text/encoding/Shift_Jis.csproj)30
-rw-r--r--tests/src/JIT/Regression/JitBlue/DevDiv_367099/DevDiv_367099.il99
-rw-r--r--tests/src/JIT/Regression/JitBlue/DevDiv_367099/DevDiv_367099.ilproj (renamed from tests/src/CoreMangLib/cti/system/datetime/DateTimeNow.csproj)30
-rw-r--r--tests/src/JIT/Regression/JitBlue/DevDiv_370233/DevDiv_370233.il136
-rw-r--r--tests/src/JIT/Regression/JitBlue/DevDiv_370233/DevDiv_370233.ilproj (renamed from tests/src/CoreMangLib/cti/system/datetime/DateTimeKind.csproj)30
-rw-r--r--tests/src/JIT/Regression/JitBlue/DevDiv_377155/DevDiv_377155.il75
-rw-r--r--tests/src/JIT/Regression/JitBlue/DevDiv_377155/DevDiv_377155.ilproj51
-rw-r--r--tests/src/JIT/Regression/JitBlue/GitHub_7508/Vector3Test.cs152
-rw-r--r--tests/src/JIT/Regression/JitBlue/GitHub_7508/Vector3Test.csproj46
-rw-r--r--tests/src/JIT/Regression/VS-ia64-JIT/V2.0-RTM/b539509/b539509.cs2
-rw-r--r--tests/src/JIT/SIMD/VectorAbs.cs8
-rw-r--r--tests/src/JIT/SIMD/VectorMin.cs1
-rw-r--r--tests/src/JIT/SIMD/VectorReturn.cs164
-rw-r--r--tests/src/JIT/SIMD/VectorUtil.cs2
-rw-r--r--tests/src/JIT/config/benchmark+roslyn/project.json34
-rw-r--r--tests/src/JIT/config/benchmark+serialize/project.json34
-rw-r--r--tests/src/JIT/config/benchmark/project.json45
-rw-r--r--tests/src/JIT/config/extra/project.json38
-rw-r--r--tests/src/JIT/config/minimal/project.json16
-rw-r--r--tests/src/JIT/config/threading+thread/project.json20
-rw-r--r--tests/src/JIT/config/threading/project.json16
-rw-r--r--tests/src/JIT/jit64/opt/cg/cgstress/CgStress1_d.csproj6
-rw-r--r--tests/src/JIT/jit64/opt/cg/cgstress/CgStress1_r.csproj6
-rw-r--r--tests/src/JIT/jit64/opt/cse/hugeexpr1.csproj4
-rw-r--r--tests/src/JIT/jit64/regress/vsw/539509/test1.cs2
-rw-r--r--tests/src/JIT/opt/virtualstubdispatch/bigvtbl/bigvtbl_cs_d.csproj3
-rw-r--r--tests/src/JIT/opt/virtualstubdispatch/bigvtbl/bigvtbl_cs_r.csproj3
-rw-r--r--tests/src/TestWrappersConfig/project.json9
-rw-r--r--tests/src/dir.common.props2
-rw-r--r--tests/src/dir.props11
-rw-r--r--tests/src/dirs.proj6
-rw-r--r--tests/src/jit/Performance/CodeQuality/Span/SpanBench.cs468
-rw-r--r--tests/src/jit/Performance/CodeQuality/Span/SpanBench.csproj (renamed from tests/src/CoreMangLib/system/datetime/Co7510ParseExact_formatarray.csproj)21
-rw-r--r--tests/src/managed/Compilation/HelloWorld.cs2
-rw-r--r--tests/src/performance/project.json42
-rw-r--r--tests/src/readytorun/main.cs5
-rw-r--r--tests/src/readytorun/test.cs7
433 files changed, 45351 insertions, 32350 deletions
diff --git a/tests/src/CLRTest.Execute.Bash.targets b/tests/src/CLRTest.Execute.Bash.targets
index 60270a1..c487468 100644
--- a/tests/src/CLRTest.Execute.Bash.targets
+++ b/tests/src/CLRTest.Execute.Bash.targets
@@ -274,6 +274,7 @@ $(BashCLRTestArgPrep)
<!-- NOTE! semicolons must be escaped with %3B boooo -->
<_CLRTestExecutionScriptText>
<![CDATA[
+%23%21/usr/bin/env bash
TakeLock()
{
echo "in takeLock"
diff --git a/tests/src/CLRTest.Jit.targets b/tests/src/CLRTest.Jit.targets
index 4eb6327..1a0b5e3 100644
--- a/tests/src/CLRTest.Jit.targets
+++ b/tests/src/CLRTest.Jit.targets
@@ -25,17 +25,18 @@ WARNING: When setting properties based on their current state (for example:
<PropertyGroup>
<InputAssemblyName Condition="'$(CLRTestKind)' == 'RunOnly'">$([MSBuild]::MakeRelative($(OutputPath), $(_CLRTestToRunFileFullPath)).Replace("\","/"))</InputAssemblyName>
<InputAssemblyName Condition="'$(CLRTestKind)' == 'BuildAndRun'">$(MSBuildProjectName).exe</InputAssemblyName>
- <JitDisasmOut>$(BaseOutputPathWithConfig.Replace("\","/"))dasm/$(BuildProjectRelativeDir.Replace("\","/"))</JitDisasmOut>
+ <JitDisasmOut>$([MSBuild]::MakeRelative($(OutputPath), $(BaseOutputPathWithConfig)dasm\$(BuildProjectRelativeDir)).Replace("\","/"))</JitDisasmOut>
<JitDisasmBashScript>
<![CDATA[
# JitDisasm Script
if [ ! -z $RunningJitDisasm ]
then
- echo $CORE_ROOT/corerun "$CORE_ROOT/jit-dasm.dll" --crossgen $CORE_ROOT/crossgen.exe --platform $CORE_ROOT --output $(JitDisasmOut) $(InputAssemblyName)
- "$CORE_ROOT/corerun" "$CORE_ROOT/jit-dasm" --crossgen $CORE_ROOT/crossgen.exe --platform $CORE_ROOT --output $(JitDisasmOut) $(InputAssemblyName)
- if [ $ERRORLEVEL -ne 0 ]
+ echo $CORE_ROOT/corerun "$CORE_ROOT/jit-dasm.dll" --crossgen $CORE_ROOT/crossgen --platform $CORE_ROOT --output $(JitDisasmOut) $(InputAssemblyName)
+ "$CORE_ROOT/corerun" "$CORE_ROOT/jit-dasm.dll" --crossgen $CORE_ROOT/crossgen --platform $CORE_ROOT --output $(JitDisasmOut) $(InputAssemblyName)
+ _jdExitCode=$?
+ if [ $_jdExitCode -ne 0 ]
then
- echo EXECUTION OF JIT-DASM - FAILED $ERRORLEVEL
+ echo EXECUTION OF JIT-DASM - FAILED $_jdExitCode
exit 1
fi
fi
@@ -49,7 +50,7 @@ fi
<PropertyGroup>
<InputAssemblyName Condition="'$(CLRTestKind)' == 'RunOnly'">$([MSBuild]::MakeRelative($(OutputPath), $(_CLRTestToRunFileFullPath)))</InputAssemblyName>
<InputAssemblyName Condition="'$(CLRTestKind)' == 'BuildAndRun'">$(MSBuildProjectName).exe</InputAssemblyName>
- <JitDisasmOut>$(BaseOutputPathWithConfig)dasm\$(BuildProjectRelativeDir)</JitDisasmOut>
+ <JitDisasmOut>$([MSBuild]::MakeRelative($(OutputPath), $(BaseOutputPathWithConfig)dasm\$(BuildProjectRelativeDir)))</JitDisasmOut>
<JitDisasmBatchScript>
<![CDATA[
REM JitDisasm Script
diff --git a/tests/src/Common/Coreclr.TestWrapper/CoreclrTestWrapperLib.cs b/tests/src/Common/Coreclr.TestWrapper/CoreclrTestWrapperLib.cs
index dbdfc0e..ddb9050 100644
--- a/tests/src/Common/Coreclr.TestWrapper/CoreclrTestWrapperLib.cs
+++ b/tests/src/Common/Coreclr.TestWrapper/CoreclrTestWrapperLib.cs
@@ -35,6 +35,10 @@ namespace CoreclrTestLib
string gcstressVar = Environment.GetEnvironmentVariable(GC_STRESS_LEVEL);
+ // Check if we are running in Windows
+ string operatingSystem = System.Environment.GetEnvironmentVariable("OS");
+ bool runningInWindows = (operatingSystem != null && operatingSystem.StartsWith("Windows"));
+
var outputStream = new FileStream(outputFile, FileMode.Create);
var errorStream = new FileStream(errorFile, FileMode.Create);
@@ -49,7 +53,18 @@ namespace CoreclrTestLib
process.StartInfo.EnvironmentVariables["COMPlus_GCStress"] = gcstressVar;
}
- process.StartInfo.FileName = executable;
+ // Windows can run the executable implicitly
+ if (runningInWindows)
+ {
+ process.StartInfo.FileName = executable;
+ }
+ // Non-windows needs to be told explicitly to run through /bin/bash shell
+ else
+ {
+ process.StartInfo.FileName = "/bin/bash";
+ process.StartInfo.Arguments = executable;
+ }
+
process.StartInfo.UseShellExecute = false;
process.StartInfo.RedirectStandardOutput = true;
process.StartInfo.RedirectStandardError = true;
diff --git a/tests/src/Common/build_against_pkg_dependencies/project.json b/tests/src/Common/build_against_pkg_dependencies/project.json
index 5624855..719be59 100644
--- a/tests/src/Common/build_against_pkg_dependencies/project.json
+++ b/tests/src/Common/build_against_pkg_dependencies/project.json
@@ -1,10 +1,10 @@
{
"dependencies": {
- "Microsoft.NETCore.ILAsm": "1.2.0-beta-24820-02",
- "Microsoft.NETCore.ILDAsm": "1.2.0-beta-24820-02",
- "Microsoft.NETCore.Jit": "1.2.0-beta-24820-02",
- "Microsoft.NETCore.Runtime.CoreCLR": "1.2.0-beta-24820-02",
- "Microsoft.NETCore.TestHost": "1.2.0-beta-24820-02"
+ "Microsoft.NETCore.ILAsm": "2.0.0-beta-25007-01",
+ "Microsoft.NETCore.ILDAsm": "2.0.0-beta-25007-01",
+ "Microsoft.NETCore.Jit": "2.0.0-beta-25007-01",
+ "Microsoft.NETCore.Runtime.CoreCLR": "2.0.0-beta-25007-01",
+ "Microsoft.NETCore.TestHost": "2.0.0-beta-25007-01"
},
"frameworks": {
"netcoreapp1.1": {
diff --git a/tests/src/Common/empty/project.json b/tests/src/Common/empty/project.json
index 1954111..cc74ba8 100644
--- a/tests/src/Common/empty/project.json
+++ b/tests/src/Common/empty/project.json
@@ -8,9 +8,13 @@
"win7-x86": {},
"win7-x64": {},
"ubuntu.14.04-x64": {},
+ "ubuntu.16.04-x64": {},
+ "ubuntu.16.10-x64": {},
"osx.10.10-x64": {},
"centos.7-x64": {},
"rhel.7-x64": {},
- "debian.8-x64": {}
+ "debian.8-x64": {},
+ "fedora.23-x64": {},
+ "opensuse.13.2-x64": {}
}
}
diff --git a/tests/src/Common/netcoreapp/project.json b/tests/src/Common/netcoreapp/project.json
index 51193fc..ab15282 100644
--- a/tests/src/Common/netcoreapp/project.json
+++ b/tests/src/Common/netcoreapp/project.json
@@ -1,74 +1,9 @@
{
- "version": "1.0.0-*",
- "buildOptions": {
- "debugType": "portable",
- "emitEntryPoint": true
- },
"dependencies": {
- "Microsoft.NETCore.Platforms": "1.2.0-beta-24820-02",
- "Microsoft.NETCore.Targets": "1.2.0-beta-24820-02",
- "System.Threading.Thread": "4.4.0-beta-24820-02",
- "System.Collections": "4.4.0-beta-24820-02",
- "System.Xml.XmlSerializer": "4.4.0-beta-24820-02",
- "System.Collections.Concurrent": "4.4.0-beta-24820-02",
- "System.ObjectModel": "4.4.0-beta-24820-02",
- "System.Runtime.Numerics": "4.4.0-beta-24820-02",
- "System.Collections.NonGeneric": "4.4.0-beta-24820-02",
- "System.Collections.Specialized": "4.4.0-beta-24820-02",
- "System.ComponentModel": "4.4.0-beta-24820-02",
- "System.Reflection.Emit.Lightweight": "4.4.0-beta-24820-02",
- "System.Reflection.TypeExtensions": "4.4.0-beta-24820-02",
- "System.Console": "4.4.0-beta-24820-02",
- "System.Diagnostics.Contracts": "4.4.0-beta-24820-02",
- "System.Diagnostics.Debug": "4.4.0-beta-24820-02",
- "System.Diagnostics.Process": "4.4.0-beta-24820-02",
- "System.Diagnostics.Tools": "4.4.0-beta-24820-02",
- "System.Diagnostics.Tracing": "4.4.0-beta-24820-02",
- "System.Dynamic.Runtime": "4.4.0-beta-24820-02",
- "System.Globalization": "4.4.0-beta-24820-02",
- "System.Globalization.Calendars": "4.4.0-beta-24820-02",
- "System.IO": "4.4.0-beta-24820-02",
- "System.IO.FileSystem": "4.4.0-beta-24820-02",
- "System.IO.FileSystem.Primitives": "4.4.0-beta-24820-02",
- "System.Linq": "4.4.0-beta-24820-02",
- "System.Linq.Queryable": "4.4.0-beta-24820-02",
- "System.Linq.Expressions": "4.4.0-beta-24820-02",
- "System.Reflection": "4.4.0-beta-24820-02",
- "System.Reflection.Extensions": "4.4.0-beta-24820-02",
- "System.Resources.ResourceManager": "4.4.0-beta-24820-02",
- "System.Runtime": "4.4.0-beta-24820-02",
- "System.Runtime.CompilerServices.Unsafe": "4.4.0-beta-24820-02",
- "System.Runtime.Extensions": "4.4.0-beta-24820-02",
- "System.Runtime.Handles": "4.4.0-beta-24820-02",
- "System.Runtime.InteropServices": "4.4.0-beta-24820-02",
- "System.Runtime.InteropServices.RuntimeInformation": "4.4.0-beta-24820-02",
- "System.Runtime.Loader": "4.4.0-beta-24820-02",
- "System.Security.Cryptography.Algorithms": "4.4.0-beta-24820-02",
- "System.Text.Encoding": "4.4.0-beta-24820-02",
- "System.Text.Encoding.Extensions": "4.4.0-beta-24820-02",
- "System.Text.RegularExpressions": "4.4.0-beta-24820-02",
- "System.Threading": "4.4.0-beta-24820-02",
- "System.Threading.AccessControl": "4.4.0-beta-24820-02",
- "System.Threading.Overlapped": "4.4.0-beta-24820-02",
- "System.Threading.Tasks": "4.4.0-beta-24820-02",
- "System.Threading.Tasks.Parallel": "4.4.0-beta-24820-02",
- "System.Threading.ThreadPool": "4.4.0-beta-24820-02",
- "System.Threading.Timer": "4.4.0-beta-24820-02",
- "System.Xml.ReaderWriter": "4.4.0-beta-24820-02",
- "System.Xml.XDocument": "4.4.0-beta-24820-02",
- "System.Xml.XmlDocument": "4.4.0-beta-24820-02",
- "System.Xml.XPath": "4.4.0-beta-24820-02",
- "System.Xml.XPath.XmlDocument": "4.4.0-beta-24820-02",
- "System.Numerics.Vectors": "4.4.0-beta-24820-02"
+ "Microsoft.NETCore.App": "2.0.0-beta-001494-00",
+ "System.Runtime.CompilerServices.Unsafe": "4.4.0-beta-24913-02"
},
"frameworks": {
- "netcoreapp1.1": {
- "dependencies": {
- "Microsoft.NETCore.Runtime.CoreCLR": "1.2.0-beta-24820-02"
- }
- }
- },
- "runtimes": {
- "win7-x64": {}
+ "netcoreapp2.0": { }
}
}
diff --git a/tests/src/Common/targeting_pack_ref/project.json b/tests/src/Common/targeting_pack_ref/project.json
index c1f033b..1743f6f 100644
--- a/tests/src/Common/targeting_pack_ref/project.json
+++ b/tests/src/Common/targeting_pack_ref/project.json
@@ -1,6 +1,6 @@
{
"dependencies": {
- "Microsoft.TargetingPack.Private.CoreCLR": "1.2.0-beta-24820-02"
+ "Microsoft.TargetingPack.Private.CoreCLR": "2.0.0-beta-25007-01"
},
"frameworks": {
"netcoreapp1.1": {
@@ -14,9 +14,13 @@
"win7-x86": {},
"win7-x64": {},
"ubuntu.14.04-x64": {},
+ "ubuntu.16.04-x64": {},
+ "ubuntu.16.10-x64": {},
"osx.10.10-x64": {},
"centos.7-x64": {},
"rhel.7-x64": {},
- "debian.8-x64": {}
+ "debian.8-x64": {},
+ "fedora.23-x64": {},
+ "opensuse.13.2-x64": {}
}
}
diff --git a/tests/src/Common/test_dependencies/project.json b/tests/src/Common/test_dependencies/project.json
index 5f05914..771391a 100644
--- a/tests/src/Common/test_dependencies/project.json
+++ b/tests/src/Common/test_dependencies/project.json
@@ -7,67 +7,68 @@
"Microsoft.DotNet.xunit.performance": "1.0.0-alpha-build0040",
"Microsoft.DotNet.xunit.performance.analysis": "1.0.0-alpha-build0040",
"Microsoft.DotNet.xunit.performance.runner.Windows": "1.0.0-alpha-build0040",
- "Microsoft.Win32.Primitives": "4.4.0-beta-24820-02",
+ "Microsoft.Win32.Primitives": "4.4.0-beta-24913-02",
"Newtonsoft.Json": "8.0.3",
- "Microsoft.NETCore.Platforms": "1.2.0-beta-24820-02",
- "Microsoft.NETCore.Targets": "1.2.0-beta-24820-02",
- "System.Collections.Immutable": "1.4.0-beta-24820-02",
- "System.Threading.Thread": "4.4.0-beta-24820-02",
- "System.Collections": "4.4.0-beta-24820-02",
- "System.Xml.XmlSerializer": "4.4.0-beta-24820-02",
- "System.Collections.Concurrent": "4.4.0-beta-24820-02",
- "System.ObjectModel": "4.4.0-beta-24820-02",
- "System.Runtime.Numerics": "4.4.0-beta-24820-02",
- "System.Collections.NonGeneric": "4.4.0-beta-24820-02",
- "System.Collections.Specialized": "4.4.0-beta-24820-02",
- "System.ComponentModel": "4.4.0-beta-24820-02",
- "System.Reflection.Emit.Lightweight": "4.4.0-beta-24820-02",
- "System.Reflection.TypeExtensions": "4.4.0-beta-24820-02",
- "System.Console": "4.4.0-beta-24820-02",
- "System.Diagnostics.Contracts": "4.4.0-beta-24820-02",
- "System.Diagnostics.Debug": "4.4.0-beta-24820-02",
- "System.Diagnostics.Process": "4.4.0-beta-24820-02",
- "System.Diagnostics.Tools": "4.4.0-beta-24820-02",
- "System.Diagnostics.Tracing": "4.4.0-beta-24820-02",
- "System.Dynamic.Runtime": "4.4.0-beta-24820-02",
- "System.Globalization": "4.4.0-beta-24820-02",
- "System.Globalization.Calendars": "4.4.0-beta-24820-02",
- "System.IO": "4.4.0-beta-24820-02",
- "System.IO.FileSystem": "4.4.0-beta-24820-02",
- "System.IO.FileSystem.Primitives": "4.4.0-beta-24820-02",
- "System.Linq": "4.4.0-beta-24820-02",
- "System.Linq.Queryable": "4.4.0-beta-24820-02",
- "System.Linq.Expressions": "4.4.0-beta-24820-02",
- "System.Reflection": "4.4.0-beta-24820-02",
- "System.Reflection.Extensions": "4.4.0-beta-24820-02",
- "System.Resources.ResourceManager": "4.4.0-beta-24820-02",
- "System.Runtime": "4.4.0-beta-24820-02",
- "System.Runtime.CompilerServices.Unsafe": "4.4.0-beta-24820-02",
- "System.Runtime.Extensions": "4.4.0-beta-24820-02",
- "System.Runtime.Handles": "4.4.0-beta-24820-02",
- "System.Runtime.InteropServices": "4.4.0-beta-24820-02",
- "System.Runtime.InteropServices.RuntimeInformation": "4.4.0-beta-24820-02",
- "System.Runtime.Loader": "4.4.0-beta-24820-02",
- "System.Runtime.Serialization.Json": "4.4.0-beta-24820-02",
- "System.Runtime.Serialization.Primitives": "4.4.0-beta-24820-02",
- "System.Runtime.Serialization.Xml": "4.4.0-beta-24820-02",
- "System.Security.Cryptography.Algorithms": "4.4.0-beta-24820-02",
- "System.Text.Encoding": "4.4.0-beta-24820-02",
- "System.Text.Encoding.Extensions": "4.4.0-beta-24820-02",
- "System.Text.RegularExpressions": "4.4.0-beta-24820-02",
- "System.Threading": "4.4.0-beta-24820-02",
- "System.Threading.AccessControl": "4.4.0-beta-24820-02",
- "System.Threading.Overlapped": "4.4.0-beta-24820-02",
- "System.Threading.Tasks": "4.4.0-beta-24820-02",
- "System.Threading.Tasks.Parallel": "4.4.0-beta-24820-02",
- "System.Threading.ThreadPool": "4.4.0-beta-24820-02",
- "System.Threading.Timer": "4.4.0-beta-24820-02",
- "System.Xml.ReaderWriter": "4.4.0-beta-24820-02",
- "System.Xml.XDocument": "4.4.0-beta-24820-02",
- "System.Xml.XmlDocument": "4.4.0-beta-24820-02",
- "System.Xml.XPath": "4.4.0-beta-24820-02",
- "System.Xml.XPath.XmlDocument": "4.4.0-beta-24820-02",
- "System.Numerics.Vectors": "4.4.0-beta-24820-02"
+ "Microsoft.NETCore.Platforms": "2.0.0-beta-25007-01",
+ "Microsoft.NETCore.Targets": "1.2.0-beta-24913-02",
+ "System.Collections.Immutable": "1.4.0-beta-24913-02",
+ "System.Threading.Thread": "4.4.0-beta-24913-02",
+ "System.Collections": "4.4.0-beta-24913-02",
+ "System.Xml.XmlSerializer": "4.4.0-beta-24913-02",
+ "System.Collections.Concurrent": "4.4.0-beta-24913-02",
+ "System.ObjectModel": "4.4.0-beta-24913-02",
+ "System.Runtime.Numerics": "4.4.0-beta-24913-02",
+ "System.Collections.NonGeneric": "4.4.0-beta-24913-02",
+ "System.Collections.Specialized": "4.4.0-beta-24913-02",
+ "System.ComponentModel": "4.4.0-beta-24913-02",
+ "System.Reflection.Emit.Lightweight": "4.4.0-beta-24913-02",
+ "System.Reflection.TypeExtensions": "4.4.0-beta-24913-02",
+ "System.Console": "4.4.0-beta-24913-02",
+ "System.Diagnostics.Contracts": "4.4.0-beta-24913-02",
+ "System.Diagnostics.Debug": "4.4.0-beta-24913-02",
+ "System.Diagnostics.Process": "4.4.0-beta-24913-02",
+ "System.Diagnostics.Tools": "4.4.0-beta-24913-02",
+ "System.Diagnostics.Tracing": "4.4.0-beta-24913-02",
+ "System.Dynamic.Runtime": "4.4.0-beta-24913-02",
+ "System.Globalization": "4.4.0-beta-24913-02",
+ "System.Globalization.Calendars": "4.4.0-beta-24913-02",
+ "System.IO": "4.4.0-beta-24913-02",
+ "System.IO.FileSystem": "4.4.0-beta-24913-02",
+ "System.IO.FileSystem.Primitives": "4.4.0-beta-24913-02",
+ "System.Linq": "4.4.0-beta-24913-02",
+ "System.Linq.Queryable": "4.4.0-beta-24913-02",
+ "System.Linq.Expressions": "4.4.0-beta-24913-02",
+ "System.Memory": "4.4.0-beta-24913-02",
+ "System.Reflection": "4.4.0-beta-24913-02",
+ "System.Reflection.Extensions": "4.4.0-beta-24913-02",
+ "System.Resources.ResourceManager": "4.4.0-beta-24913-02",
+ "System.Runtime": "4.4.0-beta-24913-02",
+ "System.Runtime.CompilerServices.Unsafe": "4.4.0-beta-24913-02",
+ "System.Runtime.Extensions": "4.4.0-beta-24913-02",
+ "System.Runtime.Handles": "4.4.0-beta-24913-02",
+ "System.Runtime.InteropServices": "4.4.0-beta-24913-02",
+ "System.Runtime.InteropServices.RuntimeInformation": "4.4.0-beta-24913-02",
+ "System.Runtime.Loader": "4.4.0-beta-24913-02",
+ "System.Runtime.Serialization.Json": "4.4.0-beta-24913-02",
+ "System.Runtime.Serialization.Primitives": "4.4.0-beta-24913-02",
+ "System.Runtime.Serialization.Xml": "4.4.0-beta-24913-02",
+ "System.Security.Cryptography.Algorithms": "4.4.0-beta-24913-02",
+ "System.Text.Encoding": "4.4.0-beta-24913-02",
+ "System.Text.Encoding.Extensions": "4.4.0-beta-24913-02",
+ "System.Text.RegularExpressions": "4.4.0-beta-24913-02",
+ "System.Threading": "4.4.0-beta-24913-02",
+ "System.Threading.AccessControl": "4.4.0-beta-24913-02",
+ "System.Threading.Overlapped": "4.4.0-beta-24913-02",
+ "System.Threading.Tasks": "4.4.0-beta-24913-02",
+ "System.Threading.Tasks.Parallel": "4.4.0-beta-24913-02",
+ "System.Threading.ThreadPool": "4.4.0-beta-24913-02",
+ "System.Threading.Timer": "4.4.0-beta-24913-02",
+ "System.Xml.ReaderWriter": "4.4.0-beta-24913-02",
+ "System.Xml.XDocument": "4.4.0-beta-24913-02",
+ "System.Xml.XmlDocument": "4.4.0-beta-24913-02",
+ "System.Xml.XPath": "4.4.0-beta-24913-02",
+ "System.Xml.XPath.XmlDocument": "4.4.0-beta-24913-02",
+ "System.Numerics.Vectors": "4.4.0-beta-24913-02"
},
"frameworks": {
"netcoreapp1.1": {
@@ -81,9 +82,13 @@
"win7-x86": {},
"win7-x64": {},
"ubuntu.14.04-x64": {},
+ "ubuntu.16.04-x64": {},
+ "ubuntu.16.10-x64": {},
"osx.10.10-x64": {},
"centos.7-x64": {},
"rhel.7-x64": {},
- "debian.8-x64": {}
+ "debian.8-x64": {},
+ "fedora.23-x64": {},
+ "opensuse.13.2-x64": {}
}
}
diff --git a/tests/src/Common/test_runtime/project.json b/tests/src/Common/test_runtime/project.json
index 2c7c15f..ef47999 100644
--- a/tests/src/Common/test_runtime/project.json
+++ b/tests/src/Common/test_runtime/project.json
@@ -1,14 +1,15 @@
{
"dependencies": {
+ "Microsoft.NETCore.Platforms": "2.0.0-beta-25007-01",
"Microsoft.DotNet.CoreCLR.TestDependencies": "1.0.0-prerelease",
- "jit-dasm": "0.0.1.1",
+ "jit-dasm": "0.0.1.4",
"cijobs": "0.0.1.2",
- "jit-analyze": "0.0.1.0"
+ "jit-analyze": "0.0.1.1"
},
"frameworks": {
"netcoreapp1.1": {
"imports": [
- "dnxcore50",
+ "dnxcore50",
"portable-net45+win8"
]
}
@@ -17,9 +18,13 @@
"win7-x86": {},
"win7-x64": {},
"ubuntu.14.04-x64": {},
+ "ubuntu.16.04-x64": {},
+ "ubuntu.16.10-x64": {},
"osx.10.10-x64": {},
"centos.7-x64": {},
"rhel.7-x64": {},
- "debian.8-x64": {}
+ "debian.8-x64": {},
+ "fedora.23-x64": {},
+ "opensuse.13.2-x64": {}
}
}
diff --git a/tests/src/CoreMangLib/cti/system/datetime/DateTimeCtor4.csproj b/tests/src/CoreMangLib/cti/system/datetime/DateTimeCtor4.csproj
deleted file mode 100644
index 54149ad..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/DateTimeCtor4.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="datetimector4.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetime/DateTimeCtor6.csproj b/tests/src/CoreMangLib/cti/system/datetime/DateTimeCtor6.csproj
deleted file mode 100644
index cda7208..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/DateTimeCtor6.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="datetimector6.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetime/DateTimeCtor7.csproj b/tests/src/CoreMangLib/cti/system/datetime/DateTimeCtor7.csproj
deleted file mode 100644
index 6557682..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/DateTimeCtor7.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="datetimector7.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetime/DateTimeDate.csproj b/tests/src/CoreMangLib/cti/system/datetime/DateTimeDate.csproj
deleted file mode 100644
index 369a383..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/DateTimeDate.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="datetimedate.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetime/DateTimeGetHashCode.csproj b/tests/src/CoreMangLib/cti/system/datetime/DateTimeGetHashCode.csproj
deleted file mode 100644
index 4096884..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/DateTimeGetHashCode.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="datetimegethashcode.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetime/DateTimeHour.csproj b/tests/src/CoreMangLib/cti/system/datetime/DateTimeHour.csproj
deleted file mode 100644
index 8546ca6..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/DateTimeHour.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="datetimehour.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetime/DateTimeMaxValue.csproj b/tests/src/CoreMangLib/cti/system/datetime/DateTimeMaxValue.csproj
deleted file mode 100644
index c588f8c..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/DateTimeMaxValue.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="datetimemaxvalue.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetime/DateTimeMillisecond.csproj b/tests/src/CoreMangLib/cti/system/datetime/DateTimeMillisecond.csproj
deleted file mode 100644
index 25fde79..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/DateTimeMillisecond.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="datetimemillisecond.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetime/DateTimeMinValue.csproj b/tests/src/CoreMangLib/cti/system/datetime/DateTimeMinValue.csproj
deleted file mode 100644
index 060e586..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/DateTimeMinValue.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="datetimeminvalue.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetime/DateTimeMinute.csproj b/tests/src/CoreMangLib/cti/system/datetime/DateTimeMinute.csproj
deleted file mode 100644
index ec37820..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/DateTimeMinute.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="datetimeminute.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetime/DateTimeParse1.csproj b/tests/src/CoreMangLib/cti/system/datetime/DateTimeParse1.csproj
deleted file mode 100644
index 5a32497..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/DateTimeParse1.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="datetimeparse1.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetime/DateTimeParse2.csproj b/tests/src/CoreMangLib/cti/system/datetime/DateTimeParse2.csproj
deleted file mode 100644
index 1126dcd..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/DateTimeParse2.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="datetimeparse2.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetime/DateTimeParse3.csproj b/tests/src/CoreMangLib/cti/system/datetime/DateTimeParse3.csproj
deleted file mode 100644
index 007ac1b..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/DateTimeParse3.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="datetimeparse3.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetime/DateTimeParseExact1.csproj b/tests/src/CoreMangLib/cti/system/datetime/DateTimeParseExact1.csproj
deleted file mode 100644
index 1c62be7..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/DateTimeParseExact1.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="datetimeparseexact1.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetime/DateTimeParseExact2.csproj b/tests/src/CoreMangLib/cti/system/datetime/DateTimeParseExact2.csproj
deleted file mode 100644
index d08a774..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/DateTimeParseExact2.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="datetimeparseexact2.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetime/DateTimeParseExact3.csproj b/tests/src/CoreMangLib/cti/system/datetime/DateTimeParseExact3.csproj
deleted file mode 100644
index 5df4c9f..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/DateTimeParseExact3.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="datetimeparseexact3.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetime/DateTimeSecond.csproj b/tests/src/CoreMangLib/cti/system/datetime/DateTimeSecond.csproj
deleted file mode 100644
index 347cae3..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/DateTimeSecond.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="datetimesecond.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetime/DateTimeSubtract1.csproj b/tests/src/CoreMangLib/cti/system/datetime/DateTimeSubtract1.csproj
deleted file mode 100644
index 6c421e7..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/DateTimeSubtract1.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="datetimesubtract1.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetime/DateTimeSubtract2.csproj b/tests/src/CoreMangLib/cti/system/datetime/DateTimeSubtract2.csproj
deleted file mode 100644
index eb699f4..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/DateTimeSubtract2.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="datetimesubtract2.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetime/DateTimeTicks.csproj b/tests/src/CoreMangLib/cti/system/datetime/DateTimeTicks.csproj
deleted file mode 100644
index 015a0c0..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/DateTimeTicks.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="datetimeticks.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetime/DateTimeTimeOfDay.csproj b/tests/src/CoreMangLib/cti/system/datetime/DateTimeTimeOfDay.csproj
deleted file mode 100644
index a4272cb..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/DateTimeTimeOfDay.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="datetimetimeofday.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetime/DateTimeToFileTime.csproj b/tests/src/CoreMangLib/cti/system/datetime/DateTimeToFileTime.csproj
deleted file mode 100644
index 7d0ba1b..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/DateTimeToFileTime.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="datetimetofiletime.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetime/DateTimeToFileTimeUtc.csproj b/tests/src/CoreMangLib/cti/system/datetime/DateTimeToFileTimeUtc.csproj
deleted file mode 100644
index 3fbd0d2..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/DateTimeToFileTimeUtc.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="datetimetofiletimeutc.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetime/DateTimeToLocalTime.csproj b/tests/src/CoreMangLib/cti/system/datetime/DateTimeToLocalTime.csproj
deleted file mode 100644
index a26bc57..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/DateTimeToLocalTime.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="datetimetolocaltime.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetime/DateTimeToString1.csproj b/tests/src/CoreMangLib/cti/system/datetime/DateTimeToString1.csproj
deleted file mode 100644
index b16d7d3..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/DateTimeToString1.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="datetimetostring1.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetime/DateTimeToString2.csproj b/tests/src/CoreMangLib/cti/system/datetime/DateTimeToString2.csproj
deleted file mode 100644
index 3d5b470..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/DateTimeToString2.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="datetimetostring2.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetime/DateTimeToString3.csproj b/tests/src/CoreMangLib/cti/system/datetime/DateTimeToString3.csproj
deleted file mode 100644
index 30ebd40..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/DateTimeToString3.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="datetimetostring3.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetime/DateTimeUtcNow.csproj b/tests/src/CoreMangLib/cti/system/datetime/DateTimeUtcNow.csproj
deleted file mode 100644
index 4ba6627..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/DateTimeUtcNow.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="datetimeutcnow.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetime/DateTimetoday.csproj b/tests/src/CoreMangLib/cti/system/datetime/DateTimetoday.csproj
deleted file mode 100644
index 0b8f186..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/DateTimetoday.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="datetimetoday.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetime/cfdatetimetools.cs b/tests/src/CoreMangLib/cti/system/datetime/cfdatetimetools.cs
deleted file mode 100644
index 0d7c865..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/cfdatetimetools.cs
+++ /dev/null
@@ -1,142 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-using TestLibrary;
-using System.Runtime.InteropServices;
-
-// utility functions for accessing DateTime functions in CoreFoundation for validation purposes
-
-// Important Notes:
-// CF reference types are passed as IntPtrs. In the declarations, the actual type name is given within C-style comments:
-// IntPtr /* CFTypeRef */ tr
-// many function signatures contain an allocator of type CFAllocatorRef. To use the default allocator pass in IntPtr.Zero.
-
-public class CFDateTimeTools
-{
-
- // Basic tools (should be factored out eventually, as not DateTime-specific)
- [DllImport("/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreFoundation.framework/Versions/Current/CoreFoundation")]
- protected static extern string CFStringGetCStringPtr(IntPtr /* CFStringRef */ theString, CFStringEncoding encoding);
-
- public enum CFStringEncoding : uint
- {
- kCFStringEncodingMacRoman = 0,
- kCFStringEncodingWindowsLatin1 = 0x0500,
- kCFStringEncodingISOLatin1 = 0x0201,
- kCFStringEncodingNextStepLatin = 0x0B01,
- kCFStringEncodingASCII = 0x0600,
- kCFStringEncodingUnicode = 0x0100,
- kCFStringEncodingUTF8 = 0x08000100,
- kCFStringEncodingNonLossyASCII = 0x0BFF,
-
- // The following constants are available
- // only on Mac OS X v10.4 and later,
- kCFStringEncodingUTF16 = 0x0100,
- kCFStringEncodingUTF16BE = 0x10000100,
- kCFStringEncodingUTF16LE = 0x14000100,
- kCFStringEncodingUTF32 = 0x0c000100,
- kCFStringEncodingUTF32BE = 0x18000100,
- kCFStringEncodingUTF32LE = 0x1c000100
- }
- [DllImport("/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreFoundation.framework/Versions/Current/CoreFoundation")]
- protected static extern IntPtr /* CFStringRef */ CFStringCreateWithCString(IntPtr /* CFAllocatorRef */ alloc,
- string cStr,
- CFStringEncoding encoding);
-
-
- [System.Security.SecuritySafeCritical]
- public static string CFStringToSystemString(IntPtr /* CFStringRef */ theString)
- {
- return CFStringGetCStringPtr(theString, CFStringEncoding.kCFStringEncodingMacRoman);
- }
-
- [System.Security.SecuritySafeCritical]
- public static IntPtr /* CFStringRef */ SystemStringToCFString(string theString)
- {
- return CFStringCreateWithCString(IntPtr.Zero, theString, CFStringEncoding.kCFStringEncodingMacRoman);
- }
-
- [System.Security.SecuritySafeCritical]
- public static string GetOSFormattedDate(DateTime d, bool getLocale)
- {
- IntPtr cfDateRef = CFDateTimeTools.DateTimeToCFDateRef(d);
- IntPtr cfLocaleRef = (getLocale ? CFDateTimeTools.CFLocaleCopyCurrent() : IntPtr.Zero);
- IntPtr cfDateFmtr = CFDateFormatterCreate(IntPtr.Zero, cfLocaleRef,
- CFDateFormatterStyle.kCFDateFormatterLongStyle,
- CFDateFormatterStyle.kCFDateFormatterLongStyle); // 3 for long style
-
- IntPtr cfStr = CFDateFormatterCreateStringWithDate(IntPtr.Zero, cfDateFmtr, cfDateRef);
- return CFStringToSystemString(cfStr);
- }
-
- /// CFLocale
- /// --------
-
- [DllImport("/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreFoundation.framework/Versions/Current/CoreFoundation")]
- public static extern IntPtr /* CFLocaleRef */ CFLocaleCopyCurrent();
-
- /// CFDate tools
- /// ------------
-
- [DllImport("/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreFoundation.framework/Versions/Current/CoreFoundation")]
- public static extern /* CFDateRef */ IntPtr CFDateCreate(IntPtr /* CFAllocatorRef */ allocator,
- double /* CFAbsoluteTime */ at);
-
- // convert between CLR DateTime and CoreFoundation CFAbsoluteTime (== double) and CFDateRef types
- private static DateTime CFAbsoluteTimeZero = new DateTime(2001, 1, 1, 0, 0, 0, DateTimeKind.Utc);
-
- public static double DateTimeToCFAbsoluteTime(DateTime d)
- {
- return d.Subtract(CFAbsoluteTimeZero).TotalSeconds;
- }
-
- [System.Security.SecuritySafeCritical]
- public static IntPtr /* CFDateRef */ DateTimeToCFDateRef(DateTime d)
- {
- return CFDateCreate(IntPtr.Zero,
- DateTimeToCFAbsoluteTime(d));
- }
-
-
- /// CFDateTimeFormatter
- /// -------------------
-
- public enum CFDateFormatterStyle : int
- {
- kCFDateFormatterNoStyle = 0,
- kCFDateFormatterShortStyle = 1,
- kCFDateFormatterMediumStyle = 2,
- kCFDateFormatterLongStyle = 3,
- kCFDateFormatterFullStyle = 4
- };
-
-
- [DllImport("/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreFoundation.framework/Versions/Current/CoreFoundation")]
- public static extern IntPtr /* CFDateFormatterRef */ CFDateFormatterCreate(IntPtr /* CFAllocatorRef */ alloc,
- IntPtr /* CFLocaleRef */ locale, CFDateFormatterStyle dateStyle, CFDateFormatterStyle timeStyle);
-
-
- [DllImport("/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreFoundation.framework/Versions/Current/CoreFoundation")]
- public static extern /* CFStringRef */ IntPtr CFDateFormatterCreateStringWithDate(IntPtr /* CFAllocatorRef */ alloc,
- IntPtr /* CFDateFormatterRef */ formatter, IntPtr /* CFDateRef */ date);
-
- /// CFTimeZone
- /// -----------
-
- [DllImport("/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreFoundation.framework/Versions/Current/CoreFoundation")]
- public extern static IntPtr /* CFTimeZoneRef */ CFTimeZoneCopySystem();
-
- [DllImport("/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreFoundation.framework/Versions/Current/CoreFoundation")]
- public extern static IntPtr /* CFStringRef */ CFTimeZoneGetName(IntPtr /* CFTimeZoneRef */ tz);
-
- [System.Security.SecuritySafeCritical]
- public static string GetOSTimeZoneName(IntPtr /* CFTimeZoneRef */ tz)
- {
- return CFStringToSystemString(CFTimeZoneGetName(tz));
- }
-
- [DllImport("/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreFoundation.framework/Versions/Current/CoreFoundation")]
- public extern static bool CFTimeZoneIsDaylightSavingTime(IntPtr /* CFTimeZoneRef */ tz,
- double /* CFAbsoluteTime */ at);
-} \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimecompare.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimecompare.cs
deleted file mode 100644
index 088f8b2..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimecompare.cs
+++ /dev/null
@@ -1,250 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-
-/// <summary>
-/// Compare(System.DateTime,System.DateTime)
-/// </summary>
-public class DateTimeCompare
-{
- #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: Compare a datetime instance with itself");
-
- try
- {
- DateTime t1 = new DateTime(2006, 9, 21, 10, 54, 56, 888);
-
- if (DateTime.Compare(t1, t1) != 0)
- {
- TestLibrary.TestFramework.LogError("001.1", "Compare a datetime instance with itself does not return 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: Compare a datetime instance with a datetime instance less than it");
-
- try
- {
- DateTime t1 = new DateTime(2006, 9, 21, 10, 54, 56, 888);
- DateTime t2 = new DateTime(2006, 9, 21, 10, 54, 56, 887);
-
- if (DateTime.Compare(t1, t2) <= 0)
- {
- TestLibrary.TestFramework.LogError("002.1", "Compare a datetime instance with a datetime instance less than it does not greater than 0");
- retVal = false;
- }
-
- t2 = new DateTime(2006, 9, 21, 10, 54, 55, 888);
-
- if (DateTime.Compare(t1, t2) <= 0)
- {
- TestLibrary.TestFramework.LogError("002.2", "Compare a datetime instance with a datetime instance less than it does not greater than 0");
- retVal = false;
- }
-
- t2 = new DateTime(2006, 9, 21, 10, 53, 56, 888);
-
- if (DateTime.Compare(t1, t2) <= 0)
- {
- TestLibrary.TestFramework.LogError("002.3", "Compare a datetime instance with a datetime instance less than it does not greater than 0");
- retVal = false;
- }
-
- t2 = new DateTime(2006, 9, 21, 9, 54, 56, 888);
-
- if (DateTime.Compare(t1, t2) <= 0)
- {
- TestLibrary.TestFramework.LogError("002.4", "Compare a datetime instance with a datetime instance less than it does not greater than 0");
- retVal = false;
- }
-
- t2 = new DateTime(2006, 9, 20, 10, 54, 56, 888);
-
- if (DateTime.Compare(t1, t2) <= 0)
- {
- TestLibrary.TestFramework.LogError("002.5", "Compare a datetime instance with a datetime instance less than it does not greater than 0");
- retVal = false;
- }
-
- t2 = new DateTime(2006, 8, 21, 10, 54, 56, 888);
-
- if (DateTime.Compare(t1, t2) <= 0)
- {
- TestLibrary.TestFramework.LogError("002.6", "Compare a datetime instance with a datetime instance less than it does not greater than 0");
- retVal = false;
- }
-
- t2 = new DateTime(2005, 9, 21, 10, 54, 56, 888);
-
- if (DateTime.Compare(t1, t2) <= 0)
- {
- TestLibrary.TestFramework.LogError("002.7", "Compare a datetime instance with a datetime instance less than it does not greater than 0");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Compare a datetime instance equal to it");
-
- try
- {
- DateTime t1 = new DateTime(2006, 9, 21, 10, 54, 56, 888);
- DateTime t2 = new DateTime(2006, 9, 21, 10, 54, 56, 888);
-
- if (DateTime.Compare(t1, t2) != 0)
- {
- TestLibrary.TestFramework.LogError("003.1", "Compare a datetime instance equal to it does not return 0");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: Compare a datetime instance with a datetime instance greater than it");
-
- try
- {
- DateTime t1 = new DateTime(2006, 9, 21, 10, 54, 56, 888);
- DateTime t2 = new DateTime(2006, 9, 21, 10, 54, 56, 889);
-
- if (DateTime.Compare(t1, t2) >= 0)
- {
- TestLibrary.TestFramework.LogError("004.1", "Compare a datetime instance with a datetime instance greater than it does not less than 0");
- retVal = false;
- }
-
- t2 = new DateTime(2006, 9, 21, 10, 54, 57, 888);
-
- if (DateTime.Compare(t1, t2) >= 0)
- {
- TestLibrary.TestFramework.LogError("004.1", "Compare a datetime instance with a datetime instance greater than it does not less than 0");
- retVal = false;
- }
-
- t2 = new DateTime(2006, 9, 21, 10, 55, 56, 888);
-
- if (DateTime.Compare(t1, t2) >= 0)
- {
- TestLibrary.TestFramework.LogError("004.1", "Compare a datetime instance with a datetime instance greater than it does not less than 0");
- retVal = false;
- }
-
- t2 = new DateTime(2006, 9, 21, 11, 54, 56, 888);
-
- if (DateTime.Compare(t1, t2) >= 0)
- {
- TestLibrary.TestFramework.LogError("004.1", "Compare a datetime instance with a datetime instance greater than it does not less than 0");
- retVal = false;
- }
-
- t2 = new DateTime(2006, 9, 22, 10, 54, 56, 888);
-
- if (DateTime.Compare(t1, t2) >= 0)
- {
- TestLibrary.TestFramework.LogError("004.1", "Compare a datetime instance with a datetime instance greater than it does not less than 0");
- retVal = false;
- }
-
- t2 = new DateTime(2006, 10, 21, 10, 54, 56, 888);
-
- if (DateTime.Compare(t1, t2) >= 0)
- {
- TestLibrary.TestFramework.LogError("004.1", "Compare a datetime instance with a datetime instance greater than it does not less than 0");
- retVal = false;
- }
-
- t2 = new DateTime(2007, 9, 21, 10, 54, 56, 888);
-
- if (DateTime.Compare(t1, t2) >= 0)
- {
- TestLibrary.TestFramework.LogError("004.1", "Compare a datetime instance with a datetime instance greater than it does not less than 0");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- DateTimeCompare test = new DateTimeCompare();
-
- TestLibrary.TestFramework.BeginTestCase("DateTimeCompare");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimecompareto1.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimecompareto1.cs
deleted file mode 100644
index 1bb2ca2..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimecompareto1.cs
+++ /dev/null
@@ -1,250 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-
-/// <summary>
-/// CompareTo(System.DateTime)
-/// </summary>
-public class DateTimeCompareTo1
-{
- #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: Compare a datetime instance with itself");
-
- try
- {
- DateTime t = new DateTime(2006, 9, 21, 10, 54, 56, 888);
-
- if (t.CompareTo(t) != 0)
- {
- TestLibrary.TestFramework.LogError("001.1", "Compare a datetime instance with itself does not return 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: Compare a datetime instance with a datetime instance less than it");
-
- try
- {
- DateTime t1 = new DateTime(2006, 9, 21, 10, 54, 56, 888);
- DateTime t2 = new DateTime(2006, 9, 21, 10, 54, 56, 887);
-
- if (t1.CompareTo(t2) <= 0)
- {
- TestLibrary.TestFramework.LogError("002.1", "Compare a datetime instance with a datetime instance less than it does not greater than 0");
- retVal = false;
- }
-
- t2 = new DateTime(2006, 9, 21, 10, 54, 55, 888);
-
- if (t1.CompareTo(t2) <= 0)
- {
- TestLibrary.TestFramework.LogError("002.2", "Compare a datetime instance with a datetime instance less than it does not greater than 0");
- retVal = false;
- }
-
- t2 = new DateTime(2006, 9, 21, 10, 53, 56, 888);
-
- if (t1.CompareTo(t2) <= 0)
- {
- TestLibrary.TestFramework.LogError("002.3", "Compare a datetime instance with a datetime instance less than it does not greater than 0");
- retVal = false;
- }
-
- t2 = new DateTime(2006, 9, 21, 9, 54, 56, 888);
-
- if (t1.CompareTo(t2) <= 0)
- {
- TestLibrary.TestFramework.LogError("002.4", "Compare a datetime instance with a datetime instance less than it does not greater than 0");
- retVal = false;
- }
-
- t2 = new DateTime(2006, 9, 20, 10, 54, 56, 888);
-
- if (t1.CompareTo(t2) <= 0)
- {
- TestLibrary.TestFramework.LogError("002.5", "Compare a datetime instance with a datetime instance less than it does not greater than 0");
- retVal = false;
- }
-
- t2 = new DateTime(2006, 8, 21, 10, 54, 56, 888);
-
- if (t1.CompareTo(t2) <= 0)
- {
- TestLibrary.TestFramework.LogError("002.6", "Compare a datetime instance with a datetime instance less than it does not greater than 0");
- retVal = false;
- }
-
- t2 = new DateTime(2005, 9, 21, 10, 54, 56, 888);
-
- if (t1.CompareTo(t2) <= 0)
- {
- TestLibrary.TestFramework.LogError("002.7", "Compare a datetime instance with a datetime instance less than it does not greater than 0");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Compare a datetime instance equal to it");
-
- try
- {
- DateTime t1 = new DateTime(2006, 9, 21, 10, 54, 56, 888);
- DateTime t2 = new DateTime(2006, 9, 21, 10, 54, 56, 888);
-
- if (t1.CompareTo(t2) != 0)
- {
- TestLibrary.TestFramework.LogError("003.1", "Compare a datetime instance equal to it does not return 0");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: Compare a datetime instance with a datetime instance greater than it");
-
- try
- {
- DateTime t1 = new DateTime(2006, 9, 21, 10, 54, 56, 888);
- DateTime t2 = new DateTime(2006, 9, 21, 10, 54, 56, 889);
-
- if (t1.CompareTo(t2) >= 0)
- {
- TestLibrary.TestFramework.LogError("004.1", "Compare a datetime instance with a datetime instance greater than it does not less than 0");
- retVal = false;
- }
-
- t2 = new DateTime(2006, 9, 21, 10, 54, 57, 888);
-
- if (t1.CompareTo(t2) >= 0)
- {
- TestLibrary.TestFramework.LogError("004.1", "Compare a datetime instance with a datetime instance greater than it does not less than 0");
- retVal = false;
- }
-
- t2 = new DateTime(2006, 9, 21, 10, 55, 56, 888);
-
- if (t1.CompareTo(t2) >= 0)
- {
- TestLibrary.TestFramework.LogError("004.1", "Compare a datetime instance with a datetime instance greater than it does not less than 0");
- retVal = false;
- }
-
- t2 = new DateTime(2006, 9, 21, 11, 54, 56, 888);
-
- if (t1.CompareTo(t2) >= 0)
- {
- TestLibrary.TestFramework.LogError("004.1", "Compare a datetime instance with a datetime instance greater than it does not less than 0");
- retVal = false;
- }
-
- t2 = new DateTime(2006, 9, 22, 10, 54, 56, 888);
-
- if (t1.CompareTo(t2) >= 0)
- {
- TestLibrary.TestFramework.LogError("004.1", "Compare a datetime instance with a datetime instance greater than it does not less than 0");
- retVal = false;
- }
-
- t2 = new DateTime(2006, 10, 21, 10, 54, 56, 888);
-
- if (t1.CompareTo(t2) >= 0)
- {
- TestLibrary.TestFramework.LogError("004.1", "Compare a datetime instance with a datetime instance greater than it does not less than 0");
- retVal = false;
- }
-
- t2 = new DateTime(2007, 9, 21, 10, 54, 56, 888);
-
- if (t1.CompareTo(t2) >= 0)
- {
- TestLibrary.TestFramework.LogError("004.1", "Compare a datetime instance with a datetime instance greater than it does not less than 0");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- DateTimeCompareTo1 test = new DateTimeCompareTo1();
-
- TestLibrary.TestFramework.BeginTestCase("DateTimeCompareTo1");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimector1.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimector1.cs
deleted file mode 100644
index 41e4c0c..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimector1.cs
+++ /dev/null
@@ -1,342 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-
-/// <summary>
-/// ctor(System.Int32,System.Int32,System.Int32)
-/// </summary>
-public class DateTimeCtor1
-{
- #region Private Fields
- private int m_ErrorNo = 0;
- #endregion
-
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- retVal = PosTest3() && retVal;
-
- 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: We can call ctor(System.Int32,System.Int32,System.Int32) to constructor a new DateTime instance by using valid value");
-
- try
- {
- retVal = retVal && VerifyDateTimeHelper(2006, 8, 28);
- }
- catch (Exception e)
- {
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: We can call ctor(System.Int32,System.Int32,System.Int32) to constructor a new DateTime instance by using MAX/MIN values");
-
- try
- {
- retVal = retVal && VerifyDateTimeHelper(1, 1, 1);
- retVal = retVal && VerifyDateTimeHelper(9999, 12, 31);
- retVal = retVal && VerifyDateTimeHelper(1, 12, 31);
- retVal = retVal && VerifyDateTimeHelper(9999, 1, 1);
- retVal = retVal && VerifyDateTimeHelper(2000, 1, 31);
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29);
- retVal = retVal && VerifyDateTimeHelper(2001, 2, 28);
- retVal = retVal && VerifyDateTimeHelper(2001, 4, 30);
- }
- catch (Exception e)
- {
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: We can call ctor(System.Int32,System.Int32,System.Int32) to constructor a new DateTime instance by using correct day/month pair");
-
- try
- {
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29);
- retVal = retVal && VerifyDateTimeHelper(2006, 2, 28);
- retVal = retVal && VerifyDateTimeHelper(2006, 4, 30);
- }
- catch (Exception e)
- {
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #region Nagetive Test Cases
- public bool NegTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: ArgumentOutOfRangeException should be thrown when year is less than 1 or greater than 9999.");
-
- try
- {
- DateTime value = new DateTime(0, 1, 1);
-
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when year is less than 1");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- DateTime value = new DateTime(10000, 1, 1);
-
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when year is greater than 9999");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: ArgumentOutOfRangeException should be thrown when month is less than 1 or greater than 12");
-
- try
- {
- DateTime value = new DateTime(2006, 0, 1);
-
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when month is less than 1");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- DateTime value = new DateTime(2006, 13, 1);
-
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when month is greater than 12");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest3: ArgumentOutOfRangeException should be thrown when day is less than 1 or greater than the number of days in month");
-
- try
- {
- DateTime value = new DateTime(2006, 1, 0);
-
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when day is less than 1");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- DateTime value = new DateTime(2006, 1, 32);
-
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when day is greater than the number of days in month");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- DateTime value = new DateTime(2006, 2, 29);
-
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when day is greater than the number of days in month");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- DateTime value = new DateTime(2006, 4, 31);
-
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when day is greater than the number of days in month");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- DateTimeCtor1 test = new DateTimeCtor1();
-
- TestLibrary.TestFramework.BeginTestCase("DateTimeCtor1");
-
- 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 VerifyDateTimeHelper(int desiredYear, int desiredMonth, int desiredDay)
- {
- bool retVal = true;
-
- DateTime value = new DateTime(desiredYear, desiredMonth, desiredDay);
- m_ErrorNo++;
- if ((desiredYear != value.Year) || (desiredMonth != value.Month) || (desiredDay != value.Day))
- {
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "We can call ctor(System.Int32,System.Int32,System.Int32) to constructor a wrong DateTime instance by using valid value");
- TestLibrary.TestFramework.LogInformation("[LOCAL VARIABLES] desiredYear = " + desiredYear.ToString() + ", desiredMonth = " + desiredMonth.ToString() + ", desiredDay = " + desiredDay.ToString() + ", actualYear = " + value.Year.ToString() + ", actualMonth = " + value.Month.ToString() + ", actualDay = " + value.Day.ToString());
- retVal = false;
- }
-
- m_ErrorNo++;
- if ((value.Hour != 0) || (value.Minute != 0) || (value.Second != 0))
- {
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "We can call ctor(System.Int32,System.Int32,System.Int32) to constructor a wrong DateTime instance by using valid value");
- TestLibrary.TestFramework.LogInformation("[LOCAL VARIABLES] desiredHour = 0, desiredMinute = 0, desiredSecond = 0, actualHour = " + value.Hour.ToString() + ", actualMinute = " + value.Minute.ToString() + ", actualSecond = " + value.Second.ToString());
- retVal = false;
- }
-
- m_ErrorNo++;
- if (value.Kind != DateTimeKind.Unspecified)
- {
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "We can call ctor(System.Int32,System.Int32,System.Int32) to constructor a wrong DateTime instance by using valid value");
- TestLibrary.TestFramework.LogInformation("[LOCAL VARIABLES] desiredKind = DateTimeKind.Unspecified" + ", actualKind = " + value.Kind.ToString());
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimector3.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimector3.cs
deleted file mode 100644
index 8943fa3..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimector3.cs
+++ /dev/null
@@ -1,521 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-
-/// <summary>
-/// ctor(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)
-/// </summary>
-public class DateTimeCtor3
-{
- #region Private Fields
- private int m_ErrorNo = 0;
- #endregion
-
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- retVal = PosTest3() && retVal;
-
- 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: We can call ctor to constructor a new DateTime instance by using valid value");
-
- try
- {
- retVal = retVal && VerifyDateTimeHelper(2006, 8, 28, 16, 7, 43);
- retVal = retVal && VerifyDateTimeHelper(2006, 8, 28, 4, 7, 43);
- retVal = retVal && VerifyDateTimeHelper(2006, 8, 28, 12, 0, 0);
- retVal = retVal && VerifyDateTimeHelper(2006, 8, 28, 12, 56, 56);
- }
- catch (Exception e)
- {
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: We can call ctor to constructor a new DateTime instance by using MAX/MIN values");
-
- try
- {
- retVal = retVal && VerifyDateTimeHelper(1, 1, 1, 16, 7, 43);
- retVal = retVal && VerifyDateTimeHelper(1, 1, 1, 23, 59, 59);
- retVal = retVal && VerifyDateTimeHelper(1, 1, 1, 0, 0, 0);
- retVal = retVal && VerifyDateTimeHelper(1, 1, 1, 0, 59, 59);
-
- retVal = retVal && VerifyDateTimeHelper(9999, 12, 31, 16, 7, 43);
- retVal = retVal && VerifyDateTimeHelper(9999, 12, 31, 23, 59, 59);
- retVal = retVal && VerifyDateTimeHelper(9999, 12, 31, 0, 0, 0);
- retVal = retVal && VerifyDateTimeHelper(9999, 12, 31, 0, 59, 59);
-
- retVal = retVal && VerifyDateTimeHelper(1, 12, 31, 16, 7, 43);
- retVal = retVal && VerifyDateTimeHelper(1, 12, 31, 23, 59, 59);
- retVal = retVal && VerifyDateTimeHelper(1, 12, 31, 0, 0, 0);
- retVal = retVal && VerifyDateTimeHelper(1, 12, 31, 0, 59, 59);
-
- retVal = retVal && VerifyDateTimeHelper(9999, 1, 1, 16, 7, 43);
- retVal = retVal && VerifyDateTimeHelper(9999, 1, 1, 23, 59, 59);
- retVal = retVal && VerifyDateTimeHelper(9999, 1, 1, 0, 0, 0);
- retVal = retVal && VerifyDateTimeHelper(9999, 1, 1, 0, 59, 59);
-
- retVal = retVal && VerifyDateTimeHelper(2000, 1, 31, 16, 7, 43);
- retVal = retVal && VerifyDateTimeHelper(2000, 1, 31, 23, 59, 59);
- retVal = retVal && VerifyDateTimeHelper(2000, 1, 31, 0, 0, 0);
- retVal = retVal && VerifyDateTimeHelper(2000, 1, 31, 0, 59, 59);
-
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 16, 7, 43);
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 23, 59, 59);
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 0, 0, 0);
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 0, 59, 59);
-
- retVal = retVal && VerifyDateTimeHelper(2001, 2, 28, 16, 7, 43);
- retVal = retVal && VerifyDateTimeHelper(2001, 2, 28, 23, 59, 59);
- retVal = retVal && VerifyDateTimeHelper(2001, 2, 28, 0, 0, 0);
- retVal = retVal && VerifyDateTimeHelper(2001, 2, 28, 0, 59, 59);
-
- retVal = retVal && VerifyDateTimeHelper(2001, 4, 30, 16, 7, 43);
- retVal = retVal && VerifyDateTimeHelper(2001, 4, 30, 23, 59, 59);
- retVal = retVal && VerifyDateTimeHelper(2001, 4, 30, 0, 0, 0);
- retVal = retVal && VerifyDateTimeHelper(2001, 4, 30, 0, 59, 59);
- }
- catch (Exception e)
- {
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: We can call ctor to constructor a new DateTime instance by using correct day/month pair");
-
- try
- {
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 16, 7, 43);
- retVal = retVal && VerifyDateTimeHelper(2006, 2, 28, 12, 0, 0);
- retVal = retVal && VerifyDateTimeHelper(2006, 4, 30, 16, 7, 43);
- }
- catch (Exception e)
- {
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-
- #region Nagetive Test Cases
- public bool NegTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: ArgumentOutOfRangeException should be thrown when year is less than 1 or greater than 9999.");
-
- try
- {
- DateTime value = new DateTime(0, 1, 1, 1, 1, 1);
-
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when year is less than 1");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- DateTime value = new DateTime(10000, 1, 1, 1, 1, 1);
-
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when year is greater than 9999");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: ArgumentOutOfRangeException should be thrown when month is less than 1 or greater than 12");
-
- try
- {
- DateTime value = new DateTime(2006, 0, 1, 1, 1, 1);
-
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when month is less than 1");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- DateTime value = new DateTime(2006, 13, 1, 1, 1, 1);
-
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when month is greater than 12");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest3: ArgumentOutOfRangeException should be thrown when day is less than 1 or greater than the number of days in month");
-
- try
- {
- DateTime value = new DateTime(2006, 1, 0, 1, 1, 1);
-
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when day is less than 1");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- DateTime value = new DateTime(2006, 1, 32, 1, 1, 1);
-
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when day is greater than the number of days in month");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- DateTime value = new DateTime(2006, 2, 29, 1, 1, 1);
-
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when day is greater than the number of days in month");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- DateTime value = new DateTime(2006, 4, 31, 1, 1, 1);
-
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when day is greater than the number of days in month");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest4()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest4: ArgumentOutOfRangeException should be thrown when hour is less than 0 or greater than 23");
-
- try
- {
- DateTime value = new DateTime(2006, 1, 1, -1, 1, 1);
-
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when hour is less than 0");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- DateTime value = new DateTime(2006, 1, 1, 24, 1, 1);
-
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when hour is greater than 23");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest5()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest5: ArgumentOutOfRangeException should be thrown when minute is less than 0 or greater than 59");
-
- try
- {
- DateTime value = new DateTime(2006, 1, 1, 1, -1, 1);
-
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown minute year is less than 0");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- DateTime value = new DateTime(2006, 1, 1, 1, 60, 1);
-
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when minute is greater than 59");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest6()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest6: ArgumentOutOfRangeException should be thrown when second is less than 0 or greater than 59");
-
- try
- {
- DateTime value = new DateTime(2006, 1, 1, 1, 1, -1);
-
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when second is less than 0");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- DateTime value = new DateTime(2006, 1, 1, 1, 1, 60);
-
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when second is greater than 59");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- m_ErrorNo++;
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- DateTimeCtor3 test = new DateTimeCtor3();
-
- TestLibrary.TestFramework.BeginTestCase("DateTimeCtor3");
-
- 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 VerifyDateTimeHelper(int desiredYear, int desiredMonth, int desiredDay, int desiredHour, int desiredMinute, int desiredSecond)
- {
- bool retVal = true;
-
- DateTime value = new DateTime(desiredYear, desiredMonth, desiredDay, desiredHour, desiredMinute, desiredSecond);
- m_ErrorNo++;
- if ((desiredYear != value.Year) || (desiredMonth != value.Month) || (desiredDay != value.Day) ||
- (desiredHour != value.Hour) || (desiredMinute != value.Minute) || (desiredSecond != value.Second))
- {
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "We can call ctor(System.Int32,System.Int32,System.Int32) to constructor a wrong DateTime instance by using valid value");
- TestLibrary.TestFramework.LogInformation("[LOCAL VARIABLES] desiredYear = " + desiredYear.ToString() +
- ", desiredMonth = " + desiredMonth.ToString() +
- ", desiredDay = " + desiredDay.ToString() +
- ", desiredHour = " + desiredHour.ToString() +
- ", desiredMinute = " + desiredMinute.ToString() +
- ", desiredSecond = " + desiredSecond.ToString() +
- ", actualYear = " + value.Year.ToString() +
- ", actualMonth = " + value.Month.ToString() +
- ", actualDay = " + value.Day.ToString() +
- ", actualHour = " + value.Hour.ToString() +
- ", actualMinute = " + value.Minute.ToString() +
- ", actualSecond = " + value.Second.ToString());
- retVal = false;
- }
-
- m_ErrorNo++;
- if (value.Kind != DateTimeKind.Unspecified)
- {
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "We can call ctor(System.Int32,System.Int32,System.Int32) to constructor a wrong DateTime instance by using valid value");
- TestLibrary.TestFramework.LogInformation("[LOCAL VARIABLES] desiredKind = DateTimeKind.Unspecified" + ", actualKind = " + value.Kind.ToString());
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimector4.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimector4.cs
deleted file mode 100644
index 4035254..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimector4.cs
+++ /dev/null
@@ -1,638 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-
-/// <summary>
-/// ctor(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.DateTimeKind)
-/// </summary>
-public class DateTimeCtor4
-{
- #region Private Fields
- private int m_ErrorNo = 0;
- #endregion
-
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- retVal = PosTest3() && retVal;
-
- 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 Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: We can call ctor to constructor a new DateTime instance by using valid value");
-
- try
- {
- retVal = retVal && VerifyDateTimeHelper(2006, 8, 28, 16, 7, 43, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2006, 8, 28, 4, 7, 43, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(2006, 8, 28, 12, 0, 0, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2006, 8, 28, 12, 0, 0, DateTimeKind.Unspecified);
- retVal = retVal && VerifyDateTimeHelper(2006, 8, 28, 12, 0, 0, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(2006, 8, 28, 12, 56, 56, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2006, 8, 28, 12, 56, 56, DateTimeKind.Unspecified);
- retVal = retVal && VerifyDateTimeHelper(2006, 8, 28, 12, 56, 56, DateTimeKind.Utc);
- }
- 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: We can call ctor to constructor a new DateTime instance by using MAX/MIN values");
-
- try
- {
- retVal = retVal && VerifyDateTimeHelper(1, 1, 1, 16, 7, 43, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(1, 1, 1, 23, 59, 59, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(1, 1, 1, 0, 0, 0, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(1, 1, 1, 0, 59, 59, DateTimeKind.Local);
-
- retVal = retVal && VerifyDateTimeHelper(1, 1, 1, 16, 7, 43, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(1, 1, 1, 23, 59, 59, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(1, 1, 1, 0, 0, 0, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(1, 1, 1, 0, 59, 59, DateTimeKind.Utc);
-
- retVal = retVal && VerifyDateTimeHelper(1, 1, 1, 0, 0, 0, DateTimeKind.Unspecified);
- retVal = retVal && VerifyDateTimeHelper(1, 1, 1, 0, 59, 59, DateTimeKind.Unspecified);
-
- retVal = retVal && VerifyDateTimeHelper(9999, 12, 31, 16, 7, 43, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(9999, 12, 31, 23, 59, 59, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(9999, 12, 31, 0, 0, 0, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(9999, 12, 31, 0, 59, 59, DateTimeKind.Local);
-
- retVal = retVal && VerifyDateTimeHelper(9999, 12, 31, 16, 7, 43, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(9999, 12, 31, 23, 59, 59, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(9999, 12, 31, 0, 0, 0, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(9999, 12, 31, 0, 59, 59, DateTimeKind.Utc);
-
- retVal = retVal && VerifyDateTimeHelper(9999, 12, 31, 0, 0, 0, DateTimeKind.Unspecified);
- retVal = retVal && VerifyDateTimeHelper(9999, 12, 31, 0, 59, 59, DateTimeKind.Unspecified);
-
- retVal = retVal && VerifyDateTimeHelper(1, 12, 31, 16, 7, 43, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(1, 12, 31, 23, 59, 59, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(1, 12, 31, 0, 0, 0, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(1, 12, 31, 0, 59, 59, DateTimeKind.Local);
-
- retVal = retVal && VerifyDateTimeHelper(1, 12, 31, 16, 7, 43, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(1, 12, 31, 23, 59, 59, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(1, 12, 31, 0, 0, 0, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(1, 12, 31, 0, 59, 59, DateTimeKind.Utc);
-
- retVal = retVal && VerifyDateTimeHelper(1, 12, 31, 0, 0, 0, DateTimeKind.Unspecified);
- retVal = retVal && VerifyDateTimeHelper(1, 12, 31, 0, 59, 59, DateTimeKind.Unspecified);
-
- retVal = retVal && VerifyDateTimeHelper(9999, 1, 1, 16, 7, 43, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(9999, 1, 1, 23, 59, 59, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(9999, 1, 1, 0, 0, 0, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(9999, 1, 1, 0, 59, 59, DateTimeKind.Local);
-
- retVal = retVal && VerifyDateTimeHelper(9999, 1, 1, 16, 7, 43, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(9999, 1, 1, 23, 59, 59, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(9999, 1, 1, 0, 0, 0, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(9999, 1, 1, 0, 59, 59, DateTimeKind.Utc);
-
- retVal = retVal && VerifyDateTimeHelper(9999, 1, 1, 0, 0, 0, DateTimeKind.Unspecified);
- retVal = retVal && VerifyDateTimeHelper(9999, 1, 1, 0, 59, 59, DateTimeKind.Unspecified);
-
- retVal = retVal && VerifyDateTimeHelper(2000, 1, 31, 16, 7, 43, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2000, 1, 31, 23, 59, 59, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2000, 1, 31, 0, 0, 0, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2000, 1, 31, 0, 59, 59, DateTimeKind.Local);
-
- retVal = retVal && VerifyDateTimeHelper(2000, 1, 31, 16, 7, 43, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(2000, 1, 31, 23, 59, 59, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(2000, 1, 31, 0, 0, 0, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(2000, 1, 31, 0, 59, 59, DateTimeKind.Utc);
-
- retVal = retVal && VerifyDateTimeHelper(2000, 1, 31, 0, 0, 0, DateTimeKind.Unspecified);
- retVal = retVal && VerifyDateTimeHelper(2000, 1, 31, 0, 59, 59, DateTimeKind.Unspecified);
-
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 16, 7, 43, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 23, 59, 59, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 0, 0, 0, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 0, 59, 59, DateTimeKind.Local);
-
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 16, 7, 43, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 23, 59, 59, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 0, 0, 0, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 0, 59, 59, DateTimeKind.Utc);
-
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 0, 0, 0, DateTimeKind.Unspecified);
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 0, 59, 59, DateTimeKind.Unspecified);
-
- retVal = retVal && VerifyDateTimeHelper(2001, 2, 28, 16, 7, 43, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2001, 2, 28, 23, 59, 59, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2001, 2, 28, 0, 0, 0, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2001, 2, 28, 0, 59, 59, DateTimeKind.Local);
-
- retVal = retVal && VerifyDateTimeHelper(2001, 2, 28, 16, 7, 43, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(2001, 2, 28, 23, 59, 59, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(2001, 2, 28, 0, 0, 0, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(2001, 2, 28, 0, 59, 59, DateTimeKind.Utc);
-
- retVal = retVal && VerifyDateTimeHelper(2001, 2, 28, 0, 0, 0, DateTimeKind.Unspecified);
- retVal = retVal && VerifyDateTimeHelper(2001, 2, 28, 0, 59, 59, DateTimeKind.Unspecified);
-
- retVal = retVal && VerifyDateTimeHelper(2001, 4, 30, 16, 7, 43, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2001, 4, 30, 23, 59, 59, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2001, 4, 30, 0, 0, 0, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2001, 4, 30, 0, 59, 59, DateTimeKind.Local);
-
- retVal = retVal && VerifyDateTimeHelper(2001, 4, 30, 16, 7, 43, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(2001, 4, 30, 23, 59, 59, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(2001, 4, 30, 0, 0, 0, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(2001, 4, 30, 0, 59, 59, DateTimeKind.Utc);
-
- retVal = retVal && VerifyDateTimeHelper(2001, 4, 30, 0, 0, 0, DateTimeKind.Unspecified);
- retVal = retVal && VerifyDateTimeHelper(2001, 4, 30, 0, 59, 59, DateTimeKind.Unspecified);
- }
- 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: We can call ctor to constructor a new DateTime instance by using correct day/month pair");
-
- try
- {
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 16, 7, 43, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 16, 7, 43, DateTimeKind.Unspecified);
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 16, 7, 43, DateTimeKind.Utc);
-
- retVal = retVal && VerifyDateTimeHelper(2006, 2, 28, 12, 0, 0, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2006, 2, 28, 12, 0, 0, DateTimeKind.Unspecified);
- retVal = retVal && VerifyDateTimeHelper(2006, 2, 28, 12, 0, 0, DateTimeKind.Utc);
-
- retVal = retVal && VerifyDateTimeHelper(2006, 4, 30, 16, 7, 43, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2006, 4, 30, 16, 7, 43, DateTimeKind.Unspecified);
- retVal = retVal && VerifyDateTimeHelper(2006, 4, 30, 16, 7, 43, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(2006, 4, 30, 16, 7, 43, DateTimeKind.Utc | DateTimeKind.Unspecified);
- retVal = retVal && VerifyDateTimeHelper(2006, 4, 30, 16, 7, 43, DateTimeKind.Local | DateTimeKind.Unspecified);
- }
- 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: ArgumentOutOfRangeException should be thrown when year is less than 1 or greater than 9999.");
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(0, 1, 1, 1, 1, 1, DateTimeKind.Local);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when year is less than 1");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("101.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(10000, 1, 1, 1, 1, 1, DateTimeKind.Utc);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when year is greater than 9999");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("101.1", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: ArgumentOutOfRangeException should be thrown when month is less than 1 or greater than 12");
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 0, 1, 1, 1, 1, DateTimeKind.Utc);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when month is less than 1");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 13, 1, 1, 1, 1, DateTimeKind.Local);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when month is greater than 12");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102.1", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest3: ArgumentOutOfRangeException should be thrown when day is less than 1 or greater than the number of days in month");
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 1, 0, 1, 1, 1, DateTimeKind.Local);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when day is less than 1");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("103.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 1, 32, 1, 1, 1, DateTimeKind.Utc);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when day is greater than the number of days in month");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("103.1", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 2, 29, 1, 1, 1, DateTimeKind.Utc);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when day is greater than the number of days in month");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("103.2", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 4, 31, 1, 1, 1, DateTimeKind.Local);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when day is greater than the number of days in month");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("103.3", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest4()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest4: ArgumentOutOfRangeException should be thrown when hour is less than 0 or greater than 23");
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 1, 1, -1, 1, 1, DateTimeKind.Local);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when hour is less than 0");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("104.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 1, 1, 24, 1, 1, DateTimeKind.Local);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when hour is greater than 23");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("104.1", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest5()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest5: ArgumentOutOfRangeException should be thrown when minute is less than 0 or greater than 59");
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 1, 1, 1, -1, 1, DateTimeKind.Local);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown minute year is less than 0");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("105.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 1, 1, 1, 60, 1, DateTimeKind.Local);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when minute is greater than 59");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("105.1", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest6()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest6: ArgumentOutOfRangeException should be thrown when second is less than 0 or greater than 59");
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 1, 1, 1, 1, -1, DateTimeKind.Utc);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when second is less than 0");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("106.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 1, 1, 1, 1, 60, DateTimeKind.Local);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when second is greater than 59");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("106.1", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest7()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest7: ArgumentException should be thrown when kind is not one of the DateTimeKind values.");
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 1, 1, 1, 1, 1, DateTimeKind.Utc | DateTimeKind.Local);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentException is not thrown when kind is DateTimeKind.Utc | DateTimeKind.Local");
- retVal = false;
- }
- catch (ArgumentException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("107.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 1, 1, 1, 1, 1, (DateTimeKind)(-1));
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentException is not thrown when kind is DateTimeKind.Local | DateTimeKind.Unspecified");
- retVal = false;
- }
- catch (ArgumentException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("107.1", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- DateTimeCtor4 test = new DateTimeCtor4();
-
- TestLibrary.TestFramework.BeginTestCase("DateTimeCtor4");
-
- 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 VerifyDateTimeHelper(int desiredYear,
- int desiredMonth,
- int desiredDay,
- int desiredHour,
- int desiredMinute,
- int desiredSecond,
- DateTimeKind desiredKind)
- {
- bool retVal = true;
-
- DateTime value = new DateTime(desiredYear, desiredMonth, desiredDay,
- desiredHour, desiredMinute, desiredSecond, desiredKind);
-
- m_ErrorNo++;
- if ((desiredYear != value.Year) ||
- (desiredMonth != value.Month) ||
- (desiredDay != value.Day) ||
- (desiredHour != value.Hour) ||
- (desiredMinute != value.Minute) ||
- (desiredSecond != value.Second) ||
- (desiredKind != value.Kind))
- {
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Calling ctor constructors a wrong DateTime instance by using valid value");
- TestLibrary.TestFramework.LogInformation("[LOCAL VARIABLES] desiredYear = " + desiredYear.ToString() +
- ", desiredMonth = " + desiredMonth.ToString() +
- ", desiredDay = " + desiredDay.ToString() +
- ", desiredHour = " + desiredHour.ToString() +
- ", desiredMinute = " + desiredMinute.ToString() +
- ", desiredSecond = " + desiredSecond.ToString() +
- ", desiredKind = " + desiredKind.ToString() +
- ", actualYear = " + value.Year.ToString() +
- ", actualMonth = " + value.Month.ToString() +
- ", actualDay = " + value.Day.ToString() +
- ", actualHour = " + value.Hour.ToString() +
- ", actualMinute = " + value.Minute.ToString() +
- ", actualSecond = " + value.Second.ToString() +
- ", actualKind = " + value.Kind.ToString());
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimector6.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimector6.cs
deleted file mode 100644
index 8f644bd..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimector6.cs
+++ /dev/null
@@ -1,570 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-
-/// <summary>
-/// ctor(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)
-/// </summary>
-public class DateTimeCtor6
-{
- #region Private Fields
- private int m_ErrorNo = 0;
- #endregion
-
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- retVal = PosTest3() && retVal;
-
- 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 Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: We can call ctor to constructor a new DateTime instance by using valid value");
-
- try
- {
- retVal = retVal && VerifyDateTimeHelper(2006, 8, 28, 16, 7, 43, 500);
- retVal = retVal && VerifyDateTimeHelper(2006, 8, 28, 12, 0, 0, 500);
- retVal = retVal && VerifyDateTimeHelper(2006, 8, 28, 12, 56, 56, 900);
- }
- 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: We can call ctor to constructor a new DateTime instance by using MAX/MIN values");
-
- try
- {
- retVal = retVal && VerifyDateTimeHelper(1, 1, 1, 16, 7, 43, 500);
- retVal = retVal && VerifyDateTimeHelper(1, 1, 1, 23, 59, 59, 999);
- retVal = retVal && VerifyDateTimeHelper(1, 1, 1, 0, 0, 0, 0);
- retVal = retVal && VerifyDateTimeHelper(1, 1, 1, 0, 59, 59, 999);
-
- retVal = retVal && VerifyDateTimeHelper(9999, 12, 31, 16, 7, 43, 500);
- retVal = retVal && VerifyDateTimeHelper(9999, 12, 31, 23, 59, 59, 999);
- retVal = retVal && VerifyDateTimeHelper(9999, 12, 31, 0, 0, 0, 999);
- retVal = retVal && VerifyDateTimeHelper(9999, 12, 31, 0, 59, 59, 0);
-
- retVal = retVal && VerifyDateTimeHelper(1, 12, 31, 16, 7, 43, 500);
- retVal = retVal && VerifyDateTimeHelper(1, 12, 31, 23, 59, 59, 999);
- retVal = retVal && VerifyDateTimeHelper(1, 12, 31, 0, 0, 0, 999);
- retVal = retVal && VerifyDateTimeHelper(1, 12, 31, 0, 59, 59, 0);
-
- retVal = retVal && VerifyDateTimeHelper(9999, 1, 1, 16, 7, 43, 500);
- retVal = retVal && VerifyDateTimeHelper(9999, 1, 1, 23, 59, 59, 999);
- retVal = retVal && VerifyDateTimeHelper(9999, 1, 1, 0, 0, 0, 0);
- retVal = retVal && VerifyDateTimeHelper(9999, 1, 1, 0, 59, 59, 999);
-
- retVal = retVal && VerifyDateTimeHelper(2000, 1, 31, 16, 7, 43, 500);
- retVal = retVal && VerifyDateTimeHelper(2000, 1, 31, 23, 59, 59, 999);
- retVal = retVal && VerifyDateTimeHelper(2000, 1, 31, 0, 0, 0, 0);
- retVal = retVal && VerifyDateTimeHelper(2000, 1, 31, 0, 59, 59, 999);
-
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 16, 7, 43, 500);
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 23, 59, 59, 999);
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 0, 0, 0, 999);
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 0, 59, 59, 0);
-
- retVal = retVal && VerifyDateTimeHelper(2001, 2, 28, 16, 7, 43, 500);
- retVal = retVal && VerifyDateTimeHelper(2001, 2, 28, 23, 59, 59, 999);
- retVal = retVal && VerifyDateTimeHelper(2001, 2, 28, 0, 0, 0, 0);
- retVal = retVal && VerifyDateTimeHelper(2001, 2, 28, 0, 59, 59, 999);
-
- retVal = retVal && VerifyDateTimeHelper(2001, 4, 30, 16, 7, 43, 500);
- retVal = retVal && VerifyDateTimeHelper(2001, 4, 30, 23, 59, 59, 999);
- retVal = retVal && VerifyDateTimeHelper(2001, 4, 30, 0, 0, 0, 999);
- retVal = retVal && VerifyDateTimeHelper(2001, 4, 30, 0, 59, 59, 0);
- }
- 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: We can call ctor to constructor a new DateTime instance by using correct day/month pair");
-
- try
- {
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 16, 7, 43, 500);
- retVal = retVal && VerifyDateTimeHelper(2006, 2, 28, 12, 0, 0, 0);
- retVal = retVal && VerifyDateTimeHelper(2006, 4, 30, 16, 7, 43, 100);
- }
- 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
-
- #region Nagetive Test Cases
- public bool NegTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: ArgumentOutOfRangeException should be thrown when year is less than 1 or greater than 9999.");
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(0, 1, 1, 1, 1, 1, 1);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when year is less than 1");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("101.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(10000, 1, 1, 1, 1, 1, 1);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when year is greater than 9999");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("101.1", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: ArgumentOutOfRangeException should be thrown when month is less than 1 or greater than 12");
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 0, 1, 1, 1, 1, 1);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when month is less than 1");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 13, 1, 1, 1, 1, 1);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when month is greater than 12");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102.1", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest3: ArgumentOutOfRangeException should be thrown when day is less than 1 or greater than the number of days in month");
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 1, 0, 1, 1, 1, 1);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when day is less than 1");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("103.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 1, 32, 1, 1, 1, 1);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when day is greater than the number of days in month");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("103.1", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 2, 29, 1, 1, 1, 1);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when day is greater than the number of days in month");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("103.2", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 4, 31, 1, 1, 1, 1);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when day is greater than the number of days in month");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("103.3", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest4()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest4: ArgumentOutOfRangeException should be thrown when hour is less than 0 or greater than 23");
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 1, 1, -1, 1, 1, 1);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when hour is less than 0");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("104.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 1, 1, 24, 1, 1, 1);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when hour is greater than 23");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("104.1", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest5()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest5: ArgumentOutOfRangeException should be thrown when minute is less than 0 or greater than 59");
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 1, 1, 1, -1, 1, 1);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown minute year is less than 0");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("105.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 1, 1, 1, 60, 1, 1);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when minute is greater than 59");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("105.1", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest6()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest6: ArgumentOutOfRangeException should be thrown when second is less than 0 or greater than 59");
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 1, 1, 1, 1, -1, 1);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when second is less than 0");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("106.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 1, 1, 1, 1, 60, 1);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when second is greater than 59");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("106.1", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest7()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest7: ArgumentOutOfRangeException should be thrown when millisecond is less than 0 or greater than 999");
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 1, 1, 1, 1, 1, -1);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when millisecond is less than 0");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("107.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 1, 1, 1, 1, 1, 1000);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when millisecond is greater than 999");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("107.1", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
- #endregion
-
- public static int Main()
- {
- DateTimeCtor6 test = new DateTimeCtor6();
-
- TestLibrary.TestFramework.BeginTestCase("DateTimeCtor6");
-
- 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 VerifyDateTimeHelper(int desiredYear,
- int desiredMonth,
- int desiredDay,
- int desiredHour,
- int desiredMinute,
- int desiredSecond,
- int desiredMillisecond)
- {
- bool retVal = true;
-
- DateTime value = new DateTime(desiredYear, desiredMonth, desiredDay,
- desiredHour, desiredMinute, desiredSecond, desiredMillisecond);
-
- m_ErrorNo++;
- if ((desiredYear != value.Year) ||
- (desiredMonth != value.Month) ||
- (desiredDay != value.Day) ||
- (desiredHour != value.Hour) ||
- (desiredMinute != value.Minute) ||
- (desiredSecond != value.Second) ||
- (desiredMillisecond != value.Millisecond) )
- {
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Calling ctor constructors a wrong DateTime instance by using valid value");
- TestLibrary.TestFramework.LogInformation("[LOCAL VARIABLES] desiredYear = " + desiredYear.ToString() +
- ", desiredMonth = " + desiredMonth.ToString() +
- ", desiredDay = " + desiredDay.ToString() +
- ", desiredHour = " + desiredHour.ToString() +
- ", desiredMinute = " + desiredMinute.ToString() +
- ", desiredSecond = " + desiredSecond.ToString() +
- ", desiredMillisecond = " + desiredMillisecond.ToString() +
- ", actualYear = " + value.Year.ToString() +
- ", actualMonth = " + value.Month.ToString() +
- ", actualDay = " + value.Day.ToString() +
- ", actualHour = " + value.Hour.ToString() +
- ", actualMinute = " + value.Minute.ToString() +
- ", actualSecond = " + value.Second.ToString() +
- ", actualMillisecond = " + value.Millisecond.ToString());
- retVal = false;
- }
-
- m_ErrorNo++;
- if (value.Kind != DateTimeKind.Unspecified)
- {
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Calling ctor constructors a wrong DateTime instance by using valid value");
- TestLibrary.TestFramework.LogInformation("[LOCAL VARIABLES] desiredKind = DateTimeKind.Unspecified" + ", actualKind = " + value.Kind.ToString());
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimector7.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimector7.cs
deleted file mode 100644
index 3e83966..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimector7.cs
+++ /dev/null
@@ -1,689 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-
-/// <summary>
-/// ctor(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.DateTimeKind)
-/// </summary>
-public class DateTimeCtor7
-{
- #region Private Fields
- private int m_ErrorNo = 0;
- #endregion
-
- #region Public Methods
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- retVal = PosTest3() && retVal;
-
- TestLibrary.TestFramework.LogInformation("[Negative]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
- retVal = NegTest4() && retVal;
- retVal = NegTest5() && retVal;
- retVal = NegTest6() && retVal;
- retVal = NegTest7() && retVal;
- retVal = NegTest8() && retVal;
-
- return retVal;
- }
-
- #region Positive Test Cases
- public bool PosTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: We can call ctor to constructor a new DateTime instance by using valid value");
-
- try
- {
- retVal = retVal && VerifyDateTimeHelper(2006, 8, 28, 16, 7, 43, 500, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2006, 8, 28, 4, 7, 43, 100, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(2006, 8, 28, 12, 0, 0, 1, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2006, 8, 28, 12, 0, 0, 998, DateTimeKind.Unspecified);
- retVal = retVal && VerifyDateTimeHelper(2006, 8, 28, 12, 0, 0, 2, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(2006, 8, 28, 12, 56, 56, 100, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2006, 8, 28, 12, 56, 56, 200, DateTimeKind.Unspecified);
- retVal = retVal && VerifyDateTimeHelper(2006, 8, 28, 12, 56, 56, 300, DateTimeKind.Utc);
- }
- 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: We can call ctor to constructor a new DateTime instance by using MAX/MIN values");
-
- try
- {
- retVal = retVal && VerifyDateTimeHelper(1, 1, 1, 16, 7, 43, 0, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(1, 1, 1, 23, 59, 59, 999, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(1, 1, 1, 0, 59, 59, 0, DateTimeKind.Local);
-
- retVal = retVal && VerifyDateTimeHelper(1, 1, 1, 16, 7, 43, 500, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(1, 1, 1, 23, 59, 59, 999, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(1, 1, 1, 0, 59, 59, 59, DateTimeKind.Utc);
-
- retVal = retVal && VerifyDateTimeHelper(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified);
- retVal = retVal && VerifyDateTimeHelper(1, 1, 1, 0, 59, 59, 99, DateTimeKind.Unspecified);
-
- retVal = retVal && VerifyDateTimeHelper(9999, 12, 31, 16, 7, 43, 500, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(9999, 12, 31, 23, 59, 59, 999, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(9999, 12, 31, 0, 0, 0, 0, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(9999, 12, 31, 0, 59, 59, 0, DateTimeKind.Local);
-
- retVal = retVal && VerifyDateTimeHelper(9999, 12, 31, 16, 7, 43, 1, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(9999, 12, 31, 23, 59, 59, 998, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(9999, 12, 31, 0, 0, 0, 999, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(9999, 12, 31, 0, 59, 59, 0, DateTimeKind.Utc);
-
- retVal = retVal && VerifyDateTimeHelper(9999, 12, 31, 0, 0, 0, 1, DateTimeKind.Unspecified);
- retVal = retVal && VerifyDateTimeHelper(9999, 12, 31, 0, 59, 59, 999, DateTimeKind.Unspecified);
-
- retVal = retVal && VerifyDateTimeHelper(1, 12, 31, 16, 7, 43, 1, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(1, 12, 31, 23, 59, 59, 998, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(1, 12, 31, 0, 0, 0, 0, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(1, 12, 31, 0, 59, 59, 999, DateTimeKind.Local);
-
- retVal = retVal && VerifyDateTimeHelper(1, 12, 31, 16, 7, 43, 1, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(1, 12, 31, 23, 59, 59, 998, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(1, 12, 31, 0, 0, 0, 0, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(1, 12, 31, 0, 59, 59, 999, DateTimeKind.Utc);
-
- retVal = retVal && VerifyDateTimeHelper(1, 12, 31, 0, 0, 0, 0, DateTimeKind.Unspecified);
- retVal = retVal && VerifyDateTimeHelper(1, 12, 31, 0, 59, 59, 999, DateTimeKind.Unspecified);
-
- retVal = retVal && VerifyDateTimeHelper(9999, 1, 1, 16, 7, 43, 1, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(9999, 1, 1, 23, 59, 59, 998, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(9999, 1, 1, 0, 0, 0, 0, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(9999, 1, 1, 0, 59, 59, 999, DateTimeKind.Local);
-
- retVal = retVal && VerifyDateTimeHelper(9999, 1, 1, 16, 7, 43, 1, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(9999, 1, 1, 23, 59, 59, 998, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(9999, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(9999, 1, 1, 0, 59, 59, 999, DateTimeKind.Utc);
-
- retVal = retVal && VerifyDateTimeHelper(9999, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified);
- retVal = retVal && VerifyDateTimeHelper(9999, 1, 1, 0, 59, 59, 999, DateTimeKind.Unspecified);
-
- retVal = retVal && VerifyDateTimeHelper(2000, 1, 31, 16, 7, 43, 1, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2000, 1, 31, 23, 59, 59, 998, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2000, 1, 31, 0, 0, 0, 0, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2000, 1, 31, 0, 59, 59, 999, DateTimeKind.Local);
-
- retVal = retVal && VerifyDateTimeHelper(2000, 1, 31, 16, 7, 43, 1, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(2000, 1, 31, 23, 59, 59, 998, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(2000, 1, 31, 0, 0, 0, 0, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(2000, 1, 31, 0, 59, 59, 999, DateTimeKind.Utc);
-
- retVal = retVal && VerifyDateTimeHelper(2000, 1, 31, 0, 0, 0, 0, DateTimeKind.Unspecified);
- retVal = retVal && VerifyDateTimeHelper(2000, 1, 31, 0, 59, 59, 999, DateTimeKind.Unspecified);
-
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 16, 7, 43, 1, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 23, 59, 59, 998, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 0, 0, 0, 0, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 0, 59, 59, 999, DateTimeKind.Local);
-
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 16, 7, 43, 1, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 23, 59, 59, 998, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 0, 0, 0, 0, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 0, 59, 59, 999, DateTimeKind.Utc);
-
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 0, 0, 0, 0, DateTimeKind.Unspecified);
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 0, 59, 59, 999, DateTimeKind.Unspecified);
-
- retVal = retVal && VerifyDateTimeHelper(2001, 2, 28, 16, 7, 43, 1, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2001, 2, 28, 23, 59, 59, 998, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2001, 2, 28, 0, 0, 0, 0, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2001, 2, 28, 0, 59, 59, 999, DateTimeKind.Local);
-
- retVal = retVal && VerifyDateTimeHelper(2001, 2, 28, 16, 7, 43, 1, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(2001, 2, 28, 23, 59, 59, 998, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(2001, 2, 28, 0, 0, 0, 0, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(2001, 2, 28, 0, 59, 59, 999, DateTimeKind.Utc);
-
- retVal = retVal && VerifyDateTimeHelper(2001, 2, 28, 0, 0, 0, 0, DateTimeKind.Unspecified);
- retVal = retVal && VerifyDateTimeHelper(2001, 2, 28, 0, 59, 59, 999, DateTimeKind.Unspecified);
-
- retVal = retVal && VerifyDateTimeHelper(2001, 4, 30, 16, 7, 43, 1, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2001, 4, 30, 23, 59, 59, 998, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2001, 4, 30, 0, 0, 0, 0, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2001, 4, 30, 0, 59, 59, 999, DateTimeKind.Local);
-
- retVal = retVal && VerifyDateTimeHelper(2001, 4, 30, 16, 7, 43, 1, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(2001, 4, 30, 23, 59, 59, 998, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(2001, 4, 30, 0, 0, 0, 0, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(2001, 4, 30, 0, 59, 59, 999, DateTimeKind.Utc);
-
- retVal = retVal && VerifyDateTimeHelper(2001, 4, 30, 0, 0, 0, 0, DateTimeKind.Unspecified);
- retVal = retVal && VerifyDateTimeHelper(2001, 4, 30, 0, 59, 59, 999, DateTimeKind.Unspecified);
- }
- 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: We can call ctor to constructor a new DateTime instance by using correct day/month pair");
-
- try
- {
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 16, 7, 43, 1, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 16, 7, 43, 999, DateTimeKind.Unspecified);
- retVal = retVal && VerifyDateTimeHelper(2000, 2, 29, 16, 7, 43, 998, DateTimeKind.Utc);
-
- retVal = retVal && VerifyDateTimeHelper(2006, 2, 28, 12, 0, 0, 0, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2006, 2, 28, 12, 0, 0, 0, DateTimeKind.Unspecified);
- retVal = retVal && VerifyDateTimeHelper(2006, 2, 28, 12, 0, 0, 0, DateTimeKind.Utc);
-
- retVal = retVal && VerifyDateTimeHelper(2006, 4, 30, 16, 7, 43, 1, DateTimeKind.Local);
- retVal = retVal && VerifyDateTimeHelper(2006, 4, 30, 16, 7, 43, 1, DateTimeKind.Unspecified);
- retVal = retVal && VerifyDateTimeHelper(2006, 4, 30, 16, 7, 43, 1, DateTimeKind.Utc);
- retVal = retVal && VerifyDateTimeHelper(2006, 4, 30, 16, 7, 43, 1, DateTimeKind.Utc | DateTimeKind.Unspecified);
- retVal = retVal && VerifyDateTimeHelper(2006, 4, 30, 16, 7, 43, 1, DateTimeKind.Local | DateTimeKind.Unspecified);
- }
- 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: ArgumentOutOfRangeException should be thrown when year is less than 1 or greater than 9999.");
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(0, 1, 1, 1, 1, 1, 1, DateTimeKind.Local);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when year is less than 1");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("101.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(10000, 1, 1, 1, 1, 1, 1, DateTimeKind.Utc);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when year is greater than 9999");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("101.1", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: ArgumentOutOfRangeException should be thrown when month is less than 1 or greater than 12");
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 0, 1, 1, 1, 1, 1, DateTimeKind.Utc);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when month is less than 1");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 13, 1, 1, 1, 1, 1, DateTimeKind.Local);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when month is greater than 12");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102.1", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest3: ArgumentOutOfRangeException should be thrown when day is less than 1 or greater than the number of days in month");
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 1, 0, 1, 1, 1, 1, DateTimeKind.Local);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when day is less than 1");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("103.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 1, 32, 1, 1, 1, 1, DateTimeKind.Utc);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when day is greater than the number of days in month");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("103.1", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 2, 29, 1, 1, 1, 1, DateTimeKind.Utc);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when day is greater than the number of days in month");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("103.2", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 4, 31, 1, 1, 1, 1, DateTimeKind.Local);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when day is greater than the number of days in month");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("103.3", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest4()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest4: ArgumentOutOfRangeException should be thrown when hour is less than 0 or greater than 23");
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 1, 1, -1, 1, 1, 1, DateTimeKind.Local);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when hour is less than 0");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("104.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 1, 1, 24, 1, 1, 1, DateTimeKind.Local);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when hour is greater than 23");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("104.1", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest5()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest5: ArgumentOutOfRangeException should be thrown when minute is less than 0 or greater than 59");
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 1, 1, 1, -1, 1, 1, DateTimeKind.Local);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown minute year is less than 0");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("105.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 1, 1, 1, 60, 1, 1, DateTimeKind.Local);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when minute is greater than 59");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("105.1", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest6()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest6: ArgumentOutOfRangeException should be thrown when second is less than 0 or greater than 59");
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 1, 1, 1, 1, -1, 1, DateTimeKind.Utc);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when second is less than 0");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("106.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 1, 1, 1, 1, 60, 1, DateTimeKind.Local);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when second is greater than 59");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("106.1", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest7()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest7: ArgumentException should be thrown when kind is not one of the DateTimeKind values.");
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 1, 1, 1, 1, 1, 1, DateTimeKind.Utc | DateTimeKind.Local);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentException is not thrown when kind is DateTimeKind.Utc | DateTimeKind.Local");
- retVal = false;
- }
- catch (ArgumentException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("107.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 1, 1, 1, 1, 1, 1, (DateTimeKind)(-1));
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentException is not thrown when kind is DateTimeKind.Local | DateTimeKind.Unspecified");
- retVal = false;
- }
- catch (ArgumentException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("107.1", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest8()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest8: ArgumentOutOfRangeException should be thrown when millisecond is less than 0 or greater than 999");
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 1, 1, 1, 1, 1, -1, DateTimeKind.Utc);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when millisecond is less than 0");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("108.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- try
- {
- m_ErrorNo++;
- DateTime value = new DateTime(2006, 1, 1, 1, 1, 1, 1000, DateTimeKind.Local);
-
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "ArgumentOutOfRangeException is not thrown when millisecond is greater than 999");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException)
- {
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("108.1", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- DateTimeCtor7 test = new DateTimeCtor7();
-
- TestLibrary.TestFramework.BeginTestCase("DateTimeCtor7");
-
- 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 VerifyDateTimeHelper(int desiredYear,
- int desiredMonth,
- int desiredDay,
- int desiredHour,
- int desiredMinute,
- int desiredSecond,
- int desiredMillisecond,
- DateTimeKind desiredKind)
- {
- bool retVal = true;
-
- DateTime value = new DateTime(desiredYear, desiredMonth, desiredDay,
- desiredHour, desiredMinute, desiredSecond, desiredMillisecond, desiredKind);
-
- m_ErrorNo++;
- if ((desiredYear != value.Year) ||
- (desiredMonth != value.Month) ||
- (desiredDay != value.Day) ||
- (desiredHour != value.Hour) ||
- (desiredMinute != value.Minute) ||
- (desiredSecond != value.Second) ||
- (desiredMillisecond != value.Millisecond) ||
- (desiredKind != value.Kind))
- {
- TestLibrary.TestFramework.LogError(m_ErrorNo.ToString(), "Calling ctor constructors a wrong DateTime instance by using valid value");
- TestLibrary.TestFramework.LogInformation("[LOCAL VARIABLES] desiredYear = " + desiredYear.ToString() +
- ", desiredMonth = " + desiredMonth.ToString() +
- ", desiredDay = " + desiredDay.ToString() +
- ", desiredHour = " + desiredHour.ToString() +
- ", desiredMinute = " + desiredMinute.ToString() +
- ", desiredSecond = " + desiredSecond.ToString() +
- ", desiredMillisecond = " + desiredMillisecond.ToString() +
- ", desiredKind = " + desiredKind.ToString() +
- ", actualYear = " + value.Year.ToString() +
- ", actualMonth = " + value.Month.ToString() +
- ", actualDay = " + value.Day.ToString() +
- ", actualHour = " + value.Hour.ToString() +
- ", actualMinute = " + value.Minute.ToString() +
- ", actualSecond = " + value.Second.ToString() +
- ", actualMillisecond = " + value.Millisecond.ToString() +
- ", actualKind = " + value.Kind.ToString());
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
-}
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimedate.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimedate.cs
deleted file mode 100644
index cfa1db7..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimedate.cs
+++ /dev/null
@@ -1,144 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-using System.Collections.Generic;
-using System.Threading;
-using System.Globalization;
-
-/// <summary>
-/// System.DateTime.Date
-/// </summary>
-public class DateTimeDate
-{
- public static int Main(string[] args)
- {
- DateTimeDate date = new DateTimeDate();
- TestLibrary.TestFramework.BeginTestCase("Testing System.DateTime.Date property...");
-
- if (date.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- retVal = PosTest3() && retVal;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Verify Date property when the created DateTime instance just is assigned to year,month and day...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- DateTime myDateTime = new DateTime(1978, 08, 29);
- DateTime myDate = myDateTime.Date;
-
- if (myDateTime.Year != myDate.Year || myDateTime.Month != myDate.Month || myDateTime.Day != myDate.Day)
- {
- TestLibrary.TestFramework.LogError("001", "The Date is wrong!");
- retVal = false;
- }
- else
- {
- if (myDate.Hour != 0 || myDate.Minute != 0 || myDate.Second != 0)
- {
- TestLibrary.TestFramework.LogError("002", "The initial time value is not equal to minnight!");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003", "Unexpected exception occurs: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Verify Date property when created DateTime instance's time value is less than 12:00:00...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- DateTime myDateTime = new DateTime(1978, 08, 29, 03, 00, 00);
- DateTime myDate = myDateTime.Date;
-
- if (myDate.Year != myDateTime.Year || myDate.Month != myDateTime.Month || myDate.Day != myDateTime.Day)
- {
- TestLibrary.TestFramework.LogError("004", "The Date is wrong!");
- retVal = false;
- }
- else if (myDate.Hour != 0 || myDate.Minute != 0 || myDate.Second != 0)
- {
- TestLibrary.TestFramework.LogError("005", "The initial time value is not equal to minnight!");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Verify Date property when created DateTime instance's time value is more than 12:00:00...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- DateTime myDateTime = new DateTime(1978, 08, 29, 23, 00, 00);
- DateTime myDate = myDateTime.Date;
-
- if (myDateTime.Year != myDate.Year || myDateTime.Month != myDateTime.Month || myDateTime.Day != myDate.Day)
- {
- TestLibrary.TestFramework.LogError("007", "The Date is wrong!");
- retVal = false;
- }
- else if (myDate.Hour != 0 || myDate.Minute != 0 || myDate.Second != 0)
- {
- TestLibrary.TestFramework.LogError("008", "The initial time value is not equal to minnight!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("009", "Unexpected exception occurs: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-}
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimegethashcode.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimegethashcode.cs
deleted file mode 100644
index e5d5c07..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimegethashcode.cs
+++ /dev/null
@@ -1,141 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-
-/// <summary>
-/// GetHashCode
-/// </summary>
-public class DateTimeGetHashCode
-{
- #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 GetHashCode on a valid instance");
-
- try
- {
- DateTime t = new DateTime(2006, 9, 25, 14, 15, 59, 999);
- int hashCode1 = t.GetHashCode();
- int hashCode2 = t.GetHashCode();
- if (hashCode1 != hashCode2)
- {
- TestLibrary.TestFramework.LogError("001.1", "Call GetHashCode on a valid instance twice does not return the same hash code");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] hashCode1 = " + hashCode1 + ", hashCode2 = " + hashCode2);
- 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 GetHashCode on a boundary value");
-
- try
- {
- DateTime t = DateTime.MaxValue;
- int hashCode1 = t.GetHashCode();
- int hashCode2 = t.GetHashCode();
- if (hashCode1 != hashCode2)
- {
- TestLibrary.TestFramework.LogError("002.1", "Call GetHashCode on a valid instance twice does not return the same hash code");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] hashCode1 = " + hashCode1 + ", hashCode2 = " + hashCode2);
- retVal = false;
- }
-
- t = DateTime.MinValue;
- hashCode1 = t.GetHashCode();
- hashCode2 = t.GetHashCode();
- if (hashCode1 != hashCode2)
- {
- TestLibrary.TestFramework.LogError("002.2", "Call GetHashCode on a valid instance twice does not return the same hash code");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] hashCode1 = " + hashCode1 + ", hashCode2 = " + hashCode2);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: Hash code should be the same for the same date time");
-
- try
- {
- DateTime t1 = new DateTime(2006, 9, 25, 14, 15, 59, 999);
- DateTime t2 = new DateTime(2006, 9, 25, 14, 15, 59, 999);
- int hashCode1 = t1.GetHashCode();
- int hashCode2 = t2.GetHashCode();
- if (hashCode1 != hashCode2)
- {
- TestLibrary.TestFramework.LogError("003.1", "Call GetHashCode on a valid instance twice does not return the same hash code");
- TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLES] hashCode1 = " + hashCode1 + ", hashCode2 = " + hashCode2);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("003.0", "Unexpected exception: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
- #endregion
- #endregion
-
- public static int Main()
- {
- DateTimeGetHashCode test = new DateTimeGetHashCode();
-
- TestLibrary.TestFramework.BeginTestCase("DateTimeGetHashCode");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimehour.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimehour.cs
deleted file mode 100644
index b7d367f..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimehour.cs
+++ /dev/null
@@ -1,99 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-using System.Collections;
-using System.Threading;
-using System.Globalization;
-
-
-/// <summary>
-/// System.DateTime.Hour
-/// </summary>
-public class DateTimeHour
-{
- public static int Main(string[] args)
- {
- DateTimeHour hour = new DateTimeHour();
- TestLibrary.TestFramework.BeginTestCase("Testing System.DateTime.Hour property...");
-
- if (hour.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Verify DateTime.Hour property when DateTime instance's hour is assigned...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- DateTime myDateTime = new DateTime(0978, 08, 29, 03, 00, 00);
- int hour = myDateTime.Hour;
-
- if (hour != 3)
- {
- TestLibrary.TestFramework.LogError("001","The hour is not correct!");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002","Unexpected exception occurs: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Verify DateTime.Hour property When DateTime instance is only assigned year month and day...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- DateTime myDateTime = new DateTime(1978,08,29);
- int hour = myDateTime.Hour;
-
- if (hour != 0)
- {
- TestLibrary.TestFramework.LogError("003","The hour is not zero when no value is assigned at init time!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("", "");
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-}
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimekind.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimekind.cs
deleted file mode 100644
index b797d03..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimekind.cs
+++ /dev/null
@@ -1,221 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-using System.Collections.Generic;
-using System.Threading;
-using System.Globalization;
-
-
-/// <summary>
-/// System.DateTime.Kind
-/// </summary>
-public class DateTimeKind
-{
- public static int Main(string[] args)
- {
- DateTimeKind kind = new DateTimeKind();
- TestLibrary.TestFramework.BeginScenario("Testing System.DateTime.Kind property...");
-
- if (kind.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.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("Check Kind property when create an instance using Utc...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- DateTime myDateTime = new DateTime(1978, 08, 29, 03, 00, 00, System.DateTimeKind.Utc);
-
- if (myDateTime.Kind != System.DateTimeKind.Utc)
- {
- TestLibrary.TestFramework.LogError("001", "The kind 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 PosTest2()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Check Kind property when create an instance using local...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- DateTime myDateTime = new DateTime(1978, 08, 29, 03, 00, 00, System.DateTimeKind.Local);
-
- if (myDateTime.Kind != System.DateTimeKind.Local)
- {
- TestLibrary.TestFramework.LogError("003", "The kind is wrong!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Check Kind property when create an instance using Unspecified...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- DateTime myDateTime = new DateTime(1978, 08, 29, 03, 00, 00, System.DateTimeKind.Unspecified);
-
- if (myDateTime.Kind != System.DateTimeKind.Unspecified)
- {
- TestLibrary.TestFramework.LogError("005", "The kind is wrong!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Check toUniversalTime is equal to original when create an instance using Utc...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- DateTime myDateTime = new DateTime(1978, 08, 29, 03, 00, 00, System.DateTimeKind.Utc);
- DateTime toUniversal = myDateTime.ToUniversalTime();
-
- if (myDateTime != toUniversal)
- {
- TestLibrary.TestFramework.LogError("007", "The two instances are not equal!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Unexpected exception occurs: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Check toLocalTime is equal to original when create an instance using local...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- DateTime myDateTime = new DateTime(1978, 08, 29, 03, 00, 00, System.DateTimeKind.Local);
- DateTime toLocal = myDateTime.ToLocalTime();
-
- if (myDateTime != toLocal)
- {
- TestLibrary.TestFramework.LogError("009", "The kind is wrong!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Unexpected exception occurs: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest6()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Check an instance created by Unspecified, then compare to local and universal...");
-
- try
- {
- if (TimeZoneInfo.Local.BaseUtcOffset == TimeSpan.Zero) // any TZ has same alignment with UTC
- {
- // if we are on UTC zone, then the following test wil not make sense because all date conversion will produce the same original date value
- return retVal;
- }
-
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- DateTime myDateTime = new DateTime(1978, 08, 29, 03, 00, 00, System.DateTimeKind.Unspecified);
-
- DateTime toLocal = myDateTime.ToLocalTime();
- DateTime toUniversal = myDateTime.ToUniversalTime();
-
- if (myDateTime == toLocal)
- {
- string errorMessage = String.Format("The Unspecified myDateTime is regard as local by default!\nTZ: '{0}'\nmyDateTime: '{1}'\ntoLocal: '{2}'", TimeZoneInfo.Local.DisplayName, myDateTime, toLocal);
- TestLibrary.TestFramework.LogError("011", errorMessage);
- retVal = false;
- }
- else if (myDateTime == toUniversal)
- {
- string errorMessage = String.Format("Unexpected exception occurs!\nTZ: '{0}'\nmyDateTime: '{1}'\ntoUniversal: '{2}'", TimeZoneInfo.Local.DisplayName, myDateTime, toUniversal);
- TestLibrary.TestFramework.LogError("012", errorMessage);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("013", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-}
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimemaxvalue.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimemaxvalue.cs
deleted file mode 100644
index d6a04de..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimemaxvalue.cs
+++ /dev/null
@@ -1,73 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-
-/// <summary>
-/// MaxValue
-/// </summary>
-public class DateTimeMaxValue
-{
- #region Private Fields
- private const long DATETIME_MAX_VALUE_TICKS = 3155378975999999999;
- #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: DateTime.MaxValue should be 23:59:59.9999999, December 31, 9999");
-
- try
- {
- DateTime desiredValue = new DateTime(DATETIME_MAX_VALUE_TICKS);
- if (!desiredValue.Equals(DateTime.MaxValue))
- {
- TestLibrary.TestFramework.LogError("001", "DateTime.MaxValue is not 23:59:59.9999999, December 31, 9999");
- 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()
- {
- DateTimeMaxValue test = new DateTimeMaxValue();
-
- TestLibrary.TestFramework.BeginTestCase("DateTimeMaxValue");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimemillisecond.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimemillisecond.cs
deleted file mode 100644
index dd54de8..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimemillisecond.cs
+++ /dev/null
@@ -1,124 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-using System.Collections;
-using System.Threading;
-using System.Globalization;
-
-
-public class DateTimeMillisecond
-{
- public static int Main(string[] args)
- {
- DateTimeMillisecond milliSecond = new DateTimeMillisecond();
- TestLibrary.TestFramework.BeginScenario("Testing System.DateTime.Millisecond property...");
-
- if (milliSecond.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- retVal = PosTest3() && retVal;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Verify DateTime.Milliscond property when DateTime instance's Millisecond is assigned...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- DateTime myDateTime = new DateTime(0978, 08, 29, 03, 00, 00,666);
- int myMillisecond = myDateTime.Millisecond;
-
- if (myMillisecond != 666)
- {
- TestLibrary.TestFramework.LogError("001", "The Millisecond is not correct!");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Verify DateTime.Millisecond property When DateTime instance is only assigned year month and day...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- DateTime myDateTime = new DateTime(1978, 08, 29);
- int myMillisecond = myDateTime.Millisecond;
-
- if (myMillisecond != 0)
- {
- TestLibrary.TestFramework.LogError("003", "The millisecond is not zero when no value is assigned at init time!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Verify DateTime.Millisecond property When DateTime instance is only assigned year,month,day,hour,minute and second...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- DateTime myDateTime = new DateTime(1978, 08, 29, 03, 00, 00);
- int myMillisecond = myDateTime.Millisecond;
-
- if (myMillisecond != 0)
- {
- TestLibrary.TestFramework.LogError("005", "The millisecond is not zero when no value is assigned at init time!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-}
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimeminute.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimeminute.cs
deleted file mode 100644
index 78256cc..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimeminute.cs
+++ /dev/null
@@ -1,95 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-using System.Collections;
-using System.Threading;
-using System.Globalization;
-
-public class DateTimeMinute
-{
- public static int Main(string[] args)
- {
- DateTimeMinute minute = new DateTimeMinute();
- TestLibrary.TestFramework.BeginScenario("Testing System.DateTime.Minute...");
-
- if (minute.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Verify DateTime.Minute property when DateTime instance's minute is assigned...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- DateTime myDateTime = new DateTime(0978, 08, 29, 03, 29, 00);
- int minute = myDateTime.Minute;
-
- if (minute != 29)
- {
- TestLibrary.TestFramework.LogError("001", "The minute is not correct!");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Verify DateTime.Minute property When DateTime instance is only assigned year month and day...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- DateTime myDateTime = new DateTime(1978, 08, 29);
- int minute = myDateTime.Minute;
-
- if (minute != 0)
- {
- TestLibrary.TestFramework.LogError("003", "The minute is not zero when no value is assigned at init time!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-}
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimeminvalue.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimeminvalue.cs
deleted file mode 100644
index ebe7f75..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimeminvalue.cs
+++ /dev/null
@@ -1,73 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-
-/// <summary>
-/// MinValue
-/// </summary>
-public class DateTimeMinValue
-{
- #region Private Fields
- private const long DATETIME_MIN_VALUE_TICKS = 0;
- #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: DateTime.MinValue should be 00:00:00.0000000, January 1, 0001");
-
- try
- {
- DateTime desiredValue = new DateTime(DATETIME_MIN_VALUE_TICKS);
- if (!desiredValue.Equals(DateTime.MinValue))
- {
- TestLibrary.TestFramework.LogError("001", "DateTime.MinValue is not 00:00:00.0000000, January 1, 0001");
- 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()
- {
- DateTimeMinValue test = new DateTimeMinValue();
-
- TestLibrary.TestFramework.BeginTestCase("DateTimeMinValue");
-
- if (test.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-}
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimenow.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimenow.cs
deleted file mode 100644
index b9c9c8c..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimenow.cs
+++ /dev/null
@@ -1,93 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-using System.Collections;
-using System.Threading;
-
-public class DateTimeNow
-{
- public static int Main(string[] args)
- {
- DateTimeNow now = new DateTimeNow();
- TestLibrary.TestFramework.BeginTestCase("Testing System.DateTime.Now property...");
-
- if (now.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.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.BeginTestCase("Verify DateTime.Now is local kind...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new System.Globalization.CultureInfo("");
- DateTime myDateTime = DateTime.Now;
- Type typeOfNow = myDateTime.GetType();
- DateTime toLocal = myDateTime.ToLocalTime();
-
- if (myDateTime != toLocal)
- {
- TestLibrary.TestFramework.LogError("001","The kind of Now property is not local!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002","Unexpected exception occurs: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginTestCase("Verify the type of Now property is DateTime...");
-
- try
- {
- DateTime myDateTime = DateTime.Now;
- Type typeOfNow = myDateTime.GetType();
-
- if (typeOfNow.ToString() != "System.DateTime")
- {
- TestLibrary.TestFramework.LogError("003","The type of Now property is wrong!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004","Unexpected exception occurs: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-}
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimeparse1.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimeparse1.cs
deleted file mode 100644
index d759d4f..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimeparse1.cs
+++ /dev/null
@@ -1,828 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-using System.Globalization;
-
-public class DateTimeParse1
-{
- private CultureInfo CurrentCulture = TestLibrary.Utilities.CurrentCulture;
- private const int c_MIN_STRING_LEN = 1;
- private const int c_MAX_STRING_LEN = 2048;
- private const int c_NUM_LOOPS = 100;
- //new string[12] {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"};
- private static string[] c_MONTHS = CultureInfo.InvariantCulture.DateTimeFormat.AbbreviatedMonthNames;
- //new string[12] {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};
- private static string[] c_MONTHS_SH = CultureInfo.InvariantCulture.DateTimeFormat.AbbreviatedMonthGenitiveNames;
- //new string[7] {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
- private static string[] c_DAYS_SH = CultureInfo.InvariantCulture.DateTimeFormat.AbbreviatedDayNames;
-
- public static int Main()
- {
- DateTimeParse1 test = new DateTimeParse1();
-
- TestLibrary.TestFramework.BeginTestCase("DateTimeParse1");
-
- 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 = CultureInfo.InvariantCulture;
-
- 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.Utilities.CurrentCulture = CurrentCulture;
-
- TestLibrary.TestFramework.LogInformation("[Negative]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- string dateBefore = "";
- DateTime dateAfter;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: DateTime.Parse(DateTime.Now)");
-
- try
- {
- dateBefore = DateTime.Now.ToString();
-
- dateAfter = DateTime.Parse( dateBefore );
-
- if (!dateBefore.Equals(dateAfter.ToString()))
- {
- TestLibrary.TestFramework.LogError("001", "DateTime.Parse(" + dateBefore + ") did not equal " + dateAfter.ToString());
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- DateTime dateAfter;
- string dateBefore = "";
- int day; // 1 - 29
- int year; // 1900 - 2000
- int month; // 1 - 12
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: DateTime.Parse(M/d/yyyy (ShortDatePattern ex: 1/3/2002))");
-
- try
- {
- for(int i=0; i<c_NUM_LOOPS; i++)
- {
- day = (TestLibrary.Generator.GetInt32(-55) % 28) + 1;
- year = (TestLibrary.Generator.GetInt32(-55) % 100) + 1900;
- month = (TestLibrary.Generator.GetInt32(-55) % 12) + 1;
-
- dateBefore = month + "/" + day + "/" + year;
- dateAfter = DateTime.Parse( dateBefore );
-
- if (month != dateAfter.Month || day != dateAfter.Day || year != dateAfter.Year)
- {
- TestLibrary.TestFramework.LogError("003", "DateTime.Parse(" + dateBefore + ") did not equal " + dateAfter.ToString());
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- DateTime dateAfter;
- string dateBefore = "";
- int dayOfWeek; // 0 - 6
- int day; // 1 - 28
- int year; // 1900 - 2000
- int month; // 0 - 11
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: DateTime.Parse(dddd, MMMM dd, yyyy (LongDatePattern ex: Thursday, January 03, 2002))");
-
- try
- {
- for(int i=0; i<c_NUM_LOOPS; i++)
- {
- day = (TestLibrary.Generator.GetInt32(-55) % 27) + 1;
- year = (TestLibrary.Generator.GetInt32(-55) % 100) + 1900;
- month = (TestLibrary.Generator.GetInt32(-55) % 12);
-
- // cheat and get day of the week
- dateAfter = DateTime.Parse( (month+1) + "/" + day + "/" + year);
- dayOfWeek = (int)dateAfter.DayOfWeek;
-
- // parse the date
- dateBefore = (DayOfWeek)dayOfWeek + ", " + c_MONTHS[month] + " " + day + ", " + year;
- dateAfter = DateTime.Parse( dateBefore );
-
- if ((month+1) != dateAfter.Month || day != dateAfter.Day || year != dateAfter.Year || (DayOfWeek)dayOfWeek != dateAfter.DayOfWeek)
- {
- TestLibrary.TestFramework.LogError("005", "DateTime.Parse(" + dateBefore + ") did not equal (" + dateAfter.DayOfWeek + ", " + c_MONTHS[dateAfter.Month-1] + " " + dateAfter.Day + ", " + dateAfter.Year + ")");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
- DateTime dateAfter;
- string dateBefore = "";
- int dayOfWeek; // 0 - 6
- int day; // 1 - 28
- int year; // 1900 - 2000
- int month; // 0 - 11
- int hour; // 0 - 11
- int minute; // 0 - 59
- int timeOfDay; // 0 -1
- string[] twelveHour = new string[2] {"AM", "PM"};
-
- TestLibrary.TestFramework.BeginScenario("PosTest4: DateTime.Parse(ex: Thursday, January 03, 2002 12:00 AM)");
-
- try
- {
- for(int i=0; i<c_NUM_LOOPS; i++)
- {
- day = (TestLibrary.Generator.GetInt32(-55) % 27) + 1;
- year = (TestLibrary.Generator.GetInt32(-55) % 100) + 1900;
- month = (TestLibrary.Generator.GetInt32(-55) % 12);
- hour = (TestLibrary.Generator.GetInt32(-55) % 12);
- minute = (TestLibrary.Generator.GetInt32(-55) % 60);
- timeOfDay = (TestLibrary.Generator.GetInt32(-55) % 2);
-
- // cheat and get day of the week
- dateAfter = DateTime.Parse( (month+1) + "/" + day + "/" + year);
- dayOfWeek = (int)dateAfter.DayOfWeek;
-
- // parse the date
- dateBefore = (DayOfWeek)dayOfWeek + ", " + c_MONTHS[month] + " " + day + ", " + year + " " + hour + ":" + minute + " " + twelveHour[timeOfDay];
- dateAfter = DateTime.Parse( dateBefore );
-
- if ((month+1) != dateAfter.Month
- || day != dateAfter.Day
- || year != dateAfter.Year
- || (DayOfWeek)dayOfWeek != dateAfter.DayOfWeek
- || (hour + timeOfDay*12) != dateAfter.Hour
- || minute != dateAfter.Minute)
- {
- TestLibrary.TestFramework.LogError("007", "DateTime.Parse(" + dateBefore + ") did not equal (" + dateAfter.DayOfWeek + ", " + c_MONTHS[dateAfter.Month-1] + " " + dateAfter.Day + ", " + dateAfter.Year + " " + dateAfter.Hour + ":" + dateAfter.Minute + ")");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
- DateTime dateAfter;
- string dateBefore = "";
- int dayOfWeek; // 0 - 6
- int day; // 1 - 28
- int year; // 1900 - 2000
- int month; // 0 - 11
- int hour; // 0 - 11
- int minute; // 0 - 59
- int second; // 0 - 59
- int timeOfDay; // 0 -1
- string[] twelveHour = new string[2] {"AM", "PM"};
-
- TestLibrary.TestFramework.BeginScenario("PosTest5: DateTime.Parse(dddd, MMMM dd, yyyy h:mm:ss tt (FullDateTimePattern ex: Thursday, January 03, 2002 12:00:00 AM))");
-
- try
- {
- for(int i=0; i<c_NUM_LOOPS; i++)
- {
- day = (TestLibrary.Generator.GetInt32(-55) % 27) + 1;
- year = (TestLibrary.Generator.GetInt32(-55) % 100) + 1900;
- month = (TestLibrary.Generator.GetInt32(-55) % 12);
- hour = (TestLibrary.Generator.GetInt32(-55) % 12);
- minute = (TestLibrary.Generator.GetInt32(-55) % 60);
- second = (TestLibrary.Generator.GetInt32(-55) % 60);
- timeOfDay = (TestLibrary.Generator.GetInt32(-55) % 2);
-
- // cheat and get day of the week
- dateAfter = DateTime.Parse( (month+1) + "/" + day + "/" + year);
- dayOfWeek = (int)dateAfter.DayOfWeek;
-
- // parse the date
- dateBefore = (DayOfWeek)dayOfWeek + ", " + c_MONTHS[month] + " " + day + ", " + year + " " + hour + ":" + minute + ":" + second + " " + twelveHour[timeOfDay];
- dateAfter = DateTime.Parse( dateBefore );
-
- if ((month+1) != dateAfter.Month
- || day != dateAfter.Day
- || year != dateAfter.Year
- || (DayOfWeek)dayOfWeek != dateAfter.DayOfWeek
- || (hour + timeOfDay*12) != dateAfter.Hour
- || minute != dateAfter.Minute
- || second != dateAfter.Second)
- {
- TestLibrary.TestFramework.LogError("009", "DateTime.Parse(" + dateBefore + ") did not equal (" + dateAfter.DayOfWeek + ", " + c_MONTHS[dateAfter.Month-1] + " " + dateAfter.Day + ", " + dateAfter.Year + " " + dateAfter.Hour + ":" + dateAfter.Minute + ":" + dateAfter.Second + ")");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest6()
- {
- bool retVal = true;
- DateTime dateAfter;
- string dateBefore = "";
- int day; // 1 - 28
- int month; // 1 - 12
- int year; // 1900 - 2000
- int hour; // 0 - 11
- int minute; // 0 - 59
- int timeOfDay; // 0 -1
- string[] twelveHour = new string[2] {"AM", "PM"};
-
- TestLibrary.TestFramework.BeginScenario("PosTest6: DateTime.Parse(ex: 1/3/2002 12:00 AM)");
-
- try
- {
- for(int i=0; i<c_NUM_LOOPS; i++)
- {
- day = (TestLibrary.Generator.GetInt32(-55) % 27) + 1;
- year = (TestLibrary.Generator.GetInt32(-55) % 100) + 1900;
- month = (TestLibrary.Generator.GetInt32(-55) % 12) + 1;
- hour = (TestLibrary.Generator.GetInt32(-55) % 12);
- minute = (TestLibrary.Generator.GetInt32(-55) % 60);
- timeOfDay = (TestLibrary.Generator.GetInt32(-55) % 2);
-
- // parse the date
- dateBefore = month + "/" + day + "/" + year + " " + hour + ":" + minute + " " + twelveHour[timeOfDay];
- dateAfter = DateTime.Parse( dateBefore );
-
- if (month != dateAfter.Month
- || day != dateAfter.Day
- || year != dateAfter.Year
- || (hour + timeOfDay*12) != dateAfter.Hour
- || minute != dateAfter.Minute)
- {
- TestLibrary.TestFramework.LogError("011", "DateTime.Parse(" + dateBefore + ") did not equal (" + dateAfter.Month + "/" + dateAfter.Day + "/" + dateAfter.Year + " " + dateAfter.Hour + ":" + dateAfter.Minute + ")");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("012", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest7()
- {
- bool retVal = true;
- DateTime dateAfter;
- string dateBefore = "";
- int day; // 1 - 28
- int month; // 1 - 12
- int year; // 1900 - 2000
- int hour; // 0 - 11
- int minute; // 0 - 59
- int second; // 0 - 59
- int timeOfDay; // 0 -1
- string[] twelveHour = new string[2] {"AM", "PM"};
-
- TestLibrary.TestFramework.BeginScenario("PosTest7: DateTime.Parse(ex: 1/3/2002 12:00:00 AM)");
-
- try
- {
- for(int i=0; i<c_NUM_LOOPS; i++)
- {
- day = (TestLibrary.Generator.GetInt32(-55) % 27) + 1;
- year = (TestLibrary.Generator.GetInt32(-55) % 100) + 1900;
- month = (TestLibrary.Generator.GetInt32(-55) % 12) + 1;
- hour = (TestLibrary.Generator.GetInt32(-55) % 12);
- minute = (TestLibrary.Generator.GetInt32(-55) % 60);
- second = (TestLibrary.Generator.GetInt32(-55) % 60);
- timeOfDay = (TestLibrary.Generator.GetInt32(-55) % 2);
-
- // parse the date
- dateBefore = month + "/" + day + "/" + year + " " + hour + ":" + minute + ":" + second + " " + twelveHour[timeOfDay];
- dateAfter = DateTime.Parse( dateBefore );
-
- if (month != dateAfter.Month
- || day != dateAfter.Day
- || year != dateAfter.Year
- || (hour + timeOfDay*12) != dateAfter.Hour
- || minute != dateAfter.Minute
- || second != dateAfter.Second)
- {
- TestLibrary.TestFramework.LogError("013", "DateTime.Parse(" + dateBefore + ") did not equal (" + dateAfter.Month + "/" + dateAfter.Day + "/" + dateAfter.Year + " " + dateAfter.Hour + ":" + dateAfter.Minute + ":" + dateAfter.Second + ")");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("014", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("014", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest8()
- {
- bool retVal = true;
- DateTime dateAfter;
- string dateBefore = "";
- int day; // 1 - 28
- int month; // 0 - 11
-
- TestLibrary.TestFramework.BeginScenario("PosTest8: DateTime.Parse(MMMM dd (MonthDayPattern ex: January 03))");
-
- try
- {
- for(int i=0; i<c_NUM_LOOPS; i++)
- {
- day = (TestLibrary.Generator.GetInt32(-55) % 27) + 1;
- month = (TestLibrary.Generator.GetInt32(-55) % 12);
-
- // parse the date
- dateBefore = c_MONTHS[month] + " " + day;
- dateAfter = DateTime.Parse( dateBefore );
-
- if ((month+1) != dateAfter.Month
- || day != dateAfter.Day)
- {
- TestLibrary.TestFramework.LogError("015", "DateTime.Parse(" + dateBefore + ") did not equal (" + c_MONTHS[dateAfter.Month-1] + " " + dateAfter.Day + ")");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("016", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("016", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest9()
- {
- bool retVal = true;
- DateTime dateAfter;
- string dateBefore = "";
- int dayOfWeek; // 0 - 6
- int day; // 1 - 28
- int year; // 1900 - 2000
- int month; // 0 - 11
- int hour; // 12 - 23
- int minute; // 0 - 59
- int second; // 0 - 59
-
- TestLibrary.TestFramework.BeginScenario("PosTest9: DateTime.Parse(ddd, dd MMM yyyy HH':'mm':'ss 'GMT' (RFC1123Pattern ex: Thu, 03 Jan 2002 00:00:00 GMT))");
-
- DateTime now = DateTime.Now;
- int hourshift;
- if (now - now.ToUniversalTime() < TimeSpan.Zero) // western hemisphere
- hourshift = +12;
- else
- hourshift = 0;
- try
- {
- for(int i=0; i<c_NUM_LOOPS; i++)
- {
- day = (TestLibrary.Generator.GetInt32(-55) % 27) + 1;
- year = (TestLibrary.Generator.GetInt32(-55) % 100) + 1900;
- month = (TestLibrary.Generator.GetInt32(-55) % 12);
- hour = (TestLibrary.Generator.GetInt32(-55) % 12) + hourshift; // Parse will convert perform GMT -> Local conversion
- minute = (TestLibrary.Generator.GetInt32(-55) % 60);
- second = (TestLibrary.Generator.GetInt32(-55) % 60);
- dayOfWeek = (TestLibrary.Generator.GetInt32(-55) % 7);
-
- // cheat and get day of the week
- dateAfter = DateTime.Parse( (month+1) + "/" + day + "/" + year);
- dayOfWeek = (int)dateAfter.DayOfWeek;
-
- // parse the date
- dateBefore = c_DAYS_SH[dayOfWeek] + ", " + day + " " + c_MONTHS_SH[month] + " " + year + " " + hour + ":" + minute + ":" + second + " GMT";
- dateAfter = DateTime.Parse( dateBefore );
-
- if ((month+1) != dateAfter.Month
- || day != dateAfter.Day
- || year != dateAfter.Year
- || (DayOfWeek)dayOfWeek != dateAfter.DayOfWeek
- || second != dateAfter.Second)
- {
- TestLibrary.TestFramework.LogError("017", "DateTime.Parse(" + dateBefore + ") did not equal (" + c_DAYS_SH[(int)dateAfter.DayOfWeek] + ", " + dateAfter.Day + " " + c_MONTHS_SH[dateAfter.Month-1] + " " + dateAfter.Year + " " + dateAfter.Hour + ":" + dateAfter.Minute + ":" + dateAfter.Second + " " + dateAfter.Kind + ")");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("018", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("018", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest10()
- {
- bool retVal = true;
- DateTime dateAfter;
- string dateBefore = "";
- int day; // 1 - 28
- int month; // 1 - 12
- int year; // 1900 - 2000
- int hour; // 0 - 23
- int minute; // 0 - 59
- int second; // 0 - 59
-
- TestLibrary.TestFramework.BeginScenario("PosTest10: DateTime.Parse(yyyy'-'MM'-'dd'T'HH':'mm':'ss (SortableDateTimePattern ex: 2002-01-03T00:00:00))");
-
- try
- {
- for(int i=0; i<c_NUM_LOOPS; i++)
- {
- day = (TestLibrary.Generator.GetInt32(-55) % 27) + 1;
- year = (TestLibrary.Generator.GetInt32(-55) % 100) + 1900;
- month = (TestLibrary.Generator.GetInt32(-55) % 12) + 1;
- hour = (TestLibrary.Generator.GetInt32(-55) % 24);
- minute = (TestLibrary.Generator.GetInt32(-55) % 60);
- second = (TestLibrary.Generator.GetInt32(-55) % 60);
-
- // parse the date
- dateBefore = year + "-" + month + "-" + day + "T" + ((10 > hour) ? "0" : "") + hour + ":" + ((10 > minute) ? "0" : "") + minute + ":" + ((10 > second) ? "0" : "") + second;
- dateAfter = DateTime.Parse( dateBefore );
-
- if (month != dateAfter.Month
- || day != dateAfter.Day
- || year != dateAfter.Year
- || hour != dateAfter.Hour
- || minute != dateAfter.Minute
- || second != dateAfter.Second)
- {
- TestLibrary.TestFramework.LogError("019", "DateTime.Parse(" + dateBefore + ") did not equal (" + dateAfter.Year + "-" + dateAfter.Month + "-" + dateAfter.Day + "T" + dateAfter.Hour + ":" + dateAfter.Minute + ":" + dateAfter.Second + ")");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("020", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("020", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest11()
- {
- bool retVal = true;
- DateTime dateAfter;
- string dateBefore = "";
- int hour; // 0 - 11
- int minute; // 0 - 59
- int timeOfDay; // 0 -1
- string[] twelveHour = new string[2] {"AM", "PM"};
-
- TestLibrary.TestFramework.BeginScenario("PosTest11: DateTime.Parse(h:mm tt (ShortTimePattern ex: 12:00 AM))");
-
- try
- {
- for(int i=0; i<c_NUM_LOOPS; i++)
- {
- hour = (TestLibrary.Generator.GetInt32(-55) % 12);
- minute = (TestLibrary.Generator.GetInt32(-55) % 60);
- timeOfDay = (TestLibrary.Generator.GetInt32(-55) % 2);
-
- // parse the date
- dateBefore = hour + ":" + minute + " " + twelveHour[timeOfDay];
- dateAfter = DateTime.Parse( dateBefore );
-
- if ((hour + timeOfDay*12) != dateAfter.Hour
- || minute != dateAfter.Minute)
- {
- TestLibrary.TestFramework.LogError("021", "DateTime.Parse(" + dateBefore + ") did not equal (" + dateAfter.Hour + ":" + dateAfter.Minute + ")");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("022", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("022", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest12()
- {
- bool retVal = true;
- DateTime dateAfter;
- string dateBefore = "";
- int hour; // 0 - 11
- int minute; // 0 - 59
- int second; // 0 - 59
- int timeOfDay; // 0 -1
- string[] twelveHour = new string[2] {"AM", "PM"};
-
- TestLibrary.TestFramework.BeginScenario("PosTest12: DateTime.Parse(h:mm:ss tt (LongTimePattern ex: 12:00:00 AM))");
-
- try
- {
- for(int i=0; i<c_NUM_LOOPS; i++)
- {
- hour = (TestLibrary.Generator.GetInt32(-55) % 12);
- minute = (TestLibrary.Generator.GetInt32(-55) % 60);
- second = (TestLibrary.Generator.GetInt32(-55) % 60);
- timeOfDay = (TestLibrary.Generator.GetInt32(-55) % 2);
-
- // parse the date
- dateBefore = hour + ":" + minute + ":" + second + " " + twelveHour[timeOfDay];
- dateAfter = DateTime.Parse( dateBefore );
-
- if ((hour + timeOfDay*12) != dateAfter.Hour
- || minute != dateAfter.Minute
- || second != dateAfter.Second)
- {
- TestLibrary.TestFramework.LogError("023", "DateTime.Parse(" + dateBefore + ") did not equal (" + dateAfter.Hour + ":" + dateAfter.Minute + ":" + dateAfter.Second + ")");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("024", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("024", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest13()
- {
- bool retVal = true;
- DateTime dateAfter;
- string dateBefore = "";
- int day; // 1 - 28
- int month; // 1 - 12
- int year; // 1900 - 2000
- int hour; // 12 - 23
- int minute; // 0 - 59
- int second; // 0 - 59
-
- TestLibrary.TestFramework.BeginScenario("PosTest13: DateTime.Parse(yyyy'-'MM'-'dd HH':'mm':'ss'Z' (UniversalSortableDateTimePattern ex: 2002-01-03 00:00:00Z))");
-
- DateTime now = DateTime.Now;
- int hourshift;
- if (now - now.ToUniversalTime() < TimeSpan.Zero) // western hemisphere
- hourshift = +12;
- else
- hourshift = 0;
- try
- {
- for(int i=0; i<c_NUM_LOOPS; i++)
- {
- day = (TestLibrary.Generator.GetInt32(-55) % 27) + 1;
- year = (TestLibrary.Generator.GetInt32(-55) % 100) + 1900;
- month = (TestLibrary.Generator.GetInt32(-55) % 12) + 1;
- hour = (TestLibrary.Generator.GetInt32(-55) % 12) + hourshift; // conversion
- minute = (TestLibrary.Generator.GetInt32(-55) % 60);
- second = (TestLibrary.Generator.GetInt32(-55) % 60);
-
- // parse the date
- dateBefore = year + "-" + month + "-" + day + " " + ((10 > hour) ? "0" : "") + hour + ":" + ((10 > minute) ? "0" : "") + minute + ":" + ((10 > second) ? "0" : "") + second +"Z";
- dateAfter = DateTime.Parse( dateBefore );
-
- if (month != dateAfter.Month
- || day != dateAfter.Day
- || year != dateAfter.Year
- || second != dateAfter.Second)
- {
- TestLibrary.TestFramework.LogError("025", "DateTime.Parse(" + dateBefore + ") did not equal (" + dateAfter.Year + "-" + dateAfter.Month + "-" + dateAfter.Day + " " + dateAfter.Hour + ":" + dateAfter.Minute + ":" + dateAfter.Second + " " + dateAfter.Kind + ")");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("026", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("026", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest14()
- {
- bool retVal = true;
- DateTime dateAfter;
- string dateBefore = "";
- int year; // 1900 - 2000
- int month; // 0 - 11
-
- TestLibrary.TestFramework.BeginScenario("PosTest14: DateTime.Parse(MMMM, yyyy (YearMonthPattern ex: January, 2002))");
-
- try
- {
- for(int i=0; i<c_NUM_LOOPS; i++)
- {
- year = (TestLibrary.Generator.GetInt32(-55) % 100) + 1900;
- month = (TestLibrary.Generator.GetInt32(-55) % 12);
-
- // parse the date
- dateBefore = c_MONTHS[month] + ", " + year;
- dateAfter = DateTime.Parse( dateBefore );
-
- if ((month+1) != dateAfter.Month
- || year != dateAfter.Year)
- {
- TestLibrary.TestFramework.LogError("027", "DateTime.Parse(" + dateBefore + ") did not equal (" + c_MONTHS[dateAfter.Month-1] + ", " + dateAfter.Year + ")");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("028", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("028", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest1()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: DateTime.Parse(null)");
-
- try
- {
- DateTime.Parse(null);
-
- TestLibrary.TestFramework.LogError("029", "DateTime.Parse(null) should have thrown");
- retVal = false;
- }
- catch (ArgumentNullException)
- {
- // expected
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("030", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: DateTime.Parse(String.Empty)");
-
- try
- {
- DateTime.Parse(String.Empty);
-
- TestLibrary.TestFramework.LogError("031", "DateTime.Parse(String.Empty) should have thrown");
- retVal = false;
- }
- catch (FormatException)
- {
- // expected
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("032", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
- string strDateTime = "";
- DateTime dateAfter;
-
- TestLibrary.TestFramework.BeginScenario("NegTest3: DateTime.Parse(<garbage>)");
-
- try
- {
- for (int i=0; i<c_NUM_LOOPS; i++)
- {
- try
- {
- strDateTime = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- dateAfter = DateTime.Parse(strDateTime);
-
- TestLibrary.TestFramework.LogError("033", "DateTime.Parse(" + strDateTime + ") should have thrown (" + dateAfter + ")");
- retVal = false;
- }
- catch (FormatException)
- {
- // expected
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("034", "Failing date: " + strDateTime);
- TestLibrary.TestFramework.LogError("034", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-}
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimeparse2.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimeparse2.cs
deleted file mode 100644
index f5b8bb5..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimeparse2.cs
+++ /dev/null
@@ -1,216 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-
-public class DateTimeParse2
-{
- private const int c_MIN_STRING_LEN = 1;
- private const int c_MAX_STRING_LEN = 2048;
- private const int c_NUM_LOOPS = 100;
-
- public static int Main()
- {
- DateTimeParse2 test = new DateTimeParse2();
-
- TestLibrary.TestFramework.BeginTestCase("DateTimeParse2");
-
- 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;
-
- TestLibrary.TestFramework.LogInformation("[Negative]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- string dateBefore = "";
- DateTime dateAfter;
- MyFormater formater = new MyFormater();
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: DateTime.Parse(DateTime.Now, formater)");
-
- try
- {
- dateBefore = DateTime.Now.ToString();
-
- dateAfter = DateTime.Parse( dateBefore, formater);
-
- if (!dateBefore.Equals(dateAfter.ToString()))
- {
- TestLibrary.TestFramework.LogError("001", "DateTime.Parse(" + dateBefore + ") did not equal " + dateAfter.ToString());
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- string dateBefore = "";
- DateTime dateAfter;
- MyFormater formater = new MyFormater();
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: DateTime.Parse(DateTime.Now, null)");
-
- try
- {
- dateBefore = DateTime.Now.ToString();
-
- dateAfter = DateTime.Parse( dateBefore, null);
-
- if (!dateBefore.Equals(dateAfter.ToString()))
- {
- TestLibrary.TestFramework.LogError("009", "DateTime.Parse(" + dateBefore + ") did not equal " + dateAfter.ToString());
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest1()
- {
- bool retVal = true;
- MyFormater formater = new MyFormater();
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: DateTime.Parse(null, formater)");
-
- try
- {
- DateTime.Parse(null, formater);
-
- TestLibrary.TestFramework.LogError("003", "DateTime.Parse(null) should have thrown");
- retVal = false;
- }
- catch (ArgumentNullException)
- {
- // expected
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
- MyFormater formater = new MyFormater();
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: DateTime.Parse(String.Empty, formater)");
-
- try
- {
- DateTime.Parse(String.Empty, formater);
-
- TestLibrary.TestFramework.LogError("005", "DateTime.Parse(String.Empty) should have thrown");
- retVal = false;
- }
- catch (FormatException)
- {
- // expected
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
- MyFormater formater = new MyFormater();
- string strDateTime = "";
- DateTime dateAfter;
-
- TestLibrary.TestFramework.BeginScenario("NegTest3: DateTime.Parse(<garbage>, formater)");
-
- try
- {
- for (int i=0; i<c_NUM_LOOPS; i++)
- {
- try
- {
- strDateTime = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- dateAfter = DateTime.Parse(strDateTime, formater);
-
- TestLibrary.TestFramework.LogError("007", "DateTime.Parse(" + strDateTime + ") should have thrown (" + dateAfter + ")");
- retVal = false;
- }
- catch (FormatException)
- {
- // expected
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Failing date: " + strDateTime);
- TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
-}
-
-public class MyFormater : IFormatProvider
-{
- public object GetFormat(Type formatType)
- {
- if (typeof(IFormatProvider) == formatType)
- {
- return this;
- }
- else
- {
- return null;
- }
- }
-}
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimeparse3.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimeparse3.cs
deleted file mode 100644
index 135fb8f..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimeparse3.cs
+++ /dev/null
@@ -1,274 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-using System.Globalization ;
-
-public class DateTimeParse3
-{
- private const int c_MIN_STRING_LEN = 1;
- private const int c_MAX_STRING_LEN = 2048;
- private const int c_NUM_LOOPS = 100;
-
- public static int Main()
- {
- DateTimeParse3 test = new DateTimeParse3();
-
- TestLibrary.TestFramework.BeginTestCase("DateTimeParse3");
-
- 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;
-
- // The NoCurrentDateDefault value is the only value that is useful with
- // the DateTime.Parse method, because DateTime.Parse always ignores leading,
- // trailing, and inner white-space characters.
-
- 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;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- string dateBefore = "";
- DateTime dateAfter;
- MyFormater formater = new MyFormater();
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: DateTime.Parse(DateTime.Now, formater, DateTimeStyles.NoCurrentDateDefault)");
-
- try
- {
- dateBefore = DateTime.Now.ToString();
-
- dateAfter = DateTime.Parse( dateBefore, formater, DateTimeStyles.NoCurrentDateDefault);
-
- if (!dateBefore.Equals(dateAfter.ToString()))
- {
- TestLibrary.TestFramework.LogError("001", "DateTime.Parse(" + dateBefore + ") did not equal " + dateAfter.ToString());
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- string dateBefore = "";
- DateTime dateAfter;
- MyFormater formater = new MyFormater();
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: DateTime.Parse(DateTime.Now, null, DateTimeStyles.NoCurrentDateDefault)");
-
- try
- {
- dateBefore = DateTime.Now.ToString();
-
- dateAfter = DateTime.Parse( dateBefore, null, DateTimeStyles.NoCurrentDateDefault);
-
- if (!dateBefore.Equals(dateAfter.ToString()))
- {
- TestLibrary.TestFramework.LogError("009", "DateTime.Parse(" + dateBefore + ") did not equal " + dateAfter.ToString());
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- string dateBefore = "";
- DateTime dateAfter;
- MyFormater formater = new MyFormater();
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: DateTime.Parse(DateTime.Now, null, <invalid DateTimeStyles>)");
-
- try
- {
- for(int i=-1024; i<1024; i++)
- {
- try
- {
- // skip the valid values
- if (0 == (i & (int)DateTimeStyles.AdjustToUniversal)
- && 0 == (i & (int)DateTimeStyles.AssumeUniversal)
- && 0 == (i & (int)DateTimeStyles.AllowInnerWhite)
- && 0 == (i & (int)DateTimeStyles.AllowLeadingWhite)
- && 0 == (i & (int)DateTimeStyles.AllowTrailingWhite)
- && 0 == (i & (int)DateTimeStyles.AllowWhiteSpaces)
- && 0 == (i & (int)DateTimeStyles.NoCurrentDateDefault)
- && i != (int)DateTimeStyles.None
- )
- {
- dateBefore = DateTime.Now.ToString();
-
- dateAfter = DateTime.Parse( dateBefore, null, (DateTimeStyles)i);
-
- if (!dateBefore.Equals(dateAfter.ToString()))
- {
- TestLibrary.TestFramework.LogError("011", "DateTime.Parse(" + dateBefore + ", " + (DateTimeStyles)i + ") did not equal " + dateAfter.ToString());
- retVal = false;
- }
- }
- }
- catch (System.ArgumentException)
- {
- //
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("012", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest1()
- {
- bool retVal = true;
- MyFormater formater = new MyFormater();
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: DateTime.Parse(null, formater, DateTimeStyles.NoCurrentDateDefault)");
-
- try
- {
- DateTime.Parse(null, formater, DateTimeStyles.NoCurrentDateDefault);
-
- TestLibrary.TestFramework.LogError("003", "DateTime.Parse(null) should have thrown");
- retVal = false;
- }
- catch (ArgumentNullException)
- {
- // expected
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
- MyFormater formater = new MyFormater();
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: DateTime.Parse(String.Empty, formater, DateTimeStyles.NoCurrentDateDefault)");
-
- try
- {
- DateTime.Parse(String.Empty, formater, DateTimeStyles.NoCurrentDateDefault);
-
- TestLibrary.TestFramework.LogError("005", "DateTime.Parse(String.Empty) should have thrown");
- retVal = false;
- }
- catch (FormatException)
- {
- // expected
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
- MyFormater formater = new MyFormater();
- string strDateTime = "";
- DateTime dateAfter;
-
- TestLibrary.TestFramework.BeginScenario("NegTest3: DateTime.Parse(<garbage>, formater, DateTimeStyles.NoCurrentDateDefault)");
-
- try
- {
- for (int i=0; i<c_NUM_LOOPS; i++)
- {
- try
- {
- strDateTime = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- dateAfter = DateTime.Parse(strDateTime, formater, DateTimeStyles.NoCurrentDateDefault);
-
- TestLibrary.TestFramework.LogError("007", "DateTime.Parse(" + strDateTime + ") should have thrown (" + dateAfter + ")");
- retVal = false;
- }
- catch (FormatException)
- {
- // expected
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("008", "Failing date: " + strDateTime);
- TestLibrary.TestFramework.LogError("008", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-}
-
-public class MyFormater : IFormatProvider
-{
- public object GetFormat(Type formatType)
- {
- if (typeof(IFormatProvider) == formatType)
- {
- return this;
- }
- else
- {
- return null;
- }
- }
-}
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimeparseexact1.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimeparseexact1.cs
deleted file mode 100644
index b249da6..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimeparseexact1.cs
+++ /dev/null
@@ -1,964 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-using System.Globalization;
-
-public class DateTimeParseExact1
-{
- private const int c_MIN_STRING_LEN = 1;
- private const int c_MAX_STRING_LEN = 2048;
- private const int c_NUM_LOOPS = 100;
- private static CultureInfo CurrentCulture = TestLibrary.Utilities.CurrentCulture;
- private static CultureInfo EnglishCulture = new CultureInfo("en-US");
- private static string[] c_MONTHS = EnglishCulture.DateTimeFormat.MonthGenitiveNames;
- private static string[] c_MONTHS_SH = EnglishCulture.DateTimeFormat.AbbreviatedMonthGenitiveNames;
- private static string[] c_DAYS_SH = EnglishCulture.DateTimeFormat.AbbreviatedDayNames;
-
- public static int Main()
- {
- DateTimeParseExact1 test = new DateTimeParseExact1();
-
- TestLibrary.TestFramework.BeginTestCase("DateTimeParseExact1");
-
- 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 = PosTest15() && retVal;
-
- TestLibrary.Utilities.CurrentCulture = EnglishCulture;
- retVal = PosTest2() && retVal;
- retVal = PosTest3() && retVal;
- retVal = PosTest5() && retVal;
- retVal = PosTest7() && retVal;
- retVal = PosTest8() && retVal;
- retVal = PosTest9() && retVal;
- retVal = PosTest10() && retVal;
- retVal = PosTest12() && retVal;
- retVal = PosTest13() && retVal;
- retVal = PosTest14() && retVal;
- TestLibrary.Utilities.CurrentCulture = CurrentCulture;
-
- TestLibrary.TestFramework.LogInformation("[Negative]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
- retVal = NegTest4() && retVal;
- retVal = NegTest5() && retVal;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- MyFormater formater = new MyFormater();
- string dateBefore = "";
- DateTime dateAfter;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: DateTime.ParseExact(G, DateTime.Now)");
-
- try
- {
- dateBefore = DateTime.Now.ToString();
-
- dateAfter = DateTime.ParseExact( dateBefore, "G", formater );
-
- if (!dateBefore.Equals(dateAfter.ToString()))
- {
- TestLibrary.TestFramework.LogError("001", "DateTime.ParseExact(" + dateBefore + ") did not equal " + dateAfter.ToString());
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- MyFormater formater = new MyFormater();
- DateTime dateAfter;
- string dateBefore = "";
- int day; // 1 - 29
- int year; // 1900 - 2000
- int month; // 1 - 12
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: DateTime.ParseExact(d, M/d/yyyy (ShortDatePattern ex: 1/3/2002))");
-
- // Skipping test because format 'd' on some platforms represents the year using two digits,
- // this cause extrange results. Some dates are shifted 1 hour backward. See DDB 173277 - MAC bug
- // Culture could be customized and dateseparator may be different than / or MM is used in the format
- if (String.Compare(TestLibrary.Utilities.CurrentCulture.DateTimeFormat.ShortDatePattern, "M/d/yyyy", StringComparison.Ordinal) != 0)
- {
- TestLibrary.TestFramework.LogInformation("Skipping test case, ShortDatePattern: " + TestLibrary.Utilities.CurrentCulture.DateTimeFormat.ShortDatePattern);
- return retVal;
- }
-
- try
- {
- for(int i=0; i<c_NUM_LOOPS; i++)
- {
- day = (TestLibrary.Generator.GetInt32(-55) % 28) + 1;
- year = (TestLibrary.Generator.GetInt32(-55) % 100) + 1900;
- month = (TestLibrary.Generator.GetInt32(-55) % 12) + 1;
-
- dateBefore = month + "/" + day + "/" + year;
- dateAfter = DateTime.ParseExact( dateBefore, "d", formater);
-
- if (month != dateAfter.Month || day != dateAfter.Day || year != dateAfter.Year)
- {
- TestLibrary.TestFramework.LogError("003", "DateTime.ParseExact(" + dateBefore + ") did not equal " + dateAfter.ToString() + ". Got M="+dateAfter.Month+", d="+dateAfter.Day+", y="+dateAfter.Year);
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("004", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- MyFormater formater = new MyFormater();
- DateTime dateAfter;
- string dateBefore = "";
- int dayOfWeek; // 0 - 6
- int day; // 1 - 28
- int year; // 1900 - 2000
- int month; // 0 - 11
-
- TestLibrary.TestFramework.BeginScenario("PosTest3: DateTime.ParseExact(D, dddd, MMMM dd, yyyy (LongDatePattern ex: Thursday, January 03, 2002))");
- // Culture could be customized
- if (String.Compare(TestLibrary.Utilities.CurrentCulture.DateTimeFormat.LongDatePattern, "dddd, MMMM dd, yyyy", StringComparison.Ordinal) != 0 &&
- String.Compare(TestLibrary.Utilities.CurrentCulture.DateTimeFormat.LongDatePattern, "dddd, MMMM d, yyyy", StringComparison.Ordinal) != 0)
- {
- TestLibrary.TestFramework.LogInformation("Skipping test case, LongDatePattern: " + TestLibrary.Utilities.CurrentCulture.DateTimeFormat.LongDatePattern);
- return retVal;
- }
-
- try
- {
- for(int i=0; i<c_NUM_LOOPS; i++)
- {
- day = (TestLibrary.Generator.GetInt32(-55) % 27) + 1;
- year = (TestLibrary.Generator.GetInt32(-55) % 100) + 1900;
- month = (TestLibrary.Generator.GetInt32(-55) % 12);
-
- // cheat and get day of the week
- dateAfter = DateTime.Parse( (month+1) + "/" + day + "/" + year);
- dayOfWeek = (int)dateAfter.DayOfWeek;
-
- // parse the date
- dateBefore = (DayOfWeek)dayOfWeek + ", " + c_MONTHS[month] + " " +
- (String.Compare(TestLibrary.Utilities.CurrentCulture.DateTimeFormat.LongDatePattern, "dddd, MMMM dd, yyyy", StringComparison.Ordinal) == 0 && 10 > day ? "0" : "") + day + ", " + year;
- dateAfter = DateTime.ParseExact( dateBefore, "D", formater );
-
- if ((month+1) != dateAfter.Month || day != dateAfter.Day || year != dateAfter.Year || (DayOfWeek)dayOfWeek != dateAfter.DayOfWeek)
- {
- TestLibrary.TestFramework.LogError("005", "DateTime.ParseExact(" + dateBefore + ") did not equal (" + dateAfter.DayOfWeek + ", " + c_MONTHS[dateAfter.Month-1] + " " + dateAfter.Day + ", " + dateAfter.Year + ")");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("006", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
- MyFormater formater = new MyFormater();
- DateTime dateAfter;
- string dateBefore = "";
- int dayOfWeek; // 0 - 6
- int day; // 1 - 28
- int year; // 1900 - 2000
- int month; // 0 - 11
- int hour; // 0 - 11
- int minute; // 0 - 59
- int second; // 0 - 59
- int timeOfDay; // 0 -1
- string[] twelveHour = new string[2] {"AM", "PM"};
- DateTime dateBeforeForValidity;
-
- TestLibrary.TestFramework.BeginScenario("PosTest5: DateTime.ParseExact(F, dddd, MMMM dd, yyyy h:mm:ss tt (FullDateTimePattern ex: Thursday, January 03, 2002 12:00:00 AM))");
-
- // Culture could be customized
- if (!((String.Compare(TestLibrary.Utilities.CurrentCulture.DateTimeFormat.LongDatePattern, "dddd, MMMM dd, yyyy", StringComparison.Ordinal) == 0 ||
- String.Compare(TestLibrary.Utilities.CurrentCulture.DateTimeFormat.LongDatePattern, "dddd, MMMM d, yyyy", StringComparison.Ordinal) == 0) &&
- (String.Compare(TestLibrary.Utilities.CurrentCulture.DateTimeFormat.LongTimePattern, "hh:mm:ss tt", StringComparison.Ordinal) == 0 ||
- String.Compare(TestLibrary.Utilities.CurrentCulture.DateTimeFormat.LongTimePattern, "h:mm:ss tt", StringComparison.Ordinal) == 0)))
-
- {
- TestLibrary.TestFramework.LogInformation("Skipping test case, " +
- " LongDatePattern: " + TestLibrary.Utilities.CurrentCulture.DateTimeFormat.LongDatePattern +
- " LongTimePattern: " + TestLibrary.Utilities.CurrentCulture.DateTimeFormat.LongTimePattern);
- return retVal;
- }
-
- try
- {
- for(int i=0; i<c_NUM_LOOPS; i++)
- {
- day = (TestLibrary.Generator.GetInt32(-55) % 27) + 1;
- year = (TestLibrary.Generator.GetInt32(-55) % 100) + 1900;
- month = (TestLibrary.Generator.GetInt32(-55) % 12);
- hour = (TestLibrary.Generator.GetInt32(-55) % 12);
- minute = (TestLibrary.Generator.GetInt32(-55) % 60);
- second = (TestLibrary.Generator.GetInt32(-55) % 60);
- timeOfDay = (TestLibrary.Generator.GetInt32(-55) % 2);
-
- dateBeforeForValidity = new DateTime(year, month + 1, day, hour, minute, second);
-
- // cheat and get day of the week
- dateAfter = DateTime.Parse( (month+1) + "/" + day + "/" + year);
- dayOfWeek = (int)dateAfter.DayOfWeek;
-
- // parse the date
- dateBefore = (DayOfWeek)dayOfWeek + ", " +
- c_MONTHS[month] + " " +
- (String.Compare(TestLibrary.Utilities.CurrentCulture.DateTimeFormat.LongDatePattern, "dddd, MMMM dd, yyyy", StringComparison.Ordinal) == 0 && 10 > day ? "0" : "") + day + ", " +
- year + " " +
- (String.Compare(TestLibrary.Utilities.CurrentCulture.DateTimeFormat.LongTimePattern, "hh:mm:ss tt", StringComparison.Ordinal) == 0 && 10 > hour ? "0" : "") + hour + ":" +
- (10 > minute ? "0" : "") + minute + ":" +
- (10 > second ? "0" : "") + second + " " + twelveHour[timeOfDay];
-
- if (!TestLibrary.Utilities.IsWindows)
- {
- dateAfter = DateTime.Parse(dateBefore);
- TimeSpan span = dateAfter - dateAfter.ToUniversalTime();
- String strSpan = (span.Duration()==span ? "+" : "-") +
- (10 > span.Duration().Hours ? "0" : "") + span.Duration().Hours +
- ":" + (10 > span.Minutes ? "0" : "") + span.Minutes;
- dateBefore += " " + strSpan;
- }
-
- dateAfter = DateTime.ParseExact( dateBefore, "F", formater );
-
- //Dev10 Bug 686124: For mac, the ambiguous and invalid points in time on the Mac
- if (false == TimeZoneInfo.Local.IsInvalidTime(dateBeforeForValidity))
- {
- if ((month + 1) != dateAfter.Month
- || day != dateAfter.Day
- || year != dateAfter.Year
- || (DayOfWeek)dayOfWeek != dateAfter.DayOfWeek
- || (hour + timeOfDay * 12) != dateAfter.Hour
- || minute != dateAfter.Minute
- || second != dateAfter.Second)
- {
- TestLibrary.TestFramework.LogError("009", "DateTime.ParseExact(" + dateBefore + ") did not equal (" + dateAfter.DayOfWeek + ", " + c_MONTHS[dateAfter.Month - 1] + " " + dateAfter.Day + ", " + dateAfter.Year + " " + dateAfter.Hour + ":" + dateAfter.Minute + ":" + dateAfter.Second + ")");
- retVal = false;
- }
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("010", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("010", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest7()
- {
- bool retVal = true;
- MyFormater formater = new MyFormater();
- DateTime dateAfter;
- string dateBefore = "";
- int day; // 1 - 28
- int month; // 1 - 12
- int year; // 1900 - 2000
- int hour; // 0 - 11
- int minute; // 0 - 59
- int second; // 0 - 59
- int timeOfDay; // 0 -1
- string[] twelveHour = new string[2] {"AM", "PM"};
-
- DateTime dateBeforeForValidity;
-
- TestLibrary.TestFramework.BeginScenario("PosTest7: DateTime.ParseExact(G, ex: 1/3/2002 12:00:00 AM)");
-
- // Culture could be customized
- if (!(String.Compare(TestLibrary.Utilities.CurrentCulture.DateTimeFormat.ShortDatePattern, "M/d/yyyy", StringComparison.Ordinal) == 0 &&
- (String.Compare(TestLibrary.Utilities.CurrentCulture.DateTimeFormat.LongTimePattern, "hh:mm:ss tt", StringComparison.Ordinal) == 0 ||
- String.Compare(TestLibrary.Utilities.CurrentCulture.DateTimeFormat.LongTimePattern, "h:mm:ss tt", StringComparison.Ordinal) == 0)))
- {
- TestLibrary.TestFramework.LogInformation("Skipping test case, " +
- " ShortDatePattern: " + TestLibrary.Utilities.CurrentCulture.DateTimeFormat.ShortDatePattern +
- " LongTimePattern: " + TestLibrary.Utilities.CurrentCulture.DateTimeFormat.LongTimePattern);
- return retVal;
- }
-
- try
- {
- for(int i=0; i<c_NUM_LOOPS; i++)
- {
- day = (TestLibrary.Generator.GetInt32(-55) % 27) + 1;
- year = (TestLibrary.Generator.GetInt32(-55) % 100) + 1930;
- month = (TestLibrary.Generator.GetInt32(-55) % 12) + 1;
- hour = (TestLibrary.Generator.GetInt32(-55) % 12);
- minute = (TestLibrary.Generator.GetInt32(-55) % 60);
- second = (TestLibrary.Generator.GetInt32(-55) % 60);
- timeOfDay = (TestLibrary.Generator.GetInt32(-55) % 2);
- dateBeforeForValidity = new DateTime(year, month, day, hour, minute, second);
-
- // parse the date
- dateBefore = month + "/" + + day + "/" + year + " " +
- (String.Compare(TestLibrary.Utilities.CurrentCulture.DateTimeFormat.LongTimePattern, "hh:mm:ss tt", StringComparison.Ordinal) == 0 && 10 > hour ? "0" : "") + hour + ":" +
- (10 > minute ? "0" : "") + minute + ":" + (10 > second ? "0" : "") + second + " " + twelveHour[timeOfDay];
-
- if (!TestLibrary.Utilities.IsWindows)
- {
- dateAfter = DateTime.Parse(dateBefore);
- TimeSpan span = dateAfter - dateAfter.ToUniversalTime();
- String strSpan = (span.Duration()==span ? "+" : "-") +
- (10 > span.Duration().Hours ? "0" : "") + span.Duration().Hours +
- ":" + (10 > span.Minutes ? "0" : "") + span.Minutes;
- dateBefore += " " + strSpan;
- }
-
- dateAfter = DateTime.ParseExact(dateBefore, "G", formater);
-
- //Dev10 Bug 686124: For mac, the ambiguous and invalid points in time on the Mac
- if (false == TimeZoneInfo.Local.IsInvalidTime(dateBeforeForValidity))
- {
- if (month != dateAfter.Month
- || day != dateAfter.Day
- || year != dateAfter.Year
- || (hour + timeOfDay * 12) != dateAfter.Hour
- || minute != dateAfter.Minute
- || second != dateAfter.Second)
- {
- TestLibrary.TestFramework.LogError("013", "DateTime.ParseExact(" + dateBefore + ") did not equal (" + dateAfter.Month + "/" + dateAfter.Day + "/" + dateAfter.Year + " " + dateAfter.Hour + ":" + dateAfter.Minute + ":" + dateAfter.Second + ")");
- retVal = false;
- }
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("014", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("014", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest8()
- {
- bool retVal = true;
- MyFormater formater = new MyFormater();
- DateTime dateAfter;
- string dateBefore = "";
- int day; // 1 - 28
- int month; // 0 - 11
-
- TestLibrary.TestFramework.BeginScenario("PosTest8: DateTime.ParseExact(m, MMMM dd (MonthDayPattern ex: January 03))");
-
- // Culture could be customized
- if (String.Compare(TestLibrary.Utilities.CurrentCulture.DateTimeFormat.MonthDayPattern, "MMMM dd", StringComparison.Ordinal) != 0)
- {
- TestLibrary.TestFramework.LogInformation("Skipping test case, MonthDayPattern: " + TestLibrary.Utilities.CurrentCulture.DateTimeFormat.MonthDayPattern);
- return retVal;
- }
-
- try
- {
- for(int i=0; i<c_NUM_LOOPS; i++)
- {
- day = (TestLibrary.Generator.GetInt32(-55) % 27) + 1;
- month = (TestLibrary.Generator.GetInt32(-55) % 12);
-
- // parse the date
- dateBefore = c_MONTHS[month] + " " + (10>day?"0":"") + day;
- dateAfter = DateTime.ParseExact( dateBefore, "m", formater );
-
- if ((month+1) != dateAfter.Month
- || day != dateAfter.Day)
- {
- TestLibrary.TestFramework.LogError("015", "DateTime.ParseExact(" + dateBefore + ") did not equal (" + c_MONTHS[dateAfter.Month-1] + " " + dateAfter.Day + ")");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("016", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("016", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest9()
- {
- bool retVal = true;
- MyFormater formater = new MyFormater();
- DateTime dateAfter;
- string dateBefore = "";
- int dayOfWeek; // 0 - 6
- int day; // 1 - 28
- int year; // 1900 - 2000
- int month; // 0 - 11
- int hour; // 12 - 23
- int minute; // 0 - 59
- int second; // 0 - 59
- DateTime dateBeforeForValidity;
-
- TestLibrary.TestFramework.BeginScenario("PosTest9: DateTime.ParseExact(R, ddd, dd MMM yyyy HH':'mm':'ss 'GMT' (RFC1123Pattern ex: Thu, 03 Jan 2002 00:00:00 GMT))");
-
- // if there is any change in RFC1123Pattern, this test case would fail. The formatting should be updated!!!
- if (String.Compare(TestLibrary.Utilities.CurrentCulture.DateTimeFormat.RFC1123Pattern, "ddd, dd MMM yyyy HH':'mm':'ss 'GMT'", StringComparison.Ordinal) != 0)
- {
- TestLibrary.TestFramework.LogError("PosTest9", "Skipping test case, RFC1123Pattern: " + TestLibrary.Utilities.CurrentCulture.DateTimeFormat.RFC1123Pattern);
- return false;
- }
-
- try
- {
- for(int i=0; i<c_NUM_LOOPS; i++)
- {
- day = (TestLibrary.Generator.GetInt32(-55) % 27) + 1;
- year = (TestLibrary.Generator.GetInt32(-55) % 100) + 1900;
- month = (TestLibrary.Generator.GetInt32(-55) % 12);
- hour = (TestLibrary.Generator.GetInt32(-55) % 12) + 12; // Parse will convert perform GMT -> PST conversion
- minute = (TestLibrary.Generator.GetInt32(-55) % 60);
- second = (TestLibrary.Generator.GetInt32(-55) % 60);
- dayOfWeek = (TestLibrary.Generator.GetInt32(-55) % 7);
-
- dateBeforeForValidity = new DateTime(year, month + 1, day, hour, minute, second);
-
- // cheat and get day of the week
- dateAfter = DateTime.Parse( (month+1) + "/" + day + "/" + year);
- dayOfWeek = (int)dateAfter.DayOfWeek;
-
- // parse the date
- dateBefore = c_DAYS_SH[dayOfWeek] + ", " + (10>day?"0":"") + day + " " + c_MONTHS_SH[month] + " " + year + " " + (10>hour?"0":"") + hour + ":" + (10>minute?"0":"") + minute + ":" + (10>second?"0":"") + second + " GMT";
- dateAfter = DateTime.ParseExact( dateBefore, "R", formater );
-
- //Dev10 Bug 686124: For mac, the ambiguous and invalid points in time on the Mac
- if (false == TimeZoneInfo.Local.IsInvalidTime(dateBeforeForValidity))
- {
- if ((month + 1) != dateAfter.Month
- || day != dateAfter.Day
- || year != dateAfter.Year
- || (DayOfWeek)dayOfWeek != dateAfter.DayOfWeek
- || minute != dateAfter.Minute
- || second != dateAfter.Second)
- {
- TestLibrary.TestFramework.LogError("017", "DateTime.ParseExact(" + dateBefore + ") did not equal (" + c_DAYS_SH[(int)dateAfter.DayOfWeek] + ", " + dateAfter.Day + " " + c_MONTHS_SH[dateAfter.Month - 1] + " " + dateAfter.Year + " " + dateAfter.Hour + ":" + dateAfter.Minute + ":" + dateAfter.Second + " GMT)");
- retVal = false;
- }
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("018", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("018", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest10()
- {
- bool retVal = true;
- MyFormater formater = new MyFormater();
- DateTime dateAfter;
- string dateBefore = "";
- int day; // 1 - 28
- int month; // 1 - 12
- int year; // 1900 - 2000
- int hour; // 0 - 23
- int minute; // 0 - 59
- int second; // 0 - 59
- DateTime dateBeforeForValidity;
-
- TestLibrary.TestFramework.BeginScenario("PosTest10: DateTime.ParseExact(s, yyyy'-'MM'-'dd'T'HH':'mm':'ss (SortableDateTimePattern ex: 2002-01-03T00:00:00))");
- // if there is any change in SortableDateTimePattern, this test case would fail, The formatting should be updated!!!
- if (String.Compare(TestLibrary.Utilities.CurrentCulture.DateTimeFormat.SortableDateTimePattern, "yyyy'-'MM'-'dd'T'HH':'mm':'ss", StringComparison.Ordinal) != 0)
- {
- TestLibrary.TestFramework.LogError("PosTest10", "Skipping test case, SortableDateTimePattern: " + TestLibrary.Utilities.CurrentCulture.DateTimeFormat.SortableDateTimePattern);
- return false;
- }
-
- try
- {
- for(int i=0; i<c_NUM_LOOPS; i++)
- {
- day = (TestLibrary.Generator.GetInt32(-55) % 27) + 1;
- year = (TestLibrary.Generator.GetInt32(-55) % 100) + 1900;
- month = (TestLibrary.Generator.GetInt32(-55) % 12) + 1;
- hour = (TestLibrary.Generator.GetInt32(-55) % 24);
- minute = (TestLibrary.Generator.GetInt32(-55) % 60);
- second = (TestLibrary.Generator.GetInt32(-55) % 60);
-
- dateBeforeForValidity = new DateTime(year, month, day, hour, minute, second);
-
- // parse the date
- dateBefore = year + "-" + (10>month?"0":"") + month + "-" + (10>day?"0":"") + day + "T" + ((10 > hour) ? "0" : "") + hour + ":" + ((10 > minute) ? "0" : "") + minute + ":" + ((10 > second) ? "0" : "") + second;
- dateAfter = DateTime.ParseExact( dateBefore, "s", formater );
-
- //Dev10 Bug 686124: For mac, the ambiguous and invalid points in time on the Mac
- if (false == TimeZoneInfo.Local.IsInvalidTime(dateBeforeForValidity))
- {
- if (month != dateAfter.Month
- || day != dateAfter.Day
- || year != dateAfter.Year
- || hour != dateAfter.Hour
- || minute != dateAfter.Minute
- || second != dateAfter.Second)
- {
- TestLibrary.TestFramework.LogError("019", "DateTime.ParseExact(" + dateBefore + ") did not equal (" + dateAfter.Year + "-" + dateAfter.Month + "-" + dateAfter.Day + "T" + dateAfter.Hour + ":" + dateAfter.Minute + ":" + dateAfter.Second + ")");
- retVal = false;
- }
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("020", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("020", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest12()
- {
- bool retVal = true;
- MyFormater formater = new MyFormater();
- DateTime dateAfter;
- string dateBefore = "";
- int hour; // 0 - 11
- int minute; // 0 - 59
- int second; // 0 - 59
- int timeOfDay; // 0 -1
- string[] twelveHour = new string[2] {"AM", "PM"};
-
- TestLibrary.TestFramework.BeginScenario("PosTest12: DateTime.ParseExact(T, h:mm:ss tt (LongTimePattern ex: 12:00:00 AM))");
-
- // Culture could be customized
- if (String.Compare(TestLibrary.Utilities.CurrentCulture.DateTimeFormat.LongTimePattern, "hh:mm:ss tt", StringComparison.Ordinal) != 0 &&
- String.Compare(TestLibrary.Utilities.CurrentCulture.DateTimeFormat.LongTimePattern, "h:mm:ss tt", StringComparison.Ordinal) != 0)
- {
- TestLibrary.TestFramework.LogInformation("Skipping test case, " + " LongTimePattern: " + TestLibrary.Utilities.CurrentCulture.DateTimeFormat.LongTimePattern);
- return retVal;
- }
-
- try
- {
- for(int i=0; i<c_NUM_LOOPS; i++)
- {
- hour = (TestLibrary.Generator.GetInt32(-55) % 12);
- minute = (TestLibrary.Generator.GetInt32(-55) % 60);
- second = (TestLibrary.Generator.GetInt32(-55) % 60);
- timeOfDay = (TestLibrary.Generator.GetInt32(-55) % 2);
-
- // parse the date
- int newHour = hour==0?12:hour;
- dateBefore = (String.Compare(TestLibrary.Utilities.CurrentCulture.DateTimeFormat.LongTimePattern, "hh:mm:ss tt", StringComparison.Ordinal) == 0 && 10 > newHour ? "0" : "") + newHour +
- ":" + (10 > minute ? "0" : "") + minute + ":" + (10 > second ? "0" : "") + second + " " + twelveHour[timeOfDay];
- if (!TestLibrary.Utilities.IsWindows)
- {
- dateAfter = DateTime.Parse(dateBefore);
- TimeSpan span = dateAfter - dateAfter.ToUniversalTime();
- String strSpan = (span.Duration()==span ? "+" : "-") +
- (10 > span.Duration().Hours ? "0" : "") + span.Duration().Hours +
- ":" + (10 > span.Minutes ? "0" : "") + span.Minutes;
- dateBefore += " " + strSpan;
- }
-
- dateAfter = DateTime.ParseExact(dateBefore, "T", formater);
-
- if ((hour + timeOfDay*12) != dateAfter.Hour
- || minute != dateAfter.Minute
- || second != dateAfter.Second)
- {
- TestLibrary.TestFramework.LogError("023", "DateTime.ParseExact(" + dateBefore + ") did not equal (" + dateAfter.Hour + ":" + dateAfter.Minute + ":" + dateAfter.Second + ")");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("024", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("024", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest13()
- {
- bool retVal = true;
- MyFormater formater = new MyFormater();
- DateTime dateAfter;
- string dateBefore = "";
- int day; // 1 - 28
- int month; // 1 - 12
- int year; // 1900 - 2000
- int hour; // 12 - 23
- int minute; // 0 - 59
- int second; // 0 - 59
- DateTime dateBeforeForValidity;
-
- TestLibrary.TestFramework.BeginScenario("PosTest13: DateTime.ParseExact(u, yyyy'-'MM'-'dd HH':'mm':'ss'Z' (UniversalSortableDateTimePattern ex: 2002-01-03 00:00:00Z))");
-
- // if there is any change in SortableDateTimePattern, this test case would fail, The formatting should be updated!!!
- if (String.Compare(TestLibrary.Utilities.CurrentCulture.DateTimeFormat.UniversalSortableDateTimePattern, "yyyy'-'MM'-'dd HH':'mm':'ss'Z'", StringComparison.Ordinal) != 0)
- {
- TestLibrary.TestFramework.LogError("PosTest13", "Skipping test case, UniversalSortableDateTimePattern: " + TestLibrary.Utilities.CurrentCulture.DateTimeFormat.UniversalSortableDateTimePattern);
- return false;
- }
-
- try
- {
- for(int i=0; i<c_NUM_LOOPS; i++)
- {
- day = (TestLibrary.Generator.GetInt32(-55) % 27) + 1;
- year = (TestLibrary.Generator.GetInt32(-55) % 100) + 1900;
- month = (TestLibrary.Generator.GetInt32(-55) % 12) + 1;
- hour = (TestLibrary.Generator.GetInt32(-55) % 12) + 12; // conversion
- minute = (TestLibrary.Generator.GetInt32(-55) % 60);
- second = (TestLibrary.Generator.GetInt32(-55) % 60);
-
- dateBeforeForValidity = new DateTime(year, month, day, hour, minute, second);
-
- // parse the date
- dateBefore = year + "-" + (10>month?"0":"") + month + "-" + (10>day?"0":"") + day + " " + ((10 > hour) ? "0" : "") + hour + ":" + ((10 > minute) ? "0" : "") + minute + ":" + ((10 > second) ? "0" : "") + second +"Z";
- dateAfter = DateTime.ParseExact( dateBefore, "u", formater );
-
- //Dev10 Bug 686124: For mac, the ambiguous and invalid points in time on the Mac
- if (false == TimeZoneInfo.Local.IsInvalidTime(dateBeforeForValidity))
- {
- if (month != dateAfter.Month
- || day != dateAfter.Day
- || year != dateAfter.Year
- || minute != dateAfter.Minute
- || second != dateAfter.Second)
- {
- TestLibrary.TestFramework.LogError("025", "DateTime.ParseExact(" + dateBefore + ") did not equal (" + dateAfter.Year + "-" + dateAfter.Month + "-" + dateAfter.Day + " " + dateAfter.Hour + ":" + dateAfter.Minute + ":" + dateAfter.Second + "Z)");
- retVal = false;
- }
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("026", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("026", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest14()
- {
- bool retVal = true;
- MyFormater formater = new MyFormater();
- DateTime dateAfter;
- string dateBefore = "";
- int year; // 1900 - 2000
- int month; // 0 - 11
-
- TestLibrary.TestFramework.BeginScenario("PosTest14: DateTime.ParseExact(y, MMMM, yyyy (YearMonthPattern ex: January, 2002))");
-
- // Culture could be customized
- if (String.Compare(TestLibrary.Utilities.CurrentCulture.DateTimeFormat.YearMonthPattern, "MMMM, yyyy", StringComparison.Ordinal) != 0 )
- {
- TestLibrary.TestFramework.LogInformation("Skipping test case, YearMonthPattern: " + TestLibrary.Utilities.CurrentCulture.DateTimeFormat.YearMonthPattern);
- return retVal;
- }
-
- try
- {
- for(int i=0; i<c_NUM_LOOPS; i++)
- {
- year = (TestLibrary.Generator.GetInt32(-55) % 100) + 1900;
- month = (TestLibrary.Generator.GetInt32(-55) % 12);
-
- dateBefore = c_MONTHS[month] + ", " + year;
- dateAfter = DateTime.ParseExact(dateBefore, "y", formater);
-
- if ((month+1) != dateAfter.Month
- || year != dateAfter.Year)
- {
- TestLibrary.TestFramework.LogError("027", "DateTime.ParseExact(" + dateBefore + ") did not equal (" + c_MONTHS[dateAfter.Month-1] + ", " + dateAfter.Year + ")-("+dateAfter.ToString()+")-DST("+dateAfter.IsDaylightSavingTime()+")");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("028", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("028", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest15()
- {
- bool retVal = true;
- MyFormater formater = new MyFormater();
- string dateBefore = "";
- DateTime dateAfter;
-
- TestLibrary.TestFramework.BeginScenario("PosTest15: DateTime.ParseExact(G, DateTime.Now, null)");
-
- try
- {
- dateBefore = DateTime.Now.ToString();
-
- dateAfter = DateTime.ParseExact( dateBefore, "G", null );
-
- if (!dateBefore.Equals(dateAfter.ToString()))
- {
- TestLibrary.TestFramework.LogError("101", "DateTime.ParseExact(" + dateBefore + ") did not equal " + dateAfter.ToString());
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("102", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("102", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest1()
- {
- bool retVal = true;
- MyFormater formater = new MyFormater();
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: DateTime.ParseExact(null)");
-
- try
- {
- DateTime.ParseExact(null, "d", formater);
-
- TestLibrary.TestFramework.LogError("029", "DateTime.ParseExact(null) should have thrown");
- retVal = false;
- }
- catch (ArgumentNullException)
- {
- // expected
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("030", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
- MyFormater formater = new MyFormater();
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: DateTime.ParseExact(String.Empty)");
-
- try
- {
- DateTime.ParseExact(String.Empty, "d", formater);
-
- TestLibrary.TestFramework.LogError("031", "DateTime.ParseExact(String.Empty) should have thrown");
- retVal = false;
- }
- catch (FormatException)
- {
- // expected
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("032", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
- MyFormater formater = new MyFormater();
- string strDateTime = "";
- DateTime dateAfter;
- string[] formats = new string[17] {"d", "D", "f", "F", "g", "G", "m", "M", "r", "R", "s", "t", "T", "u", "U", "y", "Y"};
- string format;
- int formatIndex;
-
-
- TestLibrary.TestFramework.BeginScenario("NegTest3: DateTime.ParseExact(<garbage>)");
-
- try
- {
- for (int i=0; i<c_NUM_LOOPS; i++)
- {
- try
- {
- formatIndex = TestLibrary.Generator.GetInt32(-55) % 34;
-
- if (0 <= formatIndex && formatIndex < 17)
- {
- format = formats[formatIndex];
- }
- else
- {
- format = TestLibrary.Generator.GetChar(-55) + "";
- }
-
- strDateTime = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- dateAfter = DateTime.ParseExact(strDateTime, format, formater);
-
- TestLibrary.TestFramework.LogError("033", "DateTime.ParseExact(" + strDateTime + ", "+ format + ") should have thrown (" + dateAfter + ")");
- retVal = false;
- }
- catch (FormatException)
- {
- // expected
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("034", "Failing date: " + strDateTime);
- TestLibrary.TestFramework.LogError("034", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest4()
- {
- bool retVal = true;
- MyFormater formater = new MyFormater();
- string dateBefore = "";
- DateTime dateAfter;
-
- TestLibrary.TestFramework.BeginScenario("NegTest4: DateTime.ParseExact(\"\", DateTime.Now, formater)");
-
- try
- {
- dateBefore = DateTime.Now.ToString();
-
- dateAfter = DateTime.ParseExact( dateBefore, "", formater );
-
- TestLibrary.TestFramework.LogError("103", "DateTime.ParseExact(" + dateBefore + ") should have thrown " + dateAfter.ToString());
- retVal = false;
- }
- catch (System.FormatException)
- {
- // expected
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("104", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("104", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest5()
- {
- bool retVal = true;
- MyFormater formater = new MyFormater();
- string dateBefore = "";
- DateTime dateAfter;
-
- TestLibrary.TestFramework.BeginScenario("NegTest5: DateTime.ParseExact(null, DateTime.Now, formater)");
-
- try
- {
- dateBefore = DateTime.Now.ToString();
-
- dateAfter = DateTime.ParseExact( dateBefore, null, formater );
-
- TestLibrary.TestFramework.LogError("105", "DateTime.ParseExact(" + dateBefore + ") should have thrown " + dateAfter.ToString());
- retVal = false;
- }
- catch (System.ArgumentNullException)
- {
- // expected
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("106", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("106", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-}
-
-public class MyFormater : IFormatProvider
-{
- public object GetFormat(Type formatType)
- {
- if (typeof(IFormatProvider) == formatType)
- {
- return this;
- }
- else
- {
- return null;
- }
- }
-}
-
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimeparseexact2.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimeparseexact2.cs
deleted file mode 100644
index 53ee48b..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimeparseexact2.cs
+++ /dev/null
@@ -1,285 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-using System.Globalization;
-
-public class DateTimeParseExact2
-{
- private const int c_MIN_STRING_LEN = 1;
- private const int c_MAX_STRING_LEN = 2048;
- private const int c_NUM_LOOPS = 100;
- private static DateTimeStyles[] c_STYLES = new DateTimeStyles[7] {DateTimeStyles.AdjustToUniversal, DateTimeStyles.AllowInnerWhite, DateTimeStyles.AllowLeadingWhite, DateTimeStyles.AllowTrailingWhite , DateTimeStyles.AllowWhiteSpaces, DateTimeStyles.NoCurrentDateDefault, DateTimeStyles.None };
-
-
- public static int Main()
- {
- DateTimeParseExact2 test = new DateTimeParseExact2();
-
- TestLibrary.TestFramework.BeginTestCase("DateTimeParseExact2");
-
- 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;
-
- TestLibrary.TestFramework.LogInformation("[Negative]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- MyFormater formater = new MyFormater();
- string dateBefore = "";
- DateTime dateAfter;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: DateTime.ParseExact(DateTime.Now)");
-
- try
- {
- for(int i=0; i<c_STYLES.Length; i++)
- {
- dateBefore = DateTime.Now.ToString();
-
- dateAfter = DateTime.ParseExact( dateBefore, "G", formater, c_STYLES[i] );
-
- if (!TestLibrary.Utilities.IsWindows &&
- (c_STYLES[i]==DateTimeStyles.AdjustToUniversal)) // Mac prints offset
- {
- dateAfter = dateAfter.ToLocalTime();
- }
-
- if (!dateBefore.Equals(dateAfter.ToString()))
- {
- TestLibrary.TestFramework.LogError("001", "DateTime.ParseExact(" + dateBefore + ", G, " + c_STYLES[i] + ") did not equal " + dateAfter.ToString());
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
-
- public bool PosTest2()
- {
- bool retVal = true;
- string dateBefore = "";
- DateTime dateAfter;
- MyFormater formater = new MyFormater();
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: DateTime.ParseExact(DateTime.Now, g, formater, <invalid DateTimeStyles>)");
-
- try
- {
- for(int i=-1024; i<1024; i++)
- {
- try
- {
- // skip the valid values
- if (0 == (i & (int)DateTimeStyles.AdjustToUniversal)
- && 0 == (i & (int)DateTimeStyles.AssumeUniversal)
- && 0 == (i & (int)DateTimeStyles.AllowInnerWhite)
- && 0 == (i & (int)DateTimeStyles.AllowLeadingWhite)
- && 0 == (i & (int)DateTimeStyles.AllowTrailingWhite)
- && 0 == (i & (int)DateTimeStyles.AllowWhiteSpaces)
- && 0 == (i & (int)DateTimeStyles.NoCurrentDateDefault)
- && i != (int)DateTimeStyles.None
- )
- {
- dateBefore = DateTime.Now.ToString();
-
- dateAfter = DateTime.ParseExact( dateBefore, "G", formater, (DateTimeStyles)i);
-
- if (!dateBefore.Equals(dateAfter.ToString()))
- {
- TestLibrary.TestFramework.LogError("011", "DateTime.ParseExact(" + dateBefore + ", " + (DateTimeStyles)i + ") did not equal " + dateAfter.ToString());
- retVal = false;
- }
- }
- }
- catch (System.ArgumentException)
- {
- //
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("012", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest1()
- {
- bool retVal = true;
- MyFormater formater = new MyFormater();
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: DateTime.ParseExact(null)");
-
- try
- {
- try
- {
- for(int i=0; i<c_STYLES.Length; i++)
- {
- DateTime.ParseExact(null, "d", formater, c_STYLES[i]);
-
- TestLibrary.TestFramework.LogError("029", "DateTime.ParseExact(null, d, " + c_STYLES[i] + ") should have thrown");
- retVal = false;
- }
- }
- catch (ArgumentNullException)
- {
- // expected
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("030", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
- MyFormater formater = new MyFormater();
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: DateTime.ParseExact(String.Empty)");
-
- try
- {
- try
- {
- for(int i=0; i<c_STYLES.Length; i++)
- {
- DateTime.ParseExact(String.Empty, "d", formater, c_STYLES[i]);
-
- TestLibrary.TestFramework.LogError("029", "DateTime.ParseExact(String.Empty, d, " + c_STYLES[i] + ") should have thrown");
- retVal = false;
- }
- }
- catch (ArgumentNullException)
- {
- // expected
- }
- }
- catch (FormatException)
- {
- // expected
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("032", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
- MyFormater formater = new MyFormater();
- string strDateTime = "";
- DateTime dateAfter;
- string[] formats = new string[17] {"d", "D", "f", "F", "g", "G", "m", "M", "r", "R", "s", "t", "T", "u", "U", "y", "Y"};
- string format;
- int formatIndex;
-
-
- TestLibrary.TestFramework.BeginScenario("NegTest3: DateTime.ParseExact(<garbage>)");
-
- try
- {
- for (int i=0; i<c_NUM_LOOPS; i++)
- {
- for(int j=0; j<c_STYLES.Length; j++)
- {
- try
- {
- formatIndex = TestLibrary.Generator.GetInt32(-55) % 34;
-
- if (0 <= formatIndex && formatIndex < 17)
- {
- format = formats[formatIndex];
- }
- else
- {
- format = TestLibrary.Generator.GetChar(-55) + "";
- }
-
- strDateTime = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- dateAfter = DateTime.ParseExact(strDateTime, format, formater, c_STYLES[j]);
-
- TestLibrary.TestFramework.LogError("033", "DateTime.ParseExact(" + strDateTime + ", "+ format + ", " + c_STYLES[j] + ") should have thrown (" + dateAfter + ")");
- retVal = false;
- }
- catch (FormatException)
- {
- // expected
- }
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("034", "Failing date: " + strDateTime);
- TestLibrary.TestFramework.LogError("034", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-}
-
-public class MyFormater : IFormatProvider
-{
- public object GetFormat(Type formatType)
- {
- if (typeof(IFormatProvider) == formatType)
- {
- return this;
- }
- else
- {
- return null;
- }
- }
-}
-
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimeparseexact3.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimeparseexact3.cs
deleted file mode 100644
index 6f08e37..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimeparseexact3.cs
+++ /dev/null
@@ -1,318 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-using System.Globalization;
-
-public class DateTimeParseExact2
-{
- private const int c_MIN_STRING_LEN = 1;
- private const int c_MAX_STRING_LEN = 2048;
- private const int c_NUM_LOOPS = 100;
- private static DateTimeStyles[] c_STYLES = new DateTimeStyles[7] {DateTimeStyles.AdjustToUniversal, DateTimeStyles.AllowInnerWhite, DateTimeStyles.AllowLeadingWhite, DateTimeStyles.AllowTrailingWhite , DateTimeStyles.AllowWhiteSpaces, DateTimeStyles.NoCurrentDateDefault, DateTimeStyles.None };
-
-
- public static int Main()
- {
- DateTimeParseExact2 test = new DateTimeParseExact2();
-
- TestLibrary.TestFramework.BeginTestCase("DateTimeParseExact2");
-
- 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;
-
- TestLibrary.TestFramework.LogInformation("[Negative]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- retVal = NegTest3() && retVal;
- retVal = NegTest4() && retVal;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- MyFormater formater = new MyFormater();
- string dateBefore = "";
- DateTime dateAfter;
-
- TestLibrary.TestFramework.BeginScenario("PosTest1: DateTime.ParseExact(DateTime.Now)");
-
- try
- {
- for(int i=0; i<c_STYLES.Length; i++)
- {
- dateBefore = DateTime.Now.ToString();
-
- dateAfter = DateTime.ParseExact( dateBefore, new string[] {"G"}, formater, c_STYLES[i] );
-
- if (!TestLibrary.Utilities.IsWindows &&
- (c_STYLES[i]==DateTimeStyles.AdjustToUniversal)) // Mac prints offset
- {
- dateAfter = dateAfter.ToLocalTime();
- }
-
- if (!dateBefore.Equals(dateAfter.ToString()))
- {
- TestLibrary.TestFramework.LogError("001", "DateTime.ParseExact(" + dateBefore + ", G, " + c_STYLES[i] + ") did not equal " + dateAfter.ToString());
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- string dateBefore = "";
- DateTime dateAfter;
- MyFormater formater = new MyFormater();
-
- TestLibrary.TestFramework.BeginScenario("PosTest2: DateTime.ParseExact(DateTime.Now, g, formater, <invalid DateTimeStyles>)");
-
- try
- {
- for(int i=-1024; i<1024; i++)
- {
- try
- {
- // skip the valid values
- if (0 == (i & (int)DateTimeStyles.AdjustToUniversal)
- && 0 == (i & (int)DateTimeStyles.AssumeUniversal)
- && 0 == (i & (int)DateTimeStyles.AllowInnerWhite)
- && 0 == (i & (int)DateTimeStyles.AllowLeadingWhite)
- && 0 == (i & (int)DateTimeStyles.AllowTrailingWhite)
- && 0 == (i & (int)DateTimeStyles.AllowWhiteSpaces)
- && 0 == (i & (int)DateTimeStyles.NoCurrentDateDefault)
- && i != (int)DateTimeStyles.None
- )
- {
- dateBefore = DateTime.Now.ToString();
-
- dateAfter = DateTime.ParseExact( dateBefore, new string[] {"G"}, formater, (DateTimeStyles)i);
-
- if (!dateBefore.Equals(dateAfter.ToString()))
- {
- TestLibrary.TestFramework.LogError("011", "DateTime.ParseExact(" + dateBefore + ", " + (DateTimeStyles)i + ") did not equal " + dateAfter.ToString());
- retVal = false;
- }
- }
- }
- catch (System.ArgumentException)
- {
- //
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("012", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest1()
- {
- bool retVal = true;
- MyFormater formater = new MyFormater();
-
- TestLibrary.TestFramework.BeginScenario("NegTest1: DateTime.ParseExact(null)");
-
- try
- {
- try
- {
- for(int i=0; i<c_STYLES.Length; i++)
- {
- DateTime.ParseExact(null, new string[] {"d"}, formater, c_STYLES[i]);
-
- TestLibrary.TestFramework.LogError("029", "DateTime.ParseExact(null, d, " + c_STYLES[i] + ") should have thrown");
- retVal = false;
- }
- }
- catch (ArgumentNullException)
- {
- // expected
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("030", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest2()
- {
- bool retVal = true;
- MyFormater formater = new MyFormater();
-
- TestLibrary.TestFramework.BeginScenario("NegTest2: DateTime.ParseExact(String.Empty)");
-
- try
- {
- try
- {
- for(int i=0; i<c_STYLES.Length; i++)
- {
- DateTime.ParseExact(String.Empty, new string[] {"d"}, formater, c_STYLES[i]);
-
- TestLibrary.TestFramework.LogError("029", "DateTime.ParseExact(String.Empty, d, " + c_STYLES[i] + ") should have thrown");
- retVal = false;
- }
- }
- catch (ArgumentNullException)
- {
- // expected
- }
- }
- catch (FormatException)
- {
- // expected
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("032", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest3()
- {
- bool retVal = true;
- MyFormater formater = new MyFormater();
- string strDateTime = "";
- DateTime dateAfter;
- string[] formats = new string[17] {"d", "D", "f", "F", "g", "G", "m", "M", "r", "R", "s", "t", "T", "u", "U", "y", "Y"};
- string format;
- int formatIndex;
-
-
- TestLibrary.TestFramework.BeginScenario("NegTest3: DateTime.ParseExact(<garbage>)");
-
- try
- {
- for (int i=0; i<c_NUM_LOOPS; i++)
- {
- for(int j=0; j<c_STYLES.Length; j++)
- {
- try
- {
- formatIndex = TestLibrary.Generator.GetInt32(-55) % 34;
-
- if (0 <= formatIndex && formatIndex < 17)
- {
- format = formats[formatIndex];
- }
- else
- {
- format = TestLibrary.Generator.GetChar(-55) + "";
- }
-
- strDateTime = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN);
- dateAfter = DateTime.ParseExact(strDateTime, new string[] {format}, formater, c_STYLES[j]);
-
- TestLibrary.TestFramework.LogError("033", "DateTime.ParseExact(" + strDateTime + ", "+ format + ", " + c_STYLES[j] + ") should have thrown (" + dateAfter + ")");
- retVal = false;
- }
- catch (FormatException)
- {
- // expected
- }
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("034", "Failing date: " + strDateTime);
- TestLibrary.TestFramework.LogError("034", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool NegTest4()
- {
- bool retVal = true;
- MyFormater formater = new MyFormater();
- string dateBefore = "";
- DateTime dateAfter;
- string[] formats = null;
-
- TestLibrary.TestFramework.BeginScenario("NegTest4: DateTime.ParseExact(DateTime.Now, null)");
-
- try
- {
- dateBefore = DateTime.Now.ToString();
-
- dateAfter = DateTime.ParseExact( dateBefore, formats, formater, DateTimeStyles.NoCurrentDateDefault );
-
- TestLibrary.TestFramework.LogError("035", "DateTime.ParseExact(" + dateBefore + ", null, " + DateTimeStyles.NoCurrentDateDefault + ") should have thrown " + dateAfter.ToString());
- retVal = false;
- }
- catch (System.ArgumentNullException)
- {
- // expected
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("036", "Failing date: " + dateBefore);
- TestLibrary.TestFramework.LogError("036", "Unexpected exception: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-}
-
-public class MyFormater : IFormatProvider
-{
- public object GetFormat(Type formatType)
- {
- if (typeof(IFormatProvider) == formatType)
- {
- return this;
- }
- else
- {
- return null;
- }
- }
-}
-
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimesecond.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimesecond.cs
deleted file mode 100644
index f6928c9..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimesecond.cs
+++ /dev/null
@@ -1,98 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-using System.Collections.Generic;
-using System.Threading;
-using System.Globalization;
-
-
-public class DateTimeSecond
-{
- public static int Main(string[] args)
- {
- DateTimeSecond second = new DateTimeSecond();
- TestLibrary.TestFramework.BeginTestCase("Testing System.DateTime.Second property...");
-
- if (second.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Verify DateTime.Second property when DateTime instance's second is assigned...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- DateTime myDateTime = new DateTime(0978, 08, 29, 03, 29, 22);
- int second = myDateTime.Second;
-
- if (second != 22)
- {
- TestLibrary.TestFramework.LogError("001", "The second is not correct!");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Verify DateTime.Second property When DateTime instance is only assigned year month and day...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- DateTime myDateTime = new DateTime(1978, 08, 29);
- int second = myDateTime.Second;
-
- if (second != 0)
- {
- TestLibrary.TestFramework.LogError("003", "The second is not zero when no value is assigned at init time!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
-
-}
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimesubtract1.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimesubtract1.cs
deleted file mode 100644
index 953dd9f..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimesubtract1.cs
+++ /dev/null
@@ -1,205 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-using System.Globalization;
-/// <summary>
-/// DateTime.Subtract(DateTime)
-/// </summary>
-public class DateTimeSubtract1
-{
- public static int Main()
- {
- DateTimeSubtract1 dtsub1 = new DateTimeSubtract1();
- TestLibrary.TestFramework.BeginTestCase("DataTimeSubtract1");
- if (dtsub1.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.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;
- //TestLibrary.TestFramework.LogInformation("[NegTest]");
- //retVal = NegTest1() && retVal;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TimeSpan resultTime;
- TestLibrary.TestFramework.BeginScenario("PosTest1: The TimeSpan is in the range of MinValue and MaxValue 1");
- try
- {
- DateTime date1 = new DateTime(1,1,1);
- DateTime date2 = DateTime.MinValue.AddYears(1).AddMonths(1).AddDays(1);
- resultTime = date2.Subtract(date1);
- if (resultTime.Days != 397)
- {
- TestLibrary.TestFramework.LogError("001", "Expected: 397 days, actual: "+resultTime.Days);
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool PosTest2()
- {
- bool retVal = true;
- TimeSpan resultTime;
- TestLibrary.TestFramework.BeginScenario("PosTest2: The TimeSpan is in the range of MinValue and MaxValue 2");
- try
- {
- DateTime date1 = new DateTime(1999, 1, 1).ToLocalTime();
- DateTime date2 = new DateTime(2000, 1, 1).ToLocalTime();
- resultTime = date2.Subtract(date1);
- if (resultTime.Days != 365)
- {
- 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;
- TimeSpan resultTime;
- TestLibrary.TestFramework.BeginScenario("PosTest3: The TimeSpan is in the range of MinValue and MaxValue 3");
- try
- {
- DateTime date1 = new DateTime(2000, 1, 1).ToLocalTime();
- DateTime date2 = new DateTime(2001, 1, 1).ToLocalTime();
- resultTime = date2.Subtract(date1);
- if (resultTime.Days != 366)
- {
- 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;
- TimeSpan resultTime;
- TestLibrary.TestFramework.BeginScenario("PosTest4: The TimeSpan is in the range of MinValue and MaxValue 4");
- try
- {
- DateTime date1 = new DateTime(2001, 1, 1).ToLocalTime();
- DateTime date2 = new DateTime(2000, 1, 1).ToLocalTime();
- resultTime = date2.Subtract(date1);
- if (resultTime.Days != -366)
- {
- 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;
- TimeSpan resultTime;
- TestLibrary.TestFramework.BeginScenario("PosTest5: The TimeSpan is in the range of MinValue and MaxValue 5");
- try
- {
- DateTime date1 = new DateTime(2000, 1, 1).ToLocalTime();
- DateTime date2 = new DateTime(1999, 1, 1).ToLocalTime();
- resultTime = date2.Subtract(date1);
- if (resultTime.Days != -365)
- {
- 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;
- TimeSpan resultTime;
- TestLibrary.TestFramework.BeginScenario("PosTest6: The TimeSpan is in the range of MinValue and MaxValue 6");
- try
- {
- DateTime date1 = new DateTime(2000, 1, 1).ToLocalTime();
- DateTime date2 = new DateTime(2000, 1, 1).ToLocalTime();
- resultTime = date2.Subtract(date1);
- if (resultTime.Days != 0)
- {
- 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 NegativeTest
- //public bool NegTest1()
- //{
- // bool retVal = true;
- // TimeSpan resultTime;
- // TestLibrary.TestFramework.BeginScenario("NegTest1: The TimeSpan is less than DateTime MinValue");
- // try
- // {
- // DateTime date1 = DateTime.MinValue.ToLocalTime();
- // DateTime date2 = DateTime.MaxValue.ToLocalTime();
- // resultTime = date1.Subtract(date2);
- // retVal = false;
- // TestLibrary.TestFramework.LogError("N001", "the TimeSpan is less DateTime MinValue but not throw exception");
- // }
- // catch (ArgumentOutOfRangeException) { }
- // catch (Exception e)
- // {
- // TestLibrary.TestFramework.LogError("N002", "Unexpect exception:" + e);
- // retVal = false;
- // }
- // return retVal;
- //}
- #endregion
-}
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimesubtract2.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimesubtract2.cs
deleted file mode 100644
index 90e4a5c..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimesubtract2.cs
+++ /dev/null
@@ -1,225 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-using System.Globalization;
-/// <summary>
-/// DateTime.Subtract(TimeSpan)
-/// </summary>
-public class DateTimeSubtract2
-{
- public static int Main()
- {
- DateTimeSubtract2 dtsub2 = new DateTimeSubtract2();
- TestLibrary.TestFramework.BeginTestCase("DataTimeSubtract2");
- if (dtsub2.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.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;
- TestLibrary.TestFramework.LogInformation("[NegTest]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- DateTime resultTime;
- TestLibrary.TestFramework.BeginScenario("PosTest1: The return dateTime is in the range of MinValue and MaxValue 1");
- try
- {
- DateTime date1 = new DateTime(2000, 1, 1).ToLocalTime();
- TimeSpan timeSpan = new TimeSpan(365, 0, 0, 0);
- resultTime = date1.Subtract(timeSpan);
- if (resultTime!= new DateTime(1999,1,1).ToLocalTime())
- {
- 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;
- DateTime resultTime;
- TestLibrary.TestFramework.BeginScenario("PosTest2: The return dateTime is in the range of MinValue and MaxValue 2");
- try
- {
- DateTime date1 = new DateTime(1999, 1, 1).ToLocalTime();
- TimeSpan timeSpan = new TimeSpan(-365, 0, 0, 0);
- resultTime = date1.Subtract(timeSpan);
- if (resultTime != new DateTime(2000, 1, 1).ToLocalTime())
- {
- 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;
- DateTime resultTime;
- TestLibrary.TestFramework.BeginScenario("PosTest3: The return dateTime is in the range of MinValue and MaxValue 3");
- try
- {
- DateTime date1 = new DateTime(this.GetInt32(1,9999),this.GetInt32(1,12),this.GetInt32(1,28)).ToLocalTime();
- TimeSpan timeSpan = new TimeSpan(0, 0, 0, 0);
- resultTime = date1.Subtract(timeSpan);
- if (resultTime != date1)
- {
- 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;
- DateTime resultTime;
- TestLibrary.TestFramework.BeginScenario("PosTest4: The return dateTime is in the range of MinValue and MaxValue 4");
- try
- {
- DateTime date1 = new DateTime(2001, 1, 1).ToLocalTime();
- TimeSpan timeSpan = new TimeSpan(366, 0, 0, 0);
- resultTime = date1.Subtract(timeSpan);
- if (resultTime != new DateTime(2000, 1, 1).ToLocalTime())
- {
- 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;
- DateTime resultTime;
- TestLibrary.TestFramework.BeginScenario("PosTest5: The return dateTime is in the range of MinValue and MaxValue 5");
- try
- {
- DateTime date1 = new DateTime(2000, 1, 1).ToLocalTime();
- TimeSpan timeSpan = new TimeSpan(-366, 0, 0, 0);
- resultTime = date1.Subtract(timeSpan);
- if (resultTime != new DateTime(2001, 1, 1).ToLocalTime())
- {
- 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 NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- DateTime resultTime;
- TestLibrary.TestFramework.BeginScenario("NegTest1: The return dateTime is out the range of MinValue and MaxValue 1");
- try
- {
- DateTime date1 = DateTime.MinValue.ToLocalTime();
- TimeSpan timeSpan = new TimeSpan(365, 0, 0, 0);
- resultTime = date1.Subtract(timeSpan);
- TestLibrary.TestFramework.LogError("N001", "The return datetime is less than MinValue but not throw exception");
- retVal = false;
- }
- catch (ArgumentOutOfRangeException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N002", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool NegTest2()
- {
- bool retVal = true;
- DateTime resultTime;
- TestLibrary.TestFramework.BeginScenario("NegTest2: The return dateTime is out the range of MinValue and MaxValue 1");
- try
- {
- DateTime date1 = DateTime.MaxValue.ToLocalTime();
- TimeSpan timeSpan = new TimeSpan(-365, 0, 0, 0);
- resultTime = date1.Subtract(timeSpan);
- retVal = false;
- TestLibrary.TestFramework.LogError("N003", "The return datetime is greater than MaxValue but not throw exception");
- }
- catch (ArgumentOutOfRangeException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N004", "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
-}
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimeticks.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimeticks.cs
deleted file mode 100644
index 198c20c..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimeticks.cs
+++ /dev/null
@@ -1,99 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-using System.Collections;
-using System.Threading;
-
-
-/// <summary>
-/// System.DateTime.Ticks
-/// </summary>
-public class DateTimeTicks
-{
- public static int Main(string[] args)
- {
- DateTimeTicks ticks = new DateTimeTicks();
- TestLibrary.TestFramework.BeginTestCase("Testing System.DateTime.Ticks property...");
-
- if (ticks.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
- //retVal = PosTest3() && retVal;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Verify ticks when DateTime instance is midnight, January 1, 0001...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new System.Globalization.CultureInfo("");
- DateTime myDateTime = new DateTime(0001,01,01,00,00,00);
- long ticks = myDateTime.Ticks;
-
- if (ticks != 0)
- {
- TestLibrary.TestFramework.LogError("001", "The ticks is not zero when the DateTime instance is midnight, January 1, 0001...");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002","Unexpected exception occurs: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Verify ticks when DateTime instance is larger than midnight, January 1, 0001");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new System.Globalization.CultureInfo("");
- DateTime myDateTime = new DateTime(1978,08,29,03,29,22);
- long ticks = myDateTime.Ticks;
-
- if (ticks <= 0)
- {
- TestLibrary.TestFramework.LogError("003","The ticks is wrong!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004","Unexpected exception occurs: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-}
-
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimetimeofday.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimetimeofday.cs
deleted file mode 100644
index 744242e..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimetimeofday.cs
+++ /dev/null
@@ -1,98 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-using System.Collections;
-using System.Threading;
-
-/// <summary>
-/// System.DateTime.TimeOfDay
-/// </summary>
-public class DateTimeTimeOfDay
-{
- public static int Main(string[] args)
- {
- DateTimeTimeOfDay timeOfDay = new DateTimeTimeOfDay();
- TestLibrary.TestFramework.BeginTestCase("Testing System.DateTime.TimeOfDay property...");
-
- if (timeOfDay.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Verify TimeOfDay when created instance is assigned time...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new System.Globalization.CultureInfo("");
- DateTime myDateTime = new DateTime(1978,08,29,03,29,22);
- TimeSpan myTimeSpan = myDateTime.TimeOfDay;
-
- if (myTimeSpan.Days != 0 && myTimeSpan.Hours != 03 && myTimeSpan.Minutes != 29
- && myTimeSpan.Seconds != 22 && myTimeSpan.Milliseconds != 0)
- {
- TestLibrary.TestFramework.LogError("001","The TimeSpan 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 PosTest2()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Verify TimeOfDay when created instance is not assigned time...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new System.Globalization.CultureInfo("");
- DateTime myDateTime = new DateTime(1978,08,29);
- TimeSpan myTimeSpan = myDateTime.TimeOfDay;
-
- if (myTimeSpan.Hours != 0 && myTimeSpan.Minutes != 0 && myTimeSpan.Seconds != 0)
- {
- TestLibrary.TestFramework.LogError("003","The initial timeSpan is wrong!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004","Unexpected exception occurs: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-}
-
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimetoday.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimetoday.cs
deleted file mode 100644
index d2f3727..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimetoday.cs
+++ /dev/null
@@ -1,95 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-using System.Collections.Generic;
-using System.Threading;
-
-
-/// <summary>
-/// System.DateTime.Today
-/// </summary>
-public class DateTimeToday
-{
- public static int Main(string[] args)
- {
- DateTimeToday today = new DateTimeToday();
- TestLibrary.TestFramework.BeginTestCase("Testing System.DateTime.Today property...");
-
- if (today.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
- retVal = PosTest2() && retVal;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Verify the value of hour minute and second in Today property...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new System.Globalization.CultureInfo("");
- DateTime today = DateTime.Today;
-
- if (today.Hour != 0 && today.Minute != 0 && today.Second != 0)
- {
- TestLibrary.TestFramework.LogError("001","The initial value of today 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 PosTest2()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Verify the type of today property is System.DateTime...");
-
- try
- {
- DateTime today = DateTime.Today;
- Type typeOfToday = today.GetType();
-
- if (typeOfToday.ToString() != "System.DateTime")
- {
- TestLibrary.TestFramework.LogError("003","The type of Today property is wrong!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004","Unexpected exception occurs: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-}
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimetofiletime.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimetofiletime.cs
deleted file mode 100644
index 36653c9..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimetofiletime.cs
+++ /dev/null
@@ -1,126 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-using System.Globalization;
-/// <summary>
-/// System.DateTime.ToFileTime()
-/// </summary>
-public class DateTimeToFileTime
-{
- public static int Main()
- {
- DateTimeToFileTime dttft = new DateTimeToFileTime();
- TestLibrary.TestFramework.BeginTestCase("DataTimeToFileTime");
- if (dttft.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.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;
- TestLibrary.TestFramework.LogInformation("[NegTest]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: The current dateTime equals 1601/1/1");
- try
- {
- DateTime date1 = new DateTime(1601, 1, 1).ToLocalTime().ToUniversalTime();
- long result = date1.ToFileTime();
- if (result != 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;
- TestLibrary.TestFramework.BeginScenario("PosTest2: The current dateTime lager 1601/1/1");
- try
- {
- DateTime date1 = new DateTime(1999, 1, 1).ToLocalTime().ToUniversalTime();
- DateTime date2 = new DateTime(1601, 1, 1).ToLocalTime().ToUniversalTime();
- TimeSpan timeSpan = date1.Subtract(date2);
- long result = date1.ToFileTime();
- long expect = timeSpan.Days * 864000000000; //8640000000 = 24*3600*1000*1000*1000/100
- if (result != expect)
- {
- 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
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest1: The current dateTime less than 1601/1/1 1");
- try
- {
- DateTime date1 = DateTime.MinValue.ToLocalTime().ToUniversalTime();
- long result = date1.ToFileTime();
- retVal = false;
- TestLibrary.TestFramework.LogError("N001", "The current dateTime is less than 1601/1/1 but not throw exception");
- }
- catch (ArgumentOutOfRangeException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N002", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool NegTest2()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest2: The current dateTime less than 1601/1/1 2");
- try
- {
- DateTime date1 = new DateTime(1600, 1, 1).ToLocalTime().ToUniversalTime();
- long result = date1.ToFileTime();
- retVal = false;
- TestLibrary.TestFramework.LogError("N003", "The current dateTime is less than 1601/1/1 but not throw exception");
- }
- catch (ArgumentOutOfRangeException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N004", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimetofiletimeutc.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimetofiletimeutc.cs
deleted file mode 100644
index c3d3321..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimetofiletimeutc.cs
+++ /dev/null
@@ -1,126 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-using System.Globalization;
-/// <summary>
-/// System.DateTime.ToFileTimeUtc()
-/// </summary>
-public class DateTimeToFileTimeUtc
-{
- public static int Main()
- {
- DateTimeToFileTimeUtc dttftu = new DateTimeToFileTimeUtc();
- TestLibrary.TestFramework.BeginTestCase("DataTimeToFileTimeUtc");
- if (dttftu.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.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;
- TestLibrary.TestFramework.LogInformation("[NegTest]");
- retVal = NegTest1() && retVal;
- retVal = NegTest2() && retVal;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1: The current dateTime equals 1601/1/1");
- try
- {
- DateTime date1 = new DateTime(1601, 1, 1).ToLocalTime().ToUniversalTime();
- long result = date1.ToFileTime();
- if (result != 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;
- TestLibrary.TestFramework.BeginScenario("PosTest2: The current dateTime lager 1601/1/1");
- try
- {
- DateTime date1 = new DateTime(1999, 1, 1).ToLocalTime().ToUniversalTime();
- DateTime date2 = new DateTime(1601, 1, 1).ToLocalTime().ToUniversalTime();
- TimeSpan timeSpan = date1.Subtract(date2);
- long result = date1.ToFileTime();
- long expect = timeSpan.Days * 864000000000; //8640000000 = 24*3600*1000*1000*1000/100
- if (result != expect)
- {
- 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
- #region NegativeTest
- public bool NegTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest1: The current dateTime less than 1601/1/1 1");
- try
- {
- DateTime date1 = DateTime.MinValue.ToLocalTime().ToUniversalTime();
- long result = date1.ToFileTime();
- retVal = false;
- TestLibrary.TestFramework.LogError("N001", "The current dateTime is less than 1601/1/1 but not throw exception");
- }
- catch (ArgumentOutOfRangeException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N002", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- public bool NegTest2()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("NegTest2: The current dateTime less than 1601/1/1 2");
- try
- {
- DateTime date1 = new DateTime(1600, 1, 1).ToLocalTime().ToUniversalTime();
- long result = date1.ToFileTime();
- retVal = false;
- TestLibrary.TestFramework.LogError("N003", "The current dateTime is less than 1601/1/1 but not throw exception");
- }
- catch (ArgumentOutOfRangeException) { }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("N004", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-} \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimetolocaltime.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimetolocaltime.cs
deleted file mode 100644
index e79453f..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimetolocaltime.cs
+++ /dev/null
@@ -1,66 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-using System.Collections;
-
-/// <summary>
-/// System.DateTime.ToLocalTime
-/// </summary>
-public class DateTimeToLocalTime
-{
- public static int Main(string[] args)
- {
- DateTimeToLocalTime toLocalTime = new DateTimeToLocalTime();
- TestLibrary.TestFramework.BeginTestCase("Testing DateTime.ToLocalTime...");
-
- if (toLocalTime.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
- }
-
- public bool RunTests()
- {
- bool retVal = true;
-
- TestLibrary.TestFramework.LogInformation("[Positive]");
- retVal = PosTest1() && retVal;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Verify convvert DateTime to utc then convert back is equal to original...");
-
- try
- {
- DateTime myTime = DateTime.Now;
- DateTime myUtcTime = myTime.ToUniversalTime();
- DateTime utcToLocal = myUtcTime.ToLocalTime();
-
- if (myTime != utcToLocal)
- {
- TestLibrary.TestFramework.LogError("001","The DateTime change back to local should be equal to original!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002","Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-}
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimetostring1.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimetostring1.cs
deleted file mode 100644
index 3fd204f..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimetostring1.cs
+++ /dev/null
@@ -1,122 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-using System.Collections.Generic;
-using System.Globalization;
-using System.Threading;
-
-
-/// <summary>
-/// System.DateTime.ToString
-/// </summary>
-public class DateTimeToString1
-{
- public static int Main(string[] args)
- {
- DateTimeToString1 toString = new DateTimeToString1();
- TestLibrary.TestFramework.BeginTestCase("Testing System.DateTime.ToString method...");
-
- if (toString.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.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("Testing DateTime.ToString() when DateTime instance is created by ctor(int year,int month,int day)...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- DateTime myDateTime = new DateTime(1978,08,29);
- string dateString = myDateTime.ToString();
- char[] splitors = {'/',' ',':'};
- string[] parts = dateString.Split(splitors);
-
- if (parts.Length != 6)
- {
- TestLibrary.TestFramework.LogError("001", "The component parts are not correct!");
- retVal = false;
- }
- else
- {
- if (parts[0] != "1978" && parts[1] != "08" && parts[2] != "29" && parts[3] != "00"
- && parts[4] != "00" && parts[5] != "00")
- {
- TestLibrary.TestFramework.LogError("002","The content is not correct!");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002","Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- /// <summary>
- /// new added scenario
- /// </summary>
- /// <returns></returns>
- public bool PosTest2()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Testing DateTime.ToString() when DateTime instance is created by ctor(int year,int month,int day,int hour,int minute,int second)...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- DateTime myDateTime = new DateTime(1978,08,29,01,10,10);
- string dateString = myDateTime.ToString();
- char[] splitors = { '/', ' ', ':' };
- string[] parts = dateString.Split(splitors);
-
- if (parts.Length != 6)
- {
- TestLibrary.TestFramework.LogError("001", "The component parts are not correct!");
- retVal = false;
- }
- else
- {
- if (parts[0] != "1978" && parts[1] != "08" && parts[2] != "29" && parts[3] != "01"
- && parts[4] != "10" && parts[5] != "10")
- {
- TestLibrary.TestFramework.LogError("002", "The content is not correct!");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-}
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimetostring2.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimetostring2.cs
deleted file mode 100644
index d4cd95a..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimetostring2.cs
+++ /dev/null
@@ -1,118 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-using System.Collections.Generic;
-using System.Globalization;
-using System.Threading;
-
-
-/// <summary>
-/// System.DateTime.ToString(System.IFormatProvider)
-/// </summary>
-public class DateTimeToString2
-{
- public static int Main(string[] args)
- {
- DateTimeToString2 toString = new DateTimeToString2();
- TestLibrary.TestFramework.BeginTestCase("Testing System.DateTime.ToString(System.IFormatProvider)...");
-
- if (toString.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.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("Testing DateTime.ToString(System.IFormatProvider) when DateTimeFormatInfo is CurrentInfo...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- DateTime myDateTime = new DateTime(1978, 08, 29);
- string dateString = myDateTime.ToString(DateTimeFormatInfo.CurrentInfo);
- char[] splitors = { '/', ' ', ':' };
- string[] parts = dateString.Split(splitors);
-
- if (parts.Length != 6)
- {
- TestLibrary.TestFramework.LogError("001", "The component parts are not correct!");
- retVal = false;
- }
- else
- {
- if (parts[0] != "1978" && parts[1] != "08" && parts[2] != "29" && parts[3] != "00"
- && parts[4] != "00" && parts[5] != "00")
- {
- TestLibrary.TestFramework.LogError("002", "The content 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("Testing DateTime.ToString(System.IFormatProvider) when when DateTimeFormatInfo is InvariantInfo...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- DateTime myDateTime = new DateTime(1978, 08, 29, 01, 10, 10);
- string dateString = myDateTime.ToString(DateTimeFormatInfo.InvariantInfo);
- char[] splitors = { '/', ' ', ':' };
- string[] parts = dateString.Split(splitors);
-
- if (parts.Length != 6)
- {
- TestLibrary.TestFramework.LogError("001", "The component parts are not correct!");
- retVal = false;
- }
- else
- {
- if (parts[0] != "1978" && parts[1] != "08" && parts[2] != "29" && parts[3] != "01"
- && parts[4] != "10" && parts[5] != "10")
- {
- TestLibrary.TestFramework.LogError("002", "The content is not correct!");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-}
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimetostring3.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimetostring3.cs
deleted file mode 100644
index 79c8a31..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimetostring3.cs
+++ /dev/null
@@ -1,588 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-using System.Collections.Generic;
-using System.Globalization;
-using System.Threading;
-
-/// <summary>
-/// System.DateTime.ToString(System.String)
-/// </summary>
-public class DateTimeToString3
-{
- public static int Main(string[] args)
- {
- DateTimeToString3 myDateTime = new DateTimeToString3();
- TestLibrary.TestFramework.BeginTestCase("Testing System.DateTime.ToString(System.String)...");
-
- if (myDateTime.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.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;
-
- return retVal;
- }
-
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Testing DateTime.ToString(System.String) using format as M/d/yyyy hh:mm:ss tt...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- string format = @"M/d/yyyy hh:mm:ss tt";
- DateTime myDateTime = new DateTime(1978, 08, 29);
- string dateString = myDateTime.ToString(format);
- char[] splitors = { '/', ' ', ':' };
- string[] parts = dateString.Split(splitors);
-
- if (parts.Length != 7)
- {
- TestLibrary.TestFramework.LogError("001", "The component parts are not correct!");
- retVal = false;
- }
- else
- {
- if (parts[0] != "1978" && parts[1] != "08" && parts[2] != "29" && parts[3] != "00"
- && parts[4] != "00" && parts[5] != "00" && parts[6]!="AM")
- {
- TestLibrary.TestFramework.LogError("002", "The content is not correct!");
- 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("Testing DateTime.ToString(System.String) using format as M-d-yyyy hh:mm:ss tt...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- string format = @"M-d-yyyy hh:mm:ss tt";
- DateTime myDateTime = new DateTime(1978, 08, 29);
- string dateString = myDateTime.ToString(format);
- char[] splitors = { '-', ' ', ':' };
- string[] parts = dateString.Split(splitors);
-
- if (parts.Length != 7)
- {
- TestLibrary.TestFramework.LogError("004", "The component parts are not correct!");
- retVal = false;
- }
- else
- {
- if (parts[0] != "1978" && parts[1] != "08" && parts[2] != "29" && parts[3] != "00"
- && parts[4] != "00" && parts[5] != "00" && parts[6]!="AM")
- {
- TestLibrary.TestFramework.LogError("005", "The content is not correct!");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest3()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Testing DateTime.ToString(System.String) using format as M-d-yyyy hh:mm:ss...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- string format = @"M-d-yyyy hh:mm:ss";
- DateTime myDateTime = new DateTime(1978, 08, 29);
- string dateString = myDateTime.ToString(format);
- char[] splitors = { '-', ' ', ':' };
- string[] parts = dateString.Split(splitors);
-
- if (parts.Length != 6)
- {
- TestLibrary.TestFramework.LogError("007", "The component parts are not correct!");
- retVal = false;
- }
- else
- {
- if (parts[0] != "1978" && parts[1] != "08" && parts[2] != "29" && parts[3] != "00"
- && parts[4] != "00" && parts[5] != "00")
- {
- TestLibrary.TestFramework.LogError("008", "The content is not correct!");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("009", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest4()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Testing DateTime.ToString(System.String) using format as d...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- string format = @"d";
- DateTime myDateTime = new DateTime(1978, 08, 29);
- string dateString = myDateTime.ToString(format);
- char[] splitors = { '/'};
- string[] parts = dateString.Split(splitors);
-
- if (parts.Length != 3)
- {
- TestLibrary.TestFramework.LogError("010", "The component parts are not correct!");
- retVal = false;
- }
- else
- {
- if (parts[0] != "29" && parts[1] != "08" && parts[2] != "1978")
- {
- TestLibrary.TestFramework.LogError("011", "The content is not correct!");
- retVal = false;
- }
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("012", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest5()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Testing DateTime.ToString(System.String) using format as D...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- string format = @"D";
- DateTime myDateTime = DateTime.Now;
- string dateString = myDateTime.ToString(format);
- char[] splitors = { ' ' };
- string[] parts = dateString.Split(splitors);
-
- if (parts.Length != 4)
- {
- TestLibrary.TestFramework.LogError("013", "The component parts are not correct!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("014", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest6()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Testing DateTime.ToString(System.String) using format as f...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- string format = @"f";
- DateTime myDateTime = DateTime.Now;
- string dateString = myDateTime.ToString(format);
- char[] splitors = { ' ',':' };
- string[] parts = dateString.Split(splitors);
-
- if (parts.Length != 6)
- {
- TestLibrary.TestFramework.LogError("015", "The component parts are not correct!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("016", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest7()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Testing DateTime.ToString(System.String) using format as F...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- string format = @"F";
- DateTime myDateTime = DateTime.Now;
- string dateString = myDateTime.ToString(format);
- char[] splitors = { ' ', ':' };
- string[] parts = dateString.Split(splitors);
-
- if (parts.Length != 7)
- {
- TestLibrary.TestFramework.LogError("017", "The component parts are not correct!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("018", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest8()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Testing DateTime.ToString(System.String) using format as g...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- string format = @"g";
- DateTime myDateTime = DateTime.Now;
- string dateString = myDateTime.ToString(format);
- char[] splitors = { '/',' ', ':' };
- string[] parts = dateString.Split(splitors);
-
- if (parts.Length != 5)
- {
- TestLibrary.TestFramework.LogError("019", "The component parts are not correct!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("020", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest9()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Testing DateTime.ToString(System.String) using format as G...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- string format = @"G";
- DateTime myDateTime = DateTime.Now;
- string dateString = myDateTime.ToString(format);
- char[] splitors = { '/', ' ', ':' };
- string[] parts = dateString.Split(splitors);
-
- if (parts.Length != 6)
- {
- TestLibrary.TestFramework.LogError("021", "The component parts are not correct!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("022", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest10()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Testing DateTime.ToString(System.String) using format as m...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- string format = @"m";
- DateTime myDateTime = DateTime.Now;
- string dateString = myDateTime.ToString(format);
- char[] splitors = {' '};
- string[] parts = dateString.Split(splitors);
-
- if (parts.Length != 2)
- {
- TestLibrary.TestFramework.LogError("023", "The component parts are not correct!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("024", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest11()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Testing DateTime.ToString(System.String) using format as r...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- string format = @"r";
- DateTime myDateTime = DateTime.Now;
- string dateString = myDateTime.ToString(format);
- char[] splitors = { ',',' ',':' };
- string[] parts = dateString.Split(splitors);
-
- if (parts.Length != 9)
- {
- TestLibrary.TestFramework.LogError("025", "The component parts are not correct!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("026", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest12()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Testing DateTime.ToString(System.String) using format as s...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- string format = @"s";
- DateTime myDateTime = DateTime.Now;
- string dateString = myDateTime.ToString(format);
- char[] splitors = { '-', 'T', ':' };
- string[] parts = dateString.Split(splitors);
-
- if (parts.Length != 6)
- {
- TestLibrary.TestFramework.LogError("027", "The component parts are not correct!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("028", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest13()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Testing DateTime.ToString(System.String) using format as t...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- string format = @"t";
- DateTime myDateTime = DateTime.Now;
- string dateString = myDateTime.ToString(format);
- char[] splitors = {':' };
- string[] parts = dateString.Split(splitors);
-
- if (parts.Length != 2)
- {
- TestLibrary.TestFramework.LogError("029", "The component parts are not correct!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("030", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest14()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Testing DateTime.ToString(System.String) using format as T...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- string format = @"T";
- DateTime myDateTime = DateTime.Now;
- string dateString = myDateTime.ToString(format);
- char[] splitors = { ':' };
- string[] parts = dateString.Split(splitors);
-
- if (parts.Length != 3)
- {
- TestLibrary.TestFramework.LogError("031", "The component parts are not correct!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("032", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest15()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Testing DateTime.ToString(System.String) using format as u...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- string format = @"u";
- DateTime myDateTime = DateTime.Now;
- string dateString = myDateTime.ToString(format);
- char[] splitors = {'-',' ', ':' };
- string[] parts = dateString.Split(splitors);
-
- if (parts.Length != 6)
- {
- TestLibrary.TestFramework.LogError("033", "The component parts are not correct!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("034", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest16()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Testing DateTime.ToString(System.String) using format as U...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- string format = @"U";
- DateTime myDateTime = DateTime.Now;
- string dateString = myDateTime.ToString(format);
- char[] splitors = {' ', ':' };
- string[] parts = dateString.Split(splitors);
-
- if (parts.Length != 7)
- {
- TestLibrary.TestFramework.LogError("035", "The component parts are not correct!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("036", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest17()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("Testing DateTime.ToString(System.String) using format as y...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new CultureInfo("");
- string format = @"y";
- DateTime myDateTime = DateTime.Now;
- string dateString = myDateTime.ToString(format);
- char[] splitors = { ' '};
- string[] parts = dateString.Split(splitors);
-
- if (parts.Length != 2)
- {
- TestLibrary.TestFramework.LogError("037", "The component parts are not correct!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("038", "Unexpected exception occurs: " + e);
- retVal = false;
- }
-
- return retVal;
- }
-
-
-}
diff --git a/tests/src/CoreMangLib/cti/system/datetime/datetimeutcnow.cs b/tests/src/CoreMangLib/cti/system/datetime/datetimeutcnow.cs
deleted file mode 100644
index 668e71f..0000000
--- a/tests/src/CoreMangLib/cti/system/datetime/datetimeutcnow.cs
+++ /dev/null
@@ -1,93 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-using System.Collections;
-using System.Threading;
-
-public class DateTimeUtcNow
-{
- public static int Main(string[] args)
- {
- DateTimeUtcNow utcNow = new DateTimeUtcNow();
- TestLibrary.TestFramework.BeginTestCase("Testing System.DateTime.UtcNow property...");
-
- if (utcNow.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.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.BeginTestCase("Verify DateTime.UtcNow is Universal kind...");
-
- try
- {
- TestLibrary.Utilities.CurrentCulture = new System.Globalization.CultureInfo("");
- DateTime myDateTime = DateTime.UtcNow;
- Type typeOfNow = myDateTime.GetType();
- DateTime toUniversal = myDateTime.ToUniversalTime();
-
- if (myDateTime != toUniversal)
- {
- TestLibrary.TestFramework.LogError("001", "The kind of UtcNow property is not local!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception occurs: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-
- public bool PosTest2()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginTestCase("Verify the type of UtcNow property is DateTime...");
-
- try
- {
- DateTime myDateTime = DateTime.UtcNow;
- Type typeOfNow = myDateTime.GetType();
-
- if (typeOfNow.ToString() != "System.DateTime")
- {
- TestLibrary.TestFramework.LogError("003", "The type of Now property is wrong!");
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("004", "Unexpected exception occurs: " + e);
- TestLibrary.TestFramework.LogInformation(e.StackTrace);
- retVal = false;
- }
-
- return retVal;
- }
-}
diff --git a/tests/src/CoreMangLib/cti/system/datetimekind/DateTimeKindLocal.csproj b/tests/src/CoreMangLib/cti/system/datetimekind/DateTimeKindLocal.csproj
deleted file mode 100644
index 8887078..0000000
--- a/tests/src/CoreMangLib/cti/system/datetimekind/DateTimeKindLocal.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="datetimekindlocal.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetimekind/DateTimeKindUnspecified.csproj b/tests/src/CoreMangLib/cti/system/datetimekind/DateTimeKindUnspecified.csproj
deleted file mode 100644
index 68b0c23..0000000
--- a/tests/src/CoreMangLib/cti/system/datetimekind/DateTimeKindUnspecified.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="datetimekindunspecified.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetimekind/DateTimeKindUtc.csproj b/tests/src/CoreMangLib/cti/system/datetimekind/DateTimeKindUtc.csproj
deleted file mode 100644
index c4ff4dc..0000000
--- a/tests/src/CoreMangLib/cti/system/datetimekind/DateTimeKindUtc.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="datetimekindutc.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/datetimekind/datetimekindlocal.cs b/tests/src/CoreMangLib/cti/system/datetimekind/datetimekindlocal.cs
deleted file mode 100644
index 5970677..0000000
--- a/tests/src/CoreMangLib/cti/system/datetimekind/datetimekindlocal.cs
+++ /dev/null
@@ -1,69 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-
-///<summary>
-///System.DateTimeKind.Local
-///</summary>
-
-public class DateTimeKindLocal
-{
-
- public static int Main()
- {
- DateTimeKindLocal testObj = new DateTimeKindLocal();
- TestLibrary.TestFramework.BeginTestCase("for property of System.DateTimeKind.Local");
- if (testObj.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
-
- }
-
- public bool RunTests()
- {
- bool retVal = true;
- retVal = PosTest1() && retVal;
- return retVal;
- }
-
-
- #region Test Logic
- public bool PosTest1()
- {
- bool retVal = true;
-
- int expectedValue = 2;
- int actualValue;
-
-
- TestLibrary.TestFramework.BeginScenario("PosTest1:get DateTimeKind.Local");
- try
- {
- actualValue = (int)DateTimeKind.Local;
-
- if (expectedValue != actualValue)
- {
- TestLibrary.TestFramework.LogError("001", "ExpectedValue(" + expectedValue + ") !=ActualValue(" + actualValue + ")");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
diff --git a/tests/src/CoreMangLib/cti/system/datetimekind/datetimekindunspecified.cs b/tests/src/CoreMangLib/cti/system/datetimekind/datetimekindunspecified.cs
deleted file mode 100644
index 9a278fb..0000000
--- a/tests/src/CoreMangLib/cti/system/datetimekind/datetimekindunspecified.cs
+++ /dev/null
@@ -1,69 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-
-///<summary>
-///System.DateTimeKind.Unspecified
-///</summary>
-
-public class DateTimeKindUnspecified
-{
-
- public static int Main()
- {
- DateTimeKindUnspecified testObj = new DateTimeKindUnspecified();
- TestLibrary.TestFramework.BeginTestCase("for property of System.DateTimeKind.Unspecified");
- if (testObj.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
-
- }
-
- public bool RunTests()
- {
- bool retVal = true;
- retVal = PosTest1() && retVal;
- return retVal;
- }
-
-
- #region Test Logic
- public bool PosTest1()
- {
- bool retVal = true;
-
- int expectedValue = 0;
- int actualValue;
-
-
- TestLibrary.TestFramework.BeginScenario("PosTest1:get DateTimeKind.Unspecified");
- try
- {
- actualValue = (int)DateTimeKind.Unspecified;
-
- if (expectedValue != actualValue)
- {
- TestLibrary.TestFramework.LogError("001", "ExpectedValue(" + expectedValue + ") !=ActualValue(" + actualValue + ")");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
diff --git a/tests/src/CoreMangLib/cti/system/datetimekind/datetimekindutc.cs b/tests/src/CoreMangLib/cti/system/datetimekind/datetimekindutc.cs
deleted file mode 100644
index 2c19aee..0000000
--- a/tests/src/CoreMangLib/cti/system/datetimekind/datetimekindutc.cs
+++ /dev/null
@@ -1,69 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-
-///<summary>
-///System.DateTimeKind.Utc
-///</summary>
-
-public class DateTimeKindUtc
-{
-
- public static int Main()
- {
- DateTimeKindUtc testObj = new DateTimeKindUtc();
- TestLibrary.TestFramework.BeginTestCase("for property of System.DateTimeKind.Utc");
- if (testObj.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
-
- }
-
- public bool RunTests()
- {
- bool retVal = true;
- retVal = PosTest1() && retVal;
- return retVal;
- }
-
-
- #region Test Logic
- public bool PosTest1()
- {
- bool retVal = true;
-
- int expectedValue = 1;
- int actualValue;
-
-
- TestLibrary.TestFramework.BeginScenario("PosTest1:get DateTimeKind.Utc");
- try
- {
- actualValue = (int)DateTimeKind.Utc;
-
- if (expectedValue != actualValue)
- {
- TestLibrary.TestFramework.LogError("001", "ExpectedValue(" + expectedValue + ") != ActualValue(" + actualValue + ")");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
diff --git a/tests/src/CoreMangLib/cti/system/globalization/calendarweekrule/CalendarWeekRuleFirstDay.csproj b/tests/src/CoreMangLib/cti/system/globalization/calendarweekrule/CalendarWeekRuleFirstDay.csproj
deleted file mode 100644
index a225d5e..0000000
--- a/tests/src/CoreMangLib/cti/system/globalization/calendarweekrule/CalendarWeekRuleFirstDay.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="calendarweekrulefirstday.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/globalization/calendarweekrule/CalendarWeekRuleFirstFourDayWeek.csproj b/tests/src/CoreMangLib/cti/system/globalization/calendarweekrule/CalendarWeekRuleFirstFourDayWeek.csproj
deleted file mode 100644
index 99a9c8e..0000000
--- a/tests/src/CoreMangLib/cti/system/globalization/calendarweekrule/CalendarWeekRuleFirstFourDayWeek.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="calendarweekrulefirstfourdayweek.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/globalization/calendarweekrule/CalendarWeekRuleFirstFullWeek.csproj b/tests/src/CoreMangLib/cti/system/globalization/calendarweekrule/CalendarWeekRuleFirstFullWeek.csproj
deleted file mode 100644
index 3ba9a7f..0000000
--- a/tests/src/CoreMangLib/cti/system/globalization/calendarweekrule/CalendarWeekRuleFirstFullWeek.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="calendarweekrulefirstfullweek.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="../../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- <ProjectReference Include="../../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/tests/src/CoreMangLib/cti/system/globalization/calendarweekrule/calendarweekrulefirstday.cs b/tests/src/CoreMangLib/cti/system/globalization/calendarweekrule/calendarweekrulefirstday.cs
deleted file mode 100644
index fa91117..0000000
--- a/tests/src/CoreMangLib/cti/system/globalization/calendarweekrule/calendarweekrulefirstday.cs
+++ /dev/null
@@ -1,70 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-using System.Globalization;
-
-///<summary>
-///System.Globalization.CalendarWeekRule.FirstDay
-///</summary>
-
-public class CalendarWeekRuleFirstDay
-{
-
- public static int Main()
- {
- CalendarWeekRuleFirstDay testObj = new CalendarWeekRuleFirstDay();
- TestLibrary.TestFramework.BeginTestCase("for the System.CalendarWeekRule.FirstDay");
- if (testObj.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
-
- }
-
- public bool RunTests()
- {
- bool retVal = true;
- retVal = PosTest1() && retVal;
- return retVal;
- }
-
-
- #region Test Logic
- public bool PosTest1()
- {
- bool retVal = true;
-
- int expectedValue = 0;
- int actualValue;
-
-
- TestLibrary.TestFramework.BeginScenario("PosTest1:get CalendarWeekRule.FirstDay");
- try
- {
- actualValue = (int)CalendarWeekRule.FirstDay;
-
- if (expectedValue != actualValue)
- {
- TestLibrary.TestFramework.LogError("001", "ExpectedValue(" + expectedValue + ") !=ActualValue(" + actualValue + ")");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
diff --git a/tests/src/CoreMangLib/cti/system/globalization/calendarweekrule/calendarweekrulefirstfourdayweek.cs b/tests/src/CoreMangLib/cti/system/globalization/calendarweekrule/calendarweekrulefirstfourdayweek.cs
deleted file mode 100644
index a8c3975..0000000
--- a/tests/src/CoreMangLib/cti/system/globalization/calendarweekrule/calendarweekrulefirstfourdayweek.cs
+++ /dev/null
@@ -1,70 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-using System.Globalization;
-
-///<summary>
-///System.Globalization.CalendarWeekRule.FirstFourDayWeek
-///</summary>
-
-public class CalendarWeekRuleFirstFourDayWeek
-{
-
- public static int Main()
- {
- CalendarWeekRuleFirstFourDayWeek testObj = new CalendarWeekRuleFirstFourDayWeek();
- TestLibrary.TestFramework.BeginTestCase("for the System.CalendarWeekRule.FirstDay");
- if (testObj.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
-
- }
-
- public bool RunTests()
- {
- bool retVal = true;
- retVal = PosTest1() && retVal;
- return retVal;
- }
-
-
- #region Test Logic
- public bool PosTest1()
- {
- bool retVal = true;
-
- int expectedValue = 2;
- int actualValue;
-
-
- TestLibrary.TestFramework.BeginScenario("PosTest1:get CalendarWeekRule.FirstFourDayWeek");
- try
- {
- actualValue = (int)CalendarWeekRule.FirstFourDayWeek;
-
- if (expectedValue != actualValue)
- {
- TestLibrary.TestFramework.LogError("001", "ExpectedValue(" + expectedValue + ") !=ActualValue(" + actualValue + ")");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
diff --git a/tests/src/CoreMangLib/cti/system/globalization/calendarweekrule/calendarweekrulefirstfullweek.cs b/tests/src/CoreMangLib/cti/system/globalization/calendarweekrule/calendarweekrulefirstfullweek.cs
deleted file mode 100644
index 69258ff..0000000
--- a/tests/src/CoreMangLib/cti/system/globalization/calendarweekrule/calendarweekrulefirstfullweek.cs
+++ /dev/null
@@ -1,70 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-using System.Globalization;
-
-///<summary>
-///System.Globalization.CalendarWeekRule.FirstFullWeek
-///</summary>
-
-public class CalendarWeekRuleFirstFullWeek
-{
-
- public static int Main()
- {
- CalendarWeekRuleFirstFullWeek testObj = new CalendarWeekRuleFirstFullWeek();
- TestLibrary.TestFramework.BeginTestCase("for the System.CalendarWeekRule.FirstDay");
- if (testObj.RunTests())
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("PASS");
- return 100;
- }
- else
- {
- TestLibrary.TestFramework.EndTestCase();
- TestLibrary.TestFramework.LogInformation("FAIL");
- return 0;
- }
-
- }
-
- public bool RunTests()
- {
- bool retVal = true;
- retVal = PosTest1() && retVal;
- return retVal;
- }
-
-
- #region Test Logic
- public bool PosTest1()
- {
- bool retVal = true;
-
- int expectedValue = 1;
- int actualValue;
-
-
- TestLibrary.TestFramework.BeginScenario("PosTest1:get CalendarWeekRule.FirstFullWeek");
- try
- {
- actualValue = (int)CalendarWeekRule.FirstFullWeek;
-
- if (expectedValue != actualValue)
- {
- TestLibrary.TestFramework.LogError("001", "ExpectedValue(" + expectedValue + ") !=ActualValue(" + actualValue + ")");
- retVal = false;
- }
-
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-}
diff --git a/tests/src/CoreMangLib/cti/system/globalization/charunicodeinfo/CharUnicodeInfoGetNumericValue1.csproj b/tests/src/CoreMangLib/cti/system/globalization/charunicodeinfo/CharUnicodeInfoGetNumericValue1.csproj
deleted file mode 100644
index 7ee428d..0000000
--- a/tests/src/CoreMangLib/cti/system/globalization/charunicodeinfo/CharUnicodeInfoGetNumericValue1.csproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include