示例#1
0
        public void MediaFieldEquals()
        {
            var field1 = new Piranha.Extend.Fields.MediaField {
                Id = Guid.NewGuid()
            };
            var field2 = new Piranha.Extend.Fields.MediaField {
                Id = field1.Id
            };

            Assert.True(field1 == field2);
            Assert.True(field1.Equals(field2));
            Assert.True(field1.Equals((object)field2));
        }