Esempio n. 1
0
        private TestResult BinaryRead()
        {
            sw.Restart();

            var content = FastBinary.Read <TestObject>(Path.Combine(path, "binary"));

            return(new TestResult(content.Equals(testObject), sw.Elapsed));
        }
Esempio n. 2
0
        private TestResult BinaryWrite()
        {
            sw.Restart();



            FastBinary.Write(Path.Combine(path, "binary"), testObject);
            return(new TestResult(true, sw.Elapsed));
        }