mirror of
https://github.com/oliverbooth/X10D
synced 2024-10-19 11:46:12 +00:00
23 lines
569 B
C#
23 lines
569 B
C#
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
|
|
namespace X10D.Tests.Core
|
|
{
|
|
/// <summary>
|
|
/// Tests for <see cref="ComparableExtensions" />.
|
|
/// </summary>
|
|
[TestClass]
|
|
public class ComparableTests
|
|
{
|
|
/// <summary>
|
|
/// Tests for <see cref="ComparableExtensions.Between{T}" />.
|
|
/// </summary>
|
|
[TestMethod]
|
|
public void Between()
|
|
{
|
|
Assert.IsTrue(5.Between(2, 7));
|
|
Assert.IsTrue(10.Between(9, 11));
|
|
Assert.IsFalse(100.Between(80, 99));
|
|
}
|
|
}
|
|
}
|