Skip to main content

DotNetDocsTestBase Class

Namespace: CloudNimble.DotNetDocs.Tests.Shared
Assembly: CloudNimble.DotNetDocs.Tests.Shared.dll

📋 Definition

public class DotNetDocsTestBase : CloudNimble.Breakdance.Extensions.MSTest2.BreakdanceMSTestBase

Inheritance Hierarchy

📝 Summary

Base class providing core infrastructure for documentation generation tests. This class extends BreakdanceMSTestBase and provides utilities for working with assembly documentation.

🎯 Members

projectPath

projectPath
const string
required
Constant defining the project path for test resources
public const string projectPath
Access Modifier: public
Modifiers: const
Type: string

💡 Usage Examples

using CloudNimble.DotNetDocs.Tests.Shared;

// Create test base instance
var testBase = new DotNetDocsTestBase();

// Get assembly documentation
var assembly = testBase.GetTestsDotSharedAssembly();

// Use the project path constant
var projectPath = DotNetDocsTestBase.projectPath;
Console.WriteLine($"Project path: {projectPath}");

🔧 Implementation Details

This class is not thread-safe for instance members. Static members (like projectPath) are thread-safe.
  • Inherits from BreakdanceMSTestBase
  • Can be further extended for specialized test scenarios
  • Virtual members can be overridden in derived classes
  • GetTestsDotSharedAssembly() may perform file I/O operations
  • Consider caching the result if called multiple times
  • The projectPath constant has no runtime overhead

⚠️ Important Notes

The projectPath field is a compile-time constant. Changing it requires recompilation of all dependent assemblies.
This class is designed for use in test scenarios. It may not be suitable for production use without modification.
For best results, inherit from this class when creating documentation-related tests to leverage the built-in infrastructure.

📚 See Also


Need help? Check out the quickstart guide or explore usage examples.