Skip to content

Commit

Permalink
chore(.vscode): Update default solution and telemetry settings
Browse files Browse the repository at this point in the history
refactor(Processory.Tests/UnitMemoryTest.cs): Modify method signatures to use new factory methods
  • Loading branch information
myinusa committed Jan 8, 2025
1 parent 0ba6a04 commit 220059b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .vscode/Processory.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
}
],
"settings": {
"dotnet.defaultSolution": "Processory.sln",
// "dotnet.defaultSolution": "Processory.sln",
"workbench.colorCustomizations": {
"dotnetAcquisitionExtension.enableTelemetry": true,
"dotnet.backgroundAnalysis.analyzerDiagnosticsScope": "openFiles",
// "dotnetAcquisitionExtension.enableTelemetry": true,
// "dotnet.backgroundAnalysis.analyzerDiagnosticsScope": "openFiles",
"cSpell.words": [
"appsettings"
],
Expand Down
16 changes: 8 additions & 8 deletions Processory.Tests/UnitMemoryTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public void TestReadAddressInfo() {

// Act
// var addressInfo = MemoryReader.ReadAddressInfo<int>(address);
var addressInfo = processoryClient.AddressInfoFactory.ReadAddressInfo<int>(address);
var addressInfo = processoryClient.MemoryAddressFactory.ReadAddress<int>(address);


// var addressInfoCE = MemoryReader.ReadPointerCE(address);
Expand All @@ -162,19 +162,19 @@ public void ReadAddressPointerInfo() {
const ulong address = BaseAddress + GameExceptionHandlerOffset;

// var addressPointerInfo = MemoryReader.ReadAddressPointer<int, int>(address);
var addressPointerInfo = processoryClient.AddressInfoFactory.ReadAddressPointer<int, int>(address);
var addressPointerInfo = processoryClient.MemoryAddressFactory.Read<int, int>(address);


testOutputHelper.WriteLine("=======================");
testOutputHelper.WriteLine("Address: {0:X8}", addressPointerInfo.AddressInfo.Address);
testOutputHelper.WriteLine("Value: {0}", addressPointerInfo.AddressInfo.Value);
testOutputHelper.WriteLine("Address: {0:X8}", addressPointerInfo.Address.Address);
testOutputHelper.WriteLine("Value: {0}", addressPointerInfo.Address.Value);
testOutputHelper.WriteLine("=======================");

testOutputHelper.WriteLine("P->Address: {0:X8}", addressPointerInfo.PointerInfo.Address);
testOutputHelper.WriteLine("P->Value: {0}", addressPointerInfo.PointerInfo.Value);
testOutputHelper.WriteLine("P->Address: {0:X8}", addressPointerInfo.Pointer.Address);
testOutputHelper.WriteLine("P->Value: {0}", addressPointerInfo.Pointer.Value);
testOutputHelper.WriteLine("=======================");

Assert.Equal(address, addressPointerInfo.AddressInfo.Address);
Assert.NotEqual(default, addressPointerInfo.AddressInfo.Value);
Assert.Equal(address, addressPointerInfo.Address.Address);
Assert.NotEqual(default, addressPointerInfo.Address.Value);
}
}

0 comments on commit 220059b

Please sign in to comment.