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));
        }
 public void EqualityCorrect()
 {
     PropertySegment propertySegment1 = new PropertySegment(HardCodedTestModel.GetPersonNameProp());
     PropertySegment propertySegment2 = new PropertySegment(HardCodedTestModel.GetPersonNameProp());
     propertySegment1.Equals(propertySegment2).Should().BeTrue();
 }