Exemplo n.º 1
0
        public void ProcessSuccessTest()
        {
            InstallReceiver receiver = new InstallReceiver();

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

            Assert.True(receiver.Success);
        }
Exemplo n.º 2
0
        public void ProcessFailureNoMessageTest()
        {
            InstallReceiver receiver = new InstallReceiver();

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

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

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

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