19 lines
513 B
C#
19 lines
513 B
C#
namespace StevanFreeborn.Atproto.IdentityResolver.Tests;
|
|
|
|
public class AtprotoIdTests
|
|
{
|
|
[Theory]
|
|
[InlineData("")]
|
|
[InlineData("localhost")]
|
|
[InlineData("did:web:")]
|
|
[InlineData("did:plc:")]
|
|
[InlineData("did:mu:dxbmien5xsrkov5yhywgc4zu")]
|
|
[InlineData("@stevanfreeborn.com")]
|
|
[InlineData(null)]
|
|
public void From_WhenCalledWithInvalidDid_ItShouldThrowInvalidArgumentException(string? atprotoId)
|
|
{
|
|
var act = () => AtprotoId.From(atprotoId!);
|
|
|
|
act.Should().Throw<ArgumentException>();
|
|
}
|
|
} |