Skip to content

Commit a15aa5d

Browse files
committed
Fix some test errors
1 parent 39e8319 commit a15aa5d

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/System.Device.Gpio.Tests/GpioControllerSoftwareTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ public void GetPinMode()
9696
}
9797

9898
[Fact]
99+
[Obsolete("Tests an obsolete feature")]
99100
public void UsingBoardNumberingWorks()
100101
{
101102
// Our mock driver maps physical pin 2 to logical pin 1
@@ -107,7 +108,7 @@ public void UsingBoardNumberingWorks()
107108
_mockedGpioDriver.Setup(x => x.WriteEx(1, PinValue.High));
108109
_mockedGpioDriver.Setup(x => x.ReadEx(1)).Returns(PinValue.High);
109110
_mockedGpioDriver.Setup(x => x.ClosePinEx(1));
110-
var ctrl = new GpioController(_mockedGpioDriver.Object);
111+
var ctrl = new GpioController(PinNumberingScheme.Board, _mockedGpioDriver.Object);
111112
ctrl.OpenPin(2, PinMode.Output);
112113
ctrl.Write(2, PinValue.High);
113114
Assert.Equal(PinValue.High, ctrl.Read(2));

src/System.Device.Gpio.Tests/LibGpiodV1DriverTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
namespace System.Device.Gpio.Tests;
1111

12+
#pragma warning disable SDGPIO0001
13+
1214
[Trait("feature", "gpio")]
1315
[Trait("feature", "gpio-libgpiod")]
1416
[Trait("SkipOnTestRun", "Windows_NT")]

src/System.Device.Gpio.Tests/LibGpiodV2DriverTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using Xunit;
88
using Xunit.Abstractions;
99

10+
#pragma warning disable SDGPIO0001
1011
namespace System.Device.Gpio.Tests;
1112

1213
[Trait("feature", "gpio")]

0 commit comments

Comments
 (0)