public void ExampleIsValid() { SslConfigLoader.Cert result = SslConfigLoader.LoadCertJson(Path.Combine(TransportDir, ".cert.example.Json")); Assert.That(result.path, Is.EqualTo("./certs/MirrorLocal.pfx")); Assert.That(result.password, Is.EqualTo("")); }
public void ValidConfig(string jsonPath, string expectedPath, string expectedPassowrd) { SslConfigLoader.Cert cert = SslConfigLoader.LoadCertJson(Path.Combine(TestDir, jsonPath)); Assert.That(cert.path, Is.EqualTo(expectedPath)); Assert.That(cert.password, Is.EqualTo(expectedPassowrd)); }