Exemplo n.º 1
0
 public void TestBasicAdddressCollectionCreate()
 {
     DirectAddressCollection coll = new DirectAddressCollection();
     Assert.False(coll.IsTrusted());
     Assert.Equal<string>("", coll.ToString());
     Assert.False(coll.IsTrusted(TrustEnforcementStatus.Failed));
     Assert.True(coll.GetCertificates().Count == 0);
     Assert.True(coll.Certificates.Count() == 0);
     Assert.True(coll.GetUntrusted().Count() == 0);
     Assert.True(coll.GetTrusted().Count() == 0);
     Assert.DoesNotThrow(() => coll.RemoveUntrusted());
 }
Exemplo n.º 2
0
        public void TestBasicAdddressCollectionCreate()
        {
            DirectAddressCollection coll = new DirectAddressCollection();

            Assert.False(coll.IsTrusted());
            Assert.Equal <string>("", coll.ToString());
            Assert.False(coll.IsTrusted(TrustEnforcementStatus.Failed));
            Assert.True(coll.GetCertificates().Count == 0);
            Assert.True(coll.Certificates.Count() == 0);
            Assert.True(coll.GetUntrusted().Count() == 0);
            Assert.True(coll.GetTrusted().Count() == 0);
            Assert.Null(Record.Exception(() => coll.RemoveUntrusted()));
        }