public void DatabaseDoesNotExistConstructorTest1()
 {
     string message = "Testmessage";
     DatabaseDoesNotExist target = new DatabaseDoesNotExist(message);
     Assert.IsNotNull(target, "DatabaseDoesNotExist Object created.");
     Assert.AreEqual(message, target.ExceptionMessage, "Messages are equal.");
 }
 public void DatabaseDoesNotExistConstructorTest2()
 {
     string message = "Testmessage";
     Exception innnerException = new Exception("Inner exception");
     DatabaseDoesNotExist target = new DatabaseDoesNotExist(message, innnerException);
     Assert.IsNotNull(target, "DatabaseDoesNotExist Object created.");
     Assert.AreEqual(message, target.Message, "Messages are equal.");
     Assert.AreSame(innnerException, target.InnerException, "Inner exception equal.");
 }
 public void DatabaseDoesNotExistSerializeTest()
 {
     string message = "Error Serial test DatabaseDoesNotExist";
     DatabaseDoesNotExist testException = new DatabaseDoesNotExist(message);
     string fileName = "Exception.test";
     Assert.IsTrue(Serializer.Serialize(fileName, testException), "Serialized");
     DatabaseDoesNotExist result = (Serializer.Deserialize<DatabaseDoesNotExist>(fileName));
     Assert.IsInstanceOfType(result, typeof(DatabaseDoesNotExist), "Deserialized");
     Assert.IsTrue(message.Equals(result.ExceptionMessage), "Exception message equal");
 }
 public void DatabaseDoesNotExistConstructorTest()
 {
     DatabaseDoesNotExist target = new DatabaseDoesNotExist();
     Assert.IsNotNull(target, "DatabaseDoesNotExist Object created.");
 }