Exemple #1
0
        public void Should_Return_ParsedValue_When_Passed_Model()
        {
            //Arrange
            var fixture = new Fixture();
            var model   = fixture.Create <DataModel>();

            //Act
            var result = _sut.Parse(model);

            //Assert
            Assert.NotNull(result);
            Assert.Equal($"{model.Order}:{model.Key}:{model.Value}", result);
        }
Exemple #2
0
 public string Parse(DataModel dataModel) => $"{nameof(DataModel)}: [{customParser.Parse(dataModel)}]";