public void TryParseReturnsTrueOnCorrectValue() { // Fixture setup // Exercise system var success = DN.TryParse("CN=John,OU=Users,DC=domain,DC=com", out var result); // Verify outcome success.Should().BeTrue(); result.ToString().Should().Be("CN=John,OU=Users,DC=domain,DC=com"); }
public void TryParseReturnsFalseOnInvalidValue() { // Fixture setup // Exercise system var success = DN.TryParse("Hello", out var result); // Verify outcome success.Should().BeFalse(); result.Should().BeNull(); }