< Summary

Information
Class: MyNet.IO.FileExtensions.CommonFileFilters
Assembly: MyNet.IO
File(s): https://raw.githubusercontent.com/sandre58/MyNet/85372080fe102cd9ee155ceab49ae000e7f66103/src/MyNet.IO/FileExtensions/CommonFileFilters.cs
Tag: 323_28699572109
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 27
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.cctor()100%11100%

File(s)

https://raw.githubusercontent.com/sandre58/MyNet/85372080fe102cd9ee155ceab49ae000e7f66103/src/MyNet.IO/FileExtensions/CommonFileFilters.cs

#LineLine coverage
 1// -----------------------------------------------------------------------
 2// <copyright file="CommonFileFilters.cs" company="Stéphane ANDRE">
 3// Copyright (c) Stéphane ANDRE. All rights reserved.
 4// </copyright>
 5// -----------------------------------------------------------------------
 6
 7namespace MyNet.IO.FileExtensions;
 8
 9/// <summary>
 10/// Provides common file extension groups for filtering files in file dialogs or other file selection interfaces. This c
 11/// </summary>
 12public static class CommonFileFilters
 13{
 14    /// <summary>
 15    /// Gets a file extension group representing common image file formats, including JPG, JPEG, PNG, GIF, BMP, and TIF.
 16    /// </summary>
 17    public static FileExtensionGroup Images { get; } =
 318        new(nameof(Images), [
 319            new(".jpg"),
 320            new(".jpeg"),
 321            new(".png"),
 322            new(".gif"),
 323            new(".bmp"),
 324            new(".tif")
 325        ]);
 26}
 27

Methods/Properties

.cctor()