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

fluentassertions / fluentassertions.datasets / 13090818501

01 Feb 2025 05:24PM UTC coverage: 94.362%. Remained the same
13090818501

Pull #20

github

web-flow
Revert "Bump FluentAssertions from 8.0.0 to 8.0.1"

This reverts commit 6012f9891.
Pull Request #20: Revert "Bump FluentAssertions from 8.0.0 to 8.0.1"

458 of 498 branches covered (91.97%)

Branch coverage included in aggregate %.

1266 of 1329 relevant lines covered (95.26%)

4648.54 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();
8✔
11

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

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

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

31
            lastItem = item;
16✔
32
        }
33

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

39
        buffer.Append(lastItem);
8✔
40

41
        return buffer.ToString();
8✔
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