public void Inclusive_Value_Equals_Start_Returns_True() { short start = 1; short end = 5; short value = 1; Assert.IsTrue(value.Between(start, end, true)); Assert.IsTrue(value.Between(start, end)); }
public void Inclusive_Value_Not_Between_Start_And_End_Returns_False() { short start = 1; short end = 5; short value = 0; Assert.IsFalse(value.Between(start, end, true)); Assert.IsFalse(value.Between(start, end)); }
public void Exclusive_Value_Equals_End_Returns_False() { short start = 1; short end = 5; short value = 5; Assert.IsFalse(value.Between(start, end, false)); }