mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-14 11:08:06 +00:00
Raise AnalysisLevel to 6.0-Recommended, fix warnings (#2086)
Raise the .NET Code Analysis Level to `6.0-Minimum` and then `6.0-Recommended`.
This commit is contained in:
@ -439,19 +439,20 @@ namespace Tests {
|
||||
typeof(SecureString)
|
||||
});
|
||||
static bool IEnumerableEqual<T>(IEnumerable<T>? a, IEnumerable<T>? b) {
|
||||
if (a is null && b is null) {
|
||||
return true;
|
||||
if (a is null) {
|
||||
return b is null;
|
||||
}
|
||||
if (a!.Count() != b!.Count()) {
|
||||
|
||||
if (b is null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (a!.Count() == 0 && b!.Count() == 0) {
|
||||
return true;
|
||||
if (a.Count() != b.Count()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
foreach (var v in a!.Zip(b!)) {
|
||||
if (!AreEqual(v.First, v.Second)) {
|
||||
foreach (var (first, second) in a.Zip(b)) {
|
||||
if (!AreEqual(first, second)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user