Пример #1
0
        public void GetCancelledLogMessageText_DescriptorNull_ThrowsArgumentNullException()
        {
            // Setup
            var messageProvider = new ImportMessageProvider();

            // Call
            TestDelegate call = () => messageProvider.GetCancelledLogMessageText(null);

            // Assert
            string paramName = Assert.Throws <ArgumentNullException>(call).ParamName;

            Assert.AreEqual("typeDescriptor", paramName);
        }
Пример #2
0
        public void GetCancelledLogMessageText_WithDescriptor_ReturnsExpectedMessage()
        {
            // Setup
            const string typeDescriptor  = "Items";
            var          messageProvider = new ImportMessageProvider();

            // Call
            string message = messageProvider.GetCancelledLogMessageText(typeDescriptor);

            // Assert
            const string expectedMessage = "Items importeren afgebroken. Geen gegevens gewijzigd.";

            Assert.AreEqual(expectedMessage, message);
        }