Skip to content
Open
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
5 changes: 5 additions & 0 deletions WheelWizard.Test/Features/RrRooms/RoomPresenceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
using WheelWizard.Dolphin.Paths;
using WheelWizard.RrRooms;
using WheelWizard.Settings;
using WheelWizard.Shared.Platform;
using WheelWizard.Shared.Polling;
using WheelWizard.Shared.Processes;
using WheelWizard.WiiManagement.GameLicense;
using WheelWizard.WiiManagement.GameLicense.Domain;
using WheelWizard.WiiManagement.MiiManagement;
Expand Down Expand Up @@ -40,6 +42,9 @@ public void Refresh_UpdatesBothLicenseAndFriends_AndOnlyNotifiesChanges()
Substitute.For<IDolphinPaths>(),
Substitute.For<ICustomDistributionPaths>(),
presence,
Substitute.For<IProcessLauncher>(),
Substitute.For<IRuntimeEnvironment>(),
Substitute.For<IUnixProcessService>(),
Substitute.For<IPollingScheduler>(),
TimeProvider.System,
NullLogger<GameLicenseSingletonService>.Instance
Expand Down
10 changes: 10 additions & 0 deletions WheelWizard.Test/Features/WiiManagement/FriendCodeTests.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using System.Text;
using WheelWizard.Shared.Binary;
using WheelWizard.WiiManagement.FriendCodes;

namespace WheelWizard.Test.Features.WiiManagement;
Expand Down Expand Up @@ -33,4 +35,12 @@ public void ProfileIdToFriendCode_ReturnsExpectedFriendCodeValue()

Assert.Equal(348484848484ul, friendCodeValue);
}

[Fact]
public void ComputeCrc8_MatchesTheStandardCheckValue()
{
var data = Encoding.ASCII.GetBytes("123456789");

Assert.Equal(0xF4, Crc.ComputeCrc8(data, 0, data.Length));
}
}
Loading
Loading