2021-07-19 11:48:58 +00:00
|
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
|
|
|
2020-07-15 13:32:59 +00:00
|
|
|
namespace X10D.Tests.Core
|
2020-04-18 13:41:53 +00:00
|
|
|
{
|
|
|
|
/// <summary>
|
2020-07-15 13:32:59 +00:00
|
|
|
/// Tests for <see cref="ComparableExtensions" />.
|
2020-04-18 13:41:53 +00:00
|
|
|
/// </summary>
|
|
|
|
[TestClass]
|
|
|
|
public class ComparableTests
|
|
|
|
{
|
|
|
|
/// <summary>
|
2020-07-15 13:32:59 +00:00
|
|
|
/// Tests for <see cref="ComparableExtensions.Between{T}" />.
|
2020-04-18 13:41:53 +00:00
|
|
|
/// </summary>
|
|
|
|
[TestMethod]
|
|
|
|
public void Between()
|
|
|
|
{
|
|
|
|
Assert.IsTrue(5.Between(2, 7));
|
|
|
|
Assert.IsTrue(10.Between(9, 11));
|
|
|
|
Assert.IsFalse(100.Between(80, 99));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|