Example #1
0
 public void RemovesProp()
 {
     using (var temp = new TempDirectory())
     {
         var memory = new FileMnemonic(temp.Value().FullName);
         var comb   = new FileComb("my-comb", memory);
         comb.Props().Refined("name", "value", "value2");
         comb.Props().Refined("name");
         Assert.Empty(
             comb.Props().Names()
             );
     }
 }
Example #2
0
 public void HasArrayProps()
 {
     using (var temp = new TempDirectory())
     {
         var memory = new FileMnemonic(temp.Value().FullName);
         var comb   = new FileComb("my-comb", memory);
         comb.Props().Refined("name", "value", "value2");
         Assert.Equal(
             new ManyOf("value", "value2"),
             comb.Props().Values("name")
             );
     }
 }