This repository has been archived on 2026-03-14. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Eco/VideoBrowser.Test/Common/PercentageTest.cs
2023-07-24 12:00:34 +02:00

28 lines
690 B
C#

namespace VideoBrowser.Test.Common
{
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using VideoBrowser.Common;
/// <summary>
/// Defines the <see cref="PercentageTest" />
/// </summary>
[TestClass]
public class PercentageTest
{
#region Methods
/// <summary>
/// The PercentageTest_Constructor
/// </summary>
[TestMethod]
public void PercentageTest_Constructor()
{
var percentage = new Percentage(50);
percentage.Normalized.Should().Be(0.5);
percentage.ToString().Should().Be("50%");
}
#endregion Methods
}
}