Beispiel #1
0
        public void IComparableCompareTo_WithInstanceLaterThanParameter_ReturnsPositiveNumber(ITestItemPair <Day> pairTestItem)
        {
            (IComparable day1, object day2) = pairTestItem.CreatePair();
            var comp = day1.CompareTo(day2);

            Assert.That(comp, Is.GreaterThan(0));
        }
Beispiel #2
0
        public void CompareTo_WithInstanceEarlierThanParameter_ReturnsNegativeNumber(ITestItemPair <Day> pairTestItem)
        {
            var(day1, day2) = pairTestItem.CreatePair();
            var comp = day1.CompareTo(day2);

            Assert.That(comp, Is.LessThan(0));
        }
Beispiel #3
0
        public void ObjectEquals_WithTwoDifferentInstances_ReturnsFalse(ITestItemPair <HalfHour> pairTestItem)
        {
            (object halfHour1, object halfHour2) = pairTestItem.CreatePair();
            var equals = halfHour1.Equals(halfHour2);

            Assert.IsFalse(equals);
        }
Beispiel #4
0
        public void IComparableCompareTo_WithInstanceLaterThanParameter_ReturnsPositiveNumber(ITestItemPair <HalfHour> pairTestItem)
        {
            (IComparable halfHour1, object halfHour2) = pairTestItem.CreatePair();
            var comp = halfHour1.CompareTo(halfHour2);

            Assert.That(comp, Is.GreaterThan(0));
        }
Beispiel #5
0
        public void ObjectEquals_WithTwoDifferentInstances_ReturnsFalse(ITestItemPair <Day> pairTestItem)
        {
            (object day1, object day2) = pairTestItem.CreatePair();
            var equals = day1.Equals(day2);

            Assert.IsFalse(equals);
        }
Beispiel #6
0
        public void IComparableCompareTo_WithInstanceEarlierThanParameter_ReturnsNegativeNumber(ITestItemPair <Month> pairTestItem)
        {
            (IComparable month1, object month2) = pairTestItem.CreatePair();
            var comp = month1.CompareTo(month2);

            Assert.That(comp, Is.LessThan(0));
        }
Beispiel #7
0
        public void Equals_WithTwoDifferentInstances_ReturnsFalse(ITestItemPair <QuarterHour> pairTestItem)
        {
            var(quarterHour1, quarterHour2) = pairTestItem.CreatePair();
            var equals = quarterHour1.Equals(quarterHour2);

            Assert.IsFalse(equals);
        }
        public void ObjectEquals_WithTwoDifferentInstances_ReturnsFalse(ITestItemPair <Season> pairTestItem)
        {
            (object season1, object season2) = pairTestItem.CreatePair();
            var equals = season1.Equals(season2);

            Assert.IsFalse(equals);
        }
        public void IComparableCompareTo_WithInstanceEarlierThanParameter_ReturnsNegativeNumber(ITestItemPair <Season> pairTestItem)
        {
            (IComparable season1, object season2) = pairTestItem.CreatePair();
            var comp = season1.CompareTo(season2);

            Assert.That(comp, Is.LessThan(0));
        }
Beispiel #10
0
        public void CompareTo_WithInstanceEarlierThanParameter_ReturnsNegativeNumber(ITestItemPair <HalfHour> pairTestItem)
        {
            var(halfHour1, halfHour2) = pairTestItem.CreatePair();
            var comp = halfHour1.CompareTo(halfHour2);

            Assert.That(comp, Is.LessThan(0));
        }
        public void CompareTo_WithInstanceLaterThanParameter_ReturnsPositiveNumber(ITestItemPair <Quarter> pairTestItem)
        {
            var(quarter1, quarter2) = pairTestItem.CreatePair();
            var comp = quarter1.CompareTo(quarter2);

            Assert.That(comp, Is.GreaterThan(0));
        }
        public void IComparableCompareTo_WithInstanceEarlierThanParameter_ReturnsNegativeNumber(ITestItemPair <Quarter> pairTestItem)
        {
            (IComparable quarter1, object quarter2) = pairTestItem.CreatePair();
            var comp = quarter1.CompareTo(quarter2);

            Assert.That(comp, Is.LessThan(0));
        }
        public void ObjectEquals_WithTwoDifferentInstances_ReturnsFalse(ITestItemPair <Quarter> pairTestItem)
        {
            (object quarter1, object quarter2) = pairTestItem.CreatePair();
            var equals = quarter1.Equals(quarter2);

            Assert.IsFalse(equals);
        }
Beispiel #14
0
        public void CompareTo_WithInstanceLaterThanParameter_ReturnsPositiveNumber(ITestItemPair <Month> pairTestItem)
        {
            var(month1, month2) = pairTestItem.CreatePair();
            var comp = month1.CompareTo(month2);

            Assert.That(comp, Is.GreaterThan(0));
        }
        public void CompareTo_WithInstanceLaterThanParameter_ReturnsPositiveNumber(ITestItemPair <Season> pairTestItem)
        {
            var(season1, season2) = pairTestItem.CreatePair();
            var comp = season1.CompareTo(season2);

            Assert.That(comp, Is.GreaterThan(0));
        }
Beispiel #16
0
        public void ObjectEquals_WithTwoDifferentInstances_ReturnsFalse(ITestItemPair <Month> pairTestItem)
        {
            (object month1, object month2) = pairTestItem.CreatePair();
            var equals = month1.Equals(month2);

            Assert.IsFalse(equals);
        }
Beispiel #17
0
 public void LessThanOperator_WithLeftEarlierThanRight_ReturnsTrue(ITestItemPair <Month> pairTestItem)
 {
     var(month1, month2) = pairTestItem.CreatePair();
     Assert.IsTrue(month1 < month2);
 }
Beispiel #18
0
 public void GreaterThanOperator_WithLeftEarlierThanOrEqualToRight_ReturnsFalse(ITestItemPair <Month> pairTestItem)
 {
     var(month1, month2) = pairTestItem.CreatePair();
     Assert.IsFalse(month1 > month2);
 }
Beispiel #19
0
 public void InequalityOperator_WithTwoDifferentInstances_ReturnsTrue(ITestItemPair <Month> pairTestItem)
 {
     var(month1, month2) = pairTestItem.CreatePair();
     Assert.IsTrue(month1 != month2);
 }
 public void GetHashCode_OnTwoDifferentInstances_ReturnDifferentValue(ITestItemPair <Quarter> pairTestItem)
 {
     var(quarter1, quarter2) = pairTestItem.CreatePair();
     Assert.AreNotEqual(quarter1.GetHashCode(), quarter2.GetHashCode());
 }
Beispiel #21
0
 public void GreaterThanOrEqualToOperator_WithLeftLaterThanOrEqualToRight_ReturnsTrue(ITestItemPair <Month> pairTestItem)
 {
     var(month1, month2) = pairTestItem.CreatePair();
     Assert.IsTrue(month1 >= month2);
 }
 public void GreaterThanOperator_WithLeftEarlierThanOrEqualToRight_ReturnsFalse(ITestItemPair <Quarter> pairTestItem)
 {
     var(quarter1, quarter2) = pairTestItem.CreatePair();
     Assert.IsFalse(quarter1 > quarter2);
 }
 public void InequalityOperator_WithTwoDifferentInstances_ReturnsTrue(ITestItemPair <Quarter> pairTestItem)
 {
     var(quarter1, quarter2) = pairTestItem.CreatePair();
     Assert.IsTrue(quarter1 != quarter2);
 }
 public void GetHashCode_OnTwoDifferentInstances_ReturnDifferentValue(ITestItemPair <Season> pairTestItem)
 {
     var(season1, season2) = pairTestItem.CreatePair();
     Assert.AreNotEqual(season1.GetHashCode(), season2.GetHashCode());
 }
Beispiel #25
0
 public void LessThanOrEqualToOperator_WithLeftLaterThanRight_ReturnsFalse(ITestItemPair <Month> pairTestItem)
 {
     var(month1, month2) = pairTestItem.CreatePair();
     Assert.IsFalse(month1 <= month2);
 }
 public void LessThanOrEqualToOperator_WithLeftLaterThanRight_ReturnsFalse(ITestItemPair <Quarter> pairTestItem)
 {
     var(quarter1, quarter2) = pairTestItem.CreatePair();
     Assert.IsFalse(quarter1 <= quarter2);
 }
 public void LessThanOperator_WithLeftEarlierThanRight_ReturnsTrue(ITestItemPair <Quarter> pairTestItem)
 {
     var(quarter1, quarter2) = pairTestItem.CreatePair();
     Assert.IsTrue(quarter1 < quarter2);
 }
 public void LessThanOrEqualToOperator_WithLeftLaterThanRight_ReturnsFalse(ITestItemPair <Season> pairTestItem)
 {
     var(season1, season2) = pairTestItem.CreatePair();
     Assert.IsFalse(season1 <= season2);
 }
Beispiel #29
0
 public void GetHashCode_OnTwoDifferentInstances_ReturnDifferentValue(ITestItemPair <Month> pairTestItem)
 {
     var(month1, month2) = pairTestItem.CreatePair();
     Assert.AreNotEqual(month1.GetHashCode(), month2.GetHashCode());
 }
 public void GreaterThanOrEqualToOperator_WithLeftLaterThanOrEqualToRight_ReturnsTrue(ITestItemPair <Quarter> pairTestItem)
 {
     var(quarter1, quarter2) = pairTestItem.CreatePair();
     Assert.IsTrue(quarter1 >= quarter2);
 }