Table of Contents

Class InteractiveTestsProjectPathInfo

Namespace
Dmnk.Blazor.InteractiveTests
Assembly
Dmnk.Blazor.InteractiveTests.dll

Contains information about the test project, its configuration and target framework.

public sealed record InteractiveTestsProjectPathInfo : IEquatable<InteractiveTestsProjectPathInfo>
Inheritance
InteractiveTestsProjectPathInfo
Implements
Inherited Members

Constructors

InteractiveTestsProjectPathInfo()

public InteractiveTestsProjectPathInfo()

Properties

ConfigurationDir

The configuration directory, e.g. Debug or Release.

public required string ConfigurationDir { get; init; }

Property Value

string

TargetFrameworkDir

The target framework directory, e.g. net10.0 or net10.0-windows.

public required string TargetFrameworkDir { get; init; }

Property Value

string

TestProjectDir

The directory of the test project, e.g. c:\dev...\Dmnk.Blazor.InteractiveTests.Examples

public required DirectoryInfo TestProjectDir { get; init; }

Property Value

DirectoryInfo

TestProjectName

The name of the test project, e.g. Dmnk.Blazor.InteractiveTests.Examples

public required string TestProjectName { get; init; }

Property Value

string

Methods

Equals(InteractiveTestsProjectPathInfo?)

public bool Equals(InteractiveTestsProjectPathInfo? other)

Parameters

other InteractiveTestsProjectPathInfo

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

FromAssemblyFileInSolutionDir(FileInfo)

Like FromAssemblyInSolutionDir(Assembly), but from a FileInfo pointing to an assembly instead of an assembly directly.

You typically shouldn't need to use this.

public static InteractiveTestsProjectPathInfo FromAssemblyFileInSolutionDir(FileInfo assemblyFile)

Parameters

assemblyFile FileInfo

Returns

InteractiveTestsProjectPathInfo

FromAssemblyInSolutionDir(Assembly)

Constructs a InteractiveTestsProjectPathInfo instance from an assembly that is located in an output folder in a solution.

This will NOT work for assemblies that are outside a regular solution directory structure.

public static InteractiveTestsProjectPathInfo FromAssemblyInSolutionDir(Assembly assembly)

Parameters

assembly Assembly

Returns

InteractiveTestsProjectPathInfo

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(InteractiveTestsProjectPathInfo?, InteractiveTestsProjectPathInfo?)

public static bool operator ==(InteractiveTestsProjectPathInfo? left, InteractiveTestsProjectPathInfo? right)

Parameters

left InteractiveTestsProjectPathInfo
right InteractiveTestsProjectPathInfo

Returns

bool

operator !=(InteractiveTestsProjectPathInfo?, InteractiveTestsProjectPathInfo?)

public static bool operator !=(InteractiveTestsProjectPathInfo? left, InteractiveTestsProjectPathInfo? right)

Parameters

left InteractiveTestsProjectPathInfo
right InteractiveTestsProjectPathInfo

Returns

bool