Exemple #1
0
        public void ProcessSuccessTest()
        {
            InstallReceiver receiver = new InstallReceiver();

            receiver.AddOutput("Success");
            receiver.Flush();

            Assert.True(receiver.Success);
        }
Exemple #2
0
        public void ProcessFailureNoMessageTest()
        {
            InstallReceiver receiver = new InstallReceiver();

            receiver.AddOutput("Failure");
            receiver.Flush();

            Assert.False(receiver.Success);
            Assert.Equal(InstallReceiver.UnknownError, receiver.ErrorMessage);
        }
Exemple #3
0
        public void ProcessFailureTest()
        {
            InstallReceiver receiver = new InstallReceiver();

            receiver.AddOutput("Failure [message]");
            receiver.Flush();

            Assert.False(receiver.Success);
            Assert.Equal("message", receiver.ErrorMessage);
        }