Ejemplo n.º 1
0
        public void ReadBinaryTest()
        {
            var container = new ProteinBenchmarkService
            {
                FileName = Path.Combine("..\\..\\TestFiles", Constants.BenchmarkCacheFileName),
            };

            container.Read();
            Assert.AreEqual(1246, container.GetAll().Count);
        }
Ejemplo n.º 2
0
        public void WriteAndReadBinaryTest()
        {
            var collection = new ProteinBenchmarkService
            {
                FileName = "TestProteinBenchmark.dat",
            };

            collection.Data = CreateTestList();
            collection.Write();
            collection.Data = null;
            collection.Read();
            ValidateTestList(collection.Data);
        }