bilal-fazlani / commanddotnet

A modern framework for building modern CLI apps
https://commanddotnet.bilal-fazlani.com
MIT License
569 stars 30 forks source link

Help ? #377

Closed atari-monk closed 2 years ago

atari-monk commented 2 years ago

public class PipedInputTests { [Test] public void Add_Given2Numbers_Should_OutputSum() { var result = new AppRunner().RunInMem("Add 40 20"); result.ExitCode.Should().Be(0); result.Console.Out.Should().Be(@"60"); } }

I wanted this from docs to run. Cant find this methods Should Is docs outdated ? Didnt see this method in repo.

atari-monk commented 2 years ago

Ups, found Shoud in repo. But still, are docs outdated ?

atari-monk commented 2 years ago

Ok cloned repo, found i need nuget FluentAssertions Shame docs dont mentions it Old chunck of coal like me didnt know..

drewburlingame commented 2 years ago

Hi @krzm is this the kind of indicator that would have helped?

image

drewburlingame commented 2 years ago

@krzm, other than the Should red-herring, how's your experience of the framework. I see you've built a few console apps and possibly a similar console framework. I'd be interested to hear your impressions..

atari-monk commented 2 years ago

Hi @drewburlingame, yes it would help. Problem is, test failed for unknow to me as yet reason. I begun to like Console recently. I did some simple lib solutions of my own, witch are tailored to my simple needs. I seen this vid: https://youtu.be/dKBuvdGsYYc I thouth maby i dont need my own libs. I started to look at CommandDotNet. I think it's impresive. Started in doc section getting started. Hope to see how i can use it by doing some examples, from docs or repo.

drewburlingame commented 2 years ago

We've had a lot of improvements since that video. Feel free to reach out to us in a discussion on this repo or via discord with any questions.

drewburlingame commented 2 years ago

And let us know if you have suggestions to improve the docs.