uno.xamarin.essentials/Tests/Battery_Tests.cs

29 строки
911 B
C#

using Xamarin.Essentials;
using Xunit;
namespace Tests
{
public class Battery_Tests
{
[Fact]
public void Charge_Level_On_NetStandard() =>
Assert.Throws<NotImplementedInReferenceAssemblyException>(() => Battery.ChargeLevel);
[Fact]
public void Charge_State_On_NetStandard() =>
Assert.Throws<NotImplementedInReferenceAssemblyException>(() => Battery.State);
[Fact]
public void Charge_Power_Source_On_NetStandard() =>
Assert.Throws<NotImplementedInReferenceAssemblyException>(() => Battery.PowerSource);
[Fact]
public void Battery_Changed_Event_On_NetStandard() =>
Assert.Throws<NotImplementedInReferenceAssemblyException>(() => Battery.BatteryChanged += Battery_BatteryChanged);
void Battery_BatteryChanged(object sender, BatteryChangedEventArgs e)
{
}
}
}