public async Task TestToStringAsync() { string id = Id.ObjectId(); string name = Id.Guid().Substring(0, 10); var customer = new Customer(id) { Name = name }; await _customerRepository.AddAsync(customer); await _unitOfWork.CommitAsync(); var result = await _query .Select <Customer>(t => t.Name) .From <Customer>("c") .Where <Customer>(t => t.Id == id) .ToStringAsync(); _output.WriteLine(_query.GetDebugSql()); Assert.Equal(name, result); }