Пример #1
0
 public void InequalityCorrect()
 {
     PropertySegment propertySegment1 = new PropertySegment(HardCodedTestModel.GetPersonNameProp());
     PropertySegment propertySegment2 = new PropertySegment(HardCodedTestModel.GetPersonShoeProp());
     BatchSegment batchSegment = BatchSegment.Instance;
     propertySegment1.Equals(propertySegment2).Should().BeFalse();
     propertySegment1.Equals(batchSegment).Should().BeFalse();
 }
Пример #2
0
        public void InequalityCorrect()
        {
            PropertySegment propertySegment1 = new PropertySegment(HardCodedTestModel.GetPersonNameProp());
            PropertySegment propertySegment2 = new PropertySegment(HardCodedTestModel.GetPersonShoeProp());
            BatchSegment    batchSegment     = BatchSegment.Instance;

            propertySegment1.Equals(propertySegment2).Should().BeFalse();
            propertySegment1.Equals(batchSegment).Should().BeFalse();
        }
Пример #3
0
        public void EqualityCorrect()
        {
            PropertySegment propertySegment1 = new PropertySegment(HardCodedTestModel.GetPersonNameProp());
            PropertySegment propertySegment2 = new PropertySegment(HardCodedTestModel.GetPersonNameProp());

            propertySegment1.Equals(propertySegment2).Should().BeTrue();
        }
        public void EqualityCorrect()
        {
            PropertySegment propertySegment1 = new PropertySegment(HardCodedTestModel.GetPersonNameProp());
            PropertySegment propertySegment2 = new PropertySegment(HardCodedTestModel.GetPersonNameProp());

            Assert.True(propertySegment1.Equals(propertySegment2));
        }
Пример #5
0
 public void EqualityCorrect()
 {
     PropertySegment propertySegment1 = new PropertySegment(HardCodedTestModel.GetPersonNameProp());
     PropertySegment propertySegment2 = new PropertySegment(HardCodedTestModel.GetPersonNameProp());
     propertySegment1.Equals(propertySegment2).Should().BeTrue();
 }