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