Skip to content

Commit

Permalink
Fix binary data forwarding. Some tests for SendBinaryData added.
Browse files Browse the repository at this point in the history
  • Loading branch information
ahzf committed Jul 20, 2024
1 parent b15a44c commit d2f56cf
Show file tree
Hide file tree
Showing 4 changed files with 939 additions and 60 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,31 @@ chargingStation1 is null ||
chargingStation2 is null ||
chargingStation3 is null)
{
Assert.Fail("Failed precondition(s)!");

Assert.Multiple(() => {

if (csms is null)
Assert.Fail("The csms must not be null!");

if (ocppGateway is null)
Assert.Fail("The gateway must not be null!");

if (ocppLocalController is null)
Assert.Fail("The local controller must not be null!");

if (chargingStation1 is null)
Assert.Fail("The charging station 1 must not be null!");

if (chargingStation2 is null)
Assert.Fail("The charging station 2 must not be null!");

if (chargingStation3 is null)
Assert.Fail("The charging station 3 must not be null!");

});

return;

}

#endregion
Expand Down Expand Up @@ -110,8 +133,31 @@ chargingStation1 is null ||
chargingStation2 is null ||
chargingStation3 is null)
{
Assert.Fail("Failed precondition(s)!");

Assert.Multiple(() => {

if (csms is null)
Assert.Fail("The csms must not be null!");

if (ocppGateway is null)
Assert.Fail("The gateway must not be null!");

if (ocppLocalController is null)
Assert.Fail("The local controller must not be null!");

if (chargingStation1 is null)
Assert.Fail("The charging station 1 must not be null!");

if (chargingStation2 is null)
Assert.Fail("The charging station 2 must not be null!");

if (chargingStation3 is null)
Assert.Fail("The charging station 3 must not be null!");

});

return;

}

#endregion
Expand Down
Loading

0 comments on commit d2f56cf

Please sign in to comment.