Skip to content

Commit

Permalink
Fix UTs
Browse files Browse the repository at this point in the history
  • Loading branch information
joelverhagen committed Nov 18, 2024
1 parent b6fce69 commit d35c084
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System;
Expand Down Expand Up @@ -108,7 +108,7 @@ public void Constructor_WithRevocationSource_SetsProperties()
Assert.Single(record.AffectedCredential);
Assert.Equal(testRevocationSource, record.AffectedCredential[0].RevocationSource);
Assert.Equal("b", record.AffectedCredential[0].Type);
Assert.Equal("c", record.AffectedCredential[0].Value);
Assert.Null(record.AffectedCredential[0].Value);
}

[Fact]
Expand All @@ -127,4 +127,4 @@ public void GetPath_ReturnsLowerCasedUserName()
Assert.Equal("a", actualPath);
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System;
Expand Down Expand Up @@ -1605,7 +1605,7 @@ public async Task WritesAuditRecordRemovingTheOldCredential()
ar.AffectedCredential.Length == 1 &&
ar.AffectedCredential[0].Type == existingCred.Type &&
ar.AffectedCredential[0].Identity == existingCred.Identity &&
ar.AffectedCredential[0].Value == existingCred.Value &&
ar.AffectedCredential[0].Value is null &&
ar.AffectedCredential[0].Created == existingCred.Created &&
ar.AffectedCredential[0].Expires == existingCred.Expires));
}
Expand Down Expand Up @@ -2633,4 +2633,4 @@ public static bool VerifyPasswordHash(string hash, string algorithm, string pass
return canAuthenticate && !confidenceCheck;
}
}
}
}

0 comments on commit d35c084

Please sign in to comment.