Esempio n. 1
0
 public void TestAddressTrustStatusFailure()
 {
     DirectAddress addr = new DirectAddress("\"Eleanor Roosevelt\" <*****@*****.**>");
     addr.Status = TrustEnforcementStatus.Failed;
     Assert.False(addr.IsTrusted(TrustEnforcementStatus.Success));
     Assert.False(addr.IsTrusted(TrustEnforcementStatus.Unknown));
 }
Esempio n. 2
0
        public void TestAddressTrustStatusFailure()
        {
            DirectAddress addr = new DirectAddress("\"Eleanor Roosevelt\" <*****@*****.**>");

            addr.Status = TrustEnforcementStatus.Failed;
            Assert.False(addr.IsTrusted(TrustEnforcementStatus.Success));
            Assert.False(addr.IsTrusted(TrustEnforcementStatus.Unknown));
        }
Esempio n. 3
0
        public void TestAddressTrustStatusSuccess()
        {
            DirectAddress addr = new DirectAddress("\"Eleanor Roosevelt\" <*****@*****.**>");

            addr.Status = TrustEnforcementStatus.Success;
            Assert.True(addr.IsTrusted(TrustEnforcementStatus.Success));
        }
Esempio n. 4
0
 public void TestBasicAddressCreate()
 {
     DirectAddress addr = new DirectAddress("*****@*****.**");
     Assert.Null(addr.Certificates);
     Assert.False(addr.HasCertificates);
     Assert.Null(addr.TrustAnchors);
     Assert.False(addr.HasTrustAnchors);
     Assert.Equal<TrustEnforcementStatus>(TrustEnforcementStatus.Unknown, addr.Status);
     Assert.False(addr.IsTrusted(TrustEnforcementStatus.Success));
     Assert.Equal<string>("eleanor", addr.User);
     Assert.Equal<string>("roosevelt.com", addr.Host);
 }
Esempio n. 5
0
        public void TestBasicAddressCreate()
        {
            DirectAddress addr = new DirectAddress("*****@*****.**");

            Assert.Null(addr.Certificates);
            Assert.False(addr.HasCertificates);
            Assert.Null(addr.TrustAnchors);
            Assert.False(addr.HasTrustAnchors);
            Assert.Equal <TrustEnforcementStatus>(TrustEnforcementStatus.Unknown, addr.Status);
            Assert.False(addr.IsTrusted(TrustEnforcementStatus.Success));
            Assert.Equal <string>("eleanor", addr.User);
            Assert.Equal <string>("roosevelt.com", addr.Host);
        }
Esempio n. 6
0
 public void TestAddressTrustStatusSuccess()
 {
     DirectAddress addr = new DirectAddress("\"Eleanor Roosevelt\" <*****@*****.**>");
     addr.Status = TrustEnforcementStatus.Success;
     Assert.True(addr.IsTrusted(TrustEnforcementStatus.Success));
 }
Esempio n. 7
0
 static void VerifyTrusted(DirectAddress address, TrustEnforcementStatus minStatus)
 {
     Assert.True(address.IsTrusted(minStatus));
 }
Esempio n. 8
0
 static void VerifyTrusted(DirectAddress address, TrustEnforcementStatus minStatus)
 {
     Assert.True(address.IsTrusted(minStatus));
 }