Beispiel #1
0
        public void Constructor_WithMessageAndCode_Works()
        {
            var ex = new MuxerException("test.", MuxerError.BadDevice);

            Assert.Equal("test.", ex.Message);
            Assert.Equal((int)MuxerError.BadDevice, ex.HResult);
        }
Beispiel #2
0
        public void Constructor_WithMessageAndInner_Works()
        {
            var inner = new Exception();
            var ex    = new MuxerException("test.", inner);

            Assert.Equal("test.", ex.Message);
            Assert.Same(inner, ex.InnerException);
        }
Beispiel #3
0
        public void Constructor_WithMessage_Works()
        {
            var ex = new MuxerException("test.");

            Assert.Equal("test.", ex.Message);
        }
Beispiel #4
0
        public void Constructor_Works()
        {
            var ex = new MuxerException();

            Assert.Equal("An unexpected usbmuxd exception occurred.", ex.Message);
        }