public void GetEntitySet_ReturnsNull()
        {
            BatchPathSegment batchSegment = new BatchPathSegment();
            IEdmEntitySet entitySet = new Mock<IEdmEntitySet>().Object;

            Assert.Null(batchSegment.GetEntitySet(entitySet));
        }
Exemple #2
0
        public void GetNavigationSource_ReturnsNull()
        {
            BatchPathSegment batchSegment = new BatchPathSegment();
            IEdmEntitySet    entitySet    = new Mock <IEdmEntitySet>().Object;

            Assert.Null(batchSegment.GetNavigationSource(entitySet));
        }
Exemple #3
0
        public void TryMatch_ReturnsTrue_ForBatchSegment()
        {
            // Arrange
            BatchPathSegment            segment = new BatchPathSegment();
            BatchPathSegment            batch   = new BatchPathSegment();
            Dictionary <string, object> values  = new Dictionary <string, object>();

            // Act
            bool result = segment.TryMatch(batch, values);

            // Assert
            Assert.True(result);
            Assert.Empty(values);
        }
        public void TryMatch_ReturnsTrue_ForBatchSegment()
        {
            // Arrange
            BatchPathSegment segment = new BatchPathSegment();
            BatchPathSegment batch = new BatchPathSegment();
            Dictionary<string, object> values = new Dictionary<string, object>();

            // Act
            bool result = segment.TryMatch(batch, values);

            // Assert
            Assert.True(result);
            Assert.Empty(values);
        }
Exemple #5
0
        public void GetEdmType_ReturnsNull()
        {
            BatchPathSegment segment = new BatchPathSegment();

            Assert.Null(segment.GetEdmType(previousEdmType: null));
        }
Exemple #6
0
        public void PropertySegmentKind_Returns_Batch()
        {
            BatchPathSegment segment = new BatchPathSegment();

            Assert.Equal(ODataSegmentKinds.Batch, segment.SegmentKind);
        }
 public void GetEdmType_ReturnsNull()
 {
     BatchPathSegment segment = new BatchPathSegment();
     Assert.Null(segment.GetEdmType(previousEdmType: null));
 }
 public void PropertySegmentKind_Returns_Batch()
 {
     BatchPathSegment segment = new BatchPathSegment();
     Assert.Equal(ODataSegmentKinds.Batch, segment.SegmentKind);
 }