Beispiel #1
0
        public void ParseIntProperty_ThrowsArgumentExceptionWhenPropertyIsNotInt()
        {
            // Arrange
            var str             = fixture.Create <string>();
            var propertyName    = fixture.Create <string>();
            var expectedMessage = $"CSV File invalid. {propertyName} must be an integer";

            // Act
            // Assert
            var exception = Assert.Throws <ArgumentException>(() => _sut.ParseIntProperty(str, propertyName));

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