public void GetProjections_outputstring_ValidProjectionFiledJoinedByCommaExpected() { //Arrange List <PropertyInfo> properties = typeof(JobLog).GetProperties().ToList(); List <string> fileds = new List <string>() { "Duration", "Records" }; //Act var result = mQueryParser.GetProjections(properties, fileds); //Assert Assert.IsNotNull(result); string expectedresult = "[Duration],[Records]"; Assert.AreEqual(expectedresult, result); }