public void ReadTest1()
        {
            var container = new XmlStatsDataContainer(MockRepository.GenerateStub <IPreferenceSet>())
            {
                FileName = Path.Combine("..\\..\\TestFiles", Constants.UserStatsCacheFileName),
            };

            container.Data = null;
            container.Read();
            Assert.IsNotNull(container.Data);
        }
        public void WriteTest1()
        {
            var container = new XmlStatsDataContainer(MockRepository.GenerateStub <IPreferenceSet>())
            {
                FileName = "TestUserStatsBinary.dat",
            };

            container.Data = CreateTestData();
            container.Write();
            container.Data = null;
            container.Read();
            ValidateTestData(container.Data);
        }