Exemplo n.º 1
0
                public void GivenNonExistingRecipient_ReturnsEmpty()
                {
                    var logFiles =
                        TestGuyLogFiles.TryGetLogFilesForSpecificPm(
                            DateTime.MinValue,
                            DateTime.MaxValue,
                            new CharacterName("Idonotexist")).ToList();

                    Expect(logFiles.Count, EqualTo(0));
                }
Exemplo n.º 2
0
                public void GetsCorrectNumberOfFiles()
                {
                    var logFiles =
                        TestGuyLogFiles.TryGetLogFilesForSpecificPm(
                            DateTime.MinValue,
                            DateTime.MaxValue,
                            new CharacterName("John")).ToList();

                    Expect(logFiles.Count, EqualTo(2));
                }
Exemplo n.º 3
0
                public void GetsFilesInCorrectOrder()
                {
                    var logFiles =
                        TestGuyLogFiles.TryGetLogFilesForSpecificPm(
                            DateTime.MinValue,
                            DateTime.MaxValue,
                            new CharacterName("John")).ToList();
                    var resortedLogFiles = logFiles.OrderBy(info => info.LogFileDate.DateTime).ToList();

                    Expect(resortedLogFiles, EqualTo(logFiles));
                }