public void TestConstructor2()
        {
            ProcessRegistry pr = new ProcessRegistry(SHA256Namespace);

            sm = new SignatureManager(pr);
            Assert.IsNotNull(sm, "SignatureManager instance is null");
            Assert.IsTrue(sm is SignatureManager, "SignatureManager instance has wrong type");
        }
Exemple #2
0
 /// <summary>
 /// <p><strong>Purpose:</strong></p> <p>Creates a new instance of the registry.
 /// Initializes registry using passed namespace</p>
 /// </summary>
 /// <param name="aNamespace">configuration namespace</param>
 /// <exception cref="ArgumentNullException">If aNamespace is null</exception>
 /// <exception cref="ArgumentException">If aNamespace is empty</exception>
 public SignatureManager(string aNamespace)
 {
     registry = new ProcessRegistry(aNamespace);
 }
Exemple #3
0
 /// <summary>
 /// <p><strong>Purpose:</strong></p> <p>Creates a new instance initialized with the instance of the
 /// registry.</p>
 /// </summary>
 /// <exception cref="ArgumentNullException">if parameter is null</exception>
 /// <param name="registry">registry of different working pieces</param>
 public SignatureManager(ProcessRegistry registry)
 {
     ExceptionHelper.ValidateNotNull(registry, "registry");
     this.registry = registry;
 }
        public void TestConstructor6()
        {
            ProcessRegistry pr = null;

            sm = new SignatureManager(pr);
        }
        public void TestConstructor8()
        {
            ProcessRegistry pr = new ProcessRegistry();

            sm = new SignatureManager("aNonExistantNamespace");
        }
Exemple #6
0
        public void TestConstructorFail2()
        {
            string s = "                 ";

            pr = new ProcessRegistry(s);
        }
Exemple #7
0
 public void TestConstructorFail1()
 {
     pr = new ProcessRegistry((string)null);
 }
Exemple #8
0
 public void TestConstructorAcc()
 {
     pr = new ProcessRegistry(DefaultNamespace);
 }
Exemple #9
0
 public void TearDown()
 {
     pr = null;
 }
Exemple #10
0
 public void SetUp()
 {
     pr = new ProcessRegistry();
 }