Ejemplo n.º 1
0
 public void SetUp()
 {
     using var stream = TestDataHelper.OpenResource("Text.duplicate_keys.vdf");
     data             = KVSerializer.Create(KVSerializationFormat.KeyValues1Text).Deserialize <Dictionary <string, string> >(stream);
 }
Ejemplo n.º 2
0
 Stream IIncludedFileLoader.OpenFile(string filePath)
 {
     Assert.That(filePath, Is.EqualTo("file.vdf"));
     return(TestDataHelper.OpenResource("Text.kv_included.vdf"));
 }
 KvObject IKvTextReader.Read(string resourceName, KvSerializerOptions options)
 {
     using (var stream = TestDataHelper.OpenResource(resourceName))
         return(KvSerializer.Create(KvSerializationFormat.KeyValues1Text).Deserialize(stream, options));
 }
 public void SetUp()
 {
     using var stream = TestDataHelper.OpenResource("Text.type_guessing.vdf");
     data             = KVSerializer.Create(KVSerializationFormat.KeyValues1Text).Deserialize(stream);
 }
Ejemplo n.º 5
0
 public void SetUp()
 {
     using var stream = TestDataHelper.OpenResource("Text.object_person_attributes.vdf");
     person           = KVSerializer.Create(KVSerializationFormat.KeyValues1Text).Deserialize <Person>(stream);
 }
 public void SetUp()
 {
     using var stream = TestDataHelper.OpenResource("Text.nested_object_graph.vdf");
     data             = KVSerializer.Create(KVSerializationFormat.KeyValues1Text).Deserialize <ObjectGraph>(stream);
 }
Ejemplo n.º 7
0
 public void SetUp()
 {
     using var stream = TestDataHelper.OpenResource("Text.list_of_values.vdf");
     data             = KVSerializer.Create(KVSerializationFormat.KeyValues1Text).Deserialize <ContainerClass>(stream);
 }