예제 #1
0
        public void GetCodeElementTypeTemplate_NotSupportedCodeElement_ShouldThrowsException(CodeType codeType, CodeElementType elementType)
        {
            // Assert
            Exception exception = Assert.Throws <NotSupportedException>(() =>
            {
                // Act
                provider.GetCodeElementTypeTemplate(codeType, elementType);
            });

            Assert.AreEqual(this.messageManager.GetMessage("CurrentCodeElementTypeIsNotSupported"), exception.Message);
        }
        public void GetCodeElementTypeTemplate_NotSupportedCodeElement_ShouldThrowsException(CodeType codeType, CodeElementType elementType)
        {
            // Arrange
            string expectedErrorMessage = "Current code element type is not supported";

            // Assert
            Exception exception = Assert.Throws <NotSupportedException>(() =>
            {
                // Act
                provider.GetCodeElementTypeTemplate(codeType, elementType);
            });

            Assert.AreEqual(expectedErrorMessage, exception.Message);
        }