[shill] Move some simple unit tests to property_store_unittest.cc

BUG=None
TEST=unit tests

Change-Id: Ib5ee4b3c2654c193227a3b789cbb6f40e5222b85
Reviewed-on: http://gerrit.chromium.org/gerrit/3617
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Darin Petkov <petkov@chromium.org>
diff --git a/property_store_unittest.cc b/property_store_unittest.cc
index 03b6ee1..2dd049c 100644
--- a/property_store_unittest.cc
+++ b/property_store_unittest.cc
@@ -22,6 +22,7 @@
 using std::string;
 using std::map;
 using std::vector;
+using ::testing::Values;
 
 namespace shill {
 
@@ -62,4 +63,26 @@
 
 PropertyStoreTest::~PropertyStoreTest() {}
 
+TEST_P(PropertyStoreTest, TestProperty) {
+  // Ensure that an attempt to write unknown properties returns InvalidProperty.
+  PropertyStore store;
+  ::DBus::Error error;
+  EXPECT_FALSE(DBusAdaptor::DispatchOnType(&store, "", GetParam(), &error));
+  EXPECT_EQ(invalid_prop_, error.name());
+}
+
+INSTANTIATE_TEST_CASE_P(
+    PropertyStoreTestInstance,
+    PropertyStoreTest,
+    Values(PropertyStoreTest::kBoolV,
+           PropertyStoreTest::kByteV,
+           PropertyStoreTest::kStringV,
+           PropertyStoreTest::kInt16V,
+           PropertyStoreTest::kInt32V,
+           PropertyStoreTest::kUint16V,
+           PropertyStoreTest::kUint32V,
+           PropertyStoreTest::kStringsV,
+           PropertyStoreTest::kStringmapV,
+           PropertyStoreTest::kStringmapsV));
+
 }  // namespace shill