< Summary

Information
Class: MyNet.UI.ViewModels.List.Grouping.Group<T>
Assembly: MyNet.UI
File(s): https://raw.githubusercontent.com/sandre58/MyNet/85372080fe102cd9ee155ceab49ae000e7f66103/src/MyNet.UI/ViewModels/List/Grouping/Group.cs
Tag: 323_28699572109
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 29
Line coverage: 100%
Branch coverage
100%
Covered branches: 2
Total branches: 2
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%22100%

File(s)

https://raw.githubusercontent.com/sandre58/MyNet/85372080fe102cd9ee155ceab49ae000e7f66103/src/MyNet.UI/ViewModels/List/Grouping/Group.cs

#LineLine coverage
 1// -----------------------------------------------------------------------
 2// <copyright file="Group.cs" company="Stéphane ANDRE">
 3// Copyright (c) Stéphane ANDRE. All rights reserved.
 4// </copyright>
 5// -----------------------------------------------------------------------
 6
 7using System;
 8using System.Collections.Generic;
 9
 10namespace MyNet.UI.ViewModels.List.Grouping;
 11
 12/// <summary>
 13/// Represents a concrete group of items.
 14/// </summary>
 15/// <typeparam name="T">The item type.</typeparam>
 16/// <remarks>
 17/// Initializes a new instance of the <see cref="Group{T}"/> class.
 18/// </remarks>
 19/// <param name="key">The group key.</param>
 20/// <param name="items">The grouped items.</param>
 21public sealed class Group<T>(object? key, IReadOnlyList<T> items) : IGroup<T>
 22{
 23    /// <inheritdoc />
 624    public object? Key { get; } = key;
 25
 26    /// <inheritdoc />
 627    public IReadOnlyList<T> Items { get; } = items ?? throw new ArgumentNullException(nameof(items));
 28}
 29