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

            openPropertySegment1.Equals(openPropertySegment2).Should().BeTrue();
        }
コード例 #2
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();
 }
コード例 #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();
        }
コード例 #4
0
 public void EqualityIsCorrect()
 {
     OpenPropertySegment openPropertySegment1 = new OpenPropertySegment("superbeans");
     OpenPropertySegment openPropertySegment2 = new OpenPropertySegment("superbeans");
     openPropertySegment1.Equals(openPropertySegment2).Should().BeTrue();
 }