Exemple #1
0
        public void ProcessSuccessTest()
        {
            InstallReceiver receiver = new InstallReceiver();
            receiver.AddOutput("Success");
            receiver.Flush();

            Assert.IsTrue(receiver.Success);
        }
Exemple #2
0
        public void ProcessFailureTest()
        {
            InstallReceiver receiver = new InstallReceiver();
            receiver.AddOutput("Failure [message]");
            receiver.Flush();

            Assert.IsFalse(receiver.Success);
            Assert.AreEqual("message", receiver.ErrorMessage);
        }
Exemple #3
0
        public void ProcessFailureNoMessageTest()
        {
            InstallReceiver receiver = new InstallReceiver();
            receiver.AddOutput("Failure");
            receiver.Flush();

            Assert.IsFalse(receiver.Success);
            Assert.AreEqual(InstallReceiver.UnknownError, receiver.ErrorMessage);
        }