public void For_PatternDoesNotMatch_ReturnsInputString( [Frozen] IMainModel model, [Frozen] IParseAndAddFloatValue parseAndAddFloatValue, MoveCoWireObjectService sut, string dummyString) { //Arrange //Act var result = sut.For(dummyString); //Assert result.Should().Be(dummyString); model.ReceivedCalls().Should().BeEmpty(); parseAndAddFloatValue.ReceivedCalls().Should().BeEmpty(); }
public void Move_RegExServiceDoesNotMatch_Returns( [Frozen] IMainModel model, [Frozen] IFindWaggonsRegExService findWaggonsRegExService, [Frozen] IParseAndAddFloatValue parseAndAddFloatValue, MoveWaggonsService sut, string dummyContent) { //Arrange model.FileContent.Returns(dummyContent); findWaggonsRegExService.MatchRegex(dummyContent).Returns(new RegexServiceResponseModel()); //Act sut.Move(); //Assert model.ReceivedCalls().Should().HaveCount(1); findWaggonsRegExService.ReceivedCalls().Should().HaveCount(1); findWaggonsRegExService.Received(1).MatchRegex(dummyContent); parseAndAddFloatValue.ReceivedCalls().Should().BeEmpty(); }