Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }