Files
anki-static/AnkiStatic.Test/TestJson.fs
2024-05-31 22:12:20 +01:00

21 lines
433 B
Forth

namespace AnkiStatic.Test
open NUnit.Framework
open AnkiStatic
open FsUnitTyped
[<TestFixture>]
module TestJson =
type private Dummy = class end
[<Test>]
let ``Can read example`` () =
let assembly = typeof<Dummy>.Assembly
let json = Utils.readResource assembly "example1.json"
let collection, notes =
JsonCollection.deserialiseString json |> JsonCollection.toInternal
()