Example #1
0
        public void DetermineEquality()
        {
            var set = new ImmutableSet8().Add(1, 2, 3);

            set.SetEquals(new ImmutableSet8().Add(1, 2, 3)).Should().BeTrue();
            set.Equals(new ImmutableSet8().Add(1, 2, 3)).Should().BeTrue();
            set.Equals(14).Should().BeTrue();
        }
Example #2
0
        public void DetermineEqualityWithEnumerable()
        {
            IImmutableSet <int> set = new ImmutableSet8().Add(1, 2, 3);

            set.SetEquals(Enumerable.Range(1, 3)).Should().BeTrue();
        }