mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 15:42:48 -05:00
Turn on file scoped namespaces (#2225)
This commit is contained in:
@ -2,36 +2,35 @@
|
||||
using Bit.Core.Utilities;
|
||||
using Xunit;
|
||||
|
||||
namespace Bit.Core.Test.Utilities
|
||||
namespace Bit.Core.Test.Utilities;
|
||||
|
||||
public class ClaimsExtensionsTests
|
||||
{
|
||||
public class ClaimsExtensionsTests
|
||||
[Fact]
|
||||
public void HasSSOIdP_Returns_True_When_The_Claims_Has_One_Of_Type_IdP_And_Value_Sso()
|
||||
{
|
||||
[Fact]
|
||||
public void HasSSOIdP_Returns_True_When_The_Claims_Has_One_Of_Type_IdP_And_Value_Sso()
|
||||
{
|
||||
var claims = new List<Claim> { new Claim("idp", "sso") };
|
||||
Assert.True(claims.HasSsoIdP());
|
||||
}
|
||||
var claims = new List<Claim> { new Claim("idp", "sso") };
|
||||
Assert.True(claims.HasSsoIdP());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void HasSSOIdP_Returns_False_When_The_Claims_Has_One_Of_Type_IdP_And_Value_Is_Not_Sso()
|
||||
{
|
||||
var claims = new List<Claim> { new Claim("idp", "asdfasfd") };
|
||||
Assert.False(claims.HasSsoIdP());
|
||||
}
|
||||
[Fact]
|
||||
public void HasSSOIdP_Returns_False_When_The_Claims_Has_One_Of_Type_IdP_And_Value_Is_Not_Sso()
|
||||
{
|
||||
var claims = new List<Claim> { new Claim("idp", "asdfasfd") };
|
||||
Assert.False(claims.HasSsoIdP());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void HasSSOIdP_Returns_False_When_The_Claims_Has_No_One_Of_Type_IdP()
|
||||
{
|
||||
var claims = new List<Claim> { new Claim("qweqweq", "sso") };
|
||||
Assert.False(claims.HasSsoIdP());
|
||||
}
|
||||
[Fact]
|
||||
public void HasSSOIdP_Returns_False_When_The_Claims_Has_No_One_Of_Type_IdP()
|
||||
{
|
||||
var claims = new List<Claim> { new Claim("qweqweq", "sso") };
|
||||
Assert.False(claims.HasSsoIdP());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void HasSSOIdP_Returns_False_When_The_Claims_Are_Empty()
|
||||
{
|
||||
var claims = new List<Claim>();
|
||||
Assert.False(claims.HasSsoIdP());
|
||||
}
|
||||
[Fact]
|
||||
public void HasSSOIdP_Returns_False_When_The_Claims_Are_Empty()
|
||||
{
|
||||
var claims = new List<Claim>();
|
||||
Assert.False(claims.HasSsoIdP());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user