• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

fluentassertions / fluentassertions.datasets / 19833483471

01 Dec 2025 06:37PM UTC coverage: 94.362%. Remained the same
19833483471

push

github

jnyrup
Bump JetBrains.Annotations from 2025.2.2 to 2025.2.4

---
updated-dependencies:
- dependency-name: JetBrains.Annotations
  dependency-version: 2025.2.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

458 of 498 branches covered (91.97%)

Branch coverage included in aggregate %.

1266 of 1329 relevant lines covered (95.26%)

2324.28 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

90.91
/Src/FluentAssertions.DataSets/Common/EnumerableExtensions.cs
1
using System.Collections.Generic;
2
using System.Text;
3

4
namespace FluentAssertions.DataSets.Common;
5

6
internal static class EnumerableExtensions
7
{
8
    internal static string JoinUsingWritingStyle<T>(this IEnumerable<T> items)
9
    {
10
        var buffer = new StringBuilder();
4✔
11

12
        T lastItem = default;
4✔
13
        bool first = true;
4✔
14

15
        foreach (var item in items)
24✔
16
        {
17
            if (first)
8✔
18
            {
19
                first = false;
4✔
20
            }
21
            else
22
            {
23
                if (buffer.Length > 0)
4!
24
                {
25
                    buffer.Append(", ");
×
26
                }
27

28
                buffer.Append(lastItem);
4✔
29
            }
30

31
            lastItem = item;
8✔
32
        }
33

34
        if (buffer.Length > 0)
4✔
35
        {
36
            buffer.Append(" and ");
4✔
37
        }
38

39
        buffer.Append(lastItem);
4✔
40

41
        return buffer.ToString();
4✔
42
    }
43
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc