Esempio n. 1
0
        public void Should_Be_Greater_Than_When_Compared_To_Null()
        {
            // arrange
            var a = new HelperStringEnum("a");

            // act
            int comparisonResult = a.CompareTo(null);

            // assert
            Assert.That(comparisonResult, Is.GreaterThan(0));
        }
Esempio n. 2
0
        public void Should_Be_Greater_When_Compared()
        {
            // arrange
            var a = new HelperStringEnum("a");
            var b = new HelperStringEnum("b");

            // act
            int comparisonResult = b.CompareTo(a);

            // assert
            Assert.That(comparisonResult, Is.GreaterThan(0));
        }
Esempio n. 3
0
        public void Should_Be_Equal_When_Compared()
        {
            // arrange
            var a1 = new HelperStringEnum("a");
            var a2 = new HelperStringEnum("a");

            // act
            int comparisonResult = a1.CompareTo(a2);

            // assert
            Assert.That(comparisonResult, Is.EqualTo(0));
        }
Esempio n. 4
0
        public void Should_Be_Less_Than_When_Compared()
        {
            // arrange
            var a = new HelperStringEnum("a");
            var b = new HelperStringEnum("b");

            // act
            int comparisonResult = a.CompareTo(b);

            // assert
            Assert.That(comparisonResult, Is.LessThan(0));
        }