示例#1
0
        public void ToString_WithCtnDefaultValue_ReturnsCorrectString()
        {
            Pipe <int> pipe   = new Ctn <int>(DefaultValue, None);
            var        result = pipe.ToString();

            result.Should().Be("Container of (BddPipe.Ctn`1[System.Int32])");
        }
示例#2
0
        public void ToString_WithCtnError_ReturnsCorrectString()
        {
            var        exInfo = ExceptionDispatchInfo.Capture(new ApplicationException("test error"));
            Pipe <int> pipe   = new Ctn <ExceptionDispatchInfo>(exInfo, None);
            var        result = pipe.ToString();

            result.Should().Be("Container of (BddPipe.Ctn`1[System.Runtime.ExceptionServices.ExceptionDispatchInfo])");
        }