Example #1
0
        public void Equals_Should_Use_Name_Property_For_Equality()
        {
            // Arrange
            TagViewModel model1 = new TagViewModel("tag1");
            TagViewModel model2 = new TagViewModel("tag2");

            // Act
            bool areEqual = model1.Equals(model2);

            // Assert
            Assert.That(areEqual, Is.False);
        }
Example #2
0
        public void equals_should_use_name_property_for_equality()
        {
            // Arrange
            TagViewModel model1 = new TagViewModel("tag1");
            TagViewModel model2 = new TagViewModel("tag2");

            // Act
            bool areEqual = model1.Equals(model2);

            // Assert
            Assert.That(areEqual, Is.False);
        }