public void Parse_returns_parsed_object()
        {
            var json = OneFile.Parse(GetBinaryFixture("blob", "bin"), TestData.Password);

            Assert.NotNull(json["i"]);
            Assert.NotNull(json["c"]);
        }
Beispiel #2
0
        public void Parse_returns_parsed_object()
        {
            var json = OneFile.Parse(TestData.Blob, TestData.Password);

            Assert.That(json["i"], Is.Not.Null);
            Assert.That(json["c"], Is.Not.Null);
        }
 private static void Parse(byte[] content)
 {
     OneFile.Parse(content, "password");
 }
Beispiel #4
0
 private static TestDelegate Parse(byte[] content)
 {
     return(() => OneFile.Parse(content, "password"));
 }