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"); }
/// <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); }
/// <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"); }
public void TestConstructorFail2() { string s = " "; pr = new ProcessRegistry(s); }
public void TestConstructorFail1() { pr = new ProcessRegistry((string)null); }
public void TestConstructorAcc() { pr = new ProcessRegistry(DefaultNamespace); }
public void TearDown() { pr = null; }
public void SetUp() { pr = new ProcessRegistry(); }