Merge pull request #106 from mattleibow/fix-build
Fix the tests which are failing the build
This commit is contained in:
Коммит
31b6b399be
|
@ -16,7 +16,6 @@
|
|||
<Compile Include="$(MSBuildThisFileDirectory)ScreenLock_Tests.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Preferences_Tests.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)FileSystem_Tests.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Sms_Tests.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Traits.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Utils.cs" />
|
||||
</ItemGroup>
|
||||
|
|
|
@ -1,34 +0,0 @@
|
|||
using System.Threading.Tasks;
|
||||
using Microsoft.Caboodle;
|
||||
using Xunit;
|
||||
|
||||
namespace Caboodle.DeviceTests
|
||||
{
|
||||
public class Sms_Tests
|
||||
{
|
||||
[Fact]
|
||||
public Task Sms_ComposeAsync_Does_Not_Throw()
|
||||
{
|
||||
return Utils.OnMainThread(() =>
|
||||
{
|
||||
if (Utils.IsiOSSimulator)
|
||||
return Assert.ThrowsAsync<FeatureNotSupportedException>(() => Sms.ComposeAsync());
|
||||
else
|
||||
return Sms.ComposeAsync();
|
||||
});
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public Task Sms_ComposeAsync_Does_Not_Throw_When_Empty()
|
||||
{
|
||||
var message = new SmsMessage();
|
||||
return Utils.OnMainThread(() =>
|
||||
{
|
||||
if (Utils.IsiOSSimulator)
|
||||
return Assert.ThrowsAsync<FeatureNotSupportedException>(() => Sms.ComposeAsync(message));
|
||||
else
|
||||
return Sms.ComposeAsync(message);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче