22 строки
603 B
C#
22 строки
603 B
C#
using System.Threading.Tasks;
|
|
using Xamarin.Essentials;
|
|
using Xunit;
|
|
|
|
namespace Tests
|
|
{
|
|
public class SecureStorage_Tests
|
|
{
|
|
[Fact]
|
|
public async Task SecureStorage_LoadAsync_Fail_On_NetStandard()
|
|
{
|
|
await Assert.ThrowsAsync<NotImplementedInReferenceAssemblyException>(() => SecureStorage.GetAsync("key"));
|
|
}
|
|
|
|
[Fact]
|
|
public async Task SecureStorage_SaveAsync_Fail_On_NetStandard()
|
|
{
|
|
await Assert.ThrowsAsync<NotImplementedInReferenceAssemblyException>(() => SecureStorage.SetAsync("key", "data"));
|
|
}
|
|
}
|
|
}
|