コード例 #1
0
        public void QueryParameterContainer_Read_Test()
        {
            var container = new QueryParametersContainer
            {
                FileName = Path.Combine("..\\..\\TestFiles", Constants.QueryCacheFileName),
            };

            container.Read();
            Assert.AreEqual(10, container.Get().Count);
        }
コード例 #2
0
        public void QueryParameterContainer_Write_Test()
        {
            var container = new QueryParametersContainer
            {
                FileName = "TestQueryParametersBinary.dat",
            };

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