mirror of
https://github.com/oliverbooth/X10D
synced 2024-10-19 09:06:12 +00:00
23 lines
558 B
C#
23 lines
558 B
C#
|
namespace X10D.Tests
|
||
|
{
|
||
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||
|
|
||
|
/// <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));
|
||
|
}
|
||
|
}
|
||
|
}
|