コード例 #1
0
ファイル: PipeTests.cs プロジェクト: CraigRice/BddPipe
        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
ファイル: PipeTests.cs プロジェクト: CraigRice/BddPipe
        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])");
        }