public void TabDelimitedTextSerializer_Deserialize_Test()
        {
            using var stream = File.OpenRead("TestFiles\\ProjectInfo.tab");
            var collection = _serializer.Deserialize(stream);

            Assert.AreEqual(1409, collection.Count);
            _expected.ShouldDeepEqual(collection);
        }
Exemple #2
0
        public void TabDelimitedTextSerializer_Deserialize_FromEmptyStream_Test()
        {
            var serializer = new TabDelimitedTextSerializer();

            using (var stream = new MemoryStream())
            {
                var proteins = serializer.Deserialize(stream);
                Assert.AreEqual(0, proteins.Count);
            }
        }
Exemple #3
0
        public void TabDelimitedTextSerializer_Deserialize_Test()
        {
            var serializer = new TabDelimitedTextSerializer();

            using (var stream = File.OpenRead("..\\..\\TestFiles\\ProjectInfo.tab"))
            {
                var collection = serializer.Deserialize(stream);
                Assert.AreEqual(1409, collection.Count);
            }
        }