Skip to content

Commit

Permalink
Cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
highbyte committed Sep 28, 2024
1 parent a0d65a1 commit a35cc02
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
36 changes: 18 additions & 18 deletions tests/Highbyte.DotNet6502.Systems.Tests/SystemConfigurerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ public Task PersistHostSystemConfig(IHostSystemConfig hostSystemConfig)
return Task.CompletedTask;
}

public Task<ISystemConfig> GetNewConfig(string configurationVariant, IHostSystemConfig hostSystemConfig)
{
return Task.FromResult<ISystemConfig>(new TestSystemConfig());
}
//public Task<ISystemConfig> GetNewConfig(string configurationVariant, IHostSystemConfig hostSystemConfig)
//{
// return Task.FromResult<ISystemConfig>(new TestSystemConfig());
//}

public Task PersistConfig(ISystemConfig systemConfig)
{
return Task.CompletedTask;
}
//public Task PersistConfig(ISystemConfig systemConfig)
//{
// return Task.CompletedTask;
//}

public ISystem BuildSystem(ISystemConfig systemConfig)
public ISystem BuildSystem(string configurationVariant, IHostSystemConfig hostSystemConfig)
{
return new TestSystem();
}
Expand Down Expand Up @@ -79,17 +79,17 @@ public Task PersistHostSystemConfig(IHostSystemConfig hostSystemConfig)
return Task.CompletedTask;
}

public Task<ISystemConfig> GetNewConfig(string configurationVariant, IHostSystemConfig hostSystemConfig)
{
return Task.FromResult<ISystemConfig>(new TestSystem2Config());
}
//public Task<ISystemConfig> GetNewConfig(string configurationVariant, IHostSystemConfig hostSystemConfig)
//{
// return Task.FromResult<ISystemConfig>(new TestSystem2Config());
//}

public Task PersistConfig(ISystemConfig systemConfig)
{
return Task.CompletedTask;
}
//public Task PersistConfig(ISystemConfig systemConfig)
//{
// return Task.CompletedTask;
//}

public ISystem BuildSystem(ISystemConfig systemConfig)
public ISystem BuildSystem(string configurationVariant, IHostSystemConfig hostSystemConfig)
{
return new TestSystem2();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Highbyte.DotNet6502.Tests/Utils/StreamHelperTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void FetchWord_Returns_LittleEndian_Word_From_Stream()
public void FetchWord_Returns_Negative_If_No_Byte_Left_In_Stream()
{
// Arrange
var storedData = new byte[] { };
var storedData = Array.Empty<byte>();

// Act
int readWord;
Expand Down

0 comments on commit a35cc02

Please sign in to comment.