Exemple #1
0
        public void MessageTest()
        {
            // Arrange.
            const string expectedMessage = "message";

            // Act.
            var exception = new DeviceSettingNotSupportedException(expectedMessage);

            // Assert.
            Assert.IsNull(exception.InnerException);
            Assert.AreEqual(expectedMessage, exception.Message);
        }
Exemple #2
0
        public void ExceptionTest()
        {
            // Arrange.
            const string expectedMessage = "Exception of type 'Sensit.TestSDK.Exceptions.DeviceSettingNotSupportedException' was thrown.";

            // Act
            var exception = new DeviceSettingNotSupportedException();

            // Assert
            Assert.IsNull(exception.InnerException);
            Assert.AreEqual(expectedMessage, exception.Message);
        }