Exemplo n.º 1
0
        public void EmailIsAlreadyConfirmedException_ReturnsDefaultErrorMessage()
        {
            // Act
            var error = new EmailIsAlreadyConfirmedException();

            // Assert
            Assert.Equal("Email already confirmed", error.Message);
            Assert.Equal(typeof(EmailIsAlreadyConfirmedException), error.GetType());
        }
Exemplo n.º 2
0
        public void EmailIsAlreadyConfirmedException_ReturnsProvidedErrorMessage(string errorMessage)
        {
            // Act
            var error = new EmailIsAlreadyConfirmedException(errorMessage);

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