Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Dec 5, 2023
1 parent d2d900b commit 560ed95
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 16 deletions.
5 changes: 1 addition & 4 deletions src/AustralianProtectiveMarkings/Caveats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,7 @@ public Country Country
init
{
GuardDuplicateCountryCodeUse();
CountryCodes = new[]
{
value
};
CountryCodes = [value];
}
}

Expand Down
6 changes: 3 additions & 3 deletions src/Tests/OfficeDocHelperTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ public async Task TryReadProtectiveMarkings()
Agao = true,
Cabinet = true,
ExclusiveFor = "person",
CountryCodes = new[]
{
CountryCodes =
[
Country.Afghanistan,
Country.Algeria
}
]
}
};

Expand Down
6 changes: 3 additions & 3 deletions src/Tests/RendererTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ static ProtectiveMarking BuildMarking() =>
Agao = true,
Cabinet = true,
ExclusiveFor = "person",
CountryCodes = new[]
{
CountryCodes =
[
Country.Afghanistan,
Country.Algeria
}
]
}
};
}
6 changes: 3 additions & 3 deletions src/Tests/Samples.cs
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,11 @@ public Task DefineMultiple()
Agao = true,
Cabinet = true,
ExclusiveFor = "person",
CountryCodes = new[]
{
CountryCodes =
[
Country.Afghanistan,
Country.Algeria
}
]
}
};

Expand Down
6 changes: 3 additions & 3 deletions src/Tests/Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ public Task Serialization()
Agao = true,
Cabinet = true,
ExclusiveFor = "person",
CountryCodes = new[]
{
CountryCodes =
[
Country.Afghanistan,
Country.Algeria
}
]
}
};
var serialized1 = JsonConvert.SerializeObject(marking);
Expand Down

0 comments on commit 560ed95

Please sign in to comment.