Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

GH-291: Rename to MainThread for threading calls #325

Merged
merged 4 commits into from
Jun 25, 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
135 changes: 66 additions & 69 deletions DeviceTests/DeviceTests.Android/Resources/Resource.designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
<Compile Include="$(MSBuildThisFileDirectory)Flashlight_Tests.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Geocoding_Tests.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Geolocation_Tests.cs" />
<Compile Include="$(MSBuildThisFileDirectory)MainThread_Tests.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Permissions_Tests.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Platform_Tests.cs" />
<Compile Include="$(MSBuildThisFileDirectory)PhoneDialer_Tests.cs" />
<Compile Include="$(MSBuildThisFileDirectory)ScreenLock_Tests.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Preferences_Tests.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

namespace DeviceTests
{
public class Platform_Tests
public class MainThread_Tests
{
[Fact]
public Task IsOnMainThread()
{
return Utils.OnMainThread(() =>
{
Assert.True(Platform.IsMainThread);
Assert.True(MainThread.IsMainThread);
});
}

Expand All @@ -20,7 +20,7 @@ public Task IsNotOnMainThread()
{
return Task.Run(() =>
{
Assert.False(Platform.IsMainThread);
Assert.False(MainThread.IsMainThread);
});
}
}
Expand Down
Loading