Esempio n. 1
0
 //[TestMethod]
 public void Test_BindSslCertificateToPort_Success()
 {
     Assert.AreEqual("F386FA31CAA05B57C7606FD1FBC33E271D053C2B", StartUp.BindSslCertificateToPort(8080, "localhost"));
 }
Esempio n. 2
0
 public void Test_FindSslCertificateByThumbprint_Fail()
 {
     Assert.AreEqual(null, StartUp.FindSslCertificateByThumbprint("0"));
 }
Esempio n. 3
0
 public void Test_FindSslCertificateByThumbprint_Success()
 {
     Assert.AreEqual("CN=localhostCA", StartUp.FindSslCertificateByThumbprint("F386FA31CAA05B57C7606FD1FBC33E271D053C2B").Issuer);
 }
Esempio n. 4
0
 public void Test_GetSslCertificateHashBoundToPort_Fail()
 {
     //Assert.IsTrue(StartUp.IsSslCertBound(443));
     Assert.AreEqual(null, StartUp.GetSslCertificateHashBoundToPort(8080));
 }
Esempio n. 5
0
 public void Test_GetSslCertificateHashBoundToPort_Success()
 {
     Assert.AreEqual("F386FA31CAA05B57C7606FD1FBC33E271D053C2B", StartUp.GetSslCertificateHashBoundToPort(4430));
 }
Esempio n. 6
0
 public void Test_GetAddresses()
 {
     //Debug.WriteLine(string.Join(", ", StartUp.GetIpAdresses()));
     Assert.IsTrue(StartUp.GetIpAdresses().Length > 0);
 }