Exemple #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");
        }
Exemple #2
0
        public void ShouldReturnInputFromText()
        {
            Text value = new TextOf(new DelayedText(() => "Some ValueItem Here"));

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

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

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