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); }
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); } }
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); } }