コード例 #1
0
        public void FindReceiver_GivenThereIsNoReceiver_ReturnsNull()
        {
            // Act
            var receiver = capacityZeroPipe.FindReceiver(capacityZeroPipe.Inlet);

            // Assert
            receiver.Should().BeNull();
        }
コード例 #2
0
        public void FindReceiver_GivenThePipeHasSpareCapacity_ReturnsAReceiver()
        {
            // Act
            var receiver = capacityThreePipe.FindReceiver(capacityThreePipe.Inlet);

            // Assert
            receiver.Should().NotBeNull();
        }