Skip to content

Commit

Permalink
Add BannedMaps example to test
Browse files Browse the repository at this point in the history
  • Loading branch information
BigBang1112 committed Jul 8, 2024
1 parent cb5894e commit 5685431
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ public void SerializeAndDeserializeProperly()
var serialized = new SessionData();
serialized.Rules.RequestRules.Environment = [EEnvironment.Desert];
serialized.Rules.RequestRules.UploadedAfter = DateOnly.MaxValue;
serialized.Rules.BannedMaps.Add(ESite.TMNF, [123, 1456]);
serialized.Rules.BannedMaps.Add(ESite.Nations, [1234, 14586]);

using var ms = new MemoryStream();
using var ms = new MemoryStream();
using var w = new BinaryWriter(ms);
serialized.Serialize(w);

Expand Down

0 comments on commit 5685431

Please # to comment.