示例#1
0
        public void should_not_be_equal_if_type_differs([Values(null, "tag")] object tag)
        {
            var target1 = new IsInheritorOf(typeof(Stream), tag);
            var target2 = new IsInheritorOf(typeof(MemoryStream), tag);

            target1.Equals(target2).Should().BeFalse();
        }
示例#2
0
        public void should_be_equal_if_fields_equal([Values(null, "tag")] object tag)
        {
            var target1 = new IsInheritorOf(typeof(Stream), tag);
            var target2 = new IsInheritorOf(typeof(Stream), tag);

            target1.Equals(target2).Should().BeTrue();
        }