예제 #1
0
        public void ParseRow_ReturnsIntPropertyAndStringProperty()
        {
            // Arrange
            var strProp = fixture.Create <string>();
            var intProp = fixture.Create <int>();

            var indexes = PropertyInfoTestHelpers.GetTestIndexs();
            var rows    = new List <string>
            {
                strProp,
                intProp.ToString()
            };

            // Act
            var response = _sut.ParseRow(indexes, rows);

            // Assert
            Assert.AreEqual(strProp, response.UserId);
            Assert.AreEqual(intProp, response.Version);
        }