public void ProcessSuccessTest() { InstallReceiver receiver = new InstallReceiver(); receiver.AddOutput("Success"); receiver.Flush(); Assert.True(receiver.Success); }
public void ProcessFailureNoMessageTest() { InstallReceiver receiver = new InstallReceiver(); receiver.AddOutput("Failure"); receiver.Flush(); Assert.False(receiver.Success); Assert.Equal(InstallReceiver.UnknownError, receiver.ErrorMessage); }
public void ProcessFailureTest() { InstallReceiver receiver = new InstallReceiver(); receiver.AddOutput("Failure [message]"); receiver.Flush(); Assert.False(receiver.Success); Assert.Equal("message", receiver.ErrorMessage); }