Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tests][mmp] Convert old mmp calendar regression tests to unit tests #4983

Merged
merged 2 commits into from
Oct 15, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion tests/linker/mac/link all/LinkAllTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,21 @@ namespace LinkAllTests
[Preserve (AllMembers = true)]
public class LinkAllTest
{

static void Check (string calendarName, bool present)
{
var type = Type.GetType ("System.Globalization." + calendarName);
bool success = present == (type != null);
Assert.AreEqual (present, type != null, calendarName);
}

[Test]
public void Existence ()
public void Calendars ()
{
Check ("GregorianCalendar", true);
Check ("UmAlQuraCalendar", false);
Check ("HijriCalendar", false);
Check ("ThaiBuddhistCalendar", false);
}
}
}
14 changes: 13 additions & 1 deletion tests/linker/mac/link sdk/LinkSdkTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,21 @@ namespace LinkSdkTests
[Preserve (AllMembers = true)]
public class LinkSdkTest
{
static void Check (string calendarName, bool present)
{
var type = Type.GetType ("System.Globalization." + calendarName);
bool success = present == (type != null);
Assert.AreEqual (present, type != null, calendarName);
}

[Test]
public void Existence ()
public void Calendars ()
{
Check ("GregorianCalendar", true);
// because project options enabled them
Check ("UmAlQuraCalendar", true);
Check ("HijriCalendar", true);
Check ("ThaiBuddhistCalendar", true);
}
}
}
2 changes: 2 additions & 0 deletions tests/linker/mac/link sdk/link sdk-mac.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<LinkMode>SdkOnly</LinkMode>
<XamMacArch></XamMacArch>
<AOTMode>None</AOTMode>
<I18n>mideast,other</I18n>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<DebugType></DebugType>
Expand All @@ -49,6 +50,7 @@
<HttpClientHandler></HttpClientHandler>
<XamMacArch></XamMacArch>
<AOTMode>None</AOTMode>
<I18n>mideast,other</I18n>
<CodeSigningKey>Mac Developer</CodeSigningKey>
<PackageSigningKey>3rd Party Mac Developer Installer</PackageSigningKey>
</PropertyGroup>
Expand Down
2 changes: 0 additions & 2 deletions tests/mmptest/regression/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ TESTS_4_0 = \
link-frameworks-1 \
link-aes-1 \
link-blocks-1 \
link-preserve-calendar-1 \
link-preserve-calendar-2 \
link-typedescriptor-1 \
link-typedescriptor-2 \
embedded-mono \
Expand Down
22 changes: 0 additions & 22 deletions tests/mmptest/regression/link-preserve-calendar-1/Info.plist

This file was deleted.

This file was deleted.

This file was deleted.

22 changes: 0 additions & 22 deletions tests/mmptest/regression/link-preserve-calendar-2/Info.plist

This file was deleted.

This file was deleted.

This file was deleted.