示例#1
0
        public void ShouldReturnStringOfStream()
        {
            MemoryStream memoryStream = new MemoryStream(Encoding.ASCII.GetBytes("Some ValueItem Here"));
            Text         value        = new TextOf(memoryStream);

            value.String().Should().Be("Some ValueItem Here");
        }
示例#2
0
        public void ShouldReturnInputFromText()
        {
            Text value = new TextOf(new DelayedText(() => "Some ValueItem Here"));

            value.String().Should().Be("Some ValueItem Here");
        }
示例#3
0
        public void ShouldReturnStringOfBytes()
        {
            Text value = new TextOf(Encoding.ASCII.GetBytes("Some ValueItem Here"));

            value.String().Should().Be("Some ValueItem Here");
        }
示例#4
0
        public void ShouldReturnInputFromString()
        {
            Text value = new TextOf("Some ValueItem Here");

            value.String().Should().Be("Some ValueItem Here");
        }