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
TargetFrameworkDir
The target framework directory, e.g. net10.0 or net10.0-windows.
public required string TargetFrameworkDir { get; init; }
Property Value
TestProjectDir
The directory of the test project, e.g.
c:\dev...\Dmnk.Blazor.InteractiveTests.Examples
public required DirectoryInfo TestProjectDir { get; init; }
Property Value
TestProjectName
The name of the test project, e.g. Dmnk.Blazor.InteractiveTests.Examples
public required string TestProjectName { get; init; }
Property Value
Methods
Equals(InteractiveTestsProjectPathInfo?)
public bool Equals(InteractiveTestsProjectPathInfo? other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
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
assemblyFileFileInfo
Returns
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
assemblyAssembly
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(InteractiveTestsProjectPathInfo?, InteractiveTestsProjectPathInfo?)
public static bool operator ==(InteractiveTestsProjectPathInfo? left, InteractiveTestsProjectPathInfo? right)
Parameters
Returns
operator !=(InteractiveTestsProjectPathInfo?, InteractiveTestsProjectPathInfo?)
public static bool operator !=(InteractiveTestsProjectPathInfo? left, InteractiveTestsProjectPathInfo? right)