Skip to content
Tracon

VersionedAgentSourceContract

Namespace Tracon.Testing.Contracts.AgentSources · Assembly Tracon.Testing.Contracts.Xunit.dll

Additional behavior tests for an IVersionedAgentSource.

public abstract class VersionedAgentSourceContract : AgentSourceContract, IAsyncLifetime, IAsyncDisposable

objectAgentSourceContractVersionedAgentSourceContract

IAsyncLifetime, IAsyncDisposable

AgentSourceContract.CreateSourceAsync(), AgentSourceContract.InitializeAsync(), AgentSourceContract.DisposeAsync(), AgentSourceContract.Name_is_not_empty(), AgentSourceContract.Priority_is_stable_across_calls(), AgentSourceContract.Listing_is_repeatable(), AgentSourceContract.Listing_is_safe_under_concurrency(), AgentSourceContract.Resolution_is_safe_under_concurrency(), AgentSourceContract.Listed_names_are_unique_and_valid(), AgentSourceContract.Listed_descriptors_name_the_source(), AgentSourceContract.Known_agent_resolves(), AgentSourceContract.Unknown_agent_returns_null(), AgentSourceContract.Every_listed_agent_resolves(), AgentSourceContract.Resolved_agent_is_listed(), AgentSourceContract.A_pre_cancelled_token_is_honored(), AgentSourceContract.Source, AgentSourceContract.KnownAgentName, AgentSourceContract.UnknownAgentName, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

protected VersionedAgentSourceContract()

Gets the version that exists for AgentSourceContract.KnownAgentName.

protected abstract int KnownVersion { get; }

int

Gets a version that does not exist for AgentSourceContract.KnownAgentName.

protected virtual int UnknownVersion { get; }

int

Gets the versioned source under test.

protected IVersionedAgentSource VersionedSource { get; }

IVersionedAgentSource

[Fact("/Users/farukatasoy/Desktop/projects/Tracon/src/Tracon.Testing.Contracts.Xunit/Contracts/AgentSources/VersionedAgentSourceContract.cs", 15)]
public Task Known_version_resolves()

Task

[Fact("/Users/farukatasoy/Desktop/projects/Tracon/src/Tracon.Testing.Contracts.Xunit/Contracts/AgentSources/VersionedAgentSourceContract.cs", 19)]
public Task Unknown_version_returns_null()

Task