コード例 #1
0
        public void TestGet()
        {
            Dictionary <string, object> dataJSON = new Dictionary <string, object>()
            {
                { "title", "yoloswag" }
            };

            Product[] products = new Product[] {
                new Product(dataJSON)
            };

            _productCache.Add(products, null);

            Assert.AreEqual(_productCache.Get(0).title(), "yoloswag");
        }