public void ProgramName_ShouldReturnParserSetup() { var parser = A.Fake <Parser>(); var setup = new ParserSetup(parser); setup.ProgramName("newProgramName").Should().Be(setup); }
public void ProgramName_ShouldAssignProgramNameToParser() { var parser = A.Fake <Parser>(); var setup = new ParserSetup(parser); setup.ProgramName("newProgramName"); A.CallToSet(() => parser.ProgramName).To("newProgramName").MustHaveHappened(); }