public void UnitOfWork_Scenario_ExpectedBehavior() { var mockSocket = Substitute.For<ISymSocket>(); mockSocket.ReadCommand().Returns(new SymCommand("FileList", new Dictionary<string, string> {{"Done", ""}})); var session = new SymSession(mockSocket, 10); int result = session.GetFileMaintenanceSequence("Report Title"); result.Should().Be(-1); }
public void UnitOfWork_Scenario_ExpectedBehavior() { var mockSocket = Substitute.For <ISymSocket>(); mockSocket.ReadCommand().Returns(new SymCommand("FileList", new Dictionary <string, string> { { "Done", "" } })); var session = new SymSession(mockSocket, 10); int result = session.GetFileMaintenanceSequence("Report Title"); result.Should().Be(-1); }