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"); }
public void ShouldReturnInputFromText() { Text value = new TextOf(new DelayedText(() => "Some ValueItem Here")); value.String().Should().Be("Some ValueItem Here"); }
public void ShouldReturnStringOfBytes() { Text value = new TextOf(Encoding.ASCII.GetBytes("Some ValueItem Here")); value.String().Should().Be("Some ValueItem Here"); }
public void ShouldReturnInputFromString() { Text value = new TextOf("Some ValueItem Here"); value.String().Should().Be("Some ValueItem Here"); }