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