Exemple #1
0
        public void GetTextFile_ShouldReturnFileWithSeveralLines()
        {
            var file  = new EmbeddedTextFileSource().GetTextFile(EmbeddedFiles.MediumFileName);
            var lines = file.ReadLines();

            Assert.That(lines.Count(), Is.GreaterThan(10));
        }
Exemple #2
0
        public void GetTextFile_ShouldReturnFileWhoseLinesCanBeEnumeratedMultipleTimes()
        {
            var file   = new EmbeddedTextFileSource().GetTextFile(EmbeddedFiles.MediumFileName);
            var lines  = file.ReadLines();
            int count1 = lines.Count();
            int count2 = lines.Count();

            Assert.That(count1, Is.EqualTo(count2));
        }