Exemplo n.º 1
0
        public void EqualsReturnsFalseForNullOtherObject()
        {
            var value = "SERVICE_INDEX";
            var entry = new ServiceIndexTrustEntry(value);

            entry.Equals(null).Should().BeFalse();
        }
Exemplo n.º 2
0
        public void EqualsReturnsTrueForSameObject()
        {
            var value = "SERVICE_INDEX";
            var entry = new ServiceIndexTrustEntry(value);

            entry.Equals(entry).Should().BeTrue();
        }
Exemplo n.º 3
0
        public void EqualsReturnsTrueForIndenticalObjects()
        {
            var value  = "SERVICE_INDEX";
            var entry1 = new ServiceIndexTrustEntry(value);
            var entry2 = new ServiceIndexTrustEntry(value);

            entry1.Equals(entry2).Should().BeTrue();
        }
Exemplo n.º 4
0
        public void EqualsReturnsFalseForDifferentValues()
        {
            var value1 = "SERVICE_INDEX";
            var value2 = "service_index2";
            var entry1 = new ServiceIndexTrustEntry(value1);
            var entry2 = new ServiceIndexTrustEntry(value2);

            entry1.Equals(entry2).Should().BeFalse();
        }
Exemplo n.º 5
0
        public void EqualsReturnsTrueForEquivalentObjects()
        {
            var value1 = "SERVICE_INDEX";
            var value2 = "service_index";
            var entry1 = new ServiceIndexTrustEntry(value1);
            var entry2 = new ServiceIndexTrustEntry(value2);

            entry1.Equals(entry2).Should().BeTrue();
        }