Projektdateien hinzufügen.
This commit is contained in:
28
VideoBrowser.Test/Common/PercentageTest.cs
Normal file
28
VideoBrowser.Test/Common/PercentageTest.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user