示例#1
0
        public void EqualityIsCorrect()
        {
            OpenPropertySegment openPropertySegment1 = new OpenPropertySegment("superbeans");
            OpenPropertySegment openPropertySegment2 = new OpenPropertySegment("superbeans");

            openPropertySegment1.Equals(openPropertySegment2).Should().BeTrue();
        }
 public void InequalityIsCorrect()
 {
     OpenPropertySegment openPropertySegment1 = new OpenPropertySegment("superbeans");
     OpenPropertySegment openPropertySegment2 = new OpenPropertySegment("incredibeans");
     BatchSegment segment = BatchSegment.Instance;
     openPropertySegment1.Equals(openPropertySegment2).Should().BeFalse();
     openPropertySegment2.Equals(segment).Should().BeFalse();
 }
示例#3
0
        public void InequalityIsCorrect()
        {
            OpenPropertySegment openPropertySegment1 = new OpenPropertySegment("superbeans");
            OpenPropertySegment openPropertySegment2 = new OpenPropertySegment("incredibeans");
            BatchSegment        segment = BatchSegment.Instance;

            openPropertySegment1.Equals(openPropertySegment2).Should().BeFalse();
            openPropertySegment2.Equals(segment).Should().BeFalse();
        }
 public void EqualityIsCorrect()
 {
     OpenPropertySegment openPropertySegment1 = new OpenPropertySegment("superbeans");
     OpenPropertySegment openPropertySegment2 = new OpenPropertySegment("superbeans");
     openPropertySegment1.Equals(openPropertySegment2).Should().BeTrue();
 }