예제 #1
0
        public void WhenComparingTwoDifferentCouplingsThenAreOrderedAlphabetically1()
        {
            var first = new TypeCoupling(
                "classA",
                "ns",
                "assembly",
                Enumerable.Empty<string>(),
                Enumerable.Empty<string>(),
                Enumerable.Empty<string>());
            var second = new TypeCoupling(
                "classB",
                "ns",
                "assembly",
                Enumerable.Empty<string>(),
                Enumerable.Empty<string>(),
                Enumerable.Empty<string>());

            Assert.True(first < second);
        }
예제 #2
0
        public void WhenComparingTwoDifferentCouplingsWithLogicalNotEqualsThenReturnsTrue()
        {
            var first = new TypeCoupling(
                "classA",
                "ns",
                "assembly",
                Enumerable.Empty<string>(),
                Enumerable.Empty<string>(),
                Enumerable.Empty<string>());
            var second = new TypeCoupling(
                "classB",
                "ns",
                "assembly",
                Enumerable.Empty<string>(),
                Enumerable.Empty<string>(),
                Enumerable.Empty<string>());

            Assert.True(first != second);
        }
예제 #3
0
        public void WhenComparingTwoDifferentCouplingsWithEqualsThenReturnsFalse()
        {
            var first = new TypeCoupling(
                "classA",
                "ns",
                "assembly",
                Enumerable.Empty<string>(),
                Enumerable.Empty<string>(),
                Enumerable.Empty<string>());
            var second = new TypeCoupling(
                "classB",
                "ns",
                "assembly",
                Enumerable.Empty<string>(),
                Enumerable.Empty<string>(),
                Enumerable.Empty<string>());

            Assert.False(first.Equals(second));
        }
예제 #4
0
        public void WhenComparingTwoDifferentCouplingsThenAreOrderedAlphabetically2()
        {
            var first = new TypeCoupling(
                "classA",
                "ns",
                "assembly",
                Enumerable.Empty <string>(),
                Enumerable.Empty <string>(),
                Enumerable.Empty <string>());
            var second = new TypeCoupling(
                "classB",
                "ns",
                "assembly",
                Enumerable.Empty <string>(),
                Enumerable.Empty <string>(),
                Enumerable.Empty <string>());

            Assert.IsFalse(first > second);
        }
예제 #5
0
        public void WhenComparingTwoDifferentCouplingsWithLogicalNotEqualsThenReturnsTrue()
        {
            var first = new TypeCoupling(
                "classA",
                "ns",
                "assembly",
                Enumerable.Empty <string>(),
                Enumerable.Empty <string>(),
                Enumerable.Empty <string>());
            var second = new TypeCoupling(
                "classB",
                "ns",
                "assembly",
                Enumerable.Empty <string>(),
                Enumerable.Empty <string>(),
                Enumerable.Empty <string>());

            Assert.IsTrue(first != second);
        }
        public void WhenComparingTwoDifferentCouplingsWithEqualsThenReturnsFalse()
        {
            var first = new TypeCoupling(
                "classA",
                "ns",
                "assembly",
                Enumerable.Empty <string>(),
                Enumerable.Empty <string>(),
                Enumerable.Empty <string>());
            var second = new TypeCoupling(
                "classB",
                "ns",
                "assembly",
                Enumerable.Empty <string>(),
                Enumerable.Empty <string>(),
                Enumerable.Empty <string>());

            Assert.False(first.Equals(second));
        }