Exemple #1
0
        public void InvalidRegisterException_ReturnsDefaultErrorMessage()
        {
            // Act
            var error = new InvalidRegisterException();

            // Assert
            Assert.Equal("Failed to create account. Please try again", error.Message);
            Assert.Equal(typeof(InvalidRegisterException), error.GetType());
        }
Exemple #2
0
        public void InvalidRegisterException_ReturnsProvidedErrorMessage(string errorMessage)
        {
            // Act
            var error = new InvalidRegisterException(errorMessage);

            // Assert
            Assert.Equal(errorMessage, error.Message);
            Assert.Equal(typeof(InvalidRegisterException), error.GetType());
        }